115 lines
3.5 KiB
C#
Raw Normal View History

2021-09-17 18:19:53 +08:00
using System;
using System.Collections.Generic;
using System.Text;
namespace ZR.Model.System.Generate
{
/// <summary>
/// 代码生成表
/// </summary>
[SqlSugar.SugarTable("gen_table")]
2021-11-27 09:43:04 +08:00
[SqlSugar.Tenant("0")]
2021-12-01 21:03:27 +08:00
public class GenTable : SysBase
2021-09-17 18:19:53 +08:00
{
/// <summary>
/// 表id
/// </summary>
2021-09-17 18:19:53 +08:00
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int TableId { get; set; }
/// <summary>
2021-12-14 15:41:58 +08:00
/// 数据库名
/// </summary>
public string DbName { get; set; }
/// <summary>
/// 表名
/// </summary>
2021-09-17 18:19:53 +08:00
public string TableName { get; set; }
/// <summary>
/// 表描述
/// </summary>
2021-09-17 18:19:53 +08:00
public string TableComment { get; set; }
/// <summary>
/// 关联父表的表名
/// </summary>
2021-09-17 18:19:53 +08:00
public string SubTableName { get; set; }
/// <summary>
/// 本表关联父表的外键名
/// </summary>
2021-09-17 18:19:53 +08:00
public string SubTableFkName { get; set; }
/// <summary>
/// csharp类名
/// </summary>
2021-09-17 18:19:53 +08:00
public string ClassName { get; set; }
/// <summary>
/// 使用的模板crud单表操作 tree树表操作 sub主子表操作
/// </summary>
2021-09-17 18:19:53 +08:00
public string TplCategory { get; set; }
/// <summary>
/// 基本命名空间前缀
/// </summary>
public string BaseNameSpace { get; set; }
/// <summary>
/// 生成模块名
/// </summary>
2021-09-17 18:19:53 +08:00
public string ModuleName { get; set; }
/// <summary>
/// 生成业务名
/// </summary>
2021-09-17 18:19:53 +08:00
public string BusinessName { get; set; }
/// <summary>
/// 生成功能名
/// </summary>
2021-09-17 18:19:53 +08:00
public string FunctionName { get; set; }
/// <summary>
/// 生成作者名
/// </summary>
2021-09-17 18:19:53 +08:00
public string FunctionAuthor { get; set; }
/// <summary>
/// 生成代码方式0zip压缩包 1自定义路径
/// </summary>
2021-09-17 18:19:53 +08:00
public string GenType { get; set; }
public string GenPath { get; set; }
/// <summary>
/// 其他生成选项
/// </summary>
2021-09-17 18:19:53 +08:00
public string Options { get; set; }
2021-11-28 17:40:43 +08:00
#region
/** 表列信息 */
[SqlSugar.SugarColumn(IsIgnore = true)]
public List<GenTableColumn> Columns { get; set; }
2021-12-01 21:03:27 +08:00
//以下 Options扩展字段
[SqlSugar.SugarColumn(IsIgnore = true)]
public object ParentMenuId { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public object SortType { get; set; } = "asc";
2021-12-31 21:13:32 +08:00
[SqlSugar.SugarColumn(IsIgnore = true)]
public object SortField { get; set; } = string.Empty;
2021-12-31 21:13:32 +08:00
[SqlSugar.SugarColumn(IsIgnore = true)]
public object TreeCode { get; set; } = string.Empty;
[SqlSugar.SugarColumn(IsIgnore = true)]
public object TreeName { get; set; } = string.Empty;
2021-11-28 17:40:43 +08:00
[SqlSugar.SugarColumn(IsIgnore = true)]
2021-12-31 21:13:32 +08:00
public object TreeParentCode { get; set; }
2022-04-10 12:38:26 +08:00
[SqlSugar.SugarColumn(IsIgnore = true)]
public string PermissionPrefix { get; set; }
/// <summary>
/// 生成的按钮功能
/// </summary>
[SqlSugar.SugarColumn(IsIgnore = true)]
public int[] CheckedBtn { get; set; } = new int[] { 1, 2, 3 };
2022-05-08 14:08:18 +08:00
/// <summary>
/// 字表信息
/// </summary>
[SqlSugar.SugarColumn(IsIgnore = true)]
public GenTable SubTable { get; set; }
2021-11-28 17:40:43 +08:00
#endregion
2021-09-17 18:19:53 +08:00
}
}