Clear        


                
                    using System.ComponentModel.DataAnnotations;

namespace BLL.DAL;

public class User
{
    public int Id { get; set; }

    [Required]
    [StringLength(10)]
    public string UserName { get; set; }

    [Required]
    [StringLength(8)]
    public string Password { get; set; }

    public bool IsActive { get; set; }

    [Required]
    public int? RoleId { get; set; }

    public Role Role { get; set; }
}