X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fsource%2Fmoderator.rs;h=3c14fd0642457a12a8e3489cb0ce2279df885340;hb=d8722b6e91a79878001d968150687d25c5d6905e;hp=5d9bda273d02b59af4da387b84fd6a570d5264f2;hpb=f5511cfd2582e1044ad5ace5be1161ea9f467488;p=lemmy.git diff --git a/crates/db_schema/src/source/moderator.rs b/crates/db_schema/src/source/moderator.rs index 5d9bda27..3c14fd06 100644 --- a/crates/db_schema/src/source/moderator.rs +++ b/crates/db_schema/src/source/moderator.rs @@ -27,7 +27,7 @@ pub struct ModRemovePost { pub mod_person_id: PersonId, pub post_id: PostId, pub reason: Option, - pub removed: Option, + pub removed: bool, pub when_: chrono::NaiveDateTime, } @@ -47,7 +47,7 @@ pub struct ModLockPost { pub id: i32, pub mod_person_id: PersonId, pub post_id: PostId, - pub locked: Option, + pub locked: bool, pub when_: chrono::NaiveDateTime, } @@ -88,7 +88,7 @@ pub struct ModRemoveComment { pub mod_person_id: PersonId, pub comment_id: CommentId, pub reason: Option, - pub removed: Option, + pub removed: bool, pub when_: chrono::NaiveDateTime, } @@ -109,7 +109,7 @@ pub struct ModRemoveCommunity { pub mod_person_id: PersonId, pub community_id: CommunityId, pub reason: Option, - pub removed: Option, + pub removed: bool, pub expires: Option, pub when_: chrono::NaiveDateTime, } @@ -133,7 +133,7 @@ pub struct ModBanFromCommunity { pub other_person_id: PersonId, pub community_id: CommunityId, pub reason: Option, - pub banned: Option, + pub banned: bool, pub expires: Option, pub when_: chrono::NaiveDateTime, } @@ -157,7 +157,7 @@ pub struct ModBan { pub mod_person_id: PersonId, pub other_person_id: PersonId, pub reason: Option, - pub banned: Option, + pub banned: bool, pub expires: Option, pub when_: chrono::NaiveDateTime, } @@ -177,9 +177,9 @@ 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, + pub reason: Option, + pub hidden: bool, } #[cfg_attr(feature = "full", derive(Insertable, AsChangeset))] @@ -200,7 +200,7 @@ pub struct ModAddCommunity { pub mod_person_id: PersonId, pub other_person_id: PersonId, pub community_id: CommunityId, - pub removed: Option, + pub removed: bool, pub when_: chrono::NaiveDateTime, } @@ -221,7 +221,6 @@ pub struct ModTransferCommunity { pub mod_person_id: PersonId, pub other_person_id: PersonId, pub community_id: CommunityId, - pub removed: Option, pub when_: chrono::NaiveDateTime, } @@ -231,7 +230,6 @@ pub struct ModTransferCommunityForm { pub mod_person_id: PersonId, pub other_person_id: PersonId, pub community_id: CommunityId, - pub removed: Option, } #[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)] @@ -241,7 +239,7 @@ pub struct ModAdd { pub id: i32, pub mod_person_id: PersonId, pub other_person_id: PersonId, - pub removed: Option, + pub removed: bool, pub when_: chrono::NaiveDateTime, }