majlis / Models /User.cs
almakhmri253-stack
security hardening: rate limiting, account lockout, security headers, password strength
8a2f194
Raw History Blame Contribute Delete
658 Bytes
namespace MajlisManagement.Models;
public class User
{
public int Id { get; set; }
public string FullName { get; set; } = string.Empty;
public string PhoneNumber { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string PasswordHash { get; set; } = string.Empty;
public string Role { get; set; } = "User"; // Admin | User
public bool IsActive { get; set; } = true;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public ICollection<Booking> Bookings { get; set; } = new List<Booking>();
public ICollection<Complaint> Complaints { get; set; } = new List<Complaint>();
}