X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fsource%2Factivity.rs;h=55d7d6fb8458033906949727b356c9ef2e34e112;hb=235cc8b22897bfb3e71ba3dbd725d36863fea8ba;hp=2d256a5b3c894dfabae7cbbf99ebb920d4116717;hpb=276a8c2bd3e4fd1323e66b808675cf14cf6f75c5;p=lemmy.git diff --git a/crates/db_schema/src/source/activity.rs b/crates/db_schema/src/source/activity.rs index 2d256a5b..55d7d6fb 100644 --- a/crates/db_schema/src/source/activity.rs +++ b/crates/db_schema/src/source/activity.rs @@ -14,12 +14,21 @@ pub struct Activity { pub sensitive: Option, } -#[derive(Insertable, AsChangeset)] +#[derive(Insertable)] #[diesel(table_name = activity)] -pub struct ActivityForm { +pub struct ActivityInsertForm { pub data: Value, pub local: Option, pub updated: Option, pub ap_id: DbUrl, - pub sensitive: bool, + pub sensitive: Option, +} + +#[derive(AsChangeset)] +#[diesel(table_name = activity)] +pub struct ActivityUpdateForm { + pub data: Option, + pub local: Option, + pub updated: Option>, + pub sensitive: Option>, }