X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fsource%2Fperson_mention.rs;h=b4a2ce59c090e72846f1c5977e67c6de414e05c4;hb=235cc8b22897bfb3e71ba3dbd725d36863fea8ba;hp=a12563e5f20f49e342b9cba4008a4cc0ee5d0dd9;hpb=276a8c2bd3e4fd1323e66b808675cf14cf6f75c5;p=lemmy.git diff --git a/crates/db_schema/src/source/person_mention.rs b/crates/db_schema/src/source/person_mention.rs index a12563e5..b4a2ce59 100644 --- a/crates/db_schema/src/source/person_mention.rs +++ b/crates/db_schema/src/source/person_mention.rs @@ -18,8 +18,14 @@ pub struct PersonMention { #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))] #[cfg_attr(feature = "full", diesel(table_name = person_mention))] -pub struct PersonMentionForm { +pub struct PersonMentionInsertForm { pub recipient_id: PersonId, pub comment_id: CommentId, pub read: Option, } + +#[cfg_attr(feature = "full", derive(AsChangeset))] +#[cfg_attr(feature = "full", diesel(table_name = person_mention))] +pub struct PersonMentionUpdateForm { + pub read: Option, +}