2 schema::comment_report,
3 source::comment::Comment,
8 use serde::{Deserialize, Serialize};
11 Identifiable, Queryable, Associations, PartialEq, Serialize, Deserialize, Debug, Clone,
13 #[belongs_to(Comment)]
14 #[table_name = "comment_report"]
15 pub struct CommentReport {
16 pub id: CommentReportId,
17 pub creator_id: PersonId,
18 pub comment_id: CommentId,
19 pub original_comment_text: String,
22 pub resolver_id: Option<PersonId>,
23 pub published: chrono::NaiveDateTime,
24 pub updated: Option<chrono::NaiveDateTime>,
27 #[derive(Insertable, AsChangeset, Clone)]
28 #[table_name = "comment_report"]
29 pub struct CommentReportForm {
30 pub creator_id: PersonId,
31 pub comment_id: CommentId,
32 pub original_comment_text: String,