刘磊
2025-04-19 823752496e2a4cdb6a1fb36227cd15b8b7135336
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
using WIDESEA_Core.Tenants;
 
namespace WIDESEA_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; }
    }
}