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]
|
[Key]
|
||||||
public int CommentID { get; set; }
|
public int CommentID { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public int PostID { get; set; }
|
||||||
public int PostID { get; set; }
|
|
||||||
|
|
||||||
//[ForeignKey("PostID")]
|
//[ForeignKey("PostID")]
|
||||||
public virtual PostData Post { get; set; }
|
public virtual PostData Post { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public int UserID { get; set; }
|
||||||
public int UserID { get; set; }
|
|
||||||
|
|
||||||
//[ForeignKey("UserID")]
|
//[ForeignKey("UserID")]
|
||||||
public virtual UserData User { get; set; }
|
public virtual UserData User { get; set; }
|
||||||
|
@ -27,20 +25,17 @@ public class CommentData
|
||||||
|
|
||||||
public int? ImageID { get; set; }
|
public int? ImageID { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public string Content { get; set; }
|
||||||
public string Content { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required] public string Username { get; set; }
|
||||||
public string Username { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required] public string Board { get; set; }
|
||||||
public string Board { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required] public long CreatedAt { get; set; }
|
||||||
public long CreatedAt { get; set; }
|
|
||||||
|
|
||||||
public ReportData? Report { get; set; }
|
public ReportData? Report { get; set; }
|
||||||
|
|
||||||
public int GET { get; set; }
|
public int GET { get; set; }
|
||||||
|
|
||||||
|
public bool shouldAnon { get; set; }
|
||||||
}
|
}
|
|
@ -10,34 +10,27 @@ public class PostData
|
||||||
[Key]
|
[Key]
|
||||||
public int PostID { get; set; }
|
public int PostID { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public int UserID { get; set; }
|
||||||
public int UserID { get; set; }
|
|
||||||
|
|
||||||
//[ForeignKey("UserID")]
|
//[ForeignKey("UserID")]
|
||||||
public UserData User { get; set; }
|
public UserData User { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public int ImageID { get; set; }
|
||||||
public int ImageID { get; set; }
|
|
||||||
|
|
||||||
//[ForeignKey("ImageID")]
|
//[ForeignKey("ImageID")]
|
||||||
public ImageData Image { get; set; }
|
public ImageData Image { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public string Username { get; set; }
|
||||||
public string Username { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required] public string Title { get; set; }
|
||||||
public string Title { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required] public string Content { get; set; }
|
||||||
public string Content { get; set; }
|
|
||||||
|
|
||||||
public int Interactions { get; set; }
|
public int Interactions { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public long CreatedAt { get; set; }
|
||||||
public long CreatedAt { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
[Required] public string Board { get; set; }
|
||||||
public string Board { get; set; }
|
|
||||||
|
|
||||||
public List<CommentData> Comments { get; set; }
|
public List<CommentData> Comments { get; set; }
|
||||||
|
|
||||||
|
@ -48,4 +41,6 @@ public class PostData
|
||||||
public bool IsLocked { get; set; }
|
public bool IsLocked { get; set; }
|
||||||
|
|
||||||
public int GET { get; set; }
|
public int GET { get; set; }
|
||||||
|
|
||||||
|
public bool shouldAnon { get; set; }
|
||||||
}
|
}
|
Loading…
Reference in a new issue