feat: added shouldAnon to PostData.cs and CommentData.cs
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
21e20ad2b7
commit
5a201fd565
2 changed files with 40 additions and 50 deletions
|
@ -10,14 +10,12 @@ public class CommentData
|
|||
[Key]
|
||||
public int CommentID { get; set; }
|
||||
|
||||
[Required]
|
||||
public int PostID { get; set; }
|
||||
[Required] public int PostID { get; set; }
|
||||
|
||||
//[ForeignKey("PostID")]
|
||||
public virtual PostData Post { get; set; }
|
||||
|
||||
[Required]
|
||||
public int UserID { get; set; }
|
||||
[Required] public int UserID { get; set; }
|
||||
|
||||
//[ForeignKey("UserID")]
|
||||
public virtual UserData User { get; set; }
|
||||
|
@ -27,20 +25,17 @@ public class CommentData
|
|||
|
||||
public int? ImageID { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Content { get; set; }
|
||||
[Required] public string Content { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Username { get; set; }
|
||||
[Required] public string Username { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Board { get; set; }
|
||||
[Required] public string Board { get; set; }
|
||||
|
||||
[Required]
|
||||
public long CreatedAt { get; set; }
|
||||
[Required] public long CreatedAt { get; set; }
|
||||
|
||||
public ReportData? Report { get; set; }
|
||||
|
||||
public int GET { get; set; }
|
||||
|
||||
public bool shouldAnon { get; set; }
|
||||
}
|
|
@ -10,34 +10,27 @@ public class PostData
|
|||
[Key]
|
||||
public int PostID { get; set; }
|
||||
|
||||
[Required]
|
||||
public int UserID { get; set; }
|
||||
[Required] public int UserID { get; set; }
|
||||
|
||||
//[ForeignKey("UserID")]
|
||||
public UserData User { get; set; }
|
||||
|
||||
[Required]
|
||||
public int ImageID { get; set; }
|
||||
[Required] public int ImageID { get; set; }
|
||||
|
||||
//[ForeignKey("ImageID")]
|
||||
public ImageData Image { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Username { get; set; }
|
||||
[Required] public string Username { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Title { get; set; }
|
||||
[Required] public string Title { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Content { get; set; }
|
||||
[Required] public string Content { get; set; }
|
||||
|
||||
public int Interactions { get; set; }
|
||||
|
||||
[Required]
|
||||
public long CreatedAt { get; set; }
|
||||
[Required] public long CreatedAt { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Board { get; set; }
|
||||
[Required] public string Board { get; set; }
|
||||
|
||||
public List<CommentData> Comments { get; set; }
|
||||
|
||||
|
@ -48,4 +41,6 @@ public class PostData
|
|||
public bool IsLocked { get; set; }
|
||||
|
||||
public int GET { get; set; }
|
||||
|
||||
public bool shouldAnon { get; set; }
|
||||
}
|
Loading…
Reference in a new issue