}
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) {
downvotes -> Int8,
published -> Timestamp,
child_count -> Int4,
+ hot_rank -> Int4,
}
}
users_active_week -> Int8,
users_active_month -> Int8,
users_active_half_year -> Int8,
+ hot_rank -> Int4,
}
}
}
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;
slur_filter_regex -> Nullable<Text>,
actor_name_max_length -> Int4,
federation_enabled -> Bool,
- federation_worker_count -> Int4,
captcha_enabled -> Bool,
#[max_length = 255]
captcha_difficulty -> Varchar,
}
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;
password_encrypted -> Text,
email -> Nullable<Text>,
show_nsfw -> Bool,
- #[max_length = 20]
- theme -> Varchar,
+ theme -> Text,
default_sort_type -> SortTypeEnum,
default_listing_type -> ListingTypeEnum,
#[max_length = 20]
id -> Int4,
#[max_length = 200]
name -> Varchar,
- url -> Nullable<Text>,
+ #[max_length = 512]
+ url -> Nullable<Varchar>,
body -> Nullable<Text>,
creator_id -> Int4,
community_id -> Int4,
newest_comment_time -> Timestamp,
featured_community -> Bool,
featured_local -> Bool,
+ hot_rank -> Int4,
+ hot_rank_active -> Int4,
}
}
admin_purge_community,
admin_purge_person,
admin_purge_post,
+ captcha_answer,
comment,
comment_aggregates,
comment_like,