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