using RSecurityBackend.Models.Image; using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace RMuseum.Models.Divan { /// /// Divan Category /// public class DivanCat { /// /// id /// [Key, DatabaseGenerated(DatabaseGeneratedOption.None)] public int Id { get; set; } /// /// poet_id /// public int PoetId { get; set; } /// /// poet /// public DivanPoet Poet { get; set; } /// /// text /// public string Title { get; set; } /// /// parent_id /// public int? ParentId { get; set; } /// /// parent /// public virtual DivanCat Parent { get; set; } /// /// url => slug /// public string UrlSlug { get; set; } /// /// sample: /hafez/ghazal /// public string FullUrl { get; set; } /// /// TOC Style /// public DivanTOC TableOfContentsStyle { get; set; } /// /// Category Type /// public DivanCatType CatType { get; set; } /// /// additional description or note /// public string Description { get; set; } /// /// html mode of additional description or note /// public string DescriptionHtml { get; set; } /// /// order when mixed with poems /// public int MixedModeOrder { get; set; } /// /// published /// public bool Published { get; set; } /// /// category book name /// public string BookName { get; set; } /// /// poet image /// public virtual RImage RImage { get; set; } /// /// user image id /// public Guid? RImageId { get; set; } /// /// sum up sub categories geo locations /// public bool SumUpSubsGeoLocations { get; set; } /// /// category map name /// public string MapName { get; set; } } }