fix: rev db model, added missing entities and helper functions

This commit is contained in:
2025-05-18 03:51:50 +02:00
parent ad4743d68e
commit fc1ff88f3d
21 changed files with 1283 additions and 2146 deletions

View File

@@ -1,9 +1,14 @@
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;
namespace WebApp.Entities
{
public class User : IdentityUser
public class User //: IdentityUser
{
public int UserId { get; set; }
public string? Email { get; set; }
public string? Password { get; set; }
public required string FirstName { get; set; }
public required string LastName { get; set; }
public bool IsOrganisation { get; set; } = false;
@@ -11,5 +16,6 @@ namespace WebApp.Entities
public ICollection<VolunteerSkill> VolunteerSkills { get; set; } = new List<VolunteerSkill>();
public ICollection<EventRegistration> EventRegistrations { get; set; } = new List<EventRegistration>();
public ICollection<Token> Tokens { get; set; } = new List<Token>();
}
}