}
table! {
+ use diesel_ltree::sql_types::Ltree;
+ use diesel::sql_types::*;
+
comment (id) {
id -> Int4,
creator_id -> Int4,
post_id -> Int4,
- parent_id -> Nullable<Int4>,
content -> Text,
removed -> Bool,
- read -> Bool,
published -> Timestamp,
updated -> Nullable<Timestamp>,
deleted -> Bool,
ap_id -> Varchar,
local -> Bool,
+ path -> Ltree,
+ distinguished -> Bool,
}
}
upvotes -> Int8,
downvotes -> Int8,
published -> Timestamp,
+ child_count -> Int4,
}
}
followers_url -> Varchar,
inbox_url -> Varchar,
shared_inbox_url -> Nullable<Varchar>,
+ hidden -> Bool,
+ posting_restricted_to_mods -> Bool,
}
}
}
}
+table! {
+ comment_reply (id) {
+ id -> Int4,
+ recipient_id -> Int4,
+ comment_id -> Int4,
+ read -> Bool,
+ published -> Timestamp,
+ }
+}
+
table! {
post (id) {
id -> Int4,
stickied -> Bool,
embed_title -> Nullable<Text>,
embed_description -> Nullable<Text>,
- embed_html -> Nullable<Text>,
+ embed_video_url -> Nullable<Text>,
thumbnail_url -> Nullable<Text>,
ap_id -> Varchar,
local -> Bool,
id -> Int4,
name -> Varchar,
sidebar -> Nullable<Text>,
- creator_id -> Int4,
published -> Timestamp,
updated -> Nullable<Timestamp>,
enable_downvotes -> Bool,
require_application -> Bool,
application_question -> Nullable<Text>,
private_instance -> Bool,
+ actor_id -> Text,
+ last_refreshed_at -> Timestamp,
+ inbox_url -> Text,
+ private_key -> Nullable<Text>,
+ public_key -> Text,
+ default_theme -> Text,
+ default_post_listing_type -> Text,
+ legal_information -> Nullable<Text>,
+ hide_modlog_mod_names -> Bool,
}
}
}
// These are necessary since diesel doesn't have self joins / aliases
-table! {
- comment_alias_1 (id) {
- id -> Int4,
- creator_id -> Int4,
- post_id -> Int4,
- parent_id -> Nullable<Int4>,
- content -> Text,
- removed -> Bool,
- read -> Bool,
- published -> Timestamp,
- updated -> Nullable<Timestamp>,
- deleted -> Bool,
- ap_id -> Varchar,
- local -> Bool,
- }
-}
-
table! {
person_alias_1 (id) {
id -> Int4,
}
}
+table! {
+ admin_purge_comment (id) {
+ id -> Int4,
+ admin_person_id -> Int4,
+ post_id -> Int4,
+ reason -> Nullable<Text>,
+ when_ -> Timestamp,
+ }
+}
+
table! {
email_verification (id) {
id -> Int4,
}
}
+table! {
+ admin_purge_community (id) {
+ id -> Int4,
+ admin_person_id -> Int4,
+ reason -> Nullable<Text>,
+ when_ -> Timestamp,
+ }
+}
+
+table! {
+ admin_purge_person (id) {
+ id -> Int4,
+ admin_person_id -> Int4,
+ reason -> Nullable<Text>,
+ when_ -> Timestamp,
+ }
+}
+
+table! {
+ admin_purge_post (id) {
+ id -> Int4,
+ admin_person_id -> Int4,
+ community_id -> Int4,
+ reason -> Nullable<Text>,
+ when_ -> Timestamp,
+ }
+}
+
table! {
registration_application (id) {
id -> Int4,
}
}
-joinable!(comment_alias_1 -> person_alias_1 (creator_id));
-joinable!(comment -> comment_alias_1 (parent_id));
+table! {
+ mod_hide_community (id) {
+ id -> Int4,
+ community_id -> Int4,
+ mod_person_id -> Int4,
+ reason -> Nullable<Text>,
+ hidden -> Nullable<Bool>,
+ when_ -> Timestamp,
+ }
+}
+
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!(person_ban -> person (person_id));
joinable!(person_mention -> comment (comment_id));
joinable!(person_mention -> person (recipient_id));
+joinable!(comment_reply -> comment (comment_id));
+joinable!(comment_reply -> person (recipient_id));
joinable!(post -> community (community_id));
joinable!(post -> person (creator_id));
joinable!(post_aggregates -> post (post_id));
joinable!(post_report -> post (post_id));
joinable!(post_saved -> person (person_id));
joinable!(post_saved -> post (post_id));
-joinable!(site -> person (creator_id));
joinable!(site_aggregates -> site (site_id));
joinable!(email_verification -> local_user (local_user_id));
joinable!(registration_application -> local_user (local_user_id));
joinable!(registration_application -> person (admin_id));
+joinable!(mod_hide_community -> person (mod_person_id));
+joinable!(mod_hide_community -> community (community_id));
+
+joinable!(admin_purge_comment -> person (admin_person_id));
+joinable!(admin_purge_comment -> post (post_id));
+joinable!(admin_purge_community -> person (admin_person_id));
+joinable!(admin_purge_person -> person (admin_person_id));
+joinable!(admin_purge_post -> community (community_id));
+joinable!(admin_purge_post -> person (admin_person_id));
allow_tables_to_appear_in_same_query!(
activity,
mod_remove_community,
mod_remove_post,
mod_sticky_post,
+ mod_hide_community,
password_reset_request,
person,
person_aggregates,
person_ban,
person_block,
person_mention,
+ comment_reply,
post,
post_aggregates,
post_like,
private_message,
site,
site_aggregates,
- comment_alias_1,
person_alias_1,
person_alias_2,
+ admin_purge_comment,
+ admin_purge_community,
+ admin_purge_person,
+ admin_purge_post,
email_verification,
registration_application
);