using ZhonTai.Admin.Core.Entities; using FreeSql.DataAnnotations; using ZhonTai.Admin.Domain.DictionaryType; namespace ZhonTai.Admin.Domain.Dictionary; /// /// 数据字典 /// [Table(Name = "ad_dictionary")] [Index("idx_{tablename}_01", nameof(DictionaryTypeId) + "," + nameof(Name) + "," + nameof(TenantId), true)] public partial class DictionaryEntity : EntityTenant { /// /// 字典类型Id /// public long DictionaryTypeId { get; set; } /// /// 字典类型 /// public DictionaryTypeEntity DictionaryType { get; set; } /// /// 字典名称 /// [Column(StringLength = 50)] public string Name { get; set; } /// /// 字典编码 /// [Column(StringLength = 50)] public string Code { get; set; } /// /// 字典值 /// [Column(StringLength = 50)] public string Value { get; set; } /// /// 描述 /// [Column(StringLength = 500)] public string Description { get; set; } /// /// 启用 /// public bool Enabled { get; set; } = true; /// /// 排序 /// public int Sort { get; set; } }