Files
hermes/WebApp/Entities/User.cs

22 lines
823 B
C#

using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;
namespace WebApp.Entities
{
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;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
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>();
}
}