Add authentication and identity support using ASP.NET Core Identity
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
API/Models/Internal/User/User.cs
Normal file
8
API/Models/Internal/User/User.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
|
||||
namespace API.Models.Internal.User;
|
||||
|
||||
public class User : IdentityUser
|
||||
{
|
||||
public string? Ininitals { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user