jellyfin/Jellyfin.Data/Entities/ImageInfo.cs

26 lines
479 B
C#
Raw Normal View History

2020-05-13 04:10:35 +02:00
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; }
}
}