namespace Admin.NET.Core;
///
/// 系统参数配置表
///
[SugarTable(null, "系统参数配置表")]
[SysTable]
[SugarIndex("index_{table}_N", nameof(Name), OrderByType.Asc)]
[SugarIndex("index_{table}_C", nameof(Code), OrderByType.Asc)]
public class SysConfig : EntityBase
{
///
/// 名称
///
[SugarColumn(ColumnDescription = "名称", Length = 64)]
[Required, MaxLength(64)]
public virtual string Name { get; set; }
///
/// 编码
///
[SugarColumn(ColumnDescription = "编码", Length = 64)]
[MaxLength(64)]
public string? Code { get; set; }
///
/// 属性值
///
[SugarColumn(ColumnDescription = "属性值", Length = 64)]
[MaxLength(64)]
public string? Value { get; set; }
///
/// 是否是内置参数(Y-是,N-否)
///
[SugarColumn(ColumnDescription = "是否是内置参数")]
public YesNoEnum SysFlag { get; set; }
///
/// 分组编码
///
[SugarColumn(ColumnDescription = "分组编码", Length = 64)]
[MaxLength(64)]
public string? GroupCode { get; set; }
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序")]
public int OrderNo { get; set; } = 100;
///
/// 备注
///
[SugarColumn(ColumnDescription = "备注", Length = 256)]
[MaxLength(256)]
public string? Remark { get; set; }
}