forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsysUserInfo.cs
More file actions
78 lines (72 loc) · 2.09 KB
/
sysUserInfo.cs
File metadata and controls
78 lines (72 loc) · 2.09 KB
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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Blog.Core.Model.Models
{
/// <summary>
/// 用户信息表
/// </summary>
public class sysUserInfo
{
public sysUserInfo() { }
public sysUserInfo(string loginName, string loginPWD)
{
uLoginName = loginName;
uLoginPWD = loginPWD;
uRealName = uLoginName;
uStatus = 0;
uCreateTime = DateTime.Now;
uUpdateTime = DateTime.Now;
uLastErrTime = DateTime.Now;
uErrorCount = 0;
}
/// <summary>
/// 用户ID
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int uID { get; set; }
/// <summary>
/// 登录账号
/// </summary>
[SugarColumn(Length = 60, IsNullable = true)]
public string uLoginName { get; set; }
/// <summary>
/// 登录密码
/// </summary>
[SugarColumn(Length = 60, IsNullable = true)]
public string uLoginPWD { get; set; }
/// <summary>
/// 真实姓名
/// </summary>
[SugarColumn(Length = 60, IsNullable = true)]
public string uRealName { get; set; }
/// <summary>
/// 状态
/// </summary>
public int uStatus { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
public string uRemark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public System.DateTime uCreateTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public System.DateTime uUpdateTime { get; set; }
/// <summary>
///最后登录时间
/// </summary>
public DateTime uLastErrTime { get; set; }
/// <summary>
///错误次数
/// </summary>
public int uErrorCount { get; set; }
}
}