HomeSection.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Jellyfin.Data.Enums;
  4. namespace Jellyfin.Data.Entities
  5. {
  6. /// <summary>
  7. /// An entity representing a section on the user's home page.
  8. /// </summary>
  9. public class HomeSection
  10. {
  11. /// <summary>
  12. /// Gets or sets the id.
  13. /// </summary>
  14. /// <remarks>
  15. /// Identity. Required.
  16. /// </remarks>
  17. [Key]
  18. [Required]
  19. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  20. public int Id { get; protected set; }
  21. /// <summary>
  22. /// Gets or sets the Id of the associated display preferences.
  23. /// </summary>
  24. public int DisplayPreferencesId { get; set; }
  25. /// <summary>
  26. /// Gets or sets the order.
  27. /// </summary>
  28. public int Order { get; set; }
  29. /// <summary>
  30. /// Gets or sets the type.
  31. /// </summary>
  32. public HomeSectionType Type { get; set; }
  33. }
  34. }