1 use crate::{schema::comment_report, source::comment::Comment};
2 use serde::{Deserialize, Serialize};
5 Identifiable, Queryable, Associations, PartialEq, Serialize, Deserialize, Debug, Clone,
8 #[table_name = "comment_report"]
9 pub struct CommentReport {
13 pub original_comment_text: String,
16 pub resolver_id: Option<i32>,
17 pub published: chrono::NaiveDateTime,
18 pub updated: Option<chrono::NaiveDateTime>,
21 #[derive(Insertable, AsChangeset, Clone)]
22 #[table_name = "comment_report"]
23 pub struct CommentReportForm {
26 pub original_comment_text: String,