bulletboards/ImageBoardServerApp/Data/CommentData.cs
limited_dev 5a201fd565 feat: added shouldAnon to PostData.cs and CommentData.cs
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
2023-06-13 07:48:14 +02:00

41 lines
No EOL
986 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ImageBoardServerApp.Data;
public class CommentData
{
[Required]
[DatabaseGenerated((DatabaseGeneratedOption.Identity))]
[Key]
public int CommentID { get; set; }
[Required] public int PostID { get; set; }
//[ForeignKey("PostID")]
public virtual PostData Post { get; set; }
[Required] public int UserID { get; set; }
//[ForeignKey("UserID")]
public virtual UserData User { get; set; }
//[ForeignKey("ImageID")]
public virtual ImageData? Image { get; set; }
public int? ImageID { get; set; }
[Required] public string Content { get; set; }
[Required] public string Username { get; set; }
[Required] public string Board { get; set; }
[Required] public long CreatedAt { get; set; }
public ReportData? Report { get; set; }
public int GET { get; set; }
public bool shouldAnon { get; set; }
}