namespace PARR.API.Authentication.Models
{
    public class UserCache
    {
        public Guid? UserId { get; set; }

        public Guid? UnitId { get; set; }

        public required string UserIp { get; set; }

        public string Name { get; set; } = string.Empty;

        public string Description { get; set; } = string.Empty;

        public DateTimeOffset? LastLogon { get; set; }

        public List<UserRoleInCache> Roles { get; set; } = new List<UserRoleInCache>();
    }
}
