first commit

This commit is contained in:
2025-02-26 23:42:19 +01:00
commit 777ea98be1
283 changed files with 88266 additions and 0 deletions
@@ -0,0 +1,19 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace OpenWarehouse.auth.api.Data;
[Index(nameof(Privilage), IsUnique = true)]
public class RolePrivilage()
{
public RolePrivilage(string privilage) : this()
{
this.Privilage = privilage;
}
[Key]
public long Id { get; set; }
[Required, MaxLength(40)]
public string? Privilage { get; set; }
public List<ApplicationRole>? Roles { get; set; }
}