!feat: Added ProposedEmail to UserData

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-12 23:17:10 +02:00
parent ed0f1c7187
commit 5282054cae

View file

@ -5,33 +5,28 @@ namespace ImageBoardServerApp.Data;
public class UserData
{
[Required]
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
[Key]
public int UserID { get; set; }
[Required]
public long TimeBanned { get; set; }
[Required] public long TimeBanned { get; set; }
[Required]
public string BanReason { get; set; }
[Required] public string BanReason { get; set; }
[Required]
public long lastActionTimeStamp { get; set; }
[Required] public long lastActionTimeStamp { get; set; }
public List<PostData> Posts { get; set; }
public List<CommentData> Comments { get; set; }
[Required]
public string Email { get; set; }
[Required] public string Email { get; set; }
[Required]
public string Password { get; set; }
[Required] public string ProposedEmail { get; set; }
[Required]
public string Role { get; set; }
[Required] public string Password { get; set; }
[Required] public string Role { get; set; }
public List<ReportData> SubmittedReports { get; set; }
@ -46,5 +41,4 @@ public class UserData
public string ResetPasswordToken { get; set; }
public long ResetPasswordExpiresAt { get; set; }
}