1 use crate::{schema::comment_report, source::comment::Comment, CommentId, PersonId};
2 use serde::{Deserialize, Serialize};
5 Identifiable, Queryable, Associations, PartialEq, Serialize, Deserialize, Debug, Clone,
8 #[table_name = "comment_report"]
9 pub struct CommentReport {
11 pub creator_id: PersonId,
12 pub comment_id: CommentId,
13 pub original_comment_text: String,
16 pub resolver_id: Option<PersonId>,
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 {
24 pub creator_id: PersonId,
25 pub comment_id: CommentId,
26 pub original_comment_text: String,