X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fsource%2Fmoderator.rs;h=5d9bda273d02b59af4da387b84fd6a570d5264f2;hb=9dfd819691676994ac52b000fc4f93dfe72bc2b3;hp=000e34868de12d0a089e5a08eb8af9c6d92d6e51;hpb=0ecf256ce32392b53b96a24ddd8f2e4e513281da;p=lemmy.git diff --git a/crates/db_schema/src/source/moderator.rs b/crates/db_schema/src/source/moderator.rs index 000e3486..5d9bda27 100644 --- a/crates/db_schema/src/source/moderator.rs +++ b/crates/db_schema/src/source/moderator.rs @@ -9,12 +9,12 @@ use crate::schema::{ mod_add_community, mod_ban, mod_ban_from_community, + mod_feature_post, mod_hide_community, mod_lock_post, mod_remove_comment, mod_remove_community, mod_remove_post, - mod_sticky_post, mod_transfer_community, }; use serde::{Deserialize, Serialize}; @@ -61,21 +61,23 @@ pub struct ModLockPostForm { #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)] #[cfg_attr(feature = "full", derive(Queryable, Identifiable))] -#[cfg_attr(feature = "full", diesel(table_name = mod_sticky_post))] -pub struct ModStickyPost { +#[cfg_attr(feature = "full", diesel(table_name = mod_feature_post))] +pub struct ModFeaturePost { pub id: i32, pub mod_person_id: PersonId, pub post_id: PostId, - pub stickied: Option, + pub featured: bool, pub when_: chrono::NaiveDateTime, + pub is_featured_community: bool, } #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))] -#[cfg_attr(feature = "full", diesel(table_name = mod_sticky_post))] -pub struct ModStickyPostForm { +#[cfg_attr(feature = "full", diesel(table_name = mod_feature_post))] +pub struct ModFeaturePostForm { pub mod_person_id: PersonId, pub post_id: PostId, - pub stickied: Option, + pub featured: bool, + pub is_featured_community: bool, } #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]