namespace Admin.NET.Core; /// /// 系统租户表 /// [SugarTable(null, "系统租户表")] [SystemTable] public class SysTenant : EntityBase { /// /// 用户Id /// [SugarColumn(ColumnDescription = "用户Id")] public long UserId { get; set; } /// /// 机构Id /// [SugarColumn(ColumnDescription = "机构Id")] public long OrgId { get; set; } /// /// 主机 /// [SugarColumn(ColumnDescription = "主机", Length = 128)] [MaxLength(128)] public string? Host { get; set; } /// /// 租户类型 /// [SugarColumn(ColumnDescription = "租户类型")] public TenantTypeEnum TenantType { get; set; } /// /// 数据库类型 /// [SugarColumn(ColumnDescription = "数据库类型")] public SqlSugar.DbType DbType { get; set; } /// /// 数据库连接 /// [SugarColumn(ColumnDescription = "数据库连接", Length = 256)] [MaxLength(256)] public string? Connection { get; set; } /// /// 数据库标识 /// [SugarColumn(ColumnDescription = "数据库标识", Length = 64)] [MaxLength(64)] public string? ConfigId { get; set; } /// /// 排序 /// [SugarColumn(ColumnDescription = "排序")] public int OrderNo { get; set; } = 100; /// /// 备注 /// [SugarColumn(ColumnDescription = "备注", Length = 128)] [MaxLength(128)] public string? Remark { get; set; } /// /// 状态 /// [SugarColumn(ColumnDescription = "状态")] public StatusEnum Status { get; set; } = StatusEnum.Enable; }