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