You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
3.1 KiB

6 months ago
using System.ComponentModel.DataAnnotations;
using Common.Enum;
using Entity.Base;
using SqlSugar;
namespace Entity.DbModel.System
6 months ago
{
///<summary>
///
///</summary>
[SugarTable("sys_dict_data")]
/// <summary>
/// 系统字典值表
/// </summary>
public partial class SysDictData : EntityBase
{
/// <summary>
/// 字典类型Id
/// </summary>
[SugarColumn(ColumnDescription = "字典类型Id", ColumnName = "dict_type_id")]
public long DictTypeId { get; set; }
/// <summary>
/// 字典类型
/// </summary>
//public SysDictType DictType { get; set; }
/// <summary>
/// 值
/// </summary>
[SugarColumn(ColumnDescription = "值", Length = 128, ColumnName = "value")]
[Required, MaxLength(128)]
public virtual string Value { get; set; }
/// <summary>
/// 编码
/// </summary>
[SugarColumn(ColumnDescription = "编码", Length = 128, ColumnName = "code")]
[Required, MaxLength(128)]
public virtual string Code { get; set; }
/// <summary>
/// 名称
/// </summary>
[SugarColumn(ColumnDescription = "名称", Length = 128, ColumnName = "name")]
[MaxLength(128)]
public virtual string? Name { get; set; }
/// <summary>
/// 显示样式-标签颜色
/// </summary>
[SugarColumn(ColumnDescription = "显示样式-标签颜色", Length = 16, ColumnName = "tag_type")]
[MaxLength(16)]
public string? TagType { get; set; }
/// <summary>
/// 显示样式-Style(控制显示样式)
/// </summary>
[SugarColumn(ColumnDescription = "显示样式-Style", Length = 512, ColumnName = "style_setting")]
[MaxLength(512)]
public string? StyleSetting { get; set; }
/// <summary>
/// 显示样式-Class(控制显示样式)
/// </summary>
[SugarColumn(ColumnDescription = "显示样式-Class", Length = 512, ColumnName = "class_setting")]
[MaxLength(512)]
public string? ClassSetting { get; set; }
/// <summary>
/// 排序
/// </summary>
[SugarColumn(ColumnDescription = "排序", ColumnName = "order_no")]
public int OrderNo { get; set; } = 100;
/// <summary>
/// 备注
/// </summary>
[SugarColumn(ColumnDescription = "备注", Length = 2048, ColumnName = "remark")]
[MaxLength(2048)]
public string? Remark { get; set; }
/// <summary>
/// 拓展数据(保存业务功能的配置项)
/// </summary>
[SugarColumn(ColumnDescription = "拓展数据(保存业务功能的配置项)", ColumnDataType = StaticConfig.CodeFirst_BigString, ColumnName = "ext_data")]
public string? ExtData { get; set; }
/// <summary>
/// 状态
/// </summary>
[SugarColumn(ColumnDescription = "状态", ColumnName = "status")]
public StatusEnum Status { get; set; } = StatusEnum.Enable;
}
}