X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fsource%2Fcomment_reply.rs;h=8b7fe51b027252fece2a43773f8dcc0da76df44d;hb=235cc8b22897bfb3e71ba3dbd725d36863fea8ba;hp=737d8df6a5aca9f7b34252eb9e47010f69fe1760;hpb=276a8c2bd3e4fd1323e66b808675cf14cf6f75c5;p=lemmy.git diff --git a/crates/db_schema/src/source/comment_reply.rs b/crates/db_schema/src/source/comment_reply.rs index 737d8df6..8b7fe51b 100644 --- a/crates/db_schema/src/source/comment_reply.rs +++ b/crates/db_schema/src/source/comment_reply.rs @@ -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, } + +#[cfg_attr(feature = "full", derive(AsChangeset))] +#[cfg_attr(feature = "full", diesel(table_name = comment_reply))] +pub struct CommentReplyUpdateForm { + pub read: Option, +}