X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fsource%2Fmoderator.rs;h=84121f9a457e64e8aea430a9fa1e55f6dc18ce21;hb=7f9b55e7935f6093895734b1a45ec128d2cb2a33;hp=ee8bc693fe7ab860bedea13448050a5a15e9e882;hpb=762b85b27e812856f65933a182188e7102617aae;p=lemmy.git diff --git a/crates/db_schema/src/source/moderator.rs b/crates/db_schema/src/source/moderator.rs index ee8bc693..84121f9a 100644 --- a/crates/db_schema/src/source/moderator.rs +++ b/crates/db_schema/src/source/moderator.rs @@ -5,6 +5,7 @@ use crate::{ mod_add_community, mod_ban, mod_ban_from_community, + mod_hide_community, mod_lock_post, mod_remove_comment, mod_remove_community, @@ -149,6 +150,25 @@ pub struct ModBan { pub when_: chrono::NaiveDateTime, } +#[derive(Insertable, AsChangeset)] +#[table_name = "mod_hide_community"] +pub struct ModHideCommunityForm { + pub community_id: CommunityId, + pub mod_person_id: PersonId, + pub hidden: Option, + pub reason: Option, +} +#[derive(Clone, Queryable, Identifiable, PartialEq, Debug, Serialize, Deserialize)] +#[table_name = "mod_hide_community"] +pub struct ModHideCommunity { + pub id: i32, + pub community_id: CommunityId, + pub mod_person_id: PersonId, + pub reason: Option, + pub hidden: Option, + pub when_: chrono::NaiveDateTime, +} + #[derive(Insertable, AsChangeset)] #[table_name = "mod_ban"] pub struct ModBanForm {