limited_dev
8ebc78b754
fix: minor bugfixes while posting & commenting, changed Au.razor and E.razor around
37 lines
No EOL
841 B
C#
37 lines
No EOL
841 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Net;
|
|
|
|
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 lastActionTimeStamp { get; set; }
|
|
|
|
public List<PostData> Posts { get; set; }
|
|
|
|
public List<CommentData> Comments { get; set; }
|
|
|
|
[Required]
|
|
public string Email { get; set; }
|
|
|
|
[Required]
|
|
public string Password { get; set; }
|
|
|
|
[Required]
|
|
public string Role { get; set; }
|
|
|
|
public List<ReportData> SubmittedReports { get; set; }
|
|
|
|
public List<ReportData> RecivedReports { get; set; }
|
|
} |