hutongqing
2024-12-16 d6ce83b1f1bb87b88c11df1e0fe96169de5b571f
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    //[SugarTable("SysUserInfo")]
    [SugarTable("Sys_User", "用户表")] //('数据库表名','数据库表备注')
    public class Sys_User : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "用户ID")]
        public int User_Id { get; set; }
 
        /// <summary>
        ///帐号
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "帐号")]
        public string UserName { get; set; }
 
        /// <summary>
        /// 角色ID
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "角色ID")]
        public int Role_Id { get; set; }
 
        /// <summary>
        /// 角色名称
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "角色名称")]
        public string RoleName { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "备注")]
        public string Remark { get; set; }
 
        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = false, ColumnDescription = "密码")]
        public string UserPwd { get; set; }
 
        /// <summary>
        /// 真实姓名
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "真实姓名")]
        public string UserTrueName { get; set; }
 
        /// <summary>
        /// 是否可用
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "是否可用")]
        public byte Enable { get; set; }
 
        /// <summary>
        /// 头像
        /// </summary>
        [SugarColumn(Length = 500, IsNullable = true, ColumnDescription = "头像")]
        public string HeadImageUrl { get; set; }
 
        /// <summary>
        /// 最后密码修改时间
        /// </summary>
        [SugarColumn(IsNullable = true, IsOnlyIgnoreInsert = true, ColumnDescription = "最后密码修改时间")]
        public DateTime? LastModifyPwdDate { get; set; }
 
        /// <summary>
        /// 租户ID
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "租户ID",DefaultValue = "0")]
        public long TenantId { get; set; }
    }
}