From 5282054cae6531ebf007ef91349612f6795897b8 Mon Sep 17 00:00:00 2001 From: limited_dev Date: Mon, 12 Jun 2023 23:17:10 +0200 Subject: [PATCH] !feat: Added ProposedEmail to UserData Signed-off-by: limited_dev --- ImageBoardServerApp/Data/UserData.cs | 50 ++++++++++++---------------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/ImageBoardServerApp/Data/UserData.cs b/ImageBoardServerApp/Data/UserData.cs index d396e1d..a83ebaf 100644 --- a/ImageBoardServerApp/Data/UserData.cs +++ b/ImageBoardServerApp/Data/UserData.cs @@ -5,46 +5,40 @@ namespace ImageBoardServerApp.Data; public class UserData { - [Required] [DatabaseGenerated((DatabaseGeneratedOption.Identity))] [Key] public int UserID { get; set; } - [Required] - public long TimeBanned { get; set; } - - [Required] - public string BanReason { get; set; } - - [Required] - public long lastActionTimeStamp { get; set; } - + [Required] public long TimeBanned { get; set; } + + [Required] public string BanReason { get; set; } + + [Required] public long lastActionTimeStamp { get; set; } + public List Posts { get; set; } - + public List Comments { get; set; } - - [Required] - public string Email { get; set; } - - [Required] - public string Password { get; set; } - - [Required] - public string Role { get; set; } - + + [Required] public string Email { get; set; } + + [Required] public string ProposedEmail { get; set; } + + [Required] public string Password { get; set; } + + [Required] public string Role { get; set; } + public List SubmittedReports { get; set; } - + public List RecivedReports { get; set; } - + public string LastUsedName { get; set; } - + public bool ConfirmedEmail { get; set; } - + public string ConfirmEmailToken { get; set; } - + public string ResetPasswordToken { get; set; } - + public long ResetPasswordExpiresAt { get; set; } - } \ No newline at end of file