using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity;
///
/// 代码生成字段配置表
///
[SugarTable("sys_code_gen_config")]
[Description("代码生成字段配置表")]
public class SysCodeGenConfig : DEntityBase
{
///
/// 代码生成主表ID
///
[SugarColumn(ColumnDescription = "代码生成主表ID")]
public long CodeGenId { get; set; }
///
/// 数据库字段名
///
[Required, MaxLength(100)]
[SugarColumn(ColumnDescription = "数据库字段名")]
public string ColumnName { get; set; }
///
/// 字段描述
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "字段描述",IsNullable =true)]
public string ColumnComment { get; set; }
///
/// .NET数据类型
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = ".NET数据类型", IsNullable = true)]
public string NetType { get; set; }
///
/// 作用类型(字典)
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "作用类型(字典)", IsNullable = true)]
public string EffectType { get; set; }
///
/// 外键实体名称
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "外键实体名称", IsNullable = true)]
public string FkEntityName { get; set; }
///
/// 外键显示字段
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "外键显示字段", IsNullable = true)]
public string FkColumnName { get; set; }
///
/// 外键显示字段.NET类型
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "外键显示字段.NET类型", IsNullable = true)]
public string FkColumnNetType { get; set; }
///
/// 字典code
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "字典code", IsNullable = true)]
public string DictTypeCode { get; set; }
///
/// 列表是否缩进(字典)
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "列表是否缩进(字典)", IsNullable = true)]
public string WhetherRetract { get; set; }
///
/// 是否必填(字典)
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "是否必填(字典)", IsNullable = true)]
public string WhetherRequired { get; set; }
///
/// 是否是查询条件
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "是否是查询条件", IsNullable = true)]
public string QueryWhether { get; set; }
///
/// 查询方式
///
[MaxLength(10)]
[SugarColumn(ColumnDescription = "查询方式", IsNullable = true)]
public string QueryType { get; set; }
///
/// 列表显示
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "列表显示", IsNullable = true)]
public string WhetherTable { get; set; }
///
/// 增改
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "增改", IsNullable = true)]
public string WhetherAddUpdate { get; set; }
///
/// 主键
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "主键", IsNullable = true)]
public string ColumnKey { get; set; }
///
/// 数据库中类型(物理类型)
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "数据库中类型(物理类型)", IsNullable = true)]
public string DataType { get; set; }
///
/// 是否通用字段
///
[MaxLength(5)]
[SugarColumn(ColumnDescription = "是否通用字段", IsNullable = true)]
public string WhetherCommon { get; set; }
}