22 lines
548 B
C#
22 lines
548 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace CarParkValidationAPI.Entities;
|
|
|
|
public enum AdminRole
|
|
{
|
|
Normal = 1,
|
|
Admin = 2
|
|
}
|
|
public class User
|
|
{
|
|
public int Id { get; set; }
|
|
public string? FirstName { get; set; }
|
|
public string? LastName { get; set; }
|
|
public string Email { get; set; }
|
|
public string Username { get; set; }
|
|
public int? Role { get; set; }
|
|
public int ValidationPointId { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public string PasswordHash { get; set; }
|
|
} |