using SqlSugar; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Magic.Core.Entity; /// /// 租户表 /// [SugarTable("sys_tenant")] [Description("租户表")] public class SysTenant : DEntityBase { /// /// 公司名称 /// [Required, MaxLength(30)] [SugarColumn(ColumnDescription = "公司名称")] public string Name { get; set; } /// /// 管理员名称 /// [Required, MaxLength(20)] [SugarColumn(ColumnDescription = "管理员名称")] public string AdminName { get; set; } /// /// 主机 /// [MaxLength(100)] [SugarColumn(ColumnDescription = "主机", IsNullable = true)] public string Host { get; set; } /// /// 电子邮箱 /// [MaxLength(20)] [SugarColumn(ColumnDescription = "电子邮箱", IsNullable = true)] public string Email { get; set; } /// /// 电话 /// [MaxLength(20)] [SugarColumn(ColumnDescription = "电话", IsNullable = true)] public string Phone { get; set; } /// /// 数据库连接 /// [MaxLength(200)] [SugarColumn(ColumnDescription = "数据库连接", IsNullable = true)] public string Connection { get; set; } /// /// 架构 /// [MaxLength(50)] [SugarColumn(ColumnDescription = "架构", IsNullable = true)] public string Schema { get; set; } /// /// 备注 /// [MaxLength(100)] [SugarColumn(ColumnDescription = "备注", IsNullable = true)] public string Remark { get; set; } /// /// 租户类型 /// [SugarColumn(ColumnDescription = "租户类型")] public TenantTypeEnum TenantType { get; set; } }