forked from zhontai/Admin.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserEntity.cs
More file actions
53 lines (46 loc) · 1.26 KB
/
UserEntity.cs
File metadata and controls
53 lines (46 loc) · 1.26 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
using System;
using System.Collections.Generic;
using Admin.Core.Common.BaseModel;
using FreeSql.DataAnnotations;
namespace Admin.Core.Model.Admin
{
/// <summary>
/// 用户
/// </summary>
[Table(Name = "ad_user")]
[Index("uk_user_username", nameof(UserName), true)]
public class UserEntity: EntityBase
{
/// <summary>
/// 账号
/// </summary>
[Column(StringLength = 60)]
public string UserName { get; set; }
/// <summary>
/// 密码
/// </summary>
[Column(StringLength = 60)]
public string Password { get; set; }
/// <summary>
/// 昵称
/// </summary>
[Column(StringLength = 60)]
public string NickName { get; set; }
/// <summary>
/// 头像
/// </summary>
[Column(StringLength = 100)]
public string Avatar { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column(StringLength = 500)]
public string Remark { get; set; }
[Navigate(ManyToMany = typeof(UserRoleEntity))]
public ICollection<RoleEntity> Roles { get; set; }
}
}