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
|
@ -9,38 +9,33 @@ public class CommentData
|
||||||
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
|
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
|
||||||
[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; }
|
||||||
|
|
||||||
//[ForeignKey("ImageID")]
|
//[ForeignKey("ImageID")]
|
||||||
public virtual ImageData? Image { get; set; }
|
public virtual ImageData? Image { get; set; }
|
||||||
|
|
||||||
public int? ImageID { get; set; }
|
public int? ImageID { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public string Content { get; set; }
|
||||||
public string Content { get; set; }
|
|
||||||
|
[Required] public string Username { get; set; }
|
||||||
[Required]
|
|
||||||
public string Username { get; set; }
|
[Required] public string Board { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public long CreatedAt { get; set; }
|
||||||
public string Board { get; set; }
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
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,42 +10,37 @@ 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] 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; }
|
public int Interactions { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required] public long CreatedAt { get; set; }
|
||||||
public long CreatedAt { get; set; }
|
|
||||||
|
[Required] public string Board { get; set; }
|
||||||
[Required]
|
|
||||||
public string Board { get; set; }
|
|
||||||
|
|
||||||
public List<CommentData> Comments { get; set; }
|
public List<CommentData> Comments { get; set; }
|
||||||
|
|
||||||
public ReportData? Report { get; set; }
|
public ReportData? Report { get; set; }
|
||||||
|
|
||||||
public bool IsSticky { get; set; }
|
public bool IsSticky { get; set; }
|
||||||
|
|
||||||
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