mod_add_community,
mod_ban,
mod_ban_from_community,
+ mod_hide_community,
mod_lock_post,
mod_remove_comment,
mod_remove_community,
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<bool>,
+ pub reason: Option<String>,
+}
+#[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<String>,
+ pub hidden: Option<bool>,
+ pub when_: chrono::NaiveDateTime,
+}
+
#[derive(Insertable, AsChangeset)]
#[table_name = "mod_ban"]
pub struct ModBanForm {