using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;

namespace Lada.Framework.Data.Domains.Identity
{
    public class Role : IdentityRole<int>
    {
        [MaxLength(512)]
        public string Description { get; set; }


        public DateTimeOffset CreatedTime { get; set; }

        public DateTimeOffset UpdatedTime { get; set; }

        public int CreatedBy { get; set; }

        [MaxLength(155)]
        public string CreatedByUserName { get; set; }

        public int UpdatedBy { get; set; }

        [MaxLength(155)]
        public string UpdatedByUserName { get; set; }


        public virtual ICollection<UserRole> UserRoles { get; set; }
    }
}
