0052725b88
- Created UserViewSheet component to display user details including username, full name, role, status, and timestamps. - Created RoleViewSheet component to display role details including name, level, status, creation date, and associated permissions. - Introduced permissions configuration in a new permissions.ts file, defining categories and permission codes for better management. - Implemented middleware for authentication, ensuring access control for protected routes.
21 lines
532 B
C#
21 lines
532 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class User : Template
|
|
{
|
|
public string Username { 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; }
|
|
}
|
|
}
|