using FreeSql.DataAnnotations; using System.ComponentModel.DataAnnotations; namespace Admin.Core.Model.Admin { /// /// 数据字典 /// [Table(Name = "ad_dictionary")] [Index("uk_role_parentid_name", "ParentId,Name", true)] public class DictionaryEntity: EntityBase { /// /// 字典父级 /// public long ParentId { get; set; } /// /// 字典名称 /// [MaxLength(50)] public string Name { get; set; } /// /// 字典编码 /// [MaxLength(50)] public string Code { get; set; } /// /// 字典值 /// [MaxLength(50)] public string Value { get; set; } /// /// 描述 /// [MaxLength(4000)] public string Description { get; set; } /// /// 启用 /// public bool Enabled { get; set; } = true; /// /// 排序 /// public int Sort { get; set; } } }