using TIAM.Entities.Users;

namespace TIAMWebApp.Shared.Application.Models
{
    public class UserModel : User
    {
        public string? PhoneNumber { get; set; }
        public bool IsLoggedIn { get; set; }
        public UserType UserType { get; set; } 
        public int UserRoles { get; set; }
        public string? RefreshToken { get; set; }
        public Dictionary<int, string> UserRolesDictionary { get; set; }

        public UserModel(string email, string phonenumber, string password) : this(Guid.NewGuid(), email, phonenumber, password)
        {
        }

        public UserModel(Guid id, string email, string phonenumber, string password) : base(id, email, password)
        {
            PhoneNumber = phonenumber;
            UserRolesDictionary = new Dictionary<int, string>();
        }

    }

}
