jellyfin/Jellyfin.Data/Entities/ImageInfo.cs
2020-05-12 22:10:35 -04:00

26 lines
479 B
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace Jellyfin.Data.Entities
{
public class ImageInfo
{
public ImageInfo(string path)
{
Path = path;
LastModified = DateTime.UtcNow;
}
[Key]
[Required]
public int Id { get; protected set; }
[Required]
public string Path { get; set; }
[Required]
public DateTime LastModified { get; set; }
}
}