using SqlSugar; namespace Model.Entity.System { /// /// 数据字典项表(某分类下的具体枚举值) /// [SugarTable("sys_dict_item")] public class DictItemEntity : BaseEntity { [SugarColumn(ColumnName = "TypeId", ColumnDescription = "所属字典分类Id")] public long TypeId { get; set; } [SugarColumn(ColumnName = "Code", ColumnDescription = "字典项编码", Length = 64, IsNullable = false)] public string Code { get; set; } [SugarColumn(ColumnName = "Name", ColumnDescription = "字典项文本", Length = 100, IsNullable = false)] public string Name { get; set; } [SugarColumn(ColumnName = "Sort", ColumnDescription = "排序号", DefaultValue = "0")] public int Sort { get; set; } [SugarColumn(ColumnName = "Status", ColumnDescription = "状态(1=启用,0=停用)", ColumnDataType = "smallint", DefaultValue = "1")] public byte Status { get; set; } [SugarColumn(ColumnName = "IsDefault", ColumnDescription = "是否默认选中(同分类下唯一)", ColumnDataType = "smallint", DefaultValue = "0")] public byte IsDefault { get; set; } [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 500, IsNullable = true)] public string? Remark { get; set; } } }