]> Untitled Git - lemmy.git/blob - crates/db_schema/src/schema.rs
add enable_federated_downvotes site option
[lemmy.git] / crates / db_schema / src / schema.rs
1 // @generated automatically by Diesel CLI.
2
3 pub mod sql_types {
4   #[derive(diesel::sql_types::SqlType)]
5   #[diesel(postgres_type(name = "listing_type_enum"))]
6   pub struct ListingTypeEnum;
7
8   #[derive(diesel::sql_types::SqlType)]
9   #[diesel(postgres_type(name = "registration_mode_enum"))]
10   pub struct RegistrationModeEnum;
11
12   #[derive(diesel::sql_types::SqlType)]
13   #[diesel(postgres_type(name = "sort_type_enum"))]
14   pub struct SortTypeEnum;
15 }
16
17 diesel::table! {
18     admin_purge_comment (id) {
19         id -> Int4,
20         admin_person_id -> Int4,
21         post_id -> Int4,
22         reason -> Nullable<Text>,
23         when_ -> Timestamp,
24     }
25 }
26
27 diesel::table! {
28     admin_purge_community (id) {
29         id -> Int4,
30         admin_person_id -> Int4,
31         reason -> Nullable<Text>,
32         when_ -> Timestamp,
33     }
34 }
35
36 diesel::table! {
37     admin_purge_person (id) {
38         id -> Int4,
39         admin_person_id -> Int4,
40         reason -> Nullable<Text>,
41         when_ -> Timestamp,
42     }
43 }
44
45 diesel::table! {
46     admin_purge_post (id) {
47         id -> Int4,
48         admin_person_id -> Int4,
49         community_id -> Int4,
50         reason -> Nullable<Text>,
51         when_ -> Timestamp,
52     }
53 }
54
55 diesel::table! {
56     captcha_answer (id) {
57         id -> Int4,
58         uuid -> Uuid,
59         answer -> Text,
60         published -> Timestamp,
61     }
62 }
63
64 diesel::table! {
65     use diesel::sql_types::*;
66     use diesel_ltree::sql_types::Ltree;
67
68     comment (id) {
69         id -> Int4,
70         creator_id -> Int4,
71         post_id -> Int4,
72         content -> Text,
73         removed -> Bool,
74         published -> Timestamp,
75         updated -> Nullable<Timestamp>,
76         deleted -> Bool,
77         #[max_length = 255]
78         ap_id -> Varchar,
79         local -> Bool,
80         path -> Ltree,
81         distinguished -> Bool,
82         language_id -> Int4,
83     }
84 }
85
86 diesel::table! {
87     comment_aggregates (id) {
88         id -> Int4,
89         comment_id -> Int4,
90         score -> Int8,
91         upvotes -> Int8,
92         downvotes -> Int8,
93         published -> Timestamp,
94         child_count -> Int4,
95         hot_rank -> Int4,
96         controversy_rank -> Float8,
97     }
98 }
99
100 diesel::table! {
101     comment_like (id) {
102         id -> Int4,
103         person_id -> Int4,
104         comment_id -> Int4,
105         post_id -> Int4,
106         score -> Int2,
107         published -> Timestamp,
108     }
109 }
110
111 diesel::table! {
112     comment_reply (id) {
113         id -> Int4,
114         recipient_id -> Int4,
115         comment_id -> Int4,
116         read -> Bool,
117         published -> Timestamp,
118     }
119 }
120
121 diesel::table! {
122     comment_report (id) {
123         id -> Int4,
124         creator_id -> Int4,
125         comment_id -> Int4,
126         original_comment_text -> Text,
127         reason -> Text,
128         resolved -> Bool,
129         resolver_id -> Nullable<Int4>,
130         published -> Timestamp,
131         updated -> Nullable<Timestamp>,
132     }
133 }
134
135 diesel::table! {
136     comment_saved (id) {
137         id -> Int4,
138         comment_id -> Int4,
139         person_id -> Int4,
140         published -> Timestamp,
141     }
142 }
143
144 diesel::table! {
145     community (id) {
146         id -> Int4,
147         #[max_length = 255]
148         name -> Varchar,
149         #[max_length = 255]
150         title -> Varchar,
151         description -> Nullable<Text>,
152         removed -> Bool,
153         published -> Timestamp,
154         updated -> Nullable<Timestamp>,
155         deleted -> Bool,
156         nsfw -> Bool,
157         #[max_length = 255]
158         actor_id -> Varchar,
159         local -> Bool,
160         private_key -> Nullable<Text>,
161         public_key -> Text,
162         last_refreshed_at -> Timestamp,
163         icon -> Nullable<Text>,
164         banner -> Nullable<Text>,
165         #[max_length = 255]
166         followers_url -> Varchar,
167         #[max_length = 255]
168         inbox_url -> Varchar,
169         #[max_length = 255]
170         shared_inbox_url -> Nullable<Varchar>,
171         hidden -> Bool,
172         posting_restricted_to_mods -> Bool,
173         instance_id -> Int4,
174         #[max_length = 255]
175         moderators_url -> Nullable<Varchar>,
176         #[max_length = 255]
177         featured_url -> Nullable<Varchar>,
178     }
179 }
180
181 diesel::table! {
182     community_aggregates (id) {
183         id -> Int4,
184         community_id -> Int4,
185         subscribers -> Int8,
186         posts -> Int8,
187         comments -> Int8,
188         published -> Timestamp,
189         users_active_day -> Int8,
190         users_active_week -> Int8,
191         users_active_month -> Int8,
192         users_active_half_year -> Int8,
193         hot_rank -> Int4,
194     }
195 }
196
197 diesel::table! {
198     community_block (id) {
199         id -> Int4,
200         person_id -> Int4,
201         community_id -> Int4,
202         published -> Timestamp,
203     }
204 }
205
206 diesel::table! {
207     community_follower (id) {
208         id -> Int4,
209         community_id -> Int4,
210         person_id -> Int4,
211         published -> Timestamp,
212         pending -> Bool,
213     }
214 }
215
216 diesel::table! {
217     community_language (id) {
218         id -> Int4,
219         community_id -> Int4,
220         language_id -> Int4,
221     }
222 }
223
224 diesel::table! {
225     community_moderator (id) {
226         id -> Int4,
227         community_id -> Int4,
228         person_id -> Int4,
229         published -> Timestamp,
230     }
231 }
232
233 diesel::table! {
234     community_person_ban (id) {
235         id -> Int4,
236         community_id -> Int4,
237         person_id -> Int4,
238         published -> Timestamp,
239         expires -> Nullable<Timestamp>,
240     }
241 }
242
243 diesel::table! {
244     custom_emoji (id) {
245         id -> Int4,
246         local_site_id -> Int4,
247         #[max_length = 128]
248         shortcode -> Varchar,
249         image_url -> Text,
250         alt_text -> Text,
251         category -> Text,
252         published -> Timestamp,
253         updated -> Nullable<Timestamp>,
254     }
255 }
256
257 diesel::table! {
258     custom_emoji_keyword (id) {
259         id -> Int4,
260         custom_emoji_id -> Int4,
261         #[max_length = 128]
262         keyword -> Varchar,
263     }
264 }
265
266 diesel::table! {
267     email_verification (id) {
268         id -> Int4,
269         local_user_id -> Int4,
270         email -> Text,
271         verification_token -> Text,
272         published -> Timestamp,
273     }
274 }
275
276 diesel::table! {
277     federation_allowlist (id) {
278         id -> Int4,
279         instance_id -> Int4,
280         published -> Timestamp,
281         updated -> Nullable<Timestamp>,
282     }
283 }
284
285 diesel::table! {
286     federation_blocklist (id) {
287         id -> Int4,
288         instance_id -> Int4,
289         published -> Timestamp,
290         updated -> Nullable<Timestamp>,
291     }
292 }
293
294 diesel::table! {
295     instance (id) {
296         id -> Int4,
297         #[max_length = 255]
298         domain -> Varchar,
299         published -> Timestamp,
300         updated -> Nullable<Timestamp>,
301         #[max_length = 255]
302         software -> Nullable<Varchar>,
303         #[max_length = 255]
304         version -> Nullable<Varchar>,
305     }
306 }
307
308 diesel::table! {
309     language (id) {
310         id -> Int4,
311         #[max_length = 3]
312         code -> Varchar,
313         name -> Text,
314     }
315 }
316
317 diesel::table! {
318     use diesel::sql_types::*;
319     use super::sql_types::ListingTypeEnum;
320     use super::sql_types::RegistrationModeEnum;
321
322     local_site (id) {
323         id -> Int4,
324         site_id -> Int4,
325         site_setup -> Bool,
326         enable_downvotes -> Bool,
327         enable_federated_downvotes -> Bool,
328         enable_nsfw -> Bool,
329         community_creation_admin_only -> Bool,
330         require_email_verification -> Bool,
331         application_question -> Nullable<Text>,
332         private_instance -> Bool,
333         default_theme -> Text,
334         default_post_listing_type -> ListingTypeEnum,
335         legal_information -> Nullable<Text>,
336         hide_modlog_mod_names -> Bool,
337         application_email_admins -> Bool,
338         slur_filter_regex -> Nullable<Text>,
339         actor_name_max_length -> Int4,
340         federation_enabled -> Bool,
341         captcha_enabled -> Bool,
342         #[max_length = 255]
343         captcha_difficulty -> Varchar,
344         published -> Timestamp,
345         updated -> Nullable<Timestamp>,
346         registration_mode -> RegistrationModeEnum,
347         reports_email_admins -> Bool,
348     }
349 }
350
351 diesel::table! {
352     local_site_rate_limit (id) {
353         id -> Int4,
354         local_site_id -> Int4,
355         message -> Int4,
356         message_per_second -> Int4,
357         post -> Int4,
358         post_per_second -> Int4,
359         register -> Int4,
360         register_per_second -> Int4,
361         image -> Int4,
362         image_per_second -> Int4,
363         comment -> Int4,
364         comment_per_second -> Int4,
365         search -> Int4,
366         search_per_second -> Int4,
367         published -> Timestamp,
368         updated -> Nullable<Timestamp>,
369     }
370 }
371
372 diesel::table! {
373     use diesel::sql_types::*;
374     use super::sql_types::SortTypeEnum;
375     use super::sql_types::ListingTypeEnum;
376
377     local_user (id) {
378         id -> Int4,
379         person_id -> Int4,
380         password_encrypted -> Text,
381         email -> Nullable<Text>,
382         show_nsfw -> Bool,
383         theme -> Text,
384         default_sort_type -> SortTypeEnum,
385         default_listing_type -> ListingTypeEnum,
386         #[max_length = 20]
387         interface_language -> Varchar,
388         show_avatars -> Bool,
389         send_notifications_to_email -> Bool,
390         validator_time -> Timestamp,
391         show_scores -> Bool,
392         show_bot_accounts -> Bool,
393         show_read_posts -> Bool,
394         show_new_post_notifs -> Bool,
395         email_verified -> Bool,
396         accepted_application -> Bool,
397         totp_2fa_secret -> Nullable<Text>,
398         totp_2fa_url -> Nullable<Text>,
399         open_links_in_new_tab -> Bool,
400         blur_nsfw -> Bool,
401         auto_expand -> Bool,
402         infinite_scroll_enabled -> Bool,
403     }
404 }
405
406 diesel::table! {
407     local_user_language (id) {
408         id -> Int4,
409         local_user_id -> Int4,
410         language_id -> Int4,
411     }
412 }
413
414 diesel::table! {
415     mod_add (id) {
416         id -> Int4,
417         mod_person_id -> Int4,
418         other_person_id -> Int4,
419         removed -> Bool,
420         when_ -> Timestamp,
421     }
422 }
423
424 diesel::table! {
425     mod_add_community (id) {
426         id -> Int4,
427         mod_person_id -> Int4,
428         other_person_id -> Int4,
429         community_id -> Int4,
430         removed -> Bool,
431         when_ -> Timestamp,
432     }
433 }
434
435 diesel::table! {
436     mod_ban (id) {
437         id -> Int4,
438         mod_person_id -> Int4,
439         other_person_id -> Int4,
440         reason -> Nullable<Text>,
441         banned -> Bool,
442         expires -> Nullable<Timestamp>,
443         when_ -> Timestamp,
444     }
445 }
446
447 diesel::table! {
448     mod_ban_from_community (id) {
449         id -> Int4,
450         mod_person_id -> Int4,
451         other_person_id -> Int4,
452         community_id -> Int4,
453         reason -> Nullable<Text>,
454         banned -> Bool,
455         expires -> Nullable<Timestamp>,
456         when_ -> Timestamp,
457     }
458 }
459
460 diesel::table! {
461     mod_feature_post (id) {
462         id -> Int4,
463         mod_person_id -> Int4,
464         post_id -> Int4,
465         featured -> Bool,
466         when_ -> Timestamp,
467         is_featured_community -> Bool,
468     }
469 }
470
471 diesel::table! {
472     mod_hide_community (id) {
473         id -> Int4,
474         community_id -> Int4,
475         mod_person_id -> Int4,
476         when_ -> Timestamp,
477         reason -> Nullable<Text>,
478         hidden -> Bool,
479     }
480 }
481
482 diesel::table! {
483     mod_lock_post (id) {
484         id -> Int4,
485         mod_person_id -> Int4,
486         post_id -> Int4,
487         locked -> Bool,
488         when_ -> Timestamp,
489     }
490 }
491
492 diesel::table! {
493     mod_remove_comment (id) {
494         id -> Int4,
495         mod_person_id -> Int4,
496         comment_id -> Int4,
497         reason -> Nullable<Text>,
498         removed -> Bool,
499         when_ -> Timestamp,
500     }
501 }
502
503 diesel::table! {
504     mod_remove_community (id) {
505         id -> Int4,
506         mod_person_id -> Int4,
507         community_id -> Int4,
508         reason -> Nullable<Text>,
509         removed -> Bool,
510         expires -> Nullable<Timestamp>,
511         when_ -> Timestamp,
512     }
513 }
514
515 diesel::table! {
516     mod_remove_post (id) {
517         id -> Int4,
518         mod_person_id -> Int4,
519         post_id -> Int4,
520         reason -> Nullable<Text>,
521         removed -> Bool,
522         when_ -> Timestamp,
523     }
524 }
525
526 diesel::table! {
527     mod_transfer_community (id) {
528         id -> Int4,
529         mod_person_id -> Int4,
530         other_person_id -> Int4,
531         community_id -> Int4,
532         when_ -> Timestamp,
533     }
534 }
535
536 diesel::table! {
537     password_reset_request (id) {
538         id -> Int4,
539         token -> Text,
540         published -> Timestamp,
541         local_user_id -> Int4,
542     }
543 }
544
545 diesel::table! {
546     person (id) {
547         id -> Int4,
548         #[max_length = 255]
549         name -> Varchar,
550         #[max_length = 255]
551         display_name -> Nullable<Varchar>,
552         avatar -> Nullable<Text>,
553         banned -> Bool,
554         published -> Timestamp,
555         updated -> Nullable<Timestamp>,
556         #[max_length = 255]
557         actor_id -> Varchar,
558         bio -> Nullable<Text>,
559         local -> Bool,
560         private_key -> Nullable<Text>,
561         public_key -> Text,
562         last_refreshed_at -> Timestamp,
563         banner -> Nullable<Text>,
564         deleted -> Bool,
565         #[max_length = 255]
566         inbox_url -> Varchar,
567         #[max_length = 255]
568         shared_inbox_url -> Nullable<Varchar>,
569         matrix_user_id -> Nullable<Text>,
570         admin -> Bool,
571         bot_account -> Bool,
572         ban_expires -> Nullable<Timestamp>,
573         instance_id -> Int4,
574     }
575 }
576
577 diesel::table! {
578     person_aggregates (id) {
579         id -> Int4,
580         person_id -> Int4,
581         post_count -> Int8,
582         post_score -> Int8,
583         comment_count -> Int8,
584         comment_score -> Int8,
585     }
586 }
587
588 diesel::table! {
589     person_ban (id) {
590         id -> Int4,
591         person_id -> Int4,
592         published -> Timestamp,
593     }
594 }
595
596 diesel::table! {
597     person_block (id) {
598         id -> Int4,
599         person_id -> Int4,
600         target_id -> Int4,
601         published -> Timestamp,
602     }
603 }
604
605 diesel::table! {
606     person_follower (id) {
607         id -> Int4,
608         person_id -> Int4,
609         follower_id -> Int4,
610         published -> Timestamp,
611         pending -> Bool,
612     }
613 }
614
615 diesel::table! {
616     person_mention (id) {
617         id -> Int4,
618         recipient_id -> Int4,
619         comment_id -> Int4,
620         read -> Bool,
621         published -> Timestamp,
622     }
623 }
624
625 diesel::table! {
626     person_post_aggregates (id) {
627         id -> Int4,
628         person_id -> Int4,
629         post_id -> Int4,
630         read_comments -> Int8,
631         published -> Timestamp,
632     }
633 }
634
635 diesel::table! {
636     post (id) {
637         id -> Int4,
638         #[max_length = 200]
639         name -> Varchar,
640         #[max_length = 512]
641         url -> Nullable<Varchar>,
642         body -> Nullable<Text>,
643         creator_id -> Int4,
644         community_id -> Int4,
645         removed -> Bool,
646         locked -> Bool,
647         published -> Timestamp,
648         updated -> Nullable<Timestamp>,
649         deleted -> Bool,
650         nsfw -> Bool,
651         embed_title -> Nullable<Text>,
652         embed_description -> Nullable<Text>,
653         thumbnail_url -> Nullable<Text>,
654         #[max_length = 255]
655         ap_id -> Varchar,
656         local -> Bool,
657         embed_video_url -> Nullable<Text>,
658         language_id -> Int4,
659         featured_community -> Bool,
660         featured_local -> Bool,
661     }
662 }
663
664 diesel::table! {
665     post_aggregates (id) {
666         id -> Int4,
667         post_id -> Int4,
668         comments -> Int8,
669         score -> Int8,
670         upvotes -> Int8,
671         downvotes -> Int8,
672         published -> Timestamp,
673         newest_comment_time_necro -> Timestamp,
674         newest_comment_time -> Timestamp,
675         featured_community -> Bool,
676         featured_local -> Bool,
677         hot_rank -> Int4,
678         hot_rank_active -> Int4,
679         community_id -> Int4,
680         creator_id -> Int4,
681         controversy_rank -> Float8,
682     }
683 }
684
685 diesel::table! {
686     post_like (id) {
687         id -> Int4,
688         post_id -> Int4,
689         person_id -> Int4,
690         score -> Int2,
691         published -> Timestamp,
692     }
693 }
694
695 diesel::table! {
696     post_read (id) {
697         id -> Int4,
698         post_id -> Int4,
699         person_id -> Int4,
700         published -> Timestamp,
701     }
702 }
703
704 diesel::table! {
705     post_report (id) {
706         id -> Int4,
707         creator_id -> Int4,
708         post_id -> Int4,
709         #[max_length = 200]
710         original_post_name -> Varchar,
711         original_post_url -> Nullable<Text>,
712         original_post_body -> Nullable<Text>,
713         reason -> Text,
714         resolved -> Bool,
715         resolver_id -> Nullable<Int4>,
716         published -> Timestamp,
717         updated -> Nullable<Timestamp>,
718     }
719 }
720
721 diesel::table! {
722     post_saved (id) {
723         id -> Int4,
724         post_id -> Int4,
725         person_id -> Int4,
726         published -> Timestamp,
727     }
728 }
729
730 diesel::table! {
731     private_message (id) {
732         id -> Int4,
733         creator_id -> Int4,
734         recipient_id -> Int4,
735         content -> Text,
736         deleted -> Bool,
737         read -> Bool,
738         published -> Timestamp,
739         updated -> Nullable<Timestamp>,
740         #[max_length = 255]
741         ap_id -> Varchar,
742         local -> Bool,
743     }
744 }
745
746 diesel::table! {
747     private_message_report (id) {
748         id -> Int4,
749         creator_id -> Int4,
750         private_message_id -> Int4,
751         original_pm_text -> Text,
752         reason -> Text,
753         resolved -> Bool,
754         resolver_id -> Nullable<Int4>,
755         published -> Timestamp,
756         updated -> Nullable<Timestamp>,
757     }
758 }
759
760 diesel::table! {
761     received_activity (id) {
762         id -> Int8,
763         ap_id -> Text,
764         published -> Timestamp,
765     }
766 }
767
768 diesel::table! {
769     registration_application (id) {
770         id -> Int4,
771         local_user_id -> Int4,
772         answer -> Text,
773         admin_id -> Nullable<Int4>,
774         deny_reason -> Nullable<Text>,
775         published -> Timestamp,
776     }
777 }
778
779 diesel::table! {
780     secret (id) {
781         id -> Int4,
782         jwt_secret -> Varchar,
783     }
784 }
785
786 diesel::table! {
787     sent_activity (id) {
788         id -> Int8,
789         ap_id -> Text,
790         data -> Json,
791         sensitive -> Bool,
792         published -> Timestamp,
793     }
794 }
795
796 diesel::table! {
797     site (id) {
798         id -> Int4,
799         #[max_length = 20]
800         name -> Varchar,
801         sidebar -> Nullable<Text>,
802         published -> Timestamp,
803         updated -> Nullable<Timestamp>,
804         icon -> Nullable<Text>,
805         banner -> Nullable<Text>,
806         #[max_length = 150]
807         description -> Nullable<Varchar>,
808         #[max_length = 255]
809         actor_id -> Varchar,
810         last_refreshed_at -> Timestamp,
811         #[max_length = 255]
812         inbox_url -> Varchar,
813         private_key -> Nullable<Text>,
814         public_key -> Text,
815         instance_id -> Int4,
816     }
817 }
818
819 diesel::table! {
820     site_aggregates (id) {
821         id -> Int4,
822         site_id -> Int4,
823         users -> Int8,
824         posts -> Int8,
825         comments -> Int8,
826         communities -> Int8,
827         users_active_day -> Int8,
828         users_active_week -> Int8,
829         users_active_month -> Int8,
830         users_active_half_year -> Int8,
831     }
832 }
833
834 diesel::table! {
835     site_language (id) {
836         id -> Int4,
837         site_id -> Int4,
838         language_id -> Int4,
839     }
840 }
841
842 diesel::table! {
843     tagline (id) {
844         id -> Int4,
845         local_site_id -> Int4,
846         content -> Text,
847         published -> Timestamp,
848         updated -> Nullable<Timestamp>,
849     }
850 }
851
852 diesel::joinable!(admin_purge_comment -> person (admin_person_id));
853 diesel::joinable!(admin_purge_comment -> post (post_id));
854 diesel::joinable!(admin_purge_community -> person (admin_person_id));
855 diesel::joinable!(admin_purge_person -> person (admin_person_id));
856 diesel::joinable!(admin_purge_post -> community (community_id));
857 diesel::joinable!(admin_purge_post -> person (admin_person_id));
858 diesel::joinable!(comment -> language (language_id));
859 diesel::joinable!(comment -> person (creator_id));
860 diesel::joinable!(comment -> post (post_id));
861 diesel::joinable!(comment_aggregates -> comment (comment_id));
862 diesel::joinable!(comment_like -> comment (comment_id));
863 diesel::joinable!(comment_like -> person (person_id));
864 diesel::joinable!(comment_like -> post (post_id));
865 diesel::joinable!(comment_reply -> comment (comment_id));
866 diesel::joinable!(comment_reply -> person (recipient_id));
867 diesel::joinable!(comment_report -> comment (comment_id));
868 diesel::joinable!(comment_saved -> comment (comment_id));
869 diesel::joinable!(comment_saved -> person (person_id));
870 diesel::joinable!(community -> instance (instance_id));
871 diesel::joinable!(community_aggregates -> community (community_id));
872 diesel::joinable!(community_block -> community (community_id));
873 diesel::joinable!(community_block -> person (person_id));
874 diesel::joinable!(community_follower -> community (community_id));
875 diesel::joinable!(community_follower -> person (person_id));
876 diesel::joinable!(community_language -> community (community_id));
877 diesel::joinable!(community_language -> language (language_id));
878 diesel::joinable!(community_moderator -> community (community_id));
879 diesel::joinable!(community_moderator -> person (person_id));
880 diesel::joinable!(community_person_ban -> community (community_id));
881 diesel::joinable!(community_person_ban -> person (person_id));
882 diesel::joinable!(custom_emoji -> local_site (local_site_id));
883 diesel::joinable!(custom_emoji_keyword -> custom_emoji (custom_emoji_id));
884 diesel::joinable!(email_verification -> local_user (local_user_id));
885 diesel::joinable!(federation_allowlist -> instance (instance_id));
886 diesel::joinable!(federation_blocklist -> instance (instance_id));
887 diesel::joinable!(local_site -> site (site_id));
888 diesel::joinable!(local_site_rate_limit -> local_site (local_site_id));
889 diesel::joinable!(local_user -> person (person_id));
890 diesel::joinable!(local_user_language -> language (language_id));
891 diesel::joinable!(local_user_language -> local_user (local_user_id));
892 diesel::joinable!(mod_add_community -> community (community_id));
893 diesel::joinable!(mod_ban_from_community -> community (community_id));
894 diesel::joinable!(mod_feature_post -> person (mod_person_id));
895 diesel::joinable!(mod_feature_post -> post (post_id));
896 diesel::joinable!(mod_hide_community -> community (community_id));
897 diesel::joinable!(mod_hide_community -> person (mod_person_id));
898 diesel::joinable!(mod_lock_post -> person (mod_person_id));
899 diesel::joinable!(mod_lock_post -> post (post_id));
900 diesel::joinable!(mod_remove_comment -> comment (comment_id));
901 diesel::joinable!(mod_remove_comment -> person (mod_person_id));
902 diesel::joinable!(mod_remove_community -> community (community_id));
903 diesel::joinable!(mod_remove_community -> person (mod_person_id));
904 diesel::joinable!(mod_remove_post -> person (mod_person_id));
905 diesel::joinable!(mod_remove_post -> post (post_id));
906 diesel::joinable!(mod_transfer_community -> community (community_id));
907 diesel::joinable!(password_reset_request -> local_user (local_user_id));
908 diesel::joinable!(person -> instance (instance_id));
909 diesel::joinable!(person_aggregates -> person (person_id));
910 diesel::joinable!(person_ban -> person (person_id));
911 diesel::joinable!(person_mention -> comment (comment_id));
912 diesel::joinable!(person_mention -> person (recipient_id));
913 diesel::joinable!(person_post_aggregates -> person (person_id));
914 diesel::joinable!(person_post_aggregates -> post (post_id));
915 diesel::joinable!(post -> community (community_id));
916 diesel::joinable!(post -> language (language_id));
917 diesel::joinable!(post -> person (creator_id));
918 diesel::joinable!(post_aggregates -> community (community_id));
919 diesel::joinable!(post_aggregates -> person (creator_id));
920 diesel::joinable!(post_aggregates -> post (post_id));
921 diesel::joinable!(post_like -> person (person_id));
922 diesel::joinable!(post_like -> post (post_id));
923 diesel::joinable!(post_read -> person (person_id));
924 diesel::joinable!(post_read -> post (post_id));
925 diesel::joinable!(post_report -> post (post_id));
926 diesel::joinable!(post_saved -> person (person_id));
927 diesel::joinable!(post_saved -> post (post_id));
928 diesel::joinable!(private_message_report -> private_message (private_message_id));
929 diesel::joinable!(registration_application -> local_user (local_user_id));
930 diesel::joinable!(registration_application -> person (admin_id));
931 diesel::joinable!(site -> instance (instance_id));
932 diesel::joinable!(site_aggregates -> site (site_id));
933 diesel::joinable!(site_language -> language (language_id));
934 diesel::joinable!(site_language -> site (site_id));
935 diesel::joinable!(tagline -> local_site (local_site_id));
936
937 diesel::allow_tables_to_appear_in_same_query!(
938   admin_purge_comment,
939   admin_purge_community,
940   admin_purge_person,
941   admin_purge_post,
942   captcha_answer,
943   comment,
944   comment_aggregates,
945   comment_like,
946   comment_reply,
947   comment_report,
948   comment_saved,
949   community,
950   community_aggregates,
951   community_block,
952   community_follower,
953   community_language,
954   community_moderator,
955   community_person_ban,
956   custom_emoji,
957   custom_emoji_keyword,
958   email_verification,
959   federation_allowlist,
960   federation_blocklist,
961   instance,
962   language,
963   local_site,
964   local_site_rate_limit,
965   local_user,
966   local_user_language,
967   mod_add,
968   mod_add_community,
969   mod_ban,
970   mod_ban_from_community,
971   mod_feature_post,
972   mod_hide_community,
973   mod_lock_post,
974   mod_remove_comment,
975   mod_remove_community,
976   mod_remove_post,
977   mod_transfer_community,
978   password_reset_request,
979   person,
980   person_aggregates,
981   person_ban,
982   person_block,
983   person_follower,
984   person_mention,
985   person_post_aggregates,
986   post,
987   post_aggregates,
988   post_like,
989   post_read,
990   post_report,
991   post_saved,
992   private_message,
993   private_message_report,
994   received_activity,
995   registration_application,
996   secret,
997   sent_activity,
998   site,
999   site_aggregates,
1000   site_language,
1001   tagline,
1002 );