]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/source/comment_reply.rs
Moving settings to Database. (#2492)
[lemmy.git] / crates / db_schema / src / source / comment_reply.rs
index 737d8df6a5aca9f7b34252eb9e47010f69fe1760..8b7fe51b027252fece2a43773f8dcc0da76df44d 100644 (file)
@@ -19,8 +19,14 @@ pub struct CommentReply {
 
 #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
 #[cfg_attr(feature = "full", diesel(table_name = comment_reply))]
-pub struct CommentReplyForm {
+pub struct CommentReplyInsertForm {
   pub recipient_id: PersonId,
   pub comment_id: CommentId,
   pub read: Option<bool>,
 }
+
+#[cfg_attr(feature = "full", derive(AsChangeset))]
+#[cfg_attr(feature = "full", diesel(table_name = comment_reply))]
+pub struct CommentReplyUpdateForm {
+  pub read: Option<bool>,
+}