You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Repository.Domain
|
|
|
|
|
{
|
|
|
|
|
[SugarTable("db_codecolumns")]
|
|
|
|
|
public class DbCodeColumns
|
|
|
|
|
{
|
|
|
|
|
#region 实体成员
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 唯一标识码(GUID)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 表外键【db_codetable】
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CodeTableId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DbColumnName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否自增【1是,0否】
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? IsIdentity { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否主键【1是,0否】
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? IsPrimaryKey { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否为空【1是,0否】
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? IsNullable { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// C#字段类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CsType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数据库字段类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DbType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 字段长度
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? Length { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小数位数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? DecimalDigits { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序字段
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? Sort { get; set; }
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 多租户
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string TenantId { get; set; }
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|