using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PARR.DAL.Models
{
    [Table("Roles")]
    public class Role : IBase
    {
        [Key]
        public Guid Id { get; set; }

        public DateTimeOffset DateCreated { get; set; }

        [NotMapped]
        public DateTimeOffset? DateModified { get; set; }

        public required string Name { get; set; }

        public required string Description { get; set; }


        public ICollection<UsersInRole> Users { get; set; } = new HashSet<UsersInRole>();
    }
}
