shgx_tz_mom/ZR.Model/System/Generate/GenTableColumn.cs

68 lines
2.2 KiB
C#
Raw Normal View History

using Newtonsoft.Json;
using System;
2021-09-17 18:19:53 +08:00
using System.Collections.Generic;
using System.Text;
namespace ZR.Model.System.Generate
{
/// <summary>
/// 代码生成表字段
/// </summary>
[SqlSugar.SugarTable("gen_table_column")]
2021-11-27 09:43:04 +08:00
[SqlSugar.Tenant("0")]
public class GenTableColumn: SysBase
2021-09-17 18:19:53 +08:00
{
[SqlSugar.SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
public int ColumnId { get; set; }
public string ColumnName { get; set; }
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true)]
2021-09-17 18:19:53 +08:00
public int TableId { get; set; }
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true)]
2021-09-17 18:19:53 +08:00
public string TableName { get; set; }
public string ColumnComment { get; set; }
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true)]
2021-09-17 18:19:53 +08:00
public string ColumnType { get; set; }
public string CsharpType { get; set; }
public string CsharpField { get; set; }
/// <summary>
/// 是否主键1是
/// </summary>
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true)]
2021-09-17 18:19:53 +08:00
public bool IsPk { get; set; }
/// <summary>
/// 是否必填1是
/// </summary>
2021-09-17 18:19:53 +08:00
public bool IsRequired { get; set; }
[SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true)]
2021-09-17 18:19:53 +08:00
public bool IsIncrement { get; set; }
/// <summary>
/// 是否插入
/// </summary>
public bool IsInsert { get; set; }
/// <summary>
/// 是否需要编辑
/// </summary>
public bool IsEdit { get; set; }
/// <summary>
/// isList
/// </summary>
public bool IsList { get; set; }
public bool IsQuery { get; set; }
/// <summary>
/// 显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)
/// </summary>
public string HtmlType { get; set; }
/// <summary>
/// 查询类型(等于、不等于、大于、小于、范围)
/// </summary>
public string QueryType { get; set; } = "EQ";
2021-09-17 18:19:53 +08:00
public int Sort { get; set; }
2021-09-21 20:31:35 +08:00
/// <summary>
/// 字典类型
/// </summary>
public string DictType { get; set; }
2021-09-17 18:19:53 +08:00
}
}