Add user management domain and seed model
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Distribution.Models
|
||||
{
|
||||
public class User : Template
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string PasswordHash { get; set; }
|
||||
public string FullName { get; set; }
|
||||
|
||||
public Guid FK_RoleId { get; set; }
|
||||
[ForeignKey("FK_RoleId")]
|
||||
public Role Role { get; set; }
|
||||
|
||||
public Guid? FK_ReportsToUserId { get; set; }
|
||||
[ForeignKey("FK_ReportsToUserId")]
|
||||
public User ReportsTo { get; set; }
|
||||
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user