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,26 @@
using System.ComponentModel.DataAnnotations.Schema;
using Claim = System.Security.Claims.Claim;
namespace OpenWarehouse.warehouse.api.Data;
public class ServiceClaims
{
[Key, Required, MinLength(3), MaxLength(40)]
public string? ClaimType { get; set; }
[Required, MinLength(3), MaxLength(40)]
public string? ClaimValue { get; set; }
[NotMapped]
public Claim Claim
{
get =>
new(ClaimType ??
throw new InvalidOperationException(),
ClaimValue ?? throw new InvalidOperationException());
set
{
ClaimType = value.Type;
ClaimValue = value.Value;
}
}
}