using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Core.Entity;
///
/// 参数配置表
///
[SugarTable("sys_config")]
[Description("参数配置表")]
public class SysConfig : DEntityBase
{
///
/// 名称
///
[Required, MaxLength(50)]
[SugarColumn(ColumnDescription = "名称")]
public string Name { get; set; }
///
/// 编码
///
[Required, MaxLength(50)]
[SugarColumn(ColumnDescription = "编码", IsNullable = true)]
public string Code { get; set; }
///
/// 属性值
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "属性值", IsNullable = true)]
public string Value { get; set; }
///
/// 是否是系统参数(Y-是,N-否)
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "是否是系统参数(Y-是,N-否)", IsNullable = true)]
public string SysFlag { 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;
///
/// 常量所属分类的编码,来自于“常量的分类”字典
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "常量所属分类的编码,来自于“常量的分类”字典", IsNullable = true)]
public string GroupCode { get; set; }
}