User.cs
882 Bytes
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
using FreeSql.DataAnnotations;
using HHECS.DataContract;
namespace HHECS.RobotTool.Model
{
/// <summary>
/// 用户表
/// </summary>
[Index($"idx_{nameof(User)}_{nameof(Account)}", $"{nameof(Account)}", true)]
public class User : BaseEntityCU<int>
{
/// <summary>
/// 账户
/// </summary>
public string Account { get; set; } = null!;
/// <summary>
/// 用户名称
/// </summary>
public string UserName { get; set; } = null!;
/// <summary>
/// 密码
/// </summary>
public string Password { get; set; } = null!;
/// <summary>
/// 是否启用
/// </summary>
public bool Enable { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; } = null!;
}
}