123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- using Admin.Core.Common.BaseModel;
- using FreeSql.DataAnnotations;
- namespace Admin.Core.Model.Admin
- {
-
-
-
- [Table(Name = "ad_document")]
- [Index("idx_{tablename}_01", nameof(ParentId) + "," + nameof(Label) + "," + nameof(TenantId), true)]
- public class DocumentEntity : EntityFull, ITenant
- {
-
-
-
- [Column(Position = -10, CanUpdate = false)]
- public long? TenantId { get; set; }
-
-
-
- public long ParentId { get; set; }
-
-
-
- [Column(StringLength = 50)]
- public string Label { get; set; }
-
-
-
- [Column(MapType = typeof(int), CanUpdate = false)]
- public DocumentType Type { get; set; }
-
-
-
- [Column(StringLength = 500)]
- public string Name { get; set; }
-
-
-
- [Column(StringLength = -1)]
- public string Content { get; set; }
-
-
-
- [Column(StringLength = -1)]
- public string Html { get; set; }
-
-
-
- public bool Enabled { get; set; } = true;
-
-
-
- public bool? Opened { get; set; }
-
-
-
- public int? Sort { get; set; } = 0;
-
-
-
- [Column(StringLength = 100)]
- public string Description { get; set; }
- }
- }
|