jellyfin/Jellyfin.Data/Entities/ImageInfo.cs

35 lines
790 B
C#
Raw Normal View History

2020-05-13 04:10:35 +02:00
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2020-05-13 04:10:35 +02:00
namespace Jellyfin.Data.Entities
{
public class ImageInfo
{
public ImageInfo(string path, int width, int height)
2020-05-13 04:10:35 +02:00
{
Path = path;
Width = width;
Height = height;
2020-05-13 04:10:35 +02:00
LastModified = DateTime.UtcNow;
}
[Key]
[Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2020-05-13 04:10:35 +02:00
public int Id { get; protected set; }
[Required]
public string Path { get; set; }
[Required]
public int Width { get; set; }
[Required]
public int Height { get; set; }
2020-05-13 04:10:35 +02:00
[Required]
public DateTime LastModified { get; set; }
}
}