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