]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/source/local_user.rs
Moving admin to person table. Fixes #1515
[lemmy.git] / crates / db_schema / src / source / local_user.rs
index 2f4a9fc2b40f24f538ed59af2262aac9d6935616..6f28a8fbcdba6e4e1c44d0f1696ec0684291aaa7 100644 (file)
@@ -8,7 +8,6 @@ pub struct LocalUser {
   pub person_id: PersonId,
   pub password_encrypted: String,
   pub email: Option<String>,
-  pub admin: bool,
   pub show_nsfw: bool,
   pub theme: String,
   pub default_sort_type: i16,
@@ -26,7 +25,6 @@ pub struct LocalUserForm {
   pub person_id: PersonId,
   pub password_encrypted: String,
   pub email: Option<Option<String>>,
-  pub admin: Option<bool>,
   pub show_nsfw: Option<bool>,
   pub theme: Option<String>,
   pub default_sort_type: Option<i16>,
@@ -43,7 +41,6 @@ pub struct LocalUserSettings {
   pub id: LocalUserId,
   pub person_id: PersonId,
   pub email: Option<String>,
-  pub admin: bool,
   pub show_nsfw: bool,
   pub theme: String,
   pub default_sort_type: i16,