]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/source/comment_report.rs
Clean up reporting (#1776)
[lemmy.git] / crates / db_schema / src / source / comment_report.rs
index 7b47bef20072f72575adebbf286224c858de23c5..57ca961de332f076cb0fbcabae27f16140e5f261 100644 (file)
@@ -1,4 +1,10 @@
-use crate::{schema::comment_report, source::comment::Comment, CommentId, PersonId};
+use crate::{
+  schema::comment_report,
+  source::comment::Comment,
+  CommentId,
+  CommentReportId,
+  PersonId,
+};
 use serde::{Deserialize, Serialize};
 
 #[derive(
@@ -7,7 +13,7 @@ use serde::{Deserialize, Serialize};
 #[belongs_to(Comment)]
 #[table_name = "comment_report"]
 pub struct CommentReport {
-  pub id: i32,
+  pub id: CommentReportId,
   pub creator_id: PersonId,
   pub comment_id: CommentId,
   pub original_comment_text: String,