jellyfin/Jellyfin.Data/Entities/ImageInfo.cs

33 lines
730 B
C#
Raw Normal View History

#pragma warning disable CS1591
using System;
2020-05-12 22:10:35 -04:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2020-05-12 22:10:35 -04:00
namespace Jellyfin.Data.Entities
{
public class ImageInfo
{
2020-05-20 12:09:52 -04:00
public ImageInfo(string path)
2020-05-12 22:10:35 -04:00
{
Path = path;
LastModified = DateTime.UtcNow;
}
[Key]
[Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2020-05-12 22:10:35 -04:00
public int Id { get; protected set; }
2020-06-13 16:38:17 -04:00
public Guid? UserId { get; protected set; }
2020-05-12 22:10:35 -04:00
[Required]
2020-05-20 12:09:52 -04:00
[MaxLength(512)]
[StringLength(512)]
2020-05-12 22:10:35 -04:00
public string Path { get; set; }
[Required]
public DateTime LastModified { get; set; }
}
}