- Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUser.cs
24 lines (18 loc) · 624 Bytes
/
User.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
usingMicrosoft.AspNetCore.Identity;
usingSystem.ComponentModel.DataAnnotations;
usingSystem.ComponentModel.DataAnnotations.Schema;
namespaceSecureWebSite.Server.Models
{
publicclassUser:IdentityUser
{
[MaxLength(50)]
publicstringName{get;set;}
[Column(TypeName="datetime")]
publicDateTimeCreatedDate{get;set;}=DateTime.Now;
[Column(TypeName="datetime")]
publicDateTimeModifiedDate{get;set;}=DateTime.Now;
[Column(TypeName="datetime")]
publicDateTimeLastLogin{get;set;}=DateTime.Now;
publicboolIsAdmin{get;set;}=false;
}
}