using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core.DB.Models;
using WIDESEAWCS_Core.Tenants;

namespace WIDESEAWCS_Model.Models
{
    [SugarTable("Sys_Tenant", "租户")]
    public class Sys_Tenant : BaseEntity
    {
        /// <summary>
        /// 租户ID
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "租户ID")]
        public int TenantId { get; set; }

        /// <summary>
        /// 租户名称
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = false, ColumnDescription = "租户名称")]
        public string TenantName { get; set; }

        /// <summary>
        /// 租户类型
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "租户类型")]
        public int TenantType { get; set; }

        /// <summary>
        /// 数据库类型
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "数据库类型")]
        public int DbType { get; set; }

        /// <summary>
        /// 连接字符串
        /// </summary>
        [SugarColumn(Length = 1000, IsNullable = false, ColumnDescription = "连接字符串")]
        public string ConnectionString { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "状态")]
        public int Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(Length = 2000, IsNullable = true, ColumnDescription = "备注")]
        public string Remark { get; set; }
    }
}