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