namespace ScadaLink.Commons.Entities.Security;

public class LdapGroupMapping
{
    public int Id { get; set; }
    public string LdapGroupName { get; set; }
    public string Role { get; set; }

    // Parameterless constructor for EF Core seed data
    private LdapGroupMapping() { LdapGroupName = null!; Role = null!; }

    public LdapGroupMapping(string ldapGroupName, string role)
    {
        LdapGroupName = ldapGroupName ?? throw new ArgumentNullException(nameof(ldapGroupName));
        Role = role ?? throw new ArgumentNullException(nameof(role));
    }
}
