X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fschema.rs;h=e503a827467df50692f92113e6427873452a8ede;hb=9b5e765364ecf7de64c9cbc7a452ccfaabce5449;hp=ac4ddc47a4277b968b703c13f649fbe9541668c2;hpb=1f1c0ad17a2a54fba9098e9885cd7042f85057d2;p=lemmy.git diff --git a/crates/db_schema/src/schema.rs b/crates/db_schema/src/schema.rs index ac4ddc47..e503a827 100644 --- a/crates/db_schema/src/schema.rs +++ b/crates/db_schema/src/schema.rs @@ -65,7 +65,16 @@ diesel::table! { } diesel::table! { - use diesel::sql_types::{Bool, Int4, Nullable, Text, Timestamp, Varchar}; + captcha_answer (id) { + id -> Int4, + uuid -> Uuid, + answer -> Text, + published -> Timestamp, + } +} + +diesel::table! { + use diesel::sql_types::*; use diesel_ltree::sql_types::Ltree; comment (id) { @@ -317,7 +326,7 @@ diesel::table! { } diesel::table! { - use diesel::sql_types::{Bool, Int4, Nullable, Text, Timestamp, Varchar}; + use diesel::sql_types::*; use super::sql_types::ListingTypeEnum; use super::sql_types::RegistrationModeEnum; @@ -339,7 +348,6 @@ diesel::table! { slur_filter_regex -> Nullable, actor_name_max_length -> Int4, federation_enabled -> Bool, - federation_worker_count -> Int4, captcha_enabled -> Bool, #[max_length = 255] captcha_difficulty -> Varchar, @@ -372,7 +380,7 @@ diesel::table! { } diesel::table! { - use diesel::sql_types::{Bool, Int4, Nullable, Text, Timestamp, Varchar}; + use diesel::sql_types::*; use super::sql_types::SortTypeEnum; use super::sql_types::ListingTypeEnum; @@ -382,8 +390,7 @@ diesel::table! { password_encrypted -> Text, email -> Nullable, show_nsfw -> Bool, - #[max_length = 20] - theme -> Varchar, + theme -> Text, default_sort_type -> SortTypeEnum, default_listing_type -> ListingTypeEnum, #[max_length = 20] @@ -399,6 +406,8 @@ diesel::table! { accepted_application -> Bool, totp_2fa_secret -> Nullable, totp_2fa_url -> Nullable, + open_links_in_new_tab -> Bool, + infinite_scroll_enabled -> Bool, } } @@ -916,6 +925,7 @@ diesel::allow_tables_to_appear_in_same_query!( admin_purge_community, admin_purge_person, admin_purge_post, + captcha_answer, comment, comment_aggregates, comment_like,