using System.ComponentModel.DataAnnotations;
using Common.Enum;
using Entity.Base;
using SqlSugar;
namespace Entity.DbModel.System.SysBaseObject
{
///
/// 系统参数配置表
///
[SugarTable("sys_config")]
public partial class SysConfig : EntityBase
{
///
/// 名称
///
[SugarColumn(ColumnDescription = "名称", Length = 64, ColumnName = "name")]
[Required, MaxLength(64)]
public virtual string Name { get; set; }
///
/// 编码
///
[SugarColumn(ColumnDescription = "编码", Length = 64, ColumnName = "code")]
[MaxLength(64)]
public string? Code { get; set; }
///
/// 属性值
///
[SugarColumn(ColumnDescription = "属性值", Length = 64, ColumnName = "value")]
[MaxLength(64)]
public string? Value { get; set; }
///
/// 是否是内置参数(Y-是,N-否)
///
[SugarColumn(ColumnDescription = "是否是内置参数", ColumnName = "sys_flag")]
public YesNoEnum SysFlag { get; set; }
///
/// 分组编码
///
[SugarColumn(ColumnDescription = "分组编码", Length = 64, ColumnName = "group_code")]
[MaxLength(64)]
public string? GroupCode { get; set; }
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序", ColumnName = "order_no")]
public int OrderNo { get; set; } = 100;
///
/// 备注
///
[SugarColumn(ColumnDescription = "备注", Length = 256, ColumnName = "remark")]
[MaxLength(256)]
public string? Remark { get; set; }
}
}