Add authentication and identity support using ASP.NET Core Identity

This commit is contained in:
2026-01-23 21:28:16 +01:00
parent cec2b65c29
commit 534ec5f36f
9 changed files with 807 additions and 9 deletions

View File

@@ -4,15 +4,9 @@ namespace API.Models.Internal.Altersgruppen
{
public class AltersGruppe
{
public string Id { get; set; }
public string Name { get; set; }
public string Id { get; set; } = Ulid.NewUlid().ToString();
public required string Name { get; set; }
public int StartingAge { get; set; }
public int EndingAge { get; set; }
// Constructor für automatische ULID-Generierung
public AltersGruppe()
{
Id = Ulid.NewUlid().ToString();
}
}
}