1 use crate::{schema::comment_report, source::comment::Comment};
2 use serde::{Deserialize, Serialize};
4 #[derive(Identifiable, Queryable, Associations, PartialEq, Serialize, Deserialize, Debug, Clone)]
6 #[table_name = "comment_report"]
7 pub struct CommentReport {
11 pub original_comment_text: String,
14 pub resolver_id: Option<i32>,
15 pub published: chrono::NaiveDateTime,
16 pub updated: Option<chrono::NaiveDateTime>,
19 #[derive(Insertable, AsChangeset, Clone)]
20 #[table_name = "comment_report"]
21 pub struct CommentReportForm {
24 pub original_comment_text: String,