using SqlSugar; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Magic.Core.Entity; /// /// 字典值表 /// [SugarTable("sys_dict_data")] [Description("字典值表")] public class SysDictData : DEntityBase { /// /// 字典类型Id /// [SugarColumn(ColumnDescription = "编码")] public long TypeId { get; set; } /// /// 值 /// [MaxLength(100)] [SugarColumn(ColumnDescription = "值", IsNullable = true)] public string Value { get; set; } /// /// 编码 /// [MaxLength(50)] [SugarColumn(ColumnDescription = "编码", IsNullable = true)] public string Code { get; set; } /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int Sort { get; set; } /// /// 备注 /// [MaxLength(100)] [SugarColumn(ColumnDescription = "备注", IsNullable = true)] public string Remark { get; set; } /// /// 状态(字典 0正常 1停用 2删除) /// [SugarColumn(ColumnDescription = "状态(字典 0正常 1停用 2删除)")] public CommonStatus Status { get; set; } = CommonStatus.ENABLE; }