using Admin.Core.Common.BaseModel; using FreeSql.DataAnnotations; using System.Collections.Generic; namespace Admin.Core.Model.Admin { /// /// 数据字典 /// [Table(Name = "ad_dictionary")] [Index("idx_{tablename}_01", nameof(DictionaryTypeId) + "," + nameof(Name) + "," + nameof(TenantId), true)] public class DictionaryEntity : EntityFull, ITenant { /// /// 租户Id /// [Column(Position = -10, CanUpdate = false)] public long? TenantId { get; set; } /// /// 字典类型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; } } }