using System.ComponentModel.DataAnnotations;
using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.System.Entity;
///
/// 租户实体
///
[SqlSugar.SugarTable("sys_tenant")]
public class SysTenant : BaseModel
{
///
/// 公司名称
///
public string Name { get; set; }
///
/// 拼音码
///
public string PinYinCode { get; set; }= "";
///
/// 公司地址
///
public string Address { get; set; }= "";
///
/// 电话
///
public string Phone { get; set; }
///
/// 邮箱
///
public string Email { get; set; }
///
/// 企业法人
///
public string Chief { get; set; }
///
/// 企业税号
///
[SugarColumn(ColumnDescription = "企业税号", Length = 128)]
[MaxLength(128)]
public string TaxNo { get; set; }
///
/// 租户类型 0-普通租户 1-系统租户
///
public int? TenantType { get; set; }
///
/// 数据库地址
///
[SugarColumn(ColumnDescription = "数据库IP", Length = 128)]
[MaxLength(128)]
public string? Host { get; set; } = "";
///
/// 数据库类型
///
[SugarColumn(ColumnDescription = "数据库类型")]
public DbType? DbType { get; set; } = SqlSugar.DbType.MySql;
///
/// 数据库账号
///
[SugarColumn(ColumnDescription = "数据库账号", Length = 256)]
[MaxLength(256)]
public string? ConnAccount { get; set; } = "";
///
/// 数据库密码
///
[SugarColumn(ColumnDescription = "数据库密码", Length = 512)]
[MaxLength(512)]
public string? ConnPassword { get; set; } = "";
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序")]
public int? OrderNo { get; set; } = 100;
///
/// 状态
///
[SugarColumn(ColumnDescription = "状态")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 付费是否到期
///
[SugarColumn(ColumnDescription = "付费是否到期")]
public bool IsExpire { get; set; } = false;
}