// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证。 // // 必须在法律法规允许的范围内正确使用,严禁将其用于非法、欺诈、恶意或侵犯他人合法权益的目的。 namespace Admin.NET.Core; /// /// 系统租户表 /// [SugarTable(null, "系统租户表")] [SysTable] public partial 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 = "从库连接/读写分离", ColumnDataType = StaticConfig.CodeFirst_BigString)] public string? SlaveConnections { 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; }