using PARR.Domain.Entities.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PARR.Domain.Entities
{
    [Table("Roles")]
    public class Role : IBaseEntity
    {
        [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>();
    }
}
