}
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,
}
}
}
}
+table! {
+ comment_reply (id) {
+ id -> Int4,
+ recipient_id -> Int4,
+ comment_id -> Int4,
+ read -> Bool,
+ published -> Timestamp,
+ }
+}
+
table! {
post (id) {
id -> Int4,
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));
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!(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,
comment,
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
);