13 parent_id -> Nullable<Int4>,
17 published -> Timestamp,
18 updated -> Nullable<Timestamp>,
30 published -> Timestamp,
39 published -> Timestamp,
48 description -> Nullable<Text>,
52 published -> Timestamp,
53 updated -> Nullable<Timestamp>,
60 community_follower (id) {
64 published -> Timestamp,
69 community_moderator (id) {
73 published -> Timestamp,
78 community_user_ban (id) {
82 published -> Timestamp,
90 other_user_id -> Int4,
91 removed -> Nullable<Bool>,
97 mod_add_community (id) {
100 other_user_id -> Int4,
101 community_id -> Int4,
102 removed -> Nullable<Bool>,
111 other_user_id -> Int4,
112 reason -> Nullable<Text>,
113 banned -> Nullable<Bool>,
114 expires -> Nullable<Timestamp>,
120 mod_ban_from_community (id) {
123 other_user_id -> Int4,
124 community_id -> Int4,
125 reason -> Nullable<Text>,
126 banned -> Nullable<Bool>,
127 expires -> Nullable<Timestamp>,
137 locked -> Nullable<Bool>,
143 mod_remove_comment (id) {
147 reason -> Nullable<Text>,
148 removed -> Nullable<Bool>,
154 mod_remove_community (id) {
157 community_id -> Int4,
158 reason -> Nullable<Text>,
159 removed -> Nullable<Bool>,
160 expires -> Nullable<Timestamp>,
166 mod_remove_post (id) {
170 reason -> Nullable<Text>,
171 removed -> Nullable<Bool>,
177 mod_sticky_post (id) {
181 stickied -> Nullable<Bool>,
187 password_reset_request (id) {
190 token_encrypted -> Text,
191 published -> Timestamp,
199 url -> Nullable<Text>,
200 body -> Nullable<Text>,
202 community_id -> Int4,
205 published -> Timestamp,
206 updated -> Nullable<Timestamp>,
210 embed_title -> Nullable<Text>,
211 embed_description -> Nullable<Text>,
212 embed_html -> Nullable<Text>,
213 thumbnail_url -> Nullable<Text>,
223 published -> Timestamp,
232 published -> Timestamp,
241 published -> Timestamp,
246 private_message (id) {
249 recipient_id -> Int4,
253 published -> Timestamp,
254 updated -> Nullable<Timestamp>,
262 description -> Nullable<Text>,
264 published -> Timestamp,
265 updated -> Nullable<Timestamp>,
266 enable_downvotes -> Bool,
267 open_registration -> Bool,
276 fedi_name -> Varchar,
277 preferred_username -> Nullable<Varchar>,
278 password_encrypted -> Text,
279 email -> Nullable<Text>,
280 avatar -> Nullable<Text>,
283 published -> Timestamp,
284 updated -> Nullable<Timestamp>,
287 default_sort_type -> Int2,
288 default_listing_type -> Int2,
290 show_avatars -> Bool,
291 send_notifications_to_email -> Bool,
292 matrix_user_id -> Nullable<Text>,
300 published -> Timestamp,
307 recipient_id -> Int4,
310 published -> Timestamp,
314 joinable!(comment -> post (post_id));
315 joinable!(comment -> user_ (creator_id));
316 joinable!(comment_like -> comment (comment_id));
317 joinable!(comment_like -> post (post_id));
318 joinable!(comment_like -> user_ (user_id));
319 joinable!(comment_saved -> comment (comment_id));
320 joinable!(comment_saved -> user_ (user_id));
321 joinable!(community -> category (category_id));
322 joinable!(community -> user_ (creator_id));
323 joinable!(community_follower -> community (community_id));
324 joinable!(community_follower -> user_ (user_id));
325 joinable!(community_moderator -> community (community_id));
326 joinable!(community_moderator -> user_ (user_id));
327 joinable!(community_user_ban -> community (community_id));
328 joinable!(community_user_ban -> user_ (user_id));
329 joinable!(mod_add_community -> community (community_id));
330 joinable!(mod_ban_from_community -> community (community_id));
331 joinable!(mod_lock_post -> post (post_id));
332 joinable!(mod_lock_post -> user_ (mod_user_id));
333 joinable!(mod_remove_comment -> comment (comment_id));
334 joinable!(mod_remove_comment -> user_ (mod_user_id));
335 joinable!(mod_remove_community -> community (community_id));
336 joinable!(mod_remove_community -> user_ (mod_user_id));
337 joinable!(mod_remove_post -> post (post_id));
338 joinable!(mod_remove_post -> user_ (mod_user_id));
339 joinable!(mod_sticky_post -> post (post_id));
340 joinable!(mod_sticky_post -> user_ (mod_user_id));
341 joinable!(password_reset_request -> user_ (user_id));
342 joinable!(post -> community (community_id));
343 joinable!(post -> user_ (creator_id));
344 joinable!(post_like -> post (post_id));
345 joinable!(post_like -> user_ (user_id));
346 joinable!(post_read -> post (post_id));
347 joinable!(post_read -> user_ (user_id));
348 joinable!(post_saved -> post (post_id));
349 joinable!(post_saved -> user_ (user_id));
350 joinable!(site -> user_ (creator_id));
351 joinable!(user_ban -> user_ (user_id));
352 joinable!(user_mention -> comment (comment_id));
353 joinable!(user_mention -> user_ (recipient_id));
355 allow_tables_to_appear_in_same_query!(
367 mod_ban_from_community,
370 mod_remove_community,
373 password_reset_request,