-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSchema.cs
More file actions
38 lines (34 loc) · 1.07 KB
/
Schema.cs
File metadata and controls
38 lines (34 loc) · 1.07 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
namespace authority.Schema
{
public class Profile(User user)
{
public Guid Guid { get; set; } = user.Guid;
public string Name { get; set; } = user.Name;
public string Email { get; set; } = user.Email;
public string? Role { get; set; } = user.Role;
public DateTime? LastLogIn { get; set; } = user.LastLogIn;
public DateTime UpdatedAt { get; set; } = user.UpdatedAt;
}
public class PasswordLogin
{
public string Email { get; set; } = "";
public string Password { get; set; } = "";
}
public class RegisterInfo
{
public string Name { get; set; } = "";
public string Email { get; set; } = "";
public string Password { get; set; } = "";
}
public class ResetPassword
{
public string Email { get; set; } = "";
public string? ResetToken { get; set; }
public string? Password { get; set; }
}
public class ChangePassword
{
public string Password { get; set; } = "";
public string NewPassword { get; set; } = "";
}
}