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 实体成员
///
/// 唯一标识码(GUID)
///
[SugarColumn(IsPrimaryKey = true)]
public string Id { get; set; }
///
/// 表外键【db_codetable】
///
public string CodeTableId { get; set; }
///
/// 列名
///
public string DbColumnName { get; set; }
///
/// 备注
///
public string Description { get; set; }
///
/// 是否自增【1是,0否】
///
public int? IsIdentity { get; set; }
///
/// 是否主键【1是,0否】
///
public int? IsPrimaryKey { get; set; }
///
/// 是否为空【1是,0否】
///
public int? IsNullable { get; set; }
///
/// C#字段类型
///
public string CsType { get; set; }
///
/// 数据库字段类型
///
public string DbType { get; set; }
///
/// 字段长度
///
public int? Length { get; set; }
///
/// 小数位数
///
public int? DecimalDigits { get; set; }
///
/// 排序字段
///
public int? Sort { get; set; }
#endregion
#region 多租户
///
/// 租户ID
///
public string TenantId { get; set; }
#endregion
}
}