2020-05-12 19:10:35 -07:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-05-19 19:12:03 -07:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2020-05-12 19:10:35 -07:00
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Data.Entities
|
|
|
|
|
{
|
|
|
|
|
public class ImageInfo
|
|
|
|
|
{
|
2020-05-20 09:09:52 -07:00
|
|
|
|
public ImageInfo(string path)
|
2020-05-12 19:10:35 -07:00
|
|
|
|
{
|
|
|
|
|
Path = path;
|
|
|
|
|
LastModified = DateTime.UtcNow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Key]
|
|
|
|
|
[Required]
|
2020-05-19 19:12:03 -07:00
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2020-05-12 19:10:35 -07:00
|
|
|
|
public int Id { get; protected set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
2020-05-20 09:09:52 -07:00
|
|
|
|
[MaxLength(512)]
|
|
|
|
|
[StringLength(512)]
|
2020-05-12 19:10:35 -07:00
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime LastModified { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|