2023-01-18 12:56:24 +00:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
namespace ImageBoardServerApp.Data;
|
|
|
|
|
|
|
|
public class UserData
|
|
|
|
{
|
|
|
|
[Required]
|
|
|
|
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
|
|
|
|
[Key]
|
|
|
|
public int UserID { get; set; }
|
2023-02-01 20:49:02 +00:00
|
|
|
|
2023-06-12 21:17:10 +00:00
|
|
|
[Required] public long TimeBanned { get; set; }
|
|
|
|
|
|
|
|
[Required] public string BanReason { get; set; }
|
|
|
|
|
|
|
|
[Required] public long lastActionTimeStamp { get; set; }
|
|
|
|
|
2023-01-18 12:56:24 +00:00
|
|
|
public List<PostData> Posts { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
2023-01-18 12:56:24 +00:00
|
|
|
public List<CommentData> Comments { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
|
|
|
[Required] public string Email { get; set; }
|
|
|
|
|
|
|
|
[Required] public string ProposedEmail { get; set; }
|
|
|
|
|
|
|
|
[Required] public string Password { get; set; }
|
|
|
|
|
|
|
|
[Required] public string Role { get; set; }
|
|
|
|
|
2023-02-11 14:47:39 +00:00
|
|
|
public List<ReportData> SubmittedReports { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
2023-02-11 14:47:39 +00:00
|
|
|
public List<ReportData> RecivedReports { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
2023-05-31 12:50:05 +00:00
|
|
|
public string LastUsedName { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
2023-06-08 21:34:59 +00:00
|
|
|
public bool ConfirmedEmail { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
2023-06-08 21:34:59 +00:00
|
|
|
public string ConfirmEmailToken { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
2023-06-08 21:34:59 +00:00
|
|
|
public string ResetPasswordToken { get; set; }
|
2023-06-12 21:17:10 +00:00
|
|
|
|
2023-06-08 21:34:59 +00:00
|
|
|
public long ResetPasswordExpiresAt { get; set; }
|
2023-01-18 12:56:24 +00:00
|
|
|
}
|