mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 13:40:13 +01:00
fix: rev db model, added missing entities and helper functions
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user