ImageInfo.cs 730 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma warning disable CS1591
  2. using System;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace Jellyfin.Data.Entities
  6. {
  7. public class ImageInfo
  8. {
  9. public ImageInfo(string path)
  10. {
  11. Path = path;
  12. LastModified = DateTime.UtcNow;
  13. }
  14. [Key]
  15. [Required]
  16. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  17. public int Id { get; protected set; }
  18. public Guid? UserId { get; protected set; }
  19. [Required]
  20. [MaxLength(512)]
  21. [StringLength(512)]
  22. public string Path { get; set; }
  23. [Required]
  24. public DateTime LastModified { get; set; }
  25. }
  26. }