local -> Bool,
path -> Ltree,
distinguished -> Bool,
+ language_id -> Int4,
}
}
}
}
+table! {
+ person_post_aggregates (id) {
+ id -> Int4,
+ person_id -> Int4,
+ post_id -> Int4,
+ read_comments -> Int8,
+ published -> Timestamp,
+ }
+}
+
table! {
post_aggregates (id) {
id -> Int4,
}
}
+table! {
+ private_message_report (id) {
+ id -> Int4,
+ creator_id -> Int4,
+ private_message_id -> Int4,
+ original_pm_text -> Text,
+ reason -> Text,
+ resolved -> Bool,
+ resolver_id -> Nullable<Int4>,
+ published -> Timestamp,
+ updated -> Nullable<Timestamp>,
+ }
+}
+
table! {
site (id) {
id -> Int4,
default_theme -> Text,
default_post_listing_type -> Text,
legal_information -> Nullable<Text>,
+ application_email_admins -> Bool,
hide_modlog_mod_names -> Bool,
}
}
}
}
-// These are necessary since diesel doesn't have self joins / aliases
-table! {
- person_alias_1 (id) {
- id -> Int4,
- name -> Varchar,
- display_name -> Nullable<Varchar>,
- avatar -> Nullable<Varchar>,
- banned -> Bool,
- published -> Timestamp,
- updated -> Nullable<Timestamp>,
- actor_id -> Varchar,
- bio -> Nullable<Text>,
- local -> Bool,
- private_key -> Nullable<Text>,
- public_key -> Text,
- last_refreshed_at -> Timestamp,
- banner -> Nullable<Varchar>,
- deleted -> Bool,
- inbox_url -> Varchar,
- shared_inbox_url -> Nullable<Varchar>,
- matrix_user_id -> Nullable<Text>,
- admin -> Bool,
- bot_account -> Bool,
- ban_expires -> Nullable<Timestamp>,
- }
-}
-
-table! {
- person_alias_2 (id) {
- id -> Int4,
- name -> Varchar,
- display_name -> Nullable<Varchar>,
- avatar -> Nullable<Varchar>,
- banned -> Bool,
- published -> Timestamp,
- updated -> Nullable<Timestamp>,
- actor_id -> Varchar,
- bio -> Nullable<Text>,
- local -> Bool,
- private_key -> Nullable<Text>,
- public_key -> Text,
- last_refreshed_at -> Timestamp,
- banner -> Nullable<Varchar>,
- deleted -> Bool,
- inbox_url -> Varchar,
- shared_inbox_url -> Nullable<Varchar>,
- matrix_user_id -> Nullable<Text>,
- admin -> Bool,
- bot_account -> Bool,
- ban_expires -> Nullable<Timestamp>,
- }
-}
-
table! {
secret(id) {
id -> Int4,
}
}
-joinable!(person_mention -> person_alias_1 (recipient_id));
-joinable!(comment_reply -> person_alias_1 (recipient_id));
-joinable!(post -> person_alias_1 (creator_id));
-joinable!(comment -> person_alias_1 (creator_id));
-
-joinable!(post_report -> person_alias_2 (resolver_id));
-joinable!(comment_report -> person_alias_2 (resolver_id));
-
joinable!(person_block -> person (person_id));
-joinable!(person_block -> person_alias_1 (target_id));
joinable!(comment -> person (creator_id));
joinable!(comment -> post (post_id));
joinable!(comment_reply -> person (recipient_id));
joinable!(post -> community (community_id));
joinable!(post -> person (creator_id));
+joinable!(person_post_aggregates -> post (post_id));
+joinable!(person_post_aggregates -> person (person_id));
joinable!(post_aggregates -> post (post_id));
joinable!(post_like -> person (person_id));
joinable!(post_like -> post (post_id));
joinable!(mod_hide_community -> person (mod_person_id));
joinable!(mod_hide_community -> community (community_id));
joinable!(post -> language (language_id));
+joinable!(comment -> language (language_id));
joinable!(local_user_language -> language (language_id));
joinable!(local_user_language -> local_user (local_user_id));
+joinable!(private_message_report -> private_message (private_message_id));
joinable!(admin_purge_comment -> person (admin_person_id));
joinable!(admin_purge_comment -> post (post_id));
person_ban,
person_block,
person_mention,
+ person_post_aggregates,
comment_reply,
post,
post_aggregates,
post_report,
post_saved,
private_message,
+ private_message_report,
site,
site_aggregates,
- person_alias_1,
- person_alias_2,
admin_purge_comment,
admin_purge_community,
admin_purge_person,