@openpeepshq/core 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4663 @@
1
+ {
2
+ "id": "323109c5-d6e0-435d-b254-14a969464115",
3
+ "prevId": "cf3c93e7-d862-445f-b74b-6da4dfe23c66",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.access_tokens": {
8
+ "name": "access_tokens",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "body": {
18
+ "name": "body",
19
+ "type": "jsonb",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "default": "'{}'::jsonb"
23
+ },
24
+ "created_at": {
25
+ "name": "created_at",
26
+ "type": "timestamp with time zone",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "default": "now()"
30
+ },
31
+ "updated_at": {
32
+ "name": "updated_at",
33
+ "type": "timestamp with time zone",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "default": "now()"
37
+ },
38
+ "deleted_at": {
39
+ "name": "deleted_at",
40
+ "type": "timestamp with time zone",
41
+ "primaryKey": false,
42
+ "notNull": false
43
+ }
44
+ },
45
+ "indexes": {},
46
+ "foreignKeys": {},
47
+ "compositePrimaryKeys": {},
48
+ "uniqueConstraints": {},
49
+ "policies": {},
50
+ "checkConstraints": {},
51
+ "isRLSEnabled": false
52
+ },
53
+ "public.accounts": {
54
+ "name": "accounts",
55
+ "schema": "",
56
+ "columns": {
57
+ "id": {
58
+ "name": "id",
59
+ "type": "uuid",
60
+ "primaryKey": true,
61
+ "notNull": true
62
+ },
63
+ "email": {
64
+ "name": "email",
65
+ "type": "text",
66
+ "primaryKey": false,
67
+ "notNull": true
68
+ },
69
+ "password_hash": {
70
+ "name": "password_hash",
71
+ "type": "text",
72
+ "primaryKey": false,
73
+ "notNull": true
74
+ },
75
+ "email_validated": {
76
+ "name": "email_validated",
77
+ "type": "boolean",
78
+ "primaryKey": false,
79
+ "notNull": true,
80
+ "default": false
81
+ },
82
+ "guest": {
83
+ "name": "guest",
84
+ "type": "boolean",
85
+ "primaryKey": false,
86
+ "notNull": false
87
+ },
88
+ "created_at": {
89
+ "name": "created_at",
90
+ "type": "timestamp with time zone",
91
+ "primaryKey": false,
92
+ "notNull": true,
93
+ "default": "now()"
94
+ },
95
+ "updated_at": {
96
+ "name": "updated_at",
97
+ "type": "timestamp with time zone",
98
+ "primaryKey": false,
99
+ "notNull": true,
100
+ "default": "now()"
101
+ },
102
+ "deleted_at": {
103
+ "name": "deleted_at",
104
+ "type": "timestamp with time zone",
105
+ "primaryKey": false,
106
+ "notNull": false
107
+ }
108
+ },
109
+ "indexes": {
110
+ "accounts_email_unique": {
111
+ "name": "accounts_email_unique",
112
+ "columns": [
113
+ {
114
+ "expression": "email",
115
+ "isExpression": false,
116
+ "asc": true,
117
+ "nulls": "last"
118
+ }
119
+ ],
120
+ "isUnique": true,
121
+ "concurrently": false,
122
+ "method": "btree",
123
+ "with": {}
124
+ }
125
+ },
126
+ "foreignKeys": {},
127
+ "compositePrimaryKeys": {},
128
+ "uniqueConstraints": {},
129
+ "policies": {},
130
+ "checkConstraints": {},
131
+ "isRLSEnabled": false
132
+ },
133
+ "public.ap_activities": {
134
+ "name": "ap_activities",
135
+ "schema": "",
136
+ "columns": {
137
+ "uri": {
138
+ "name": "uri",
139
+ "type": "text",
140
+ "primaryKey": true,
141
+ "notNull": true
142
+ },
143
+ "type": {
144
+ "name": "type",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true
148
+ },
149
+ "actor_uri": {
150
+ "name": "actor_uri",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": true
154
+ },
155
+ "object_uri": {
156
+ "name": "object_uri",
157
+ "type": "text",
158
+ "primaryKey": false,
159
+ "notNull": false
160
+ },
161
+ "direction": {
162
+ "name": "direction",
163
+ "type": "text",
164
+ "primaryKey": false,
165
+ "notNull": true
166
+ },
167
+ "created_at": {
168
+ "name": "created_at",
169
+ "type": "timestamp with time zone",
170
+ "primaryKey": false,
171
+ "notNull": true,
172
+ "default": "now()"
173
+ }
174
+ },
175
+ "indexes": {},
176
+ "foreignKeys": {},
177
+ "compositePrimaryKeys": {},
178
+ "uniqueConstraints": {},
179
+ "policies": {},
180
+ "checkConstraints": {},
181
+ "isRLSEnabled": false
182
+ },
183
+ "public.configs": {
184
+ "name": "configs",
185
+ "schema": "",
186
+ "columns": {
187
+ "key": {
188
+ "name": "key",
189
+ "type": "text",
190
+ "primaryKey": true,
191
+ "notNull": true
192
+ },
193
+ "body": {
194
+ "name": "body",
195
+ "type": "jsonb",
196
+ "primaryKey": false,
197
+ "notNull": true
198
+ },
199
+ "created_at": {
200
+ "name": "created_at",
201
+ "type": "timestamp with time zone",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "default": "now()"
205
+ },
206
+ "updated_at": {
207
+ "name": "updated_at",
208
+ "type": "timestamp with time zone",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "default": "now()"
212
+ },
213
+ "deleted_at": {
214
+ "name": "deleted_at",
215
+ "type": "timestamp with time zone",
216
+ "primaryKey": false,
217
+ "notNull": false
218
+ }
219
+ },
220
+ "indexes": {},
221
+ "foreignKeys": {},
222
+ "compositePrimaryKeys": {},
223
+ "uniqueConstraints": {},
224
+ "policies": {},
225
+ "checkConstraints": {},
226
+ "isRLSEnabled": false
227
+ },
228
+ "public.event_occurrences": {
229
+ "name": "event_occurrences",
230
+ "schema": "",
231
+ "columns": {
232
+ "id": {
233
+ "name": "id",
234
+ "type": "uuid",
235
+ "primaryKey": true,
236
+ "notNull": true
237
+ },
238
+ "post_id": {
239
+ "name": "post_id",
240
+ "type": "uuid",
241
+ "primaryKey": false,
242
+ "notNull": true
243
+ },
244
+ "recurrence_id": {
245
+ "name": "recurrence_id",
246
+ "type": "timestamp with time zone",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ },
250
+ "start": {
251
+ "name": "start",
252
+ "type": "timestamp with time zone",
253
+ "primaryKey": false,
254
+ "notNull": true
255
+ },
256
+ "end": {
257
+ "name": "end",
258
+ "type": "timestamp with time zone",
259
+ "primaryKey": false,
260
+ "notNull": false
261
+ },
262
+ "cancelled": {
263
+ "name": "cancelled",
264
+ "type": "boolean",
265
+ "primaryKey": false,
266
+ "notNull": true,
267
+ "default": false
268
+ },
269
+ "created_at": {
270
+ "name": "created_at",
271
+ "type": "timestamp with time zone",
272
+ "primaryKey": false,
273
+ "notNull": true,
274
+ "default": "now()"
275
+ },
276
+ "updated_at": {
277
+ "name": "updated_at",
278
+ "type": "timestamp with time zone",
279
+ "primaryKey": false,
280
+ "notNull": true,
281
+ "default": "now()"
282
+ }
283
+ },
284
+ "indexes": {
285
+ "event_occurrences_post_recurrence": {
286
+ "name": "event_occurrences_post_recurrence",
287
+ "columns": [
288
+ {
289
+ "expression": "post_id",
290
+ "isExpression": false,
291
+ "asc": true,
292
+ "nulls": "last"
293
+ },
294
+ {
295
+ "expression": "recurrence_id",
296
+ "isExpression": false,
297
+ "asc": true,
298
+ "nulls": "last"
299
+ }
300
+ ],
301
+ "isUnique": true,
302
+ "concurrently": false,
303
+ "method": "btree",
304
+ "with": {}
305
+ },
306
+ "event_occurrences_start_idx": {
307
+ "name": "event_occurrences_start_idx",
308
+ "columns": [
309
+ {
310
+ "expression": "start",
311
+ "isExpression": false,
312
+ "asc": true,
313
+ "nulls": "last"
314
+ }
315
+ ],
316
+ "isUnique": false,
317
+ "concurrently": false,
318
+ "method": "btree",
319
+ "with": {}
320
+ },
321
+ "event_occurrences_post_idx": {
322
+ "name": "event_occurrences_post_idx",
323
+ "columns": [
324
+ {
325
+ "expression": "post_id",
326
+ "isExpression": false,
327
+ "asc": true,
328
+ "nulls": "last"
329
+ }
330
+ ],
331
+ "isUnique": false,
332
+ "concurrently": false,
333
+ "method": "btree",
334
+ "with": {}
335
+ }
336
+ },
337
+ "foreignKeys": {},
338
+ "compositePrimaryKeys": {},
339
+ "uniqueConstraints": {},
340
+ "policies": {},
341
+ "checkConstraints": {},
342
+ "isRLSEnabled": false
343
+ },
344
+ "public.groups": {
345
+ "name": "groups",
346
+ "schema": "",
347
+ "columns": {
348
+ "id": {
349
+ "name": "id",
350
+ "type": "uuid",
351
+ "primaryKey": true,
352
+ "notNull": true
353
+ },
354
+ "handle": {
355
+ "name": "handle",
356
+ "type": "text",
357
+ "primaryKey": false,
358
+ "notNull": true
359
+ },
360
+ "body": {
361
+ "name": "body",
362
+ "type": "jsonb",
363
+ "primaryKey": false,
364
+ "notNull": true,
365
+ "default": "'{}'::jsonb"
366
+ },
367
+ "search_vector": {
368
+ "name": "search_vector",
369
+ "type": "tsvector",
370
+ "primaryKey": false,
371
+ "notNull": false
372
+ },
373
+ "created_at": {
374
+ "name": "created_at",
375
+ "type": "timestamp with time zone",
376
+ "primaryKey": false,
377
+ "notNull": true,
378
+ "default": "now()"
379
+ },
380
+ "updated_at": {
381
+ "name": "updated_at",
382
+ "type": "timestamp with time zone",
383
+ "primaryKey": false,
384
+ "notNull": true,
385
+ "default": "now()"
386
+ },
387
+ "deleted_at": {
388
+ "name": "deleted_at",
389
+ "type": "timestamp with time zone",
390
+ "primaryKey": false,
391
+ "notNull": false
392
+ }
393
+ },
394
+ "indexes": {
395
+ "groups_handle_unique": {
396
+ "name": "groups_handle_unique",
397
+ "columns": [
398
+ {
399
+ "expression": "handle",
400
+ "isExpression": false,
401
+ "asc": true,
402
+ "nulls": "last"
403
+ }
404
+ ],
405
+ "isUnique": true,
406
+ "concurrently": false,
407
+ "method": "btree",
408
+ "with": {}
409
+ },
410
+ "groups_search_vector_idx": {
411
+ "name": "groups_search_vector_idx",
412
+ "columns": [
413
+ {
414
+ "expression": "search_vector",
415
+ "isExpression": false,
416
+ "asc": true,
417
+ "nulls": "last"
418
+ }
419
+ ],
420
+ "isUnique": false,
421
+ "concurrently": false,
422
+ "method": "gin",
423
+ "with": {}
424
+ }
425
+ },
426
+ "foreignKeys": {},
427
+ "compositePrimaryKeys": {},
428
+ "uniqueConstraints": {},
429
+ "policies": {},
430
+ "checkConstraints": {},
431
+ "isRLSEnabled": false
432
+ },
433
+ "public.hashtags": {
434
+ "name": "hashtags",
435
+ "schema": "",
436
+ "columns": {
437
+ "id": {
438
+ "name": "id",
439
+ "type": "uuid",
440
+ "primaryKey": true,
441
+ "notNull": true
442
+ },
443
+ "name": {
444
+ "name": "name",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "created_at": {
450
+ "name": "created_at",
451
+ "type": "timestamp with time zone",
452
+ "primaryKey": false,
453
+ "notNull": true,
454
+ "default": "now()"
455
+ },
456
+ "updated_at": {
457
+ "name": "updated_at",
458
+ "type": "timestamp with time zone",
459
+ "primaryKey": false,
460
+ "notNull": true,
461
+ "default": "now()"
462
+ },
463
+ "deleted_at": {
464
+ "name": "deleted_at",
465
+ "type": "timestamp with time zone",
466
+ "primaryKey": false,
467
+ "notNull": false
468
+ }
469
+ },
470
+ "indexes": {
471
+ "hashtags_name_unique": {
472
+ "name": "hashtags_name_unique",
473
+ "columns": [
474
+ {
475
+ "expression": "name",
476
+ "isExpression": false,
477
+ "asc": true,
478
+ "nulls": "last"
479
+ }
480
+ ],
481
+ "isUnique": true,
482
+ "concurrently": false,
483
+ "method": "btree",
484
+ "with": {}
485
+ }
486
+ },
487
+ "foreignKeys": {},
488
+ "compositePrimaryKeys": {},
489
+ "uniqueConstraints": {},
490
+ "policies": {},
491
+ "checkConstraints": {},
492
+ "isRLSEnabled": false
493
+ },
494
+ "public.i18n": {
495
+ "name": "i18n",
496
+ "schema": "",
497
+ "columns": {
498
+ "id": {
499
+ "name": "id",
500
+ "type": "uuid",
501
+ "primaryKey": true,
502
+ "notNull": true
503
+ },
504
+ "locale": {
505
+ "name": "locale",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": true
509
+ },
510
+ "namespace": {
511
+ "name": "namespace",
512
+ "type": "text",
513
+ "primaryKey": false,
514
+ "notNull": true
515
+ },
516
+ "body": {
517
+ "name": "body",
518
+ "type": "jsonb",
519
+ "primaryKey": false,
520
+ "notNull": true
521
+ },
522
+ "created_at": {
523
+ "name": "created_at",
524
+ "type": "timestamp with time zone",
525
+ "primaryKey": false,
526
+ "notNull": true,
527
+ "default": "now()"
528
+ },
529
+ "updated_at": {
530
+ "name": "updated_at",
531
+ "type": "timestamp with time zone",
532
+ "primaryKey": false,
533
+ "notNull": true,
534
+ "default": "now()"
535
+ },
536
+ "deleted_at": {
537
+ "name": "deleted_at",
538
+ "type": "timestamp with time zone",
539
+ "primaryKey": false,
540
+ "notNull": false
541
+ }
542
+ },
543
+ "indexes": {
544
+ "i18n_locale_namespace": {
545
+ "name": "i18n_locale_namespace",
546
+ "columns": [
547
+ {
548
+ "expression": "locale",
549
+ "isExpression": false,
550
+ "asc": true,
551
+ "nulls": "last"
552
+ },
553
+ {
554
+ "expression": "namespace",
555
+ "isExpression": false,
556
+ "asc": true,
557
+ "nulls": "last"
558
+ }
559
+ ],
560
+ "isUnique": true,
561
+ "concurrently": false,
562
+ "method": "btree",
563
+ "with": {}
564
+ }
565
+ },
566
+ "foreignKeys": {},
567
+ "compositePrimaryKeys": {},
568
+ "uniqueConstraints": {},
569
+ "policies": {},
570
+ "checkConstraints": {},
571
+ "isRLSEnabled": false
572
+ },
573
+ "public.invite_links": {
574
+ "name": "invite_links",
575
+ "schema": "",
576
+ "columns": {
577
+ "id": {
578
+ "name": "id",
579
+ "type": "uuid",
580
+ "primaryKey": true,
581
+ "notNull": true
582
+ },
583
+ "slug": {
584
+ "name": "slug",
585
+ "type": "text",
586
+ "primaryKey": false,
587
+ "notNull": true
588
+ },
589
+ "body": {
590
+ "name": "body",
591
+ "type": "jsonb",
592
+ "primaryKey": false,
593
+ "notNull": true,
594
+ "default": "'{}'::jsonb"
595
+ },
596
+ "created_at": {
597
+ "name": "created_at",
598
+ "type": "timestamp with time zone",
599
+ "primaryKey": false,
600
+ "notNull": true,
601
+ "default": "now()"
602
+ },
603
+ "updated_at": {
604
+ "name": "updated_at",
605
+ "type": "timestamp with time zone",
606
+ "primaryKey": false,
607
+ "notNull": true,
608
+ "default": "now()"
609
+ },
610
+ "deleted_at": {
611
+ "name": "deleted_at",
612
+ "type": "timestamp with time zone",
613
+ "primaryKey": false,
614
+ "notNull": false
615
+ }
616
+ },
617
+ "indexes": {
618
+ "invite_links_slug_unique": {
619
+ "name": "invite_links_slug_unique",
620
+ "columns": [
621
+ {
622
+ "expression": "slug",
623
+ "isExpression": false,
624
+ "asc": true,
625
+ "nulls": "last"
626
+ }
627
+ ],
628
+ "isUnique": true,
629
+ "concurrently": false,
630
+ "method": "btree",
631
+ "with": {}
632
+ }
633
+ },
634
+ "foreignKeys": {},
635
+ "compositePrimaryKeys": {},
636
+ "uniqueConstraints": {},
637
+ "policies": {},
638
+ "checkConstraints": {},
639
+ "isRLSEnabled": false
640
+ },
641
+ "public.jam_events": {
642
+ "name": "jam_events",
643
+ "schema": "",
644
+ "columns": {
645
+ "id": {
646
+ "name": "id",
647
+ "type": "uuid",
648
+ "primaryKey": true,
649
+ "notNull": true
650
+ },
651
+ "post_id": {
652
+ "name": "post_id",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": true
656
+ },
657
+ "body": {
658
+ "name": "body",
659
+ "type": "jsonb",
660
+ "primaryKey": false,
661
+ "notNull": true,
662
+ "default": "'{}'::jsonb"
663
+ },
664
+ "created_at": {
665
+ "name": "created_at",
666
+ "type": "timestamp with time zone",
667
+ "primaryKey": false,
668
+ "notNull": true,
669
+ "default": "now()"
670
+ },
671
+ "updated_at": {
672
+ "name": "updated_at",
673
+ "type": "timestamp with time zone",
674
+ "primaryKey": false,
675
+ "notNull": true,
676
+ "default": "now()"
677
+ },
678
+ "deleted_at": {
679
+ "name": "deleted_at",
680
+ "type": "timestamp with time zone",
681
+ "primaryKey": false,
682
+ "notNull": false
683
+ }
684
+ },
685
+ "indexes": {
686
+ "jam_events_post_idx": {
687
+ "name": "jam_events_post_idx",
688
+ "columns": [
689
+ {
690
+ "expression": "post_id",
691
+ "isExpression": false,
692
+ "asc": true,
693
+ "nulls": "last"
694
+ }
695
+ ],
696
+ "isUnique": false,
697
+ "concurrently": false,
698
+ "method": "btree",
699
+ "with": {}
700
+ }
701
+ },
702
+ "foreignKeys": {},
703
+ "compositePrimaryKeys": {},
704
+ "uniqueConstraints": {},
705
+ "policies": {},
706
+ "checkConstraints": {},
707
+ "isRLSEnabled": false
708
+ },
709
+ "public.media_attachments": {
710
+ "name": "media_attachments",
711
+ "schema": "",
712
+ "columns": {
713
+ "id": {
714
+ "name": "id",
715
+ "type": "uuid",
716
+ "primaryKey": true,
717
+ "notNull": true
718
+ },
719
+ "body": {
720
+ "name": "body",
721
+ "type": "jsonb",
722
+ "primaryKey": false,
723
+ "notNull": true,
724
+ "default": "'{}'::jsonb"
725
+ },
726
+ "created_at": {
727
+ "name": "created_at",
728
+ "type": "timestamp with time zone",
729
+ "primaryKey": false,
730
+ "notNull": true,
731
+ "default": "now()"
732
+ },
733
+ "updated_at": {
734
+ "name": "updated_at",
735
+ "type": "timestamp with time zone",
736
+ "primaryKey": false,
737
+ "notNull": true,
738
+ "default": "now()"
739
+ },
740
+ "deleted_at": {
741
+ "name": "deleted_at",
742
+ "type": "timestamp with time zone",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ }
746
+ },
747
+ "indexes": {},
748
+ "foreignKeys": {},
749
+ "compositePrimaryKeys": {},
750
+ "uniqueConstraints": {},
751
+ "policies": {},
752
+ "checkConstraints": {},
753
+ "isRLSEnabled": false
754
+ },
755
+ "public.notifications": {
756
+ "name": "notifications",
757
+ "schema": "",
758
+ "columns": {
759
+ "id": {
760
+ "name": "id",
761
+ "type": "uuid",
762
+ "primaryKey": true,
763
+ "notNull": true
764
+ },
765
+ "profile_id": {
766
+ "name": "profile_id",
767
+ "type": "text",
768
+ "primaryKey": false,
769
+ "notNull": true
770
+ },
771
+ "body": {
772
+ "name": "body",
773
+ "type": "jsonb",
774
+ "primaryKey": false,
775
+ "notNull": true,
776
+ "default": "'{}'::jsonb"
777
+ },
778
+ "created_at": {
779
+ "name": "created_at",
780
+ "type": "timestamp with time zone",
781
+ "primaryKey": false,
782
+ "notNull": true,
783
+ "default": "now()"
784
+ },
785
+ "updated_at": {
786
+ "name": "updated_at",
787
+ "type": "timestamp with time zone",
788
+ "primaryKey": false,
789
+ "notNull": true,
790
+ "default": "now()"
791
+ },
792
+ "deleted_at": {
793
+ "name": "deleted_at",
794
+ "type": "timestamp with time zone",
795
+ "primaryKey": false,
796
+ "notNull": false
797
+ }
798
+ },
799
+ "indexes": {
800
+ "notifications_profile_idx": {
801
+ "name": "notifications_profile_idx",
802
+ "columns": [
803
+ {
804
+ "expression": "profile_id",
805
+ "isExpression": false,
806
+ "asc": true,
807
+ "nulls": "last"
808
+ }
809
+ ],
810
+ "isUnique": false,
811
+ "concurrently": false,
812
+ "method": "btree",
813
+ "with": {}
814
+ }
815
+ },
816
+ "foreignKeys": {},
817
+ "compositePrimaryKeys": {},
818
+ "uniqueConstraints": {},
819
+ "policies": {},
820
+ "checkConstraints": {},
821
+ "isRLSEnabled": false
822
+ },
823
+ "public.posts": {
824
+ "name": "posts",
825
+ "schema": "",
826
+ "columns": {
827
+ "id": {
828
+ "name": "id",
829
+ "type": "uuid",
830
+ "primaryKey": true,
831
+ "notNull": true
832
+ },
833
+ "type": {
834
+ "name": "type",
835
+ "type": "text",
836
+ "primaryKey": false,
837
+ "notNull": true
838
+ },
839
+ "visibility": {
840
+ "name": "visibility",
841
+ "type": "text",
842
+ "primaryKey": false,
843
+ "notNull": true
844
+ },
845
+ "creator_id": {
846
+ "name": "creator_id",
847
+ "type": "text",
848
+ "primaryKey": false,
849
+ "notNull": true
850
+ },
851
+ "uri": {
852
+ "name": "uri",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": false
856
+ },
857
+ "in_reply_to_uri": {
858
+ "name": "in_reply_to_uri",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": false
862
+ },
863
+ "body": {
864
+ "name": "body",
865
+ "type": "jsonb",
866
+ "primaryKey": false,
867
+ "notNull": true,
868
+ "default": "'{}'::jsonb"
869
+ },
870
+ "search_vector": {
871
+ "name": "search_vector",
872
+ "type": "tsvector",
873
+ "primaryKey": false,
874
+ "notNull": false
875
+ },
876
+ "last_activity_at": {
877
+ "name": "last_activity_at",
878
+ "type": "timestamp with time zone",
879
+ "primaryKey": false,
880
+ "notNull": true,
881
+ "default": "now()"
882
+ },
883
+ "created_at": {
884
+ "name": "created_at",
885
+ "type": "timestamp with time zone",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "default": "now()"
889
+ },
890
+ "updated_at": {
891
+ "name": "updated_at",
892
+ "type": "timestamp with time zone",
893
+ "primaryKey": false,
894
+ "notNull": true,
895
+ "default": "now()"
896
+ },
897
+ "deleted_at": {
898
+ "name": "deleted_at",
899
+ "type": "timestamp with time zone",
900
+ "primaryKey": false,
901
+ "notNull": false
902
+ }
903
+ },
904
+ "indexes": {
905
+ "posts_type_idx": {
906
+ "name": "posts_type_idx",
907
+ "columns": [
908
+ {
909
+ "expression": "type",
910
+ "isExpression": false,
911
+ "asc": true,
912
+ "nulls": "last"
913
+ }
914
+ ],
915
+ "isUnique": false,
916
+ "concurrently": false,
917
+ "method": "btree",
918
+ "with": {}
919
+ },
920
+ "posts_visibility_idx": {
921
+ "name": "posts_visibility_idx",
922
+ "columns": [
923
+ {
924
+ "expression": "visibility",
925
+ "isExpression": false,
926
+ "asc": true,
927
+ "nulls": "last"
928
+ }
929
+ ],
930
+ "isUnique": false,
931
+ "concurrently": false,
932
+ "method": "btree",
933
+ "with": {}
934
+ },
935
+ "posts_creator_idx": {
936
+ "name": "posts_creator_idx",
937
+ "columns": [
938
+ {
939
+ "expression": "creator_id",
940
+ "isExpression": false,
941
+ "asc": true,
942
+ "nulls": "last"
943
+ }
944
+ ],
945
+ "isUnique": false,
946
+ "concurrently": false,
947
+ "method": "btree",
948
+ "with": {}
949
+ },
950
+ "posts_uri_unique": {
951
+ "name": "posts_uri_unique",
952
+ "columns": [
953
+ {
954
+ "expression": "uri",
955
+ "isExpression": false,
956
+ "asc": true,
957
+ "nulls": "last"
958
+ }
959
+ ],
960
+ "isUnique": true,
961
+ "concurrently": false,
962
+ "method": "btree",
963
+ "with": {}
964
+ },
965
+ "posts_in_reply_to_uri_idx": {
966
+ "name": "posts_in_reply_to_uri_idx",
967
+ "columns": [
968
+ {
969
+ "expression": "in_reply_to_uri",
970
+ "isExpression": false,
971
+ "asc": true,
972
+ "nulls": "last"
973
+ }
974
+ ],
975
+ "isUnique": false,
976
+ "concurrently": false,
977
+ "method": "btree",
978
+ "with": {}
979
+ },
980
+ "posts_search_vector_idx": {
981
+ "name": "posts_search_vector_idx",
982
+ "columns": [
983
+ {
984
+ "expression": "search_vector",
985
+ "isExpression": false,
986
+ "asc": true,
987
+ "nulls": "last"
988
+ }
989
+ ],
990
+ "isUnique": false,
991
+ "concurrently": false,
992
+ "method": "gin",
993
+ "with": {}
994
+ },
995
+ "posts_last_activity_id_idx": {
996
+ "name": "posts_last_activity_id_idx",
997
+ "columns": [
998
+ {
999
+ "expression": "last_activity_at",
1000
+ "isExpression": false,
1001
+ "asc": true,
1002
+ "nulls": "last"
1003
+ },
1004
+ {
1005
+ "expression": "id",
1006
+ "isExpression": false,
1007
+ "asc": true,
1008
+ "nulls": "last"
1009
+ }
1010
+ ],
1011
+ "isUnique": false,
1012
+ "concurrently": false,
1013
+ "method": "btree",
1014
+ "with": {}
1015
+ }
1016
+ },
1017
+ "foreignKeys": {},
1018
+ "compositePrimaryKeys": {},
1019
+ "uniqueConstraints": {},
1020
+ "policies": {},
1021
+ "checkConstraints": {},
1022
+ "isRLSEnabled": false
1023
+ },
1024
+ "public.processing_stats": {
1025
+ "name": "processing_stats",
1026
+ "schema": "",
1027
+ "columns": {
1028
+ "id": {
1029
+ "name": "id",
1030
+ "type": "uuid",
1031
+ "primaryKey": true,
1032
+ "notNull": true
1033
+ },
1034
+ "filetype": {
1035
+ "name": "filetype",
1036
+ "type": "text",
1037
+ "primaryKey": false,
1038
+ "notNull": true
1039
+ },
1040
+ "filesize": {
1041
+ "name": "filesize",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": true
1045
+ },
1046
+ "body": {
1047
+ "name": "body",
1048
+ "type": "jsonb",
1049
+ "primaryKey": false,
1050
+ "notNull": true,
1051
+ "default": "'{}'::jsonb"
1052
+ },
1053
+ "created_at": {
1054
+ "name": "created_at",
1055
+ "type": "timestamp with time zone",
1056
+ "primaryKey": false,
1057
+ "notNull": true,
1058
+ "default": "now()"
1059
+ },
1060
+ "updated_at": {
1061
+ "name": "updated_at",
1062
+ "type": "timestamp with time zone",
1063
+ "primaryKey": false,
1064
+ "notNull": true,
1065
+ "default": "now()"
1066
+ },
1067
+ "deleted_at": {
1068
+ "name": "deleted_at",
1069
+ "type": "timestamp with time zone",
1070
+ "primaryKey": false,
1071
+ "notNull": false
1072
+ }
1073
+ },
1074
+ "indexes": {
1075
+ "processing_stats_filetype_idx": {
1076
+ "name": "processing_stats_filetype_idx",
1077
+ "columns": [
1078
+ {
1079
+ "expression": "filetype",
1080
+ "isExpression": false,
1081
+ "asc": true,
1082
+ "nulls": "last"
1083
+ }
1084
+ ],
1085
+ "isUnique": false,
1086
+ "concurrently": false,
1087
+ "method": "btree",
1088
+ "with": {}
1089
+ },
1090
+ "processing_stats_filetype_size_idx": {
1091
+ "name": "processing_stats_filetype_size_idx",
1092
+ "columns": [
1093
+ {
1094
+ "expression": "filetype",
1095
+ "isExpression": false,
1096
+ "asc": true,
1097
+ "nulls": "last"
1098
+ },
1099
+ {
1100
+ "expression": "filesize",
1101
+ "isExpression": false,
1102
+ "asc": true,
1103
+ "nulls": "last"
1104
+ }
1105
+ ],
1106
+ "isUnique": false,
1107
+ "concurrently": false,
1108
+ "method": "btree",
1109
+ "with": {}
1110
+ }
1111
+ },
1112
+ "foreignKeys": {},
1113
+ "compositePrimaryKeys": {},
1114
+ "uniqueConstraints": {},
1115
+ "policies": {},
1116
+ "checkConstraints": {},
1117
+ "isRLSEnabled": false
1118
+ },
1119
+ "public.profile_settings": {
1120
+ "name": "profile_settings",
1121
+ "schema": "",
1122
+ "columns": {
1123
+ "id": {
1124
+ "name": "id",
1125
+ "type": "uuid",
1126
+ "primaryKey": true,
1127
+ "notNull": true
1128
+ },
1129
+ "profile_id": {
1130
+ "name": "profile_id",
1131
+ "type": "text",
1132
+ "primaryKey": false,
1133
+ "notNull": true
1134
+ },
1135
+ "body": {
1136
+ "name": "body",
1137
+ "type": "jsonb",
1138
+ "primaryKey": false,
1139
+ "notNull": true,
1140
+ "default": "'{}'::jsonb"
1141
+ },
1142
+ "created_at": {
1143
+ "name": "created_at",
1144
+ "type": "timestamp with time zone",
1145
+ "primaryKey": false,
1146
+ "notNull": true,
1147
+ "default": "now()"
1148
+ },
1149
+ "updated_at": {
1150
+ "name": "updated_at",
1151
+ "type": "timestamp with time zone",
1152
+ "primaryKey": false,
1153
+ "notNull": true,
1154
+ "default": "now()"
1155
+ },
1156
+ "deleted_at": {
1157
+ "name": "deleted_at",
1158
+ "type": "timestamp with time zone",
1159
+ "primaryKey": false,
1160
+ "notNull": false
1161
+ }
1162
+ },
1163
+ "indexes": {
1164
+ "profile_settings_profile_unique": {
1165
+ "name": "profile_settings_profile_unique",
1166
+ "columns": [
1167
+ {
1168
+ "expression": "profile_id",
1169
+ "isExpression": false,
1170
+ "asc": true,
1171
+ "nulls": "last"
1172
+ }
1173
+ ],
1174
+ "isUnique": true,
1175
+ "concurrently": false,
1176
+ "method": "btree",
1177
+ "with": {}
1178
+ }
1179
+ },
1180
+ "foreignKeys": {},
1181
+ "compositePrimaryKeys": {},
1182
+ "uniqueConstraints": {},
1183
+ "policies": {},
1184
+ "checkConstraints": {},
1185
+ "isRLSEnabled": false
1186
+ },
1187
+ "public.profiles": {
1188
+ "name": "profiles",
1189
+ "schema": "",
1190
+ "columns": {
1191
+ "id": {
1192
+ "name": "id",
1193
+ "type": "uuid",
1194
+ "primaryKey": true,
1195
+ "notNull": true
1196
+ },
1197
+ "handle": {
1198
+ "name": "handle",
1199
+ "type": "text",
1200
+ "primaryKey": false,
1201
+ "notNull": true
1202
+ },
1203
+ "activity_pub_domain": {
1204
+ "name": "activity_pub_domain",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": false
1208
+ },
1209
+ "type": {
1210
+ "name": "type",
1211
+ "type": "text",
1212
+ "primaryKey": false,
1213
+ "notNull": true
1214
+ },
1215
+ "uri": {
1216
+ "name": "uri",
1217
+ "type": "text",
1218
+ "primaryKey": false,
1219
+ "notNull": false
1220
+ },
1221
+ "inbox_url": {
1222
+ "name": "inbox_url",
1223
+ "type": "text",
1224
+ "primaryKey": false,
1225
+ "notNull": false
1226
+ },
1227
+ "shared_inbox_url": {
1228
+ "name": "shared_inbox_url",
1229
+ "type": "text",
1230
+ "primaryKey": false,
1231
+ "notNull": false
1232
+ },
1233
+ "public_key_pem": {
1234
+ "name": "public_key_pem",
1235
+ "type": "text",
1236
+ "primaryKey": false,
1237
+ "notNull": false
1238
+ },
1239
+ "private_key_pem": {
1240
+ "name": "private_key_pem",
1241
+ "type": "text",
1242
+ "primaryKey": false,
1243
+ "notNull": false
1244
+ },
1245
+ "key_id": {
1246
+ "name": "key_id",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": false
1250
+ },
1251
+ "fetched_at": {
1252
+ "name": "fetched_at",
1253
+ "type": "timestamp with time zone",
1254
+ "primaryKey": false,
1255
+ "notNull": false
1256
+ },
1257
+ "body": {
1258
+ "name": "body",
1259
+ "type": "jsonb",
1260
+ "primaryKey": false,
1261
+ "notNull": true,
1262
+ "default": "'{}'::jsonb"
1263
+ },
1264
+ "search_vector": {
1265
+ "name": "search_vector",
1266
+ "type": "tsvector",
1267
+ "primaryKey": false,
1268
+ "notNull": false
1269
+ },
1270
+ "created_at": {
1271
+ "name": "created_at",
1272
+ "type": "timestamp with time zone",
1273
+ "primaryKey": false,
1274
+ "notNull": true,
1275
+ "default": "now()"
1276
+ },
1277
+ "updated_at": {
1278
+ "name": "updated_at",
1279
+ "type": "timestamp with time zone",
1280
+ "primaryKey": false,
1281
+ "notNull": true,
1282
+ "default": "now()"
1283
+ },
1284
+ "deleted_at": {
1285
+ "name": "deleted_at",
1286
+ "type": "timestamp with time zone",
1287
+ "primaryKey": false,
1288
+ "notNull": false
1289
+ }
1290
+ },
1291
+ "indexes": {
1292
+ "profiles_handle_domain_unique": {
1293
+ "name": "profiles_handle_domain_unique",
1294
+ "columns": [
1295
+ {
1296
+ "expression": "handle",
1297
+ "isExpression": false,
1298
+ "asc": true,
1299
+ "nulls": "last"
1300
+ },
1301
+ {
1302
+ "expression": "activity_pub_domain",
1303
+ "isExpression": false,
1304
+ "asc": true,
1305
+ "nulls": "last"
1306
+ }
1307
+ ],
1308
+ "isUnique": true,
1309
+ "concurrently": false,
1310
+ "method": "btree",
1311
+ "with": {}
1312
+ },
1313
+ "profiles_uri_unique": {
1314
+ "name": "profiles_uri_unique",
1315
+ "columns": [
1316
+ {
1317
+ "expression": "uri",
1318
+ "isExpression": false,
1319
+ "asc": true,
1320
+ "nulls": "last"
1321
+ }
1322
+ ],
1323
+ "isUnique": true,
1324
+ "concurrently": false,
1325
+ "method": "btree",
1326
+ "with": {}
1327
+ },
1328
+ "profiles_search_vector_idx": {
1329
+ "name": "profiles_search_vector_idx",
1330
+ "columns": [
1331
+ {
1332
+ "expression": "search_vector",
1333
+ "isExpression": false,
1334
+ "asc": true,
1335
+ "nulls": "last"
1336
+ }
1337
+ ],
1338
+ "isUnique": false,
1339
+ "concurrently": false,
1340
+ "method": "gin",
1341
+ "with": {}
1342
+ }
1343
+ },
1344
+ "foreignKeys": {},
1345
+ "compositePrimaryKeys": {},
1346
+ "uniqueConstraints": {},
1347
+ "policies": {},
1348
+ "checkConstraints": {},
1349
+ "isRLSEnabled": false
1350
+ },
1351
+ "public.push_subscriptions": {
1352
+ "name": "push_subscriptions",
1353
+ "schema": "",
1354
+ "columns": {
1355
+ "id": {
1356
+ "name": "id",
1357
+ "type": "uuid",
1358
+ "primaryKey": true,
1359
+ "notNull": true
1360
+ },
1361
+ "body": {
1362
+ "name": "body",
1363
+ "type": "jsonb",
1364
+ "primaryKey": false,
1365
+ "notNull": true,
1366
+ "default": "'{}'::jsonb"
1367
+ },
1368
+ "created_at": {
1369
+ "name": "created_at",
1370
+ "type": "timestamp with time zone",
1371
+ "primaryKey": false,
1372
+ "notNull": true,
1373
+ "default": "now()"
1374
+ },
1375
+ "updated_at": {
1376
+ "name": "updated_at",
1377
+ "type": "timestamp with time zone",
1378
+ "primaryKey": false,
1379
+ "notNull": true,
1380
+ "default": "now()"
1381
+ },
1382
+ "deleted_at": {
1383
+ "name": "deleted_at",
1384
+ "type": "timestamp with time zone",
1385
+ "primaryKey": false,
1386
+ "notNull": false
1387
+ }
1388
+ },
1389
+ "indexes": {},
1390
+ "foreignKeys": {},
1391
+ "compositePrimaryKeys": {},
1392
+ "uniqueConstraints": {},
1393
+ "policies": {},
1394
+ "checkConstraints": {},
1395
+ "isRLSEnabled": false
1396
+ },
1397
+ "public.reports": {
1398
+ "name": "reports",
1399
+ "schema": "",
1400
+ "columns": {
1401
+ "id": {
1402
+ "name": "id",
1403
+ "type": "uuid",
1404
+ "primaryKey": true,
1405
+ "notNull": true
1406
+ },
1407
+ "body": {
1408
+ "name": "body",
1409
+ "type": "jsonb",
1410
+ "primaryKey": false,
1411
+ "notNull": true,
1412
+ "default": "'{}'::jsonb"
1413
+ },
1414
+ "created_at": {
1415
+ "name": "created_at",
1416
+ "type": "timestamp with time zone",
1417
+ "primaryKey": false,
1418
+ "notNull": true,
1419
+ "default": "now()"
1420
+ },
1421
+ "updated_at": {
1422
+ "name": "updated_at",
1423
+ "type": "timestamp with time zone",
1424
+ "primaryKey": false,
1425
+ "notNull": true,
1426
+ "default": "now()"
1427
+ },
1428
+ "deleted_at": {
1429
+ "name": "deleted_at",
1430
+ "type": "timestamp with time zone",
1431
+ "primaryKey": false,
1432
+ "notNull": false
1433
+ }
1434
+ },
1435
+ "indexes": {},
1436
+ "foreignKeys": {},
1437
+ "compositePrimaryKeys": {},
1438
+ "uniqueConstraints": {},
1439
+ "policies": {},
1440
+ "checkConstraints": {},
1441
+ "isRLSEnabled": false
1442
+ },
1443
+ "public.roles": {
1444
+ "name": "roles",
1445
+ "schema": "",
1446
+ "columns": {
1447
+ "id": {
1448
+ "name": "id",
1449
+ "type": "uuid",
1450
+ "primaryKey": true,
1451
+ "notNull": true
1452
+ },
1453
+ "key": {
1454
+ "name": "key",
1455
+ "type": "text",
1456
+ "primaryKey": false,
1457
+ "notNull": true
1458
+ },
1459
+ "is_default": {
1460
+ "name": "is_default",
1461
+ "type": "boolean",
1462
+ "primaryKey": false,
1463
+ "notNull": true,
1464
+ "default": false
1465
+ },
1466
+ "body": {
1467
+ "name": "body",
1468
+ "type": "jsonb",
1469
+ "primaryKey": false,
1470
+ "notNull": true,
1471
+ "default": "'{}'::jsonb"
1472
+ },
1473
+ "created_at": {
1474
+ "name": "created_at",
1475
+ "type": "timestamp with time zone",
1476
+ "primaryKey": false,
1477
+ "notNull": true,
1478
+ "default": "now()"
1479
+ },
1480
+ "updated_at": {
1481
+ "name": "updated_at",
1482
+ "type": "timestamp with time zone",
1483
+ "primaryKey": false,
1484
+ "notNull": true,
1485
+ "default": "now()"
1486
+ },
1487
+ "deleted_at": {
1488
+ "name": "deleted_at",
1489
+ "type": "timestamp with time zone",
1490
+ "primaryKey": false,
1491
+ "notNull": false
1492
+ }
1493
+ },
1494
+ "indexes": {
1495
+ "roles_key_unique": {
1496
+ "name": "roles_key_unique",
1497
+ "columns": [
1498
+ {
1499
+ "expression": "key",
1500
+ "isExpression": false,
1501
+ "asc": true,
1502
+ "nulls": "last"
1503
+ }
1504
+ ],
1505
+ "isUnique": true,
1506
+ "concurrently": false,
1507
+ "method": "btree",
1508
+ "with": {}
1509
+ }
1510
+ },
1511
+ "foreignKeys": {},
1512
+ "compositePrimaryKeys": {},
1513
+ "uniqueConstraints": {},
1514
+ "policies": {},
1515
+ "checkConstraints": {},
1516
+ "isRLSEnabled": false
1517
+ },
1518
+ "public.account_to_push_subscription": {
1519
+ "name": "account_to_push_subscription",
1520
+ "schema": "",
1521
+ "columns": {
1522
+ "id": {
1523
+ "name": "id",
1524
+ "type": "uuid",
1525
+ "primaryKey": true,
1526
+ "notNull": true
1527
+ },
1528
+ "from_id": {
1529
+ "name": "from_id",
1530
+ "type": "text",
1531
+ "primaryKey": false,
1532
+ "notNull": true
1533
+ },
1534
+ "to_id": {
1535
+ "name": "to_id",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true
1539
+ },
1540
+ "body": {
1541
+ "name": "body",
1542
+ "type": "jsonb",
1543
+ "primaryKey": false,
1544
+ "notNull": false,
1545
+ "default": "'{}'::jsonb"
1546
+ },
1547
+ "created_at": {
1548
+ "name": "created_at",
1549
+ "type": "timestamp with time zone",
1550
+ "primaryKey": false,
1551
+ "notNull": true,
1552
+ "default": "now()"
1553
+ },
1554
+ "updated_at": {
1555
+ "name": "updated_at",
1556
+ "type": "timestamp with time zone",
1557
+ "primaryKey": false,
1558
+ "notNull": true,
1559
+ "default": "now()"
1560
+ }
1561
+ },
1562
+ "indexes": {
1563
+ "account_to_push_subscription_from_idx": {
1564
+ "name": "account_to_push_subscription_from_idx",
1565
+ "columns": [
1566
+ {
1567
+ "expression": "from_id",
1568
+ "isExpression": false,
1569
+ "asc": true,
1570
+ "nulls": "last"
1571
+ }
1572
+ ],
1573
+ "isUnique": false,
1574
+ "concurrently": false,
1575
+ "method": "btree",
1576
+ "with": {}
1577
+ },
1578
+ "account_to_push_subscription_to_idx": {
1579
+ "name": "account_to_push_subscription_to_idx",
1580
+ "columns": [
1581
+ {
1582
+ "expression": "to_id",
1583
+ "isExpression": false,
1584
+ "asc": true,
1585
+ "nulls": "last"
1586
+ }
1587
+ ],
1588
+ "isUnique": false,
1589
+ "concurrently": false,
1590
+ "method": "btree",
1591
+ "with": {}
1592
+ }
1593
+ },
1594
+ "foreignKeys": {},
1595
+ "compositePrimaryKeys": {},
1596
+ "uniqueConstraints": {},
1597
+ "policies": {},
1598
+ "checkConstraints": {},
1599
+ "isRLSEnabled": false
1600
+ },
1601
+ "public.audience": {
1602
+ "name": "audience",
1603
+ "schema": "",
1604
+ "columns": {
1605
+ "id": {
1606
+ "name": "id",
1607
+ "type": "uuid",
1608
+ "primaryKey": true,
1609
+ "notNull": true
1610
+ },
1611
+ "from_id": {
1612
+ "name": "from_id",
1613
+ "type": "text",
1614
+ "primaryKey": false,
1615
+ "notNull": true
1616
+ },
1617
+ "to_id": {
1618
+ "name": "to_id",
1619
+ "type": "text",
1620
+ "primaryKey": false,
1621
+ "notNull": true
1622
+ },
1623
+ "body": {
1624
+ "name": "body",
1625
+ "type": "jsonb",
1626
+ "primaryKey": false,
1627
+ "notNull": false,
1628
+ "default": "'{}'::jsonb"
1629
+ },
1630
+ "created_at": {
1631
+ "name": "created_at",
1632
+ "type": "timestamp with time zone",
1633
+ "primaryKey": false,
1634
+ "notNull": true,
1635
+ "default": "now()"
1636
+ },
1637
+ "updated_at": {
1638
+ "name": "updated_at",
1639
+ "type": "timestamp with time zone",
1640
+ "primaryKey": false,
1641
+ "notNull": true,
1642
+ "default": "now()"
1643
+ }
1644
+ },
1645
+ "indexes": {
1646
+ "audience_from_idx": {
1647
+ "name": "audience_from_idx",
1648
+ "columns": [
1649
+ {
1650
+ "expression": "from_id",
1651
+ "isExpression": false,
1652
+ "asc": true,
1653
+ "nulls": "last"
1654
+ }
1655
+ ],
1656
+ "isUnique": false,
1657
+ "concurrently": false,
1658
+ "method": "btree",
1659
+ "with": {}
1660
+ },
1661
+ "audience_to_idx": {
1662
+ "name": "audience_to_idx",
1663
+ "columns": [
1664
+ {
1665
+ "expression": "to_id",
1666
+ "isExpression": false,
1667
+ "asc": true,
1668
+ "nulls": "last"
1669
+ }
1670
+ ],
1671
+ "isUnique": false,
1672
+ "concurrently": false,
1673
+ "method": "btree",
1674
+ "with": {}
1675
+ }
1676
+ },
1677
+ "foreignKeys": {},
1678
+ "compositePrimaryKeys": {},
1679
+ "uniqueConstraints": {},
1680
+ "policies": {},
1681
+ "checkConstraints": {},
1682
+ "isRLSEnabled": false
1683
+ },
1684
+ "public.blocks": {
1685
+ "name": "blocks",
1686
+ "schema": "",
1687
+ "columns": {
1688
+ "id": {
1689
+ "name": "id",
1690
+ "type": "uuid",
1691
+ "primaryKey": true,
1692
+ "notNull": true
1693
+ },
1694
+ "from_id": {
1695
+ "name": "from_id",
1696
+ "type": "text",
1697
+ "primaryKey": false,
1698
+ "notNull": true
1699
+ },
1700
+ "to_id": {
1701
+ "name": "to_id",
1702
+ "type": "text",
1703
+ "primaryKey": false,
1704
+ "notNull": true
1705
+ },
1706
+ "body": {
1707
+ "name": "body",
1708
+ "type": "jsonb",
1709
+ "primaryKey": false,
1710
+ "notNull": false,
1711
+ "default": "'{}'::jsonb"
1712
+ },
1713
+ "created_at": {
1714
+ "name": "created_at",
1715
+ "type": "timestamp with time zone",
1716
+ "primaryKey": false,
1717
+ "notNull": true,
1718
+ "default": "now()"
1719
+ },
1720
+ "updated_at": {
1721
+ "name": "updated_at",
1722
+ "type": "timestamp with time zone",
1723
+ "primaryKey": false,
1724
+ "notNull": true,
1725
+ "default": "now()"
1726
+ }
1727
+ },
1728
+ "indexes": {
1729
+ "blocks_from_idx": {
1730
+ "name": "blocks_from_idx",
1731
+ "columns": [
1732
+ {
1733
+ "expression": "from_id",
1734
+ "isExpression": false,
1735
+ "asc": true,
1736
+ "nulls": "last"
1737
+ }
1738
+ ],
1739
+ "isUnique": false,
1740
+ "concurrently": false,
1741
+ "method": "btree",
1742
+ "with": {}
1743
+ },
1744
+ "blocks_to_idx": {
1745
+ "name": "blocks_to_idx",
1746
+ "columns": [
1747
+ {
1748
+ "expression": "to_id",
1749
+ "isExpression": false,
1750
+ "asc": true,
1751
+ "nulls": "last"
1752
+ }
1753
+ ],
1754
+ "isUnique": false,
1755
+ "concurrently": false,
1756
+ "method": "btree",
1757
+ "with": {}
1758
+ },
1759
+ "blocks_from_to_unique": {
1760
+ "name": "blocks_from_to_unique",
1761
+ "columns": [
1762
+ {
1763
+ "expression": "from_id",
1764
+ "isExpression": false,
1765
+ "asc": true,
1766
+ "nulls": "last"
1767
+ },
1768
+ {
1769
+ "expression": "to_id",
1770
+ "isExpression": false,
1771
+ "asc": true,
1772
+ "nulls": "last"
1773
+ }
1774
+ ],
1775
+ "isUnique": true,
1776
+ "concurrently": false,
1777
+ "method": "btree",
1778
+ "with": {}
1779
+ }
1780
+ },
1781
+ "foreignKeys": {},
1782
+ "compositePrimaryKeys": {},
1783
+ "uniqueConstraints": {},
1784
+ "policies": {},
1785
+ "checkConstraints": {},
1786
+ "isRLSEnabled": false
1787
+ },
1788
+ "public.bookmarks": {
1789
+ "name": "bookmarks",
1790
+ "schema": "",
1791
+ "columns": {
1792
+ "id": {
1793
+ "name": "id",
1794
+ "type": "uuid",
1795
+ "primaryKey": true,
1796
+ "notNull": true
1797
+ },
1798
+ "from_id": {
1799
+ "name": "from_id",
1800
+ "type": "text",
1801
+ "primaryKey": false,
1802
+ "notNull": true
1803
+ },
1804
+ "to_id": {
1805
+ "name": "to_id",
1806
+ "type": "text",
1807
+ "primaryKey": false,
1808
+ "notNull": true
1809
+ },
1810
+ "body": {
1811
+ "name": "body",
1812
+ "type": "jsonb",
1813
+ "primaryKey": false,
1814
+ "notNull": false,
1815
+ "default": "'{}'::jsonb"
1816
+ },
1817
+ "created_at": {
1818
+ "name": "created_at",
1819
+ "type": "timestamp with time zone",
1820
+ "primaryKey": false,
1821
+ "notNull": true,
1822
+ "default": "now()"
1823
+ },
1824
+ "updated_at": {
1825
+ "name": "updated_at",
1826
+ "type": "timestamp with time zone",
1827
+ "primaryKey": false,
1828
+ "notNull": true,
1829
+ "default": "now()"
1830
+ }
1831
+ },
1832
+ "indexes": {
1833
+ "bookmarks_from_idx": {
1834
+ "name": "bookmarks_from_idx",
1835
+ "columns": [
1836
+ {
1837
+ "expression": "from_id",
1838
+ "isExpression": false,
1839
+ "asc": true,
1840
+ "nulls": "last"
1841
+ }
1842
+ ],
1843
+ "isUnique": false,
1844
+ "concurrently": false,
1845
+ "method": "btree",
1846
+ "with": {}
1847
+ },
1848
+ "bookmarks_to_idx": {
1849
+ "name": "bookmarks_to_idx",
1850
+ "columns": [
1851
+ {
1852
+ "expression": "to_id",
1853
+ "isExpression": false,
1854
+ "asc": true,
1855
+ "nulls": "last"
1856
+ }
1857
+ ],
1858
+ "isUnique": false,
1859
+ "concurrently": false,
1860
+ "method": "btree",
1861
+ "with": {}
1862
+ }
1863
+ },
1864
+ "foreignKeys": {},
1865
+ "compositePrimaryKeys": {},
1866
+ "uniqueConstraints": {},
1867
+ "policies": {},
1868
+ "checkConstraints": {},
1869
+ "isRLSEnabled": false
1870
+ },
1871
+ "public.controls": {
1872
+ "name": "controls",
1873
+ "schema": "",
1874
+ "columns": {
1875
+ "id": {
1876
+ "name": "id",
1877
+ "type": "uuid",
1878
+ "primaryKey": true,
1879
+ "notNull": true
1880
+ },
1881
+ "from_id": {
1882
+ "name": "from_id",
1883
+ "type": "text",
1884
+ "primaryKey": false,
1885
+ "notNull": true
1886
+ },
1887
+ "to_id": {
1888
+ "name": "to_id",
1889
+ "type": "text",
1890
+ "primaryKey": false,
1891
+ "notNull": true
1892
+ },
1893
+ "body": {
1894
+ "name": "body",
1895
+ "type": "jsonb",
1896
+ "primaryKey": false,
1897
+ "notNull": false,
1898
+ "default": "'{}'::jsonb"
1899
+ },
1900
+ "created_at": {
1901
+ "name": "created_at",
1902
+ "type": "timestamp with time zone",
1903
+ "primaryKey": false,
1904
+ "notNull": true,
1905
+ "default": "now()"
1906
+ },
1907
+ "updated_at": {
1908
+ "name": "updated_at",
1909
+ "type": "timestamp with time zone",
1910
+ "primaryKey": false,
1911
+ "notNull": true,
1912
+ "default": "now()"
1913
+ }
1914
+ },
1915
+ "indexes": {
1916
+ "controls_from_idx": {
1917
+ "name": "controls_from_idx",
1918
+ "columns": [
1919
+ {
1920
+ "expression": "from_id",
1921
+ "isExpression": false,
1922
+ "asc": true,
1923
+ "nulls": "last"
1924
+ }
1925
+ ],
1926
+ "isUnique": false,
1927
+ "concurrently": false,
1928
+ "method": "btree",
1929
+ "with": {}
1930
+ },
1931
+ "controls_to_idx": {
1932
+ "name": "controls_to_idx",
1933
+ "columns": [
1934
+ {
1935
+ "expression": "to_id",
1936
+ "isExpression": false,
1937
+ "asc": true,
1938
+ "nulls": "last"
1939
+ }
1940
+ ],
1941
+ "isUnique": false,
1942
+ "concurrently": false,
1943
+ "method": "btree",
1944
+ "with": {}
1945
+ }
1946
+ },
1947
+ "foreignKeys": {},
1948
+ "compositePrimaryKeys": {},
1949
+ "uniqueConstraints": {},
1950
+ "policies": {},
1951
+ "checkConstraints": {},
1952
+ "isRLSEnabled": false
1953
+ },
1954
+ "public.created_report": {
1955
+ "name": "created_report",
1956
+ "schema": "",
1957
+ "columns": {
1958
+ "id": {
1959
+ "name": "id",
1960
+ "type": "uuid",
1961
+ "primaryKey": true,
1962
+ "notNull": true
1963
+ },
1964
+ "from_id": {
1965
+ "name": "from_id",
1966
+ "type": "text",
1967
+ "primaryKey": false,
1968
+ "notNull": true
1969
+ },
1970
+ "to_id": {
1971
+ "name": "to_id",
1972
+ "type": "text",
1973
+ "primaryKey": false,
1974
+ "notNull": true
1975
+ },
1976
+ "body": {
1977
+ "name": "body",
1978
+ "type": "jsonb",
1979
+ "primaryKey": false,
1980
+ "notNull": false,
1981
+ "default": "'{}'::jsonb"
1982
+ },
1983
+ "created_at": {
1984
+ "name": "created_at",
1985
+ "type": "timestamp with time zone",
1986
+ "primaryKey": false,
1987
+ "notNull": true,
1988
+ "default": "now()"
1989
+ },
1990
+ "updated_at": {
1991
+ "name": "updated_at",
1992
+ "type": "timestamp with time zone",
1993
+ "primaryKey": false,
1994
+ "notNull": true,
1995
+ "default": "now()"
1996
+ }
1997
+ },
1998
+ "indexes": {
1999
+ "created_report_from_idx": {
2000
+ "name": "created_report_from_idx",
2001
+ "columns": [
2002
+ {
2003
+ "expression": "from_id",
2004
+ "isExpression": false,
2005
+ "asc": true,
2006
+ "nulls": "last"
2007
+ }
2008
+ ],
2009
+ "isUnique": false,
2010
+ "concurrently": false,
2011
+ "method": "btree",
2012
+ "with": {}
2013
+ },
2014
+ "created_report_to_idx": {
2015
+ "name": "created_report_to_idx",
2016
+ "columns": [
2017
+ {
2018
+ "expression": "to_id",
2019
+ "isExpression": false,
2020
+ "asc": true,
2021
+ "nulls": "last"
2022
+ }
2023
+ ],
2024
+ "isUnique": false,
2025
+ "concurrently": false,
2026
+ "method": "btree",
2027
+ "with": {}
2028
+ }
2029
+ },
2030
+ "foreignKeys": {},
2031
+ "compositePrimaryKeys": {},
2032
+ "uniqueConstraints": {},
2033
+ "policies": {},
2034
+ "checkConstraints": {},
2035
+ "isRLSEnabled": false
2036
+ },
2037
+ "public.entries": {
2038
+ "name": "entries",
2039
+ "schema": "",
2040
+ "columns": {
2041
+ "id": {
2042
+ "name": "id",
2043
+ "type": "uuid",
2044
+ "primaryKey": true,
2045
+ "notNull": true
2046
+ },
2047
+ "from_id": {
2048
+ "name": "from_id",
2049
+ "type": "text",
2050
+ "primaryKey": false,
2051
+ "notNull": true
2052
+ },
2053
+ "to_id": {
2054
+ "name": "to_id",
2055
+ "type": "text",
2056
+ "primaryKey": false,
2057
+ "notNull": true
2058
+ },
2059
+ "body": {
2060
+ "name": "body",
2061
+ "type": "jsonb",
2062
+ "primaryKey": false,
2063
+ "notNull": false,
2064
+ "default": "'{}'::jsonb"
2065
+ },
2066
+ "created_at": {
2067
+ "name": "created_at",
2068
+ "type": "timestamp with time zone",
2069
+ "primaryKey": false,
2070
+ "notNull": true,
2071
+ "default": "now()"
2072
+ },
2073
+ "updated_at": {
2074
+ "name": "updated_at",
2075
+ "type": "timestamp with time zone",
2076
+ "primaryKey": false,
2077
+ "notNull": true,
2078
+ "default": "now()"
2079
+ }
2080
+ },
2081
+ "indexes": {
2082
+ "entries_from_idx": {
2083
+ "name": "entries_from_idx",
2084
+ "columns": [
2085
+ {
2086
+ "expression": "from_id",
2087
+ "isExpression": false,
2088
+ "asc": true,
2089
+ "nulls": "last"
2090
+ }
2091
+ ],
2092
+ "isUnique": false,
2093
+ "concurrently": false,
2094
+ "method": "btree",
2095
+ "with": {}
2096
+ },
2097
+ "entries_to_idx": {
2098
+ "name": "entries_to_idx",
2099
+ "columns": [
2100
+ {
2101
+ "expression": "to_id",
2102
+ "isExpression": false,
2103
+ "asc": true,
2104
+ "nulls": "last"
2105
+ }
2106
+ ],
2107
+ "isUnique": false,
2108
+ "concurrently": false,
2109
+ "method": "btree",
2110
+ "with": {}
2111
+ }
2112
+ },
2113
+ "foreignKeys": {},
2114
+ "compositePrimaryKeys": {},
2115
+ "uniqueConstraints": {},
2116
+ "policies": {},
2117
+ "checkConstraints": {},
2118
+ "isRLSEnabled": false
2119
+ },
2120
+ "public.follows": {
2121
+ "name": "follows",
2122
+ "schema": "",
2123
+ "columns": {
2124
+ "id": {
2125
+ "name": "id",
2126
+ "type": "uuid",
2127
+ "primaryKey": true,
2128
+ "notNull": true
2129
+ },
2130
+ "from_id": {
2131
+ "name": "from_id",
2132
+ "type": "text",
2133
+ "primaryKey": false,
2134
+ "notNull": true
2135
+ },
2136
+ "to_id": {
2137
+ "name": "to_id",
2138
+ "type": "text",
2139
+ "primaryKey": false,
2140
+ "notNull": true
2141
+ },
2142
+ "body": {
2143
+ "name": "body",
2144
+ "type": "jsonb",
2145
+ "primaryKey": false,
2146
+ "notNull": false,
2147
+ "default": "'{}'::jsonb"
2148
+ },
2149
+ "created_at": {
2150
+ "name": "created_at",
2151
+ "type": "timestamp with time zone",
2152
+ "primaryKey": false,
2153
+ "notNull": true,
2154
+ "default": "now()"
2155
+ },
2156
+ "updated_at": {
2157
+ "name": "updated_at",
2158
+ "type": "timestamp with time zone",
2159
+ "primaryKey": false,
2160
+ "notNull": true,
2161
+ "default": "now()"
2162
+ }
2163
+ },
2164
+ "indexes": {
2165
+ "follows_from_idx": {
2166
+ "name": "follows_from_idx",
2167
+ "columns": [
2168
+ {
2169
+ "expression": "from_id",
2170
+ "isExpression": false,
2171
+ "asc": true,
2172
+ "nulls": "last"
2173
+ }
2174
+ ],
2175
+ "isUnique": false,
2176
+ "concurrently": false,
2177
+ "method": "btree",
2178
+ "with": {}
2179
+ },
2180
+ "follows_to_idx": {
2181
+ "name": "follows_to_idx",
2182
+ "columns": [
2183
+ {
2184
+ "expression": "to_id",
2185
+ "isExpression": false,
2186
+ "asc": true,
2187
+ "nulls": "last"
2188
+ }
2189
+ ],
2190
+ "isUnique": false,
2191
+ "concurrently": false,
2192
+ "method": "btree",
2193
+ "with": {}
2194
+ },
2195
+ "follows_from_to_unique": {
2196
+ "name": "follows_from_to_unique",
2197
+ "columns": [
2198
+ {
2199
+ "expression": "from_id",
2200
+ "isExpression": false,
2201
+ "asc": true,
2202
+ "nulls": "last"
2203
+ },
2204
+ {
2205
+ "expression": "to_id",
2206
+ "isExpression": false,
2207
+ "asc": true,
2208
+ "nulls": "last"
2209
+ }
2210
+ ],
2211
+ "isUnique": true,
2212
+ "concurrently": false,
2213
+ "method": "btree",
2214
+ "with": {}
2215
+ }
2216
+ },
2217
+ "foreignKeys": {},
2218
+ "compositePrimaryKeys": {},
2219
+ "uniqueConstraints": {},
2220
+ "policies": {},
2221
+ "checkConstraints": {},
2222
+ "isRLSEnabled": false
2223
+ },
2224
+ "public.has_read": {
2225
+ "name": "has_read",
2226
+ "schema": "",
2227
+ "columns": {
2228
+ "id": {
2229
+ "name": "id",
2230
+ "type": "uuid",
2231
+ "primaryKey": true,
2232
+ "notNull": true
2233
+ },
2234
+ "from_id": {
2235
+ "name": "from_id",
2236
+ "type": "text",
2237
+ "primaryKey": false,
2238
+ "notNull": true
2239
+ },
2240
+ "to_id": {
2241
+ "name": "to_id",
2242
+ "type": "text",
2243
+ "primaryKey": false,
2244
+ "notNull": true
2245
+ },
2246
+ "body": {
2247
+ "name": "body",
2248
+ "type": "jsonb",
2249
+ "primaryKey": false,
2250
+ "notNull": false,
2251
+ "default": "'{}'::jsonb"
2252
+ },
2253
+ "created_at": {
2254
+ "name": "created_at",
2255
+ "type": "timestamp with time zone",
2256
+ "primaryKey": false,
2257
+ "notNull": true,
2258
+ "default": "now()"
2259
+ },
2260
+ "updated_at": {
2261
+ "name": "updated_at",
2262
+ "type": "timestamp with time zone",
2263
+ "primaryKey": false,
2264
+ "notNull": true,
2265
+ "default": "now()"
2266
+ }
2267
+ },
2268
+ "indexes": {
2269
+ "has_read_from_idx": {
2270
+ "name": "has_read_from_idx",
2271
+ "columns": [
2272
+ {
2273
+ "expression": "from_id",
2274
+ "isExpression": false,
2275
+ "asc": true,
2276
+ "nulls": "last"
2277
+ }
2278
+ ],
2279
+ "isUnique": false,
2280
+ "concurrently": false,
2281
+ "method": "btree",
2282
+ "with": {}
2283
+ },
2284
+ "has_read_to_idx": {
2285
+ "name": "has_read_to_idx",
2286
+ "columns": [
2287
+ {
2288
+ "expression": "to_id",
2289
+ "isExpression": false,
2290
+ "asc": true,
2291
+ "nulls": "last"
2292
+ }
2293
+ ],
2294
+ "isUnique": false,
2295
+ "concurrently": false,
2296
+ "method": "btree",
2297
+ "with": {}
2298
+ }
2299
+ },
2300
+ "foreignKeys": {},
2301
+ "compositePrimaryKeys": {},
2302
+ "uniqueConstraints": {},
2303
+ "policies": {},
2304
+ "checkConstraints": {},
2305
+ "isRLSEnabled": false
2306
+ },
2307
+ "public.has_role": {
2308
+ "name": "has_role",
2309
+ "schema": "",
2310
+ "columns": {
2311
+ "id": {
2312
+ "name": "id",
2313
+ "type": "uuid",
2314
+ "primaryKey": true,
2315
+ "notNull": true
2316
+ },
2317
+ "from_id": {
2318
+ "name": "from_id",
2319
+ "type": "text",
2320
+ "primaryKey": false,
2321
+ "notNull": true
2322
+ },
2323
+ "to_id": {
2324
+ "name": "to_id",
2325
+ "type": "text",
2326
+ "primaryKey": false,
2327
+ "notNull": true
2328
+ },
2329
+ "body": {
2330
+ "name": "body",
2331
+ "type": "jsonb",
2332
+ "primaryKey": false,
2333
+ "notNull": false,
2334
+ "default": "'{}'::jsonb"
2335
+ },
2336
+ "created_at": {
2337
+ "name": "created_at",
2338
+ "type": "timestamp with time zone",
2339
+ "primaryKey": false,
2340
+ "notNull": true,
2341
+ "default": "now()"
2342
+ },
2343
+ "updated_at": {
2344
+ "name": "updated_at",
2345
+ "type": "timestamp with time zone",
2346
+ "primaryKey": false,
2347
+ "notNull": true,
2348
+ "default": "now()"
2349
+ }
2350
+ },
2351
+ "indexes": {
2352
+ "has_role_from_idx": {
2353
+ "name": "has_role_from_idx",
2354
+ "columns": [
2355
+ {
2356
+ "expression": "from_id",
2357
+ "isExpression": false,
2358
+ "asc": true,
2359
+ "nulls": "last"
2360
+ }
2361
+ ],
2362
+ "isUnique": false,
2363
+ "concurrently": false,
2364
+ "method": "btree",
2365
+ "with": {}
2366
+ },
2367
+ "has_role_to_idx": {
2368
+ "name": "has_role_to_idx",
2369
+ "columns": [
2370
+ {
2371
+ "expression": "to_id",
2372
+ "isExpression": false,
2373
+ "asc": true,
2374
+ "nulls": "last"
2375
+ }
2376
+ ],
2377
+ "isUnique": false,
2378
+ "concurrently": false,
2379
+ "method": "btree",
2380
+ "with": {}
2381
+ },
2382
+ "has_role_from_to_unique": {
2383
+ "name": "has_role_from_to_unique",
2384
+ "columns": [
2385
+ {
2386
+ "expression": "from_id",
2387
+ "isExpression": false,
2388
+ "asc": true,
2389
+ "nulls": "last"
2390
+ },
2391
+ {
2392
+ "expression": "to_id",
2393
+ "isExpression": false,
2394
+ "asc": true,
2395
+ "nulls": "last"
2396
+ }
2397
+ ],
2398
+ "isUnique": true,
2399
+ "concurrently": false,
2400
+ "method": "btree",
2401
+ "with": {}
2402
+ }
2403
+ },
2404
+ "foreignKeys": {},
2405
+ "compositePrimaryKeys": {},
2406
+ "uniqueConstraints": {},
2407
+ "policies": {},
2408
+ "checkConstraints": {},
2409
+ "isRLSEnabled": false
2410
+ },
2411
+ "public.has_seen": {
2412
+ "name": "has_seen",
2413
+ "schema": "",
2414
+ "columns": {
2415
+ "id": {
2416
+ "name": "id",
2417
+ "type": "uuid",
2418
+ "primaryKey": true,
2419
+ "notNull": true
2420
+ },
2421
+ "from_id": {
2422
+ "name": "from_id",
2423
+ "type": "text",
2424
+ "primaryKey": false,
2425
+ "notNull": true
2426
+ },
2427
+ "to_id": {
2428
+ "name": "to_id",
2429
+ "type": "text",
2430
+ "primaryKey": false,
2431
+ "notNull": true
2432
+ },
2433
+ "body": {
2434
+ "name": "body",
2435
+ "type": "jsonb",
2436
+ "primaryKey": false,
2437
+ "notNull": false,
2438
+ "default": "'{}'::jsonb"
2439
+ },
2440
+ "created_at": {
2441
+ "name": "created_at",
2442
+ "type": "timestamp with time zone",
2443
+ "primaryKey": false,
2444
+ "notNull": true,
2445
+ "default": "now()"
2446
+ },
2447
+ "updated_at": {
2448
+ "name": "updated_at",
2449
+ "type": "timestamp with time zone",
2450
+ "primaryKey": false,
2451
+ "notNull": true,
2452
+ "default": "now()"
2453
+ }
2454
+ },
2455
+ "indexes": {
2456
+ "has_seen_from_idx": {
2457
+ "name": "has_seen_from_idx",
2458
+ "columns": [
2459
+ {
2460
+ "expression": "from_id",
2461
+ "isExpression": false,
2462
+ "asc": true,
2463
+ "nulls": "last"
2464
+ }
2465
+ ],
2466
+ "isUnique": false,
2467
+ "concurrently": false,
2468
+ "method": "btree",
2469
+ "with": {}
2470
+ },
2471
+ "has_seen_to_idx": {
2472
+ "name": "has_seen_to_idx",
2473
+ "columns": [
2474
+ {
2475
+ "expression": "to_id",
2476
+ "isExpression": false,
2477
+ "asc": true,
2478
+ "nulls": "last"
2479
+ }
2480
+ ],
2481
+ "isUnique": false,
2482
+ "concurrently": false,
2483
+ "method": "btree",
2484
+ "with": {}
2485
+ }
2486
+ },
2487
+ "foreignKeys": {},
2488
+ "compositePrimaryKeys": {},
2489
+ "uniqueConstraints": {},
2490
+ "policies": {},
2491
+ "checkConstraints": {},
2492
+ "isRLSEnabled": false
2493
+ },
2494
+ "public.invite_link_creators": {
2495
+ "name": "invite_link_creators",
2496
+ "schema": "",
2497
+ "columns": {
2498
+ "id": {
2499
+ "name": "id",
2500
+ "type": "uuid",
2501
+ "primaryKey": true,
2502
+ "notNull": true
2503
+ },
2504
+ "from_id": {
2505
+ "name": "from_id",
2506
+ "type": "text",
2507
+ "primaryKey": false,
2508
+ "notNull": true
2509
+ },
2510
+ "to_id": {
2511
+ "name": "to_id",
2512
+ "type": "text",
2513
+ "primaryKey": false,
2514
+ "notNull": true
2515
+ },
2516
+ "body": {
2517
+ "name": "body",
2518
+ "type": "jsonb",
2519
+ "primaryKey": false,
2520
+ "notNull": false,
2521
+ "default": "'{}'::jsonb"
2522
+ },
2523
+ "created_at": {
2524
+ "name": "created_at",
2525
+ "type": "timestamp with time zone",
2526
+ "primaryKey": false,
2527
+ "notNull": true,
2528
+ "default": "now()"
2529
+ },
2530
+ "updated_at": {
2531
+ "name": "updated_at",
2532
+ "type": "timestamp with time zone",
2533
+ "primaryKey": false,
2534
+ "notNull": true,
2535
+ "default": "now()"
2536
+ }
2537
+ },
2538
+ "indexes": {
2539
+ "invite_link_creators_from_idx": {
2540
+ "name": "invite_link_creators_from_idx",
2541
+ "columns": [
2542
+ {
2543
+ "expression": "from_id",
2544
+ "isExpression": false,
2545
+ "asc": true,
2546
+ "nulls": "last"
2547
+ }
2548
+ ],
2549
+ "isUnique": false,
2550
+ "concurrently": false,
2551
+ "method": "btree",
2552
+ "with": {}
2553
+ },
2554
+ "invite_link_creators_to_idx": {
2555
+ "name": "invite_link_creators_to_idx",
2556
+ "columns": [
2557
+ {
2558
+ "expression": "to_id",
2559
+ "isExpression": false,
2560
+ "asc": true,
2561
+ "nulls": "last"
2562
+ }
2563
+ ],
2564
+ "isUnique": false,
2565
+ "concurrently": false,
2566
+ "method": "btree",
2567
+ "with": {}
2568
+ }
2569
+ },
2570
+ "foreignKeys": {},
2571
+ "compositePrimaryKeys": {},
2572
+ "uniqueConstraints": {},
2573
+ "policies": {},
2574
+ "checkConstraints": {},
2575
+ "isRLSEnabled": false
2576
+ },
2577
+ "public.invite_link_redeemers": {
2578
+ "name": "invite_link_redeemers",
2579
+ "schema": "",
2580
+ "columns": {
2581
+ "id": {
2582
+ "name": "id",
2583
+ "type": "uuid",
2584
+ "primaryKey": true,
2585
+ "notNull": true
2586
+ },
2587
+ "from_id": {
2588
+ "name": "from_id",
2589
+ "type": "text",
2590
+ "primaryKey": false,
2591
+ "notNull": true
2592
+ },
2593
+ "to_id": {
2594
+ "name": "to_id",
2595
+ "type": "text",
2596
+ "primaryKey": false,
2597
+ "notNull": true
2598
+ },
2599
+ "body": {
2600
+ "name": "body",
2601
+ "type": "jsonb",
2602
+ "primaryKey": false,
2603
+ "notNull": false,
2604
+ "default": "'{}'::jsonb"
2605
+ },
2606
+ "created_at": {
2607
+ "name": "created_at",
2608
+ "type": "timestamp with time zone",
2609
+ "primaryKey": false,
2610
+ "notNull": true,
2611
+ "default": "now()"
2612
+ },
2613
+ "updated_at": {
2614
+ "name": "updated_at",
2615
+ "type": "timestamp with time zone",
2616
+ "primaryKey": false,
2617
+ "notNull": true,
2618
+ "default": "now()"
2619
+ }
2620
+ },
2621
+ "indexes": {
2622
+ "invite_link_redeemers_from_idx": {
2623
+ "name": "invite_link_redeemers_from_idx",
2624
+ "columns": [
2625
+ {
2626
+ "expression": "from_id",
2627
+ "isExpression": false,
2628
+ "asc": true,
2629
+ "nulls": "last"
2630
+ }
2631
+ ],
2632
+ "isUnique": false,
2633
+ "concurrently": false,
2634
+ "method": "btree",
2635
+ "with": {}
2636
+ },
2637
+ "invite_link_redeemers_to_idx": {
2638
+ "name": "invite_link_redeemers_to_idx",
2639
+ "columns": [
2640
+ {
2641
+ "expression": "to_id",
2642
+ "isExpression": false,
2643
+ "asc": true,
2644
+ "nulls": "last"
2645
+ }
2646
+ ],
2647
+ "isUnique": false,
2648
+ "concurrently": false,
2649
+ "method": "btree",
2650
+ "with": {}
2651
+ }
2652
+ },
2653
+ "foreignKeys": {},
2654
+ "compositePrimaryKeys": {},
2655
+ "uniqueConstraints": {},
2656
+ "policies": {},
2657
+ "checkConstraints": {},
2658
+ "isRLSEnabled": false
2659
+ },
2660
+ "public.is_reported_object": {
2661
+ "name": "is_reported_object",
2662
+ "schema": "",
2663
+ "columns": {
2664
+ "id": {
2665
+ "name": "id",
2666
+ "type": "uuid",
2667
+ "primaryKey": true,
2668
+ "notNull": true
2669
+ },
2670
+ "from_id": {
2671
+ "name": "from_id",
2672
+ "type": "text",
2673
+ "primaryKey": false,
2674
+ "notNull": true
2675
+ },
2676
+ "to_id": {
2677
+ "name": "to_id",
2678
+ "type": "text",
2679
+ "primaryKey": false,
2680
+ "notNull": true
2681
+ },
2682
+ "body": {
2683
+ "name": "body",
2684
+ "type": "jsonb",
2685
+ "primaryKey": false,
2686
+ "notNull": false,
2687
+ "default": "'{}'::jsonb"
2688
+ },
2689
+ "created_at": {
2690
+ "name": "created_at",
2691
+ "type": "timestamp with time zone",
2692
+ "primaryKey": false,
2693
+ "notNull": true,
2694
+ "default": "now()"
2695
+ },
2696
+ "updated_at": {
2697
+ "name": "updated_at",
2698
+ "type": "timestamp with time zone",
2699
+ "primaryKey": false,
2700
+ "notNull": true,
2701
+ "default": "now()"
2702
+ }
2703
+ },
2704
+ "indexes": {
2705
+ "is_reported_object_from_idx": {
2706
+ "name": "is_reported_object_from_idx",
2707
+ "columns": [
2708
+ {
2709
+ "expression": "from_id",
2710
+ "isExpression": false,
2711
+ "asc": true,
2712
+ "nulls": "last"
2713
+ }
2714
+ ],
2715
+ "isUnique": false,
2716
+ "concurrently": false,
2717
+ "method": "btree",
2718
+ "with": {}
2719
+ },
2720
+ "is_reported_object_to_idx": {
2721
+ "name": "is_reported_object_to_idx",
2722
+ "columns": [
2723
+ {
2724
+ "expression": "to_id",
2725
+ "isExpression": false,
2726
+ "asc": true,
2727
+ "nulls": "last"
2728
+ }
2729
+ ],
2730
+ "isUnique": false,
2731
+ "concurrently": false,
2732
+ "method": "btree",
2733
+ "with": {}
2734
+ }
2735
+ },
2736
+ "foreignKeys": {},
2737
+ "compositePrimaryKeys": {},
2738
+ "uniqueConstraints": {},
2739
+ "policies": {},
2740
+ "checkConstraints": {},
2741
+ "isRLSEnabled": false
2742
+ },
2743
+ "public.is_reported_profile": {
2744
+ "name": "is_reported_profile",
2745
+ "schema": "",
2746
+ "columns": {
2747
+ "id": {
2748
+ "name": "id",
2749
+ "type": "uuid",
2750
+ "primaryKey": true,
2751
+ "notNull": true
2752
+ },
2753
+ "from_id": {
2754
+ "name": "from_id",
2755
+ "type": "text",
2756
+ "primaryKey": false,
2757
+ "notNull": true
2758
+ },
2759
+ "to_id": {
2760
+ "name": "to_id",
2761
+ "type": "text",
2762
+ "primaryKey": false,
2763
+ "notNull": true
2764
+ },
2765
+ "body": {
2766
+ "name": "body",
2767
+ "type": "jsonb",
2768
+ "primaryKey": false,
2769
+ "notNull": false,
2770
+ "default": "'{}'::jsonb"
2771
+ },
2772
+ "created_at": {
2773
+ "name": "created_at",
2774
+ "type": "timestamp with time zone",
2775
+ "primaryKey": false,
2776
+ "notNull": true,
2777
+ "default": "now()"
2778
+ },
2779
+ "updated_at": {
2780
+ "name": "updated_at",
2781
+ "type": "timestamp with time zone",
2782
+ "primaryKey": false,
2783
+ "notNull": true,
2784
+ "default": "now()"
2785
+ }
2786
+ },
2787
+ "indexes": {
2788
+ "is_reported_profile_from_idx": {
2789
+ "name": "is_reported_profile_from_idx",
2790
+ "columns": [
2791
+ {
2792
+ "expression": "from_id",
2793
+ "isExpression": false,
2794
+ "asc": true,
2795
+ "nulls": "last"
2796
+ }
2797
+ ],
2798
+ "isUnique": false,
2799
+ "concurrently": false,
2800
+ "method": "btree",
2801
+ "with": {}
2802
+ },
2803
+ "is_reported_profile_to_idx": {
2804
+ "name": "is_reported_profile_to_idx",
2805
+ "columns": [
2806
+ {
2807
+ "expression": "to_id",
2808
+ "isExpression": false,
2809
+ "asc": true,
2810
+ "nulls": "last"
2811
+ }
2812
+ ],
2813
+ "isUnique": false,
2814
+ "concurrently": false,
2815
+ "method": "btree",
2816
+ "with": {}
2817
+ }
2818
+ },
2819
+ "foreignKeys": {},
2820
+ "compositePrimaryKeys": {},
2821
+ "uniqueConstraints": {},
2822
+ "policies": {},
2823
+ "checkConstraints": {},
2824
+ "isRLSEnabled": false
2825
+ },
2826
+ "public.jam_recordings": {
2827
+ "name": "jam_recordings",
2828
+ "schema": "",
2829
+ "columns": {
2830
+ "id": {
2831
+ "name": "id",
2832
+ "type": "uuid",
2833
+ "primaryKey": true,
2834
+ "notNull": true
2835
+ },
2836
+ "from_id": {
2837
+ "name": "from_id",
2838
+ "type": "text",
2839
+ "primaryKey": false,
2840
+ "notNull": true
2841
+ },
2842
+ "to_id": {
2843
+ "name": "to_id",
2844
+ "type": "text",
2845
+ "primaryKey": false,
2846
+ "notNull": true
2847
+ },
2848
+ "body": {
2849
+ "name": "body",
2850
+ "type": "jsonb",
2851
+ "primaryKey": false,
2852
+ "notNull": false,
2853
+ "default": "'{}'::jsonb"
2854
+ },
2855
+ "created_at": {
2856
+ "name": "created_at",
2857
+ "type": "timestamp with time zone",
2858
+ "primaryKey": false,
2859
+ "notNull": true,
2860
+ "default": "now()"
2861
+ },
2862
+ "updated_at": {
2863
+ "name": "updated_at",
2864
+ "type": "timestamp with time zone",
2865
+ "primaryKey": false,
2866
+ "notNull": true,
2867
+ "default": "now()"
2868
+ }
2869
+ },
2870
+ "indexes": {
2871
+ "jam_recordings_from_idx": {
2872
+ "name": "jam_recordings_from_idx",
2873
+ "columns": [
2874
+ {
2875
+ "expression": "from_id",
2876
+ "isExpression": false,
2877
+ "asc": true,
2878
+ "nulls": "last"
2879
+ }
2880
+ ],
2881
+ "isUnique": false,
2882
+ "concurrently": false,
2883
+ "method": "btree",
2884
+ "with": {}
2885
+ },
2886
+ "jam_recordings_to_idx": {
2887
+ "name": "jam_recordings_to_idx",
2888
+ "columns": [
2889
+ {
2890
+ "expression": "to_id",
2891
+ "isExpression": false,
2892
+ "asc": true,
2893
+ "nulls": "last"
2894
+ }
2895
+ ],
2896
+ "isUnique": false,
2897
+ "concurrently": false,
2898
+ "method": "btree",
2899
+ "with": {}
2900
+ }
2901
+ },
2902
+ "foreignKeys": {},
2903
+ "compositePrimaryKeys": {},
2904
+ "uniqueConstraints": {},
2905
+ "policies": {},
2906
+ "checkConstraints": {},
2907
+ "isRLSEnabled": false
2908
+ },
2909
+ "public.mentions": {
2910
+ "name": "mentions",
2911
+ "schema": "",
2912
+ "columns": {
2913
+ "id": {
2914
+ "name": "id",
2915
+ "type": "uuid",
2916
+ "primaryKey": true,
2917
+ "notNull": true
2918
+ },
2919
+ "from_id": {
2920
+ "name": "from_id",
2921
+ "type": "text",
2922
+ "primaryKey": false,
2923
+ "notNull": true
2924
+ },
2925
+ "to_id": {
2926
+ "name": "to_id",
2927
+ "type": "text",
2928
+ "primaryKey": false,
2929
+ "notNull": true
2930
+ },
2931
+ "body": {
2932
+ "name": "body",
2933
+ "type": "jsonb",
2934
+ "primaryKey": false,
2935
+ "notNull": false,
2936
+ "default": "'{}'::jsonb"
2937
+ },
2938
+ "created_at": {
2939
+ "name": "created_at",
2940
+ "type": "timestamp with time zone",
2941
+ "primaryKey": false,
2942
+ "notNull": true,
2943
+ "default": "now()"
2944
+ },
2945
+ "updated_at": {
2946
+ "name": "updated_at",
2947
+ "type": "timestamp with time zone",
2948
+ "primaryKey": false,
2949
+ "notNull": true,
2950
+ "default": "now()"
2951
+ }
2952
+ },
2953
+ "indexes": {
2954
+ "mentions_from_idx": {
2955
+ "name": "mentions_from_idx",
2956
+ "columns": [
2957
+ {
2958
+ "expression": "from_id",
2959
+ "isExpression": false,
2960
+ "asc": true,
2961
+ "nulls": "last"
2962
+ }
2963
+ ],
2964
+ "isUnique": false,
2965
+ "concurrently": false,
2966
+ "method": "btree",
2967
+ "with": {}
2968
+ },
2969
+ "mentions_to_idx": {
2970
+ "name": "mentions_to_idx",
2971
+ "columns": [
2972
+ {
2973
+ "expression": "to_id",
2974
+ "isExpression": false,
2975
+ "asc": true,
2976
+ "nulls": "last"
2977
+ }
2978
+ ],
2979
+ "isUnique": false,
2980
+ "concurrently": false,
2981
+ "method": "btree",
2982
+ "with": {}
2983
+ }
2984
+ },
2985
+ "foreignKeys": {},
2986
+ "compositePrimaryKeys": {},
2987
+ "uniqueConstraints": {},
2988
+ "policies": {},
2989
+ "checkConstraints": {},
2990
+ "isRLSEnabled": false
2991
+ },
2992
+ "public.post_groups": {
2993
+ "name": "post_groups",
2994
+ "schema": "",
2995
+ "columns": {
2996
+ "id": {
2997
+ "name": "id",
2998
+ "type": "uuid",
2999
+ "primaryKey": true,
3000
+ "notNull": true
3001
+ },
3002
+ "from_id": {
3003
+ "name": "from_id",
3004
+ "type": "text",
3005
+ "primaryKey": false,
3006
+ "notNull": true
3007
+ },
3008
+ "to_id": {
3009
+ "name": "to_id",
3010
+ "type": "text",
3011
+ "primaryKey": false,
3012
+ "notNull": true
3013
+ },
3014
+ "body": {
3015
+ "name": "body",
3016
+ "type": "jsonb",
3017
+ "primaryKey": false,
3018
+ "notNull": false,
3019
+ "default": "'{}'::jsonb"
3020
+ },
3021
+ "created_at": {
3022
+ "name": "created_at",
3023
+ "type": "timestamp with time zone",
3024
+ "primaryKey": false,
3025
+ "notNull": true,
3026
+ "default": "now()"
3027
+ },
3028
+ "updated_at": {
3029
+ "name": "updated_at",
3030
+ "type": "timestamp with time zone",
3031
+ "primaryKey": false,
3032
+ "notNull": true,
3033
+ "default": "now()"
3034
+ }
3035
+ },
3036
+ "indexes": {
3037
+ "post_groups_from_idx": {
3038
+ "name": "post_groups_from_idx",
3039
+ "columns": [
3040
+ {
3041
+ "expression": "from_id",
3042
+ "isExpression": false,
3043
+ "asc": true,
3044
+ "nulls": "last"
3045
+ }
3046
+ ],
3047
+ "isUnique": false,
3048
+ "concurrently": false,
3049
+ "method": "btree",
3050
+ "with": {}
3051
+ },
3052
+ "post_groups_to_idx": {
3053
+ "name": "post_groups_to_idx",
3054
+ "columns": [
3055
+ {
3056
+ "expression": "to_id",
3057
+ "isExpression": false,
3058
+ "asc": true,
3059
+ "nulls": "last"
3060
+ }
3061
+ ],
3062
+ "isUnique": false,
3063
+ "concurrently": false,
3064
+ "method": "btree",
3065
+ "with": {}
3066
+ }
3067
+ },
3068
+ "foreignKeys": {},
3069
+ "compositePrimaryKeys": {},
3070
+ "uniqueConstraints": {},
3071
+ "policies": {},
3072
+ "checkConstraints": {},
3073
+ "isRLSEnabled": false
3074
+ },
3075
+ "public.post_hashtags": {
3076
+ "name": "post_hashtags",
3077
+ "schema": "",
3078
+ "columns": {
3079
+ "id": {
3080
+ "name": "id",
3081
+ "type": "uuid",
3082
+ "primaryKey": true,
3083
+ "notNull": true
3084
+ },
3085
+ "from_id": {
3086
+ "name": "from_id",
3087
+ "type": "text",
3088
+ "primaryKey": false,
3089
+ "notNull": true
3090
+ },
3091
+ "to_id": {
3092
+ "name": "to_id",
3093
+ "type": "text",
3094
+ "primaryKey": false,
3095
+ "notNull": true
3096
+ },
3097
+ "body": {
3098
+ "name": "body",
3099
+ "type": "jsonb",
3100
+ "primaryKey": false,
3101
+ "notNull": false,
3102
+ "default": "'{}'::jsonb"
3103
+ },
3104
+ "created_at": {
3105
+ "name": "created_at",
3106
+ "type": "timestamp with time zone",
3107
+ "primaryKey": false,
3108
+ "notNull": true,
3109
+ "default": "now()"
3110
+ },
3111
+ "updated_at": {
3112
+ "name": "updated_at",
3113
+ "type": "timestamp with time zone",
3114
+ "primaryKey": false,
3115
+ "notNull": true,
3116
+ "default": "now()"
3117
+ }
3118
+ },
3119
+ "indexes": {
3120
+ "post_hashtags_from_idx": {
3121
+ "name": "post_hashtags_from_idx",
3122
+ "columns": [
3123
+ {
3124
+ "expression": "from_id",
3125
+ "isExpression": false,
3126
+ "asc": true,
3127
+ "nulls": "last"
3128
+ }
3129
+ ],
3130
+ "isUnique": false,
3131
+ "concurrently": false,
3132
+ "method": "btree",
3133
+ "with": {}
3134
+ },
3135
+ "post_hashtags_to_idx": {
3136
+ "name": "post_hashtags_to_idx",
3137
+ "columns": [
3138
+ {
3139
+ "expression": "to_id",
3140
+ "isExpression": false,
3141
+ "asc": true,
3142
+ "nulls": "last"
3143
+ }
3144
+ ],
3145
+ "isUnique": false,
3146
+ "concurrently": false,
3147
+ "method": "btree",
3148
+ "with": {}
3149
+ }
3150
+ },
3151
+ "foreignKeys": {},
3152
+ "compositePrimaryKeys": {},
3153
+ "uniqueConstraints": {},
3154
+ "policies": {},
3155
+ "checkConstraints": {},
3156
+ "isRLSEnabled": false
3157
+ },
3158
+ "public.post_seen": {
3159
+ "name": "post_seen",
3160
+ "schema": "",
3161
+ "columns": {
3162
+ "id": {
3163
+ "name": "id",
3164
+ "type": "uuid",
3165
+ "primaryKey": true,
3166
+ "notNull": true
3167
+ },
3168
+ "from_id": {
3169
+ "name": "from_id",
3170
+ "type": "text",
3171
+ "primaryKey": false,
3172
+ "notNull": true
3173
+ },
3174
+ "to_id": {
3175
+ "name": "to_id",
3176
+ "type": "text",
3177
+ "primaryKey": false,
3178
+ "notNull": true
3179
+ },
3180
+ "body": {
3181
+ "name": "body",
3182
+ "type": "jsonb",
3183
+ "primaryKey": false,
3184
+ "notNull": false,
3185
+ "default": "'{}'::jsonb"
3186
+ },
3187
+ "created_at": {
3188
+ "name": "created_at",
3189
+ "type": "timestamp with time zone",
3190
+ "primaryKey": false,
3191
+ "notNull": true,
3192
+ "default": "now()"
3193
+ },
3194
+ "updated_at": {
3195
+ "name": "updated_at",
3196
+ "type": "timestamp with time zone",
3197
+ "primaryKey": false,
3198
+ "notNull": true,
3199
+ "default": "now()"
3200
+ }
3201
+ },
3202
+ "indexes": {
3203
+ "post_seen_from_idx": {
3204
+ "name": "post_seen_from_idx",
3205
+ "columns": [
3206
+ {
3207
+ "expression": "from_id",
3208
+ "isExpression": false,
3209
+ "asc": true,
3210
+ "nulls": "last"
3211
+ }
3212
+ ],
3213
+ "isUnique": false,
3214
+ "concurrently": false,
3215
+ "method": "btree",
3216
+ "with": {}
3217
+ },
3218
+ "post_seen_to_idx": {
3219
+ "name": "post_seen_to_idx",
3220
+ "columns": [
3221
+ {
3222
+ "expression": "to_id",
3223
+ "isExpression": false,
3224
+ "asc": true,
3225
+ "nulls": "last"
3226
+ }
3227
+ ],
3228
+ "isUnique": false,
3229
+ "concurrently": false,
3230
+ "method": "btree",
3231
+ "with": {}
3232
+ }
3233
+ },
3234
+ "foreignKeys": {},
3235
+ "compositePrimaryKeys": {},
3236
+ "uniqueConstraints": {},
3237
+ "policies": {},
3238
+ "checkConstraints": {},
3239
+ "isRLSEnabled": false
3240
+ },
3241
+ "public.profile_access_tokens": {
3242
+ "name": "profile_access_tokens",
3243
+ "schema": "",
3244
+ "columns": {
3245
+ "id": {
3246
+ "name": "id",
3247
+ "type": "uuid",
3248
+ "primaryKey": true,
3249
+ "notNull": true
3250
+ },
3251
+ "from_id": {
3252
+ "name": "from_id",
3253
+ "type": "text",
3254
+ "primaryKey": false,
3255
+ "notNull": true
3256
+ },
3257
+ "to_id": {
3258
+ "name": "to_id",
3259
+ "type": "text",
3260
+ "primaryKey": false,
3261
+ "notNull": true
3262
+ },
3263
+ "body": {
3264
+ "name": "body",
3265
+ "type": "jsonb",
3266
+ "primaryKey": false,
3267
+ "notNull": false,
3268
+ "default": "'{}'::jsonb"
3269
+ },
3270
+ "created_at": {
3271
+ "name": "created_at",
3272
+ "type": "timestamp with time zone",
3273
+ "primaryKey": false,
3274
+ "notNull": true,
3275
+ "default": "now()"
3276
+ },
3277
+ "updated_at": {
3278
+ "name": "updated_at",
3279
+ "type": "timestamp with time zone",
3280
+ "primaryKey": false,
3281
+ "notNull": true,
3282
+ "default": "now()"
3283
+ }
3284
+ },
3285
+ "indexes": {
3286
+ "profile_access_tokens_from_idx": {
3287
+ "name": "profile_access_tokens_from_idx",
3288
+ "columns": [
3289
+ {
3290
+ "expression": "from_id",
3291
+ "isExpression": false,
3292
+ "asc": true,
3293
+ "nulls": "last"
3294
+ }
3295
+ ],
3296
+ "isUnique": false,
3297
+ "concurrently": false,
3298
+ "method": "btree",
3299
+ "with": {}
3300
+ },
3301
+ "profile_access_tokens_to_idx": {
3302
+ "name": "profile_access_tokens_to_idx",
3303
+ "columns": [
3304
+ {
3305
+ "expression": "to_id",
3306
+ "isExpression": false,
3307
+ "asc": true,
3308
+ "nulls": "last"
3309
+ }
3310
+ ],
3311
+ "isUnique": false,
3312
+ "concurrently": false,
3313
+ "method": "btree",
3314
+ "with": {}
3315
+ },
3316
+ "profile_access_tokens_from_to_unique": {
3317
+ "name": "profile_access_tokens_from_to_unique",
3318
+ "columns": [
3319
+ {
3320
+ "expression": "from_id",
3321
+ "isExpression": false,
3322
+ "asc": true,
3323
+ "nulls": "last"
3324
+ },
3325
+ {
3326
+ "expression": "to_id",
3327
+ "isExpression": false,
3328
+ "asc": true,
3329
+ "nulls": "last"
3330
+ }
3331
+ ],
3332
+ "isUnique": true,
3333
+ "concurrently": false,
3334
+ "method": "btree",
3335
+ "with": {}
3336
+ }
3337
+ },
3338
+ "foreignKeys": {},
3339
+ "compositePrimaryKeys": {},
3340
+ "uniqueConstraints": {},
3341
+ "policies": {},
3342
+ "checkConstraints": {},
3343
+ "isRLSEnabled": false
3344
+ },
3345
+ "public.profile_hashtags": {
3346
+ "name": "profile_hashtags",
3347
+ "schema": "",
3348
+ "columns": {
3349
+ "id": {
3350
+ "name": "id",
3351
+ "type": "uuid",
3352
+ "primaryKey": true,
3353
+ "notNull": true
3354
+ },
3355
+ "from_id": {
3356
+ "name": "from_id",
3357
+ "type": "text",
3358
+ "primaryKey": false,
3359
+ "notNull": true
3360
+ },
3361
+ "to_id": {
3362
+ "name": "to_id",
3363
+ "type": "text",
3364
+ "primaryKey": false,
3365
+ "notNull": true
3366
+ },
3367
+ "body": {
3368
+ "name": "body",
3369
+ "type": "jsonb",
3370
+ "primaryKey": false,
3371
+ "notNull": false,
3372
+ "default": "'{}'::jsonb"
3373
+ },
3374
+ "created_at": {
3375
+ "name": "created_at",
3376
+ "type": "timestamp with time zone",
3377
+ "primaryKey": false,
3378
+ "notNull": true,
3379
+ "default": "now()"
3380
+ },
3381
+ "updated_at": {
3382
+ "name": "updated_at",
3383
+ "type": "timestamp with time zone",
3384
+ "primaryKey": false,
3385
+ "notNull": true,
3386
+ "default": "now()"
3387
+ }
3388
+ },
3389
+ "indexes": {
3390
+ "profile_hashtags_from_idx": {
3391
+ "name": "profile_hashtags_from_idx",
3392
+ "columns": [
3393
+ {
3394
+ "expression": "from_id",
3395
+ "isExpression": false,
3396
+ "asc": true,
3397
+ "nulls": "last"
3398
+ }
3399
+ ],
3400
+ "isUnique": false,
3401
+ "concurrently": false,
3402
+ "method": "btree",
3403
+ "with": {}
3404
+ },
3405
+ "profile_hashtags_to_idx": {
3406
+ "name": "profile_hashtags_to_idx",
3407
+ "columns": [
3408
+ {
3409
+ "expression": "to_id",
3410
+ "isExpression": false,
3411
+ "asc": true,
3412
+ "nulls": "last"
3413
+ }
3414
+ ],
3415
+ "isUnique": false,
3416
+ "concurrently": false,
3417
+ "method": "btree",
3418
+ "with": {}
3419
+ },
3420
+ "profile_hashtags_from_to_unique": {
3421
+ "name": "profile_hashtags_from_to_unique",
3422
+ "columns": [
3423
+ {
3424
+ "expression": "from_id",
3425
+ "isExpression": false,
3426
+ "asc": true,
3427
+ "nulls": "last"
3428
+ },
3429
+ {
3430
+ "expression": "to_id",
3431
+ "isExpression": false,
3432
+ "asc": true,
3433
+ "nulls": "last"
3434
+ }
3435
+ ],
3436
+ "isUnique": true,
3437
+ "concurrently": false,
3438
+ "method": "btree",
3439
+ "with": {}
3440
+ }
3441
+ },
3442
+ "foreignKeys": {},
3443
+ "compositePrimaryKeys": {},
3444
+ "uniqueConstraints": {},
3445
+ "policies": {},
3446
+ "checkConstraints": {},
3447
+ "isRLSEnabled": false
3448
+ },
3449
+ "public.reply_to": {
3450
+ "name": "reply_to",
3451
+ "schema": "",
3452
+ "columns": {
3453
+ "id": {
3454
+ "name": "id",
3455
+ "type": "uuid",
3456
+ "primaryKey": true,
3457
+ "notNull": true
3458
+ },
3459
+ "from_id": {
3460
+ "name": "from_id",
3461
+ "type": "text",
3462
+ "primaryKey": false,
3463
+ "notNull": true
3464
+ },
3465
+ "to_id": {
3466
+ "name": "to_id",
3467
+ "type": "text",
3468
+ "primaryKey": false,
3469
+ "notNull": true
3470
+ },
3471
+ "body": {
3472
+ "name": "body",
3473
+ "type": "jsonb",
3474
+ "primaryKey": false,
3475
+ "notNull": false,
3476
+ "default": "'{}'::jsonb"
3477
+ },
3478
+ "created_at": {
3479
+ "name": "created_at",
3480
+ "type": "timestamp with time zone",
3481
+ "primaryKey": false,
3482
+ "notNull": true,
3483
+ "default": "now()"
3484
+ },
3485
+ "updated_at": {
3486
+ "name": "updated_at",
3487
+ "type": "timestamp with time zone",
3488
+ "primaryKey": false,
3489
+ "notNull": true,
3490
+ "default": "now()"
3491
+ }
3492
+ },
3493
+ "indexes": {
3494
+ "reply_to_from_idx": {
3495
+ "name": "reply_to_from_idx",
3496
+ "columns": [
3497
+ {
3498
+ "expression": "from_id",
3499
+ "isExpression": false,
3500
+ "asc": true,
3501
+ "nulls": "last"
3502
+ }
3503
+ ],
3504
+ "isUnique": false,
3505
+ "concurrently": false,
3506
+ "method": "btree",
3507
+ "with": {}
3508
+ },
3509
+ "reply_to_to_idx": {
3510
+ "name": "reply_to_to_idx",
3511
+ "columns": [
3512
+ {
3513
+ "expression": "to_id",
3514
+ "isExpression": false,
3515
+ "asc": true,
3516
+ "nulls": "last"
3517
+ }
3518
+ ],
3519
+ "isUnique": false,
3520
+ "concurrently": false,
3521
+ "method": "btree",
3522
+ "with": {}
3523
+ },
3524
+ "reply_to_from_to_unique": {
3525
+ "name": "reply_to_from_to_unique",
3526
+ "columns": [
3527
+ {
3528
+ "expression": "from_id",
3529
+ "isExpression": false,
3530
+ "asc": true,
3531
+ "nulls": "last"
3532
+ },
3533
+ {
3534
+ "expression": "to_id",
3535
+ "isExpression": false,
3536
+ "asc": true,
3537
+ "nulls": "last"
3538
+ }
3539
+ ],
3540
+ "isUnique": true,
3541
+ "concurrently": false,
3542
+ "method": "btree",
3543
+ "with": {}
3544
+ }
3545
+ },
3546
+ "foreignKeys": {},
3547
+ "compositePrimaryKeys": {},
3548
+ "uniqueConstraints": {},
3549
+ "policies": {},
3550
+ "checkConstraints": {},
3551
+ "isRLSEnabled": false
3552
+ },
3553
+ "public.repost": {
3554
+ "name": "repost",
3555
+ "schema": "",
3556
+ "columns": {
3557
+ "id": {
3558
+ "name": "id",
3559
+ "type": "uuid",
3560
+ "primaryKey": true,
3561
+ "notNull": true
3562
+ },
3563
+ "from_id": {
3564
+ "name": "from_id",
3565
+ "type": "text",
3566
+ "primaryKey": false,
3567
+ "notNull": true
3568
+ },
3569
+ "to_id": {
3570
+ "name": "to_id",
3571
+ "type": "text",
3572
+ "primaryKey": false,
3573
+ "notNull": true
3574
+ },
3575
+ "body": {
3576
+ "name": "body",
3577
+ "type": "jsonb",
3578
+ "primaryKey": false,
3579
+ "notNull": false,
3580
+ "default": "'{}'::jsonb"
3581
+ },
3582
+ "created_at": {
3583
+ "name": "created_at",
3584
+ "type": "timestamp with time zone",
3585
+ "primaryKey": false,
3586
+ "notNull": true,
3587
+ "default": "now()"
3588
+ },
3589
+ "updated_at": {
3590
+ "name": "updated_at",
3591
+ "type": "timestamp with time zone",
3592
+ "primaryKey": false,
3593
+ "notNull": true,
3594
+ "default": "now()"
3595
+ }
3596
+ },
3597
+ "indexes": {
3598
+ "repost_from_idx": {
3599
+ "name": "repost_from_idx",
3600
+ "columns": [
3601
+ {
3602
+ "expression": "from_id",
3603
+ "isExpression": false,
3604
+ "asc": true,
3605
+ "nulls": "last"
3606
+ }
3607
+ ],
3608
+ "isUnique": false,
3609
+ "concurrently": false,
3610
+ "method": "btree",
3611
+ "with": {}
3612
+ },
3613
+ "repost_to_idx": {
3614
+ "name": "repost_to_idx",
3615
+ "columns": [
3616
+ {
3617
+ "expression": "to_id",
3618
+ "isExpression": false,
3619
+ "asc": true,
3620
+ "nulls": "last"
3621
+ }
3622
+ ],
3623
+ "isUnique": false,
3624
+ "concurrently": false,
3625
+ "method": "btree",
3626
+ "with": {}
3627
+ },
3628
+ "repost_from_to_unique": {
3629
+ "name": "repost_from_to_unique",
3630
+ "columns": [
3631
+ {
3632
+ "expression": "from_id",
3633
+ "isExpression": false,
3634
+ "asc": true,
3635
+ "nulls": "last"
3636
+ },
3637
+ {
3638
+ "expression": "to_id",
3639
+ "isExpression": false,
3640
+ "asc": true,
3641
+ "nulls": "last"
3642
+ }
3643
+ ],
3644
+ "isUnique": true,
3645
+ "concurrently": false,
3646
+ "method": "btree",
3647
+ "with": {}
3648
+ }
3649
+ },
3650
+ "foreignKeys": {},
3651
+ "compositePrimaryKeys": {},
3652
+ "uniqueConstraints": {},
3653
+ "policies": {},
3654
+ "checkConstraints": {},
3655
+ "isRLSEnabled": false
3656
+ },
3657
+ "public.requests_follow": {
3658
+ "name": "requests_follow",
3659
+ "schema": "",
3660
+ "columns": {
3661
+ "id": {
3662
+ "name": "id",
3663
+ "type": "uuid",
3664
+ "primaryKey": true,
3665
+ "notNull": true
3666
+ },
3667
+ "from_id": {
3668
+ "name": "from_id",
3669
+ "type": "text",
3670
+ "primaryKey": false,
3671
+ "notNull": true
3672
+ },
3673
+ "to_id": {
3674
+ "name": "to_id",
3675
+ "type": "text",
3676
+ "primaryKey": false,
3677
+ "notNull": true
3678
+ },
3679
+ "body": {
3680
+ "name": "body",
3681
+ "type": "jsonb",
3682
+ "primaryKey": false,
3683
+ "notNull": false,
3684
+ "default": "'{}'::jsonb"
3685
+ },
3686
+ "created_at": {
3687
+ "name": "created_at",
3688
+ "type": "timestamp with time zone",
3689
+ "primaryKey": false,
3690
+ "notNull": true,
3691
+ "default": "now()"
3692
+ },
3693
+ "updated_at": {
3694
+ "name": "updated_at",
3695
+ "type": "timestamp with time zone",
3696
+ "primaryKey": false,
3697
+ "notNull": true,
3698
+ "default": "now()"
3699
+ }
3700
+ },
3701
+ "indexes": {
3702
+ "requests_follow_from_idx": {
3703
+ "name": "requests_follow_from_idx",
3704
+ "columns": [
3705
+ {
3706
+ "expression": "from_id",
3707
+ "isExpression": false,
3708
+ "asc": true,
3709
+ "nulls": "last"
3710
+ }
3711
+ ],
3712
+ "isUnique": false,
3713
+ "concurrently": false,
3714
+ "method": "btree",
3715
+ "with": {}
3716
+ },
3717
+ "requests_follow_to_idx": {
3718
+ "name": "requests_follow_to_idx",
3719
+ "columns": [
3720
+ {
3721
+ "expression": "to_id",
3722
+ "isExpression": false,
3723
+ "asc": true,
3724
+ "nulls": "last"
3725
+ }
3726
+ ],
3727
+ "isUnique": false,
3728
+ "concurrently": false,
3729
+ "method": "btree",
3730
+ "with": {}
3731
+ }
3732
+ },
3733
+ "foreignKeys": {},
3734
+ "compositePrimaryKeys": {},
3735
+ "uniqueConstraints": {},
3736
+ "policies": {},
3737
+ "checkConstraints": {},
3738
+ "isRLSEnabled": false
3739
+ },
3740
+ "public.user_groups": {
3741
+ "name": "user_groups",
3742
+ "schema": "",
3743
+ "columns": {
3744
+ "id": {
3745
+ "name": "id",
3746
+ "type": "uuid",
3747
+ "primaryKey": true,
3748
+ "notNull": true
3749
+ },
3750
+ "from_id": {
3751
+ "name": "from_id",
3752
+ "type": "text",
3753
+ "primaryKey": false,
3754
+ "notNull": true
3755
+ },
3756
+ "to_id": {
3757
+ "name": "to_id",
3758
+ "type": "text",
3759
+ "primaryKey": false,
3760
+ "notNull": true
3761
+ },
3762
+ "body": {
3763
+ "name": "body",
3764
+ "type": "jsonb",
3765
+ "primaryKey": false,
3766
+ "notNull": false,
3767
+ "default": "'{}'::jsonb"
3768
+ },
3769
+ "created_at": {
3770
+ "name": "created_at",
3771
+ "type": "timestamp with time zone",
3772
+ "primaryKey": false,
3773
+ "notNull": true,
3774
+ "default": "now()"
3775
+ },
3776
+ "updated_at": {
3777
+ "name": "updated_at",
3778
+ "type": "timestamp with time zone",
3779
+ "primaryKey": false,
3780
+ "notNull": true,
3781
+ "default": "now()"
3782
+ }
3783
+ },
3784
+ "indexes": {
3785
+ "user_groups_from_idx": {
3786
+ "name": "user_groups_from_idx",
3787
+ "columns": [
3788
+ {
3789
+ "expression": "from_id",
3790
+ "isExpression": false,
3791
+ "asc": true,
3792
+ "nulls": "last"
3793
+ }
3794
+ ],
3795
+ "isUnique": false,
3796
+ "concurrently": false,
3797
+ "method": "btree",
3798
+ "with": {}
3799
+ },
3800
+ "user_groups_to_idx": {
3801
+ "name": "user_groups_to_idx",
3802
+ "columns": [
3803
+ {
3804
+ "expression": "to_id",
3805
+ "isExpression": false,
3806
+ "asc": true,
3807
+ "nulls": "last"
3808
+ }
3809
+ ],
3810
+ "isUnique": false,
3811
+ "concurrently": false,
3812
+ "method": "btree",
3813
+ "with": {}
3814
+ }
3815
+ },
3816
+ "foreignKeys": {},
3817
+ "compositePrimaryKeys": {},
3818
+ "uniqueConstraints": {},
3819
+ "policies": {},
3820
+ "checkConstraints": {},
3821
+ "isRLSEnabled": false
3822
+ },
3823
+ "public.analytics_daily_activity_heatmap": {
3824
+ "name": "analytics_daily_activity_heatmap",
3825
+ "schema": "",
3826
+ "columns": {
3827
+ "id": {
3828
+ "name": "id",
3829
+ "type": "uuid",
3830
+ "primaryKey": true,
3831
+ "notNull": true
3832
+ },
3833
+ "day": {
3834
+ "name": "day",
3835
+ "type": "date",
3836
+ "primaryKey": false,
3837
+ "notNull": true
3838
+ },
3839
+ "dow": {
3840
+ "name": "dow",
3841
+ "type": "integer",
3842
+ "primaryKey": false,
3843
+ "notNull": true
3844
+ },
3845
+ "hour": {
3846
+ "name": "hour",
3847
+ "type": "integer",
3848
+ "primaryKey": false,
3849
+ "notNull": true
3850
+ },
3851
+ "activity_count": {
3852
+ "name": "activity_count",
3853
+ "type": "integer",
3854
+ "primaryKey": false,
3855
+ "notNull": true,
3856
+ "default": 0
3857
+ },
3858
+ "compiled_at": {
3859
+ "name": "compiled_at",
3860
+ "type": "timestamp with time zone",
3861
+ "primaryKey": false,
3862
+ "notNull": true,
3863
+ "default": "now()"
3864
+ }
3865
+ },
3866
+ "indexes": {
3867
+ "analytics_heatmap_day_dow_hour": {
3868
+ "name": "analytics_heatmap_day_dow_hour",
3869
+ "columns": [
3870
+ {
3871
+ "expression": "day",
3872
+ "isExpression": false,
3873
+ "asc": true,
3874
+ "nulls": "last"
3875
+ },
3876
+ {
3877
+ "expression": "dow",
3878
+ "isExpression": false,
3879
+ "asc": true,
3880
+ "nulls": "last"
3881
+ },
3882
+ {
3883
+ "expression": "hour",
3884
+ "isExpression": false,
3885
+ "asc": true,
3886
+ "nulls": "last"
3887
+ }
3888
+ ],
3889
+ "isUnique": true,
3890
+ "concurrently": false,
3891
+ "method": "btree",
3892
+ "with": {}
3893
+ },
3894
+ "analytics_heatmap_day_idx": {
3895
+ "name": "analytics_heatmap_day_idx",
3896
+ "columns": [
3897
+ {
3898
+ "expression": "day",
3899
+ "isExpression": false,
3900
+ "asc": true,
3901
+ "nulls": "last"
3902
+ }
3903
+ ],
3904
+ "isUnique": false,
3905
+ "concurrently": false,
3906
+ "method": "btree",
3907
+ "with": {}
3908
+ }
3909
+ },
3910
+ "foreignKeys": {},
3911
+ "compositePrimaryKeys": {},
3912
+ "uniqueConstraints": {},
3913
+ "policies": {},
3914
+ "checkConstraints": {},
3915
+ "isRLSEnabled": false
3916
+ },
3917
+ "public.analytics_daily_by_group": {
3918
+ "name": "analytics_daily_by_group",
3919
+ "schema": "",
3920
+ "columns": {
3921
+ "id": {
3922
+ "name": "id",
3923
+ "type": "uuid",
3924
+ "primaryKey": true,
3925
+ "notNull": true
3926
+ },
3927
+ "day": {
3928
+ "name": "day",
3929
+ "type": "date",
3930
+ "primaryKey": false,
3931
+ "notNull": true
3932
+ },
3933
+ "group_id": {
3934
+ "name": "group_id",
3935
+ "type": "text",
3936
+ "primaryKey": false,
3937
+ "notNull": true
3938
+ },
3939
+ "posts": {
3940
+ "name": "posts",
3941
+ "type": "integer",
3942
+ "primaryKey": false,
3943
+ "notNull": true,
3944
+ "default": 0
3945
+ },
3946
+ "likes": {
3947
+ "name": "likes",
3948
+ "type": "integer",
3949
+ "primaryKey": false,
3950
+ "notNull": true,
3951
+ "default": 0
3952
+ },
3953
+ "comments": {
3954
+ "name": "comments",
3955
+ "type": "integer",
3956
+ "primaryKey": false,
3957
+ "notNull": true,
3958
+ "default": 0
3959
+ },
3960
+ "unique_viewers": {
3961
+ "name": "unique_viewers",
3962
+ "type": "integer",
3963
+ "primaryKey": false,
3964
+ "notNull": true,
3965
+ "default": 0
3966
+ },
3967
+ "compiled_at": {
3968
+ "name": "compiled_at",
3969
+ "type": "timestamp with time zone",
3970
+ "primaryKey": false,
3971
+ "notNull": true,
3972
+ "default": "now()"
3973
+ }
3974
+ },
3975
+ "indexes": {
3976
+ "analytics_daily_by_group_day_group": {
3977
+ "name": "analytics_daily_by_group_day_group",
3978
+ "columns": [
3979
+ {
3980
+ "expression": "day",
3981
+ "isExpression": false,
3982
+ "asc": true,
3983
+ "nulls": "last"
3984
+ },
3985
+ {
3986
+ "expression": "group_id",
3987
+ "isExpression": false,
3988
+ "asc": true,
3989
+ "nulls": "last"
3990
+ }
3991
+ ],
3992
+ "isUnique": true,
3993
+ "concurrently": false,
3994
+ "method": "btree",
3995
+ "with": {}
3996
+ },
3997
+ "analytics_daily_by_group_day_idx": {
3998
+ "name": "analytics_daily_by_group_day_idx",
3999
+ "columns": [
4000
+ {
4001
+ "expression": "day",
4002
+ "isExpression": false,
4003
+ "asc": true,
4004
+ "nulls": "last"
4005
+ }
4006
+ ],
4007
+ "isUnique": false,
4008
+ "concurrently": false,
4009
+ "method": "btree",
4010
+ "with": {}
4011
+ }
4012
+ },
4013
+ "foreignKeys": {},
4014
+ "compositePrimaryKeys": {},
4015
+ "uniqueConstraints": {},
4016
+ "policies": {},
4017
+ "checkConstraints": {},
4018
+ "isRLSEnabled": false
4019
+ },
4020
+ "public.analytics_daily_clicks": {
4021
+ "name": "analytics_daily_clicks",
4022
+ "schema": "",
4023
+ "columns": {
4024
+ "day": {
4025
+ "name": "day",
4026
+ "type": "date",
4027
+ "primaryKey": false,
4028
+ "notNull": true
4029
+ },
4030
+ "kind": {
4031
+ "name": "kind",
4032
+ "type": "text",
4033
+ "primaryKey": false,
4034
+ "notNull": true
4035
+ },
4036
+ "target": {
4037
+ "name": "target",
4038
+ "type": "text",
4039
+ "primaryKey": false,
4040
+ "notNull": true
4041
+ },
4042
+ "clicks": {
4043
+ "name": "clicks",
4044
+ "type": "integer",
4045
+ "primaryKey": false,
4046
+ "notNull": true,
4047
+ "default": 0
4048
+ }
4049
+ },
4050
+ "indexes": {
4051
+ "analytics_daily_clicks_day_kind_idx": {
4052
+ "name": "analytics_daily_clicks_day_kind_idx",
4053
+ "columns": [
4054
+ {
4055
+ "expression": "day",
4056
+ "isExpression": false,
4057
+ "asc": true,
4058
+ "nulls": "last"
4059
+ },
4060
+ {
4061
+ "expression": "kind",
4062
+ "isExpression": false,
4063
+ "asc": true,
4064
+ "nulls": "last"
4065
+ }
4066
+ ],
4067
+ "isUnique": false,
4068
+ "concurrently": false,
4069
+ "method": "btree",
4070
+ "with": {}
4071
+ }
4072
+ },
4073
+ "foreignKeys": {},
4074
+ "compositePrimaryKeys": {
4075
+ "analytics_daily_clicks_day_kind_target_pk": {
4076
+ "name": "analytics_daily_clicks_day_kind_target_pk",
4077
+ "columns": [
4078
+ "day",
4079
+ "kind",
4080
+ "target"
4081
+ ]
4082
+ }
4083
+ },
4084
+ "uniqueConstraints": {},
4085
+ "policies": {},
4086
+ "checkConstraints": {},
4087
+ "isRLSEnabled": false
4088
+ },
4089
+ "public.analytics_daily_signups_by_channel": {
4090
+ "name": "analytics_daily_signups_by_channel",
4091
+ "schema": "",
4092
+ "columns": {
4093
+ "id": {
4094
+ "name": "id",
4095
+ "type": "uuid",
4096
+ "primaryKey": true,
4097
+ "notNull": true
4098
+ },
4099
+ "day": {
4100
+ "name": "day",
4101
+ "type": "date",
4102
+ "primaryKey": false,
4103
+ "notNull": true
4104
+ },
4105
+ "channel": {
4106
+ "name": "channel",
4107
+ "type": "text",
4108
+ "primaryKey": false,
4109
+ "notNull": true
4110
+ },
4111
+ "count": {
4112
+ "name": "count",
4113
+ "type": "integer",
4114
+ "primaryKey": false,
4115
+ "notNull": true,
4116
+ "default": 0
4117
+ },
4118
+ "compiled_at": {
4119
+ "name": "compiled_at",
4120
+ "type": "timestamp with time zone",
4121
+ "primaryKey": false,
4122
+ "notNull": true,
4123
+ "default": "now()"
4124
+ }
4125
+ },
4126
+ "indexes": {
4127
+ "analytics_signups_day_channel": {
4128
+ "name": "analytics_signups_day_channel",
4129
+ "columns": [
4130
+ {
4131
+ "expression": "day",
4132
+ "isExpression": false,
4133
+ "asc": true,
4134
+ "nulls": "last"
4135
+ },
4136
+ {
4137
+ "expression": "channel",
4138
+ "isExpression": false,
4139
+ "asc": true,
4140
+ "nulls": "last"
4141
+ }
4142
+ ],
4143
+ "isUnique": true,
4144
+ "concurrently": false,
4145
+ "method": "btree",
4146
+ "with": {}
4147
+ },
4148
+ "analytics_signups_day_idx": {
4149
+ "name": "analytics_signups_day_idx",
4150
+ "columns": [
4151
+ {
4152
+ "expression": "day",
4153
+ "isExpression": false,
4154
+ "asc": true,
4155
+ "nulls": "last"
4156
+ }
4157
+ ],
4158
+ "isUnique": false,
4159
+ "concurrently": false,
4160
+ "method": "btree",
4161
+ "with": {}
4162
+ }
4163
+ },
4164
+ "foreignKeys": {},
4165
+ "compositePrimaryKeys": {},
4166
+ "uniqueConstraints": {},
4167
+ "policies": {},
4168
+ "checkConstraints": {},
4169
+ "isRLSEnabled": false
4170
+ },
4171
+ "public.analytics_daily_totals": {
4172
+ "name": "analytics_daily_totals",
4173
+ "schema": "",
4174
+ "columns": {
4175
+ "day": {
4176
+ "name": "day",
4177
+ "type": "date",
4178
+ "primaryKey": true,
4179
+ "notNull": true
4180
+ },
4181
+ "new_members": {
4182
+ "name": "new_members",
4183
+ "type": "integer",
4184
+ "primaryKey": false,
4185
+ "notNull": true,
4186
+ "default": 0
4187
+ },
4188
+ "active_members": {
4189
+ "name": "active_members",
4190
+ "type": "integer",
4191
+ "primaryKey": false,
4192
+ "notNull": true,
4193
+ "default": 0
4194
+ },
4195
+ "posts": {
4196
+ "name": "posts",
4197
+ "type": "integer",
4198
+ "primaryKey": false,
4199
+ "notNull": true,
4200
+ "default": 0
4201
+ },
4202
+ "replies": {
4203
+ "name": "replies",
4204
+ "type": "integer",
4205
+ "primaryKey": false,
4206
+ "notNull": true,
4207
+ "default": 0
4208
+ },
4209
+ "likes": {
4210
+ "name": "likes",
4211
+ "type": "integer",
4212
+ "primaryKey": false,
4213
+ "notNull": true,
4214
+ "default": 0
4215
+ },
4216
+ "reposts": {
4217
+ "name": "reposts",
4218
+ "type": "integer",
4219
+ "primaryKey": false,
4220
+ "notNull": true,
4221
+ "default": 0
4222
+ },
4223
+ "bookmarks": {
4224
+ "name": "bookmarks",
4225
+ "type": "integer",
4226
+ "primaryKey": false,
4227
+ "notNull": true,
4228
+ "default": 0
4229
+ },
4230
+ "comments": {
4231
+ "name": "comments",
4232
+ "type": "integer",
4233
+ "primaryKey": false,
4234
+ "notNull": true,
4235
+ "default": 0
4236
+ },
4237
+ "dms": {
4238
+ "name": "dms",
4239
+ "type": "integer",
4240
+ "primaryKey": false,
4241
+ "notNull": true,
4242
+ "default": 0
4243
+ },
4244
+ "unique_viewers": {
4245
+ "name": "unique_viewers",
4246
+ "type": "integer",
4247
+ "primaryKey": false,
4248
+ "notNull": true,
4249
+ "default": 0
4250
+ },
4251
+ "view_events": {
4252
+ "name": "view_events",
4253
+ "type": "integer",
4254
+ "primaryKey": false,
4255
+ "notNull": true,
4256
+ "default": 0
4257
+ },
4258
+ "jam_sessions": {
4259
+ "name": "jam_sessions",
4260
+ "type": "integer",
4261
+ "primaryKey": false,
4262
+ "notNull": true,
4263
+ "default": 0
4264
+ },
4265
+ "jam_participants": {
4266
+ "name": "jam_participants",
4267
+ "type": "integer",
4268
+ "primaryKey": false,
4269
+ "notNull": true,
4270
+ "default": 0
4271
+ },
4272
+ "compiled_at": {
4273
+ "name": "compiled_at",
4274
+ "type": "timestamp with time zone",
4275
+ "primaryKey": false,
4276
+ "notNull": true,
4277
+ "default": "now()"
4278
+ }
4279
+ },
4280
+ "indexes": {},
4281
+ "foreignKeys": {},
4282
+ "compositePrimaryKeys": {},
4283
+ "uniqueConstraints": {},
4284
+ "policies": {},
4285
+ "checkConstraints": {},
4286
+ "isRLSEnabled": false
4287
+ },
4288
+ "public.analytics_post_views_daily": {
4289
+ "name": "analytics_post_views_daily",
4290
+ "schema": "",
4291
+ "columns": {
4292
+ "id": {
4293
+ "name": "id",
4294
+ "type": "uuid",
4295
+ "primaryKey": true,
4296
+ "notNull": true
4297
+ },
4298
+ "day": {
4299
+ "name": "day",
4300
+ "type": "date",
4301
+ "primaryKey": false,
4302
+ "notNull": true
4303
+ },
4304
+ "post_id": {
4305
+ "name": "post_id",
4306
+ "type": "text",
4307
+ "primaryKey": false,
4308
+ "notNull": true
4309
+ },
4310
+ "unique_viewers": {
4311
+ "name": "unique_viewers",
4312
+ "type": "integer",
4313
+ "primaryKey": false,
4314
+ "notNull": true,
4315
+ "default": 0
4316
+ },
4317
+ "view_events": {
4318
+ "name": "view_events",
4319
+ "type": "integer",
4320
+ "primaryKey": false,
4321
+ "notNull": true,
4322
+ "default": 0
4323
+ },
4324
+ "compiled_at": {
4325
+ "name": "compiled_at",
4326
+ "type": "timestamp with time zone",
4327
+ "primaryKey": false,
4328
+ "notNull": true,
4329
+ "default": "now()"
4330
+ }
4331
+ },
4332
+ "indexes": {
4333
+ "analytics_post_views_day_post": {
4334
+ "name": "analytics_post_views_day_post",
4335
+ "columns": [
4336
+ {
4337
+ "expression": "day",
4338
+ "isExpression": false,
4339
+ "asc": true,
4340
+ "nulls": "last"
4341
+ },
4342
+ {
4343
+ "expression": "post_id",
4344
+ "isExpression": false,
4345
+ "asc": true,
4346
+ "nulls": "last"
4347
+ }
4348
+ ],
4349
+ "isUnique": true,
4350
+ "concurrently": false,
4351
+ "method": "btree",
4352
+ "with": {}
4353
+ },
4354
+ "analytics_post_views_day_idx": {
4355
+ "name": "analytics_post_views_day_idx",
4356
+ "columns": [
4357
+ {
4358
+ "expression": "day",
4359
+ "isExpression": false,
4360
+ "asc": true,
4361
+ "nulls": "last"
4362
+ }
4363
+ ],
4364
+ "isUnique": false,
4365
+ "concurrently": false,
4366
+ "method": "btree",
4367
+ "with": {}
4368
+ },
4369
+ "analytics_post_views_post_idx": {
4370
+ "name": "analytics_post_views_post_idx",
4371
+ "columns": [
4372
+ {
4373
+ "expression": "post_id",
4374
+ "isExpression": false,
4375
+ "asc": true,
4376
+ "nulls": "last"
4377
+ }
4378
+ ],
4379
+ "isUnique": false,
4380
+ "concurrently": false,
4381
+ "method": "btree",
4382
+ "with": {}
4383
+ }
4384
+ },
4385
+ "foreignKeys": {},
4386
+ "compositePrimaryKeys": {},
4387
+ "uniqueConstraints": {},
4388
+ "policies": {},
4389
+ "checkConstraints": {},
4390
+ "isRLSEnabled": false
4391
+ },
4392
+ "public.analytics_report_deliveries": {
4393
+ "name": "analytics_report_deliveries",
4394
+ "schema": "",
4395
+ "columns": {
4396
+ "id": {
4397
+ "name": "id",
4398
+ "type": "uuid",
4399
+ "primaryKey": true,
4400
+ "notNull": true
4401
+ },
4402
+ "period_start": {
4403
+ "name": "period_start",
4404
+ "type": "date",
4405
+ "primaryKey": false,
4406
+ "notNull": true
4407
+ },
4408
+ "period_end": {
4409
+ "name": "period_end",
4410
+ "type": "date",
4411
+ "primaryKey": false,
4412
+ "notNull": true
4413
+ },
4414
+ "recipients": {
4415
+ "name": "recipients",
4416
+ "type": "jsonb",
4417
+ "primaryKey": false,
4418
+ "notNull": true,
4419
+ "default": "'[]'::jsonb"
4420
+ },
4421
+ "status": {
4422
+ "name": "status",
4423
+ "type": "text",
4424
+ "primaryKey": false,
4425
+ "notNull": true,
4426
+ "default": "'pending'"
4427
+ },
4428
+ "body": {
4429
+ "name": "body",
4430
+ "type": "jsonb",
4431
+ "primaryKey": false,
4432
+ "notNull": true,
4433
+ "default": "'{}'::jsonb"
4434
+ },
4435
+ "created_at": {
4436
+ "name": "created_at",
4437
+ "type": "timestamp with time zone",
4438
+ "primaryKey": false,
4439
+ "notNull": true,
4440
+ "default": "now()"
4441
+ }
4442
+ },
4443
+ "indexes": {
4444
+ "analytics_report_deliveries_period_idx": {
4445
+ "name": "analytics_report_deliveries_period_idx",
4446
+ "columns": [
4447
+ {
4448
+ "expression": "period_start",
4449
+ "isExpression": false,
4450
+ "asc": true,
4451
+ "nulls": "last"
4452
+ }
4453
+ ],
4454
+ "isUnique": false,
4455
+ "concurrently": false,
4456
+ "method": "btree",
4457
+ "with": {}
4458
+ }
4459
+ },
4460
+ "foreignKeys": {},
4461
+ "compositePrimaryKeys": {},
4462
+ "uniqueConstraints": {},
4463
+ "policies": {},
4464
+ "checkConstraints": {},
4465
+ "isRLSEnabled": false
4466
+ },
4467
+ "public.analytics_retention_cohorts": {
4468
+ "name": "analytics_retention_cohorts",
4469
+ "schema": "",
4470
+ "columns": {
4471
+ "id": {
4472
+ "name": "id",
4473
+ "type": "uuid",
4474
+ "primaryKey": true,
4475
+ "notNull": true
4476
+ },
4477
+ "cohort_week": {
4478
+ "name": "cohort_week",
4479
+ "type": "date",
4480
+ "primaryKey": false,
4481
+ "notNull": true
4482
+ },
4483
+ "cohort_size": {
4484
+ "name": "cohort_size",
4485
+ "type": "integer",
4486
+ "primaryKey": false,
4487
+ "notNull": true,
4488
+ "default": 0
4489
+ },
4490
+ "rates": {
4491
+ "name": "rates",
4492
+ "type": "jsonb",
4493
+ "primaryKey": false,
4494
+ "notNull": true,
4495
+ "default": "'{}'::jsonb"
4496
+ },
4497
+ "compiled_at": {
4498
+ "name": "compiled_at",
4499
+ "type": "timestamp with time zone",
4500
+ "primaryKey": false,
4501
+ "notNull": true,
4502
+ "default": "now()"
4503
+ }
4504
+ },
4505
+ "indexes": {
4506
+ "analytics_retention_cohort_week": {
4507
+ "name": "analytics_retention_cohort_week",
4508
+ "columns": [
4509
+ {
4510
+ "expression": "cohort_week",
4511
+ "isExpression": false,
4512
+ "asc": true,
4513
+ "nulls": "last"
4514
+ }
4515
+ ],
4516
+ "isUnique": true,
4517
+ "concurrently": false,
4518
+ "method": "btree",
4519
+ "with": {}
4520
+ }
4521
+ },
4522
+ "foreignKeys": {},
4523
+ "compositePrimaryKeys": {},
4524
+ "uniqueConstraints": {},
4525
+ "policies": {},
4526
+ "checkConstraints": {},
4527
+ "isRLSEnabled": false
4528
+ },
4529
+ "public.analytics_settings": {
4530
+ "name": "analytics_settings",
4531
+ "schema": "",
4532
+ "columns": {
4533
+ "id": {
4534
+ "name": "id",
4535
+ "type": "text",
4536
+ "primaryKey": true,
4537
+ "notNull": true,
4538
+ "default": "'default'"
4539
+ },
4540
+ "body": {
4541
+ "name": "body",
4542
+ "type": "jsonb",
4543
+ "primaryKey": false,
4544
+ "notNull": true,
4545
+ "default": "'{}'::jsonb"
4546
+ },
4547
+ "updated_at": {
4548
+ "name": "updated_at",
4549
+ "type": "timestamp with time zone",
4550
+ "primaryKey": false,
4551
+ "notNull": true,
4552
+ "default": "now()"
4553
+ }
4554
+ },
4555
+ "indexes": {},
4556
+ "foreignKeys": {},
4557
+ "compositePrimaryKeys": {},
4558
+ "uniqueConstraints": {},
4559
+ "policies": {},
4560
+ "checkConstraints": {},
4561
+ "isRLSEnabled": false
4562
+ },
4563
+ "public.calendar_feed_tokens": {
4564
+ "name": "calendar_feed_tokens",
4565
+ "schema": "",
4566
+ "columns": {
4567
+ "id": {
4568
+ "name": "id",
4569
+ "type": "uuid",
4570
+ "primaryKey": true,
4571
+ "notNull": true
4572
+ },
4573
+ "profile_id": {
4574
+ "name": "profile_id",
4575
+ "type": "text",
4576
+ "primaryKey": false,
4577
+ "notNull": true
4578
+ },
4579
+ "token_hash": {
4580
+ "name": "token_hash",
4581
+ "type": "varchar(64)",
4582
+ "primaryKey": false,
4583
+ "notNull": true
4584
+ },
4585
+ "expires_at": {
4586
+ "name": "expires_at",
4587
+ "type": "timestamp with time zone",
4588
+ "primaryKey": false,
4589
+ "notNull": true
4590
+ },
4591
+ "created_at": {
4592
+ "name": "created_at",
4593
+ "type": "timestamp with time zone",
4594
+ "primaryKey": false,
4595
+ "notNull": true,
4596
+ "default": "now()"
4597
+ },
4598
+ "updated_at": {
4599
+ "name": "updated_at",
4600
+ "type": "timestamp with time zone",
4601
+ "primaryKey": false,
4602
+ "notNull": true,
4603
+ "default": "now()"
4604
+ },
4605
+ "deleted_at": {
4606
+ "name": "deleted_at",
4607
+ "type": "timestamp with time zone",
4608
+ "primaryKey": false,
4609
+ "notNull": false
4610
+ }
4611
+ },
4612
+ "indexes": {
4613
+ "calendar_feed_tokens_profile_idx": {
4614
+ "name": "calendar_feed_tokens_profile_idx",
4615
+ "columns": [
4616
+ {
4617
+ "expression": "profile_id",
4618
+ "isExpression": false,
4619
+ "asc": true,
4620
+ "nulls": "last"
4621
+ }
4622
+ ],
4623
+ "isUnique": false,
4624
+ "concurrently": false,
4625
+ "method": "btree",
4626
+ "with": {}
4627
+ },
4628
+ "calendar_feed_tokens_token_hash_unique": {
4629
+ "name": "calendar_feed_tokens_token_hash_unique",
4630
+ "columns": [
4631
+ {
4632
+ "expression": "token_hash",
4633
+ "isExpression": false,
4634
+ "asc": true,
4635
+ "nulls": "last"
4636
+ }
4637
+ ],
4638
+ "isUnique": true,
4639
+ "concurrently": false,
4640
+ "method": "btree",
4641
+ "with": {}
4642
+ }
4643
+ },
4644
+ "foreignKeys": {},
4645
+ "compositePrimaryKeys": {},
4646
+ "uniqueConstraints": {},
4647
+ "policies": {},
4648
+ "checkConstraints": {},
4649
+ "isRLSEnabled": false
4650
+ }
4651
+ },
4652
+ "enums": {},
4653
+ "schemas": {},
4654
+ "sequences": {},
4655
+ "roles": {},
4656
+ "policies": {},
4657
+ "views": {},
4658
+ "_meta": {
4659
+ "columns": {},
4660
+ "schemas": {},
4661
+ "tables": {}
4662
+ }
4663
+ }