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