@openpeepshq/core 0.17.0 → 0.19.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,4701 @@
1
+ {
2
+ "id": "4a5587e2-755d-42e0-a8e0-4940132dbb19",
3
+ "prevId": "323109c5-d6e0-435d-b254-14a969464115",
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
+ "posts_slug_instance_unique": {
1017
+ "name": "posts_slug_instance_unique",
1018
+ "columns": [
1019
+ {
1020
+ "expression": "(body ->> 'slug')",
1021
+ "asc": true,
1022
+ "isExpression": true,
1023
+ "nulls": "last"
1024
+ }
1025
+ ],
1026
+ "isUnique": true,
1027
+ "where": "type = 'article' AND body ->> 'slug' IS NOT NULL AND body ->> 'instanceScoped' = 'true'",
1028
+ "concurrently": false,
1029
+ "method": "btree",
1030
+ "with": {}
1031
+ },
1032
+ "posts_slug_profile_unique": {
1033
+ "name": "posts_slug_profile_unique",
1034
+ "columns": [
1035
+ {
1036
+ "expression": "(body ->> 'slug')",
1037
+ "asc": true,
1038
+ "isExpression": true,
1039
+ "nulls": "last"
1040
+ },
1041
+ {
1042
+ "expression": "creator_id",
1043
+ "isExpression": false,
1044
+ "asc": true,
1045
+ "nulls": "last"
1046
+ }
1047
+ ],
1048
+ "isUnique": true,
1049
+ "where": "type = 'article' AND body ->> 'slug' IS NOT NULL AND (body ->> 'instanceScoped' IS NULL OR body ->> 'instanceScoped' = 'false')",
1050
+ "concurrently": false,
1051
+ "method": "btree",
1052
+ "with": {}
1053
+ }
1054
+ },
1055
+ "foreignKeys": {},
1056
+ "compositePrimaryKeys": {},
1057
+ "uniqueConstraints": {},
1058
+ "policies": {},
1059
+ "checkConstraints": {},
1060
+ "isRLSEnabled": false
1061
+ },
1062
+ "public.processing_stats": {
1063
+ "name": "processing_stats",
1064
+ "schema": "",
1065
+ "columns": {
1066
+ "id": {
1067
+ "name": "id",
1068
+ "type": "uuid",
1069
+ "primaryKey": true,
1070
+ "notNull": true
1071
+ },
1072
+ "filetype": {
1073
+ "name": "filetype",
1074
+ "type": "text",
1075
+ "primaryKey": false,
1076
+ "notNull": true
1077
+ },
1078
+ "filesize": {
1079
+ "name": "filesize",
1080
+ "type": "text",
1081
+ "primaryKey": false,
1082
+ "notNull": true
1083
+ },
1084
+ "body": {
1085
+ "name": "body",
1086
+ "type": "jsonb",
1087
+ "primaryKey": false,
1088
+ "notNull": true,
1089
+ "default": "'{}'::jsonb"
1090
+ },
1091
+ "created_at": {
1092
+ "name": "created_at",
1093
+ "type": "timestamp with time zone",
1094
+ "primaryKey": false,
1095
+ "notNull": true,
1096
+ "default": "now()"
1097
+ },
1098
+ "updated_at": {
1099
+ "name": "updated_at",
1100
+ "type": "timestamp with time zone",
1101
+ "primaryKey": false,
1102
+ "notNull": true,
1103
+ "default": "now()"
1104
+ },
1105
+ "deleted_at": {
1106
+ "name": "deleted_at",
1107
+ "type": "timestamp with time zone",
1108
+ "primaryKey": false,
1109
+ "notNull": false
1110
+ }
1111
+ },
1112
+ "indexes": {
1113
+ "processing_stats_filetype_idx": {
1114
+ "name": "processing_stats_filetype_idx",
1115
+ "columns": [
1116
+ {
1117
+ "expression": "filetype",
1118
+ "isExpression": false,
1119
+ "asc": true,
1120
+ "nulls": "last"
1121
+ }
1122
+ ],
1123
+ "isUnique": false,
1124
+ "concurrently": false,
1125
+ "method": "btree",
1126
+ "with": {}
1127
+ },
1128
+ "processing_stats_filetype_size_idx": {
1129
+ "name": "processing_stats_filetype_size_idx",
1130
+ "columns": [
1131
+ {
1132
+ "expression": "filetype",
1133
+ "isExpression": false,
1134
+ "asc": true,
1135
+ "nulls": "last"
1136
+ },
1137
+ {
1138
+ "expression": "filesize",
1139
+ "isExpression": false,
1140
+ "asc": true,
1141
+ "nulls": "last"
1142
+ }
1143
+ ],
1144
+ "isUnique": false,
1145
+ "concurrently": false,
1146
+ "method": "btree",
1147
+ "with": {}
1148
+ }
1149
+ },
1150
+ "foreignKeys": {},
1151
+ "compositePrimaryKeys": {},
1152
+ "uniqueConstraints": {},
1153
+ "policies": {},
1154
+ "checkConstraints": {},
1155
+ "isRLSEnabled": false
1156
+ },
1157
+ "public.profile_settings": {
1158
+ "name": "profile_settings",
1159
+ "schema": "",
1160
+ "columns": {
1161
+ "id": {
1162
+ "name": "id",
1163
+ "type": "uuid",
1164
+ "primaryKey": true,
1165
+ "notNull": true
1166
+ },
1167
+ "profile_id": {
1168
+ "name": "profile_id",
1169
+ "type": "text",
1170
+ "primaryKey": false,
1171
+ "notNull": true
1172
+ },
1173
+ "body": {
1174
+ "name": "body",
1175
+ "type": "jsonb",
1176
+ "primaryKey": false,
1177
+ "notNull": true,
1178
+ "default": "'{}'::jsonb"
1179
+ },
1180
+ "created_at": {
1181
+ "name": "created_at",
1182
+ "type": "timestamp with time zone",
1183
+ "primaryKey": false,
1184
+ "notNull": true,
1185
+ "default": "now()"
1186
+ },
1187
+ "updated_at": {
1188
+ "name": "updated_at",
1189
+ "type": "timestamp with time zone",
1190
+ "primaryKey": false,
1191
+ "notNull": true,
1192
+ "default": "now()"
1193
+ },
1194
+ "deleted_at": {
1195
+ "name": "deleted_at",
1196
+ "type": "timestamp with time zone",
1197
+ "primaryKey": false,
1198
+ "notNull": false
1199
+ }
1200
+ },
1201
+ "indexes": {
1202
+ "profile_settings_profile_unique": {
1203
+ "name": "profile_settings_profile_unique",
1204
+ "columns": [
1205
+ {
1206
+ "expression": "profile_id",
1207
+ "isExpression": false,
1208
+ "asc": true,
1209
+ "nulls": "last"
1210
+ }
1211
+ ],
1212
+ "isUnique": true,
1213
+ "concurrently": false,
1214
+ "method": "btree",
1215
+ "with": {}
1216
+ }
1217
+ },
1218
+ "foreignKeys": {},
1219
+ "compositePrimaryKeys": {},
1220
+ "uniqueConstraints": {},
1221
+ "policies": {},
1222
+ "checkConstraints": {},
1223
+ "isRLSEnabled": false
1224
+ },
1225
+ "public.profiles": {
1226
+ "name": "profiles",
1227
+ "schema": "",
1228
+ "columns": {
1229
+ "id": {
1230
+ "name": "id",
1231
+ "type": "uuid",
1232
+ "primaryKey": true,
1233
+ "notNull": true
1234
+ },
1235
+ "handle": {
1236
+ "name": "handle",
1237
+ "type": "text",
1238
+ "primaryKey": false,
1239
+ "notNull": true
1240
+ },
1241
+ "activity_pub_domain": {
1242
+ "name": "activity_pub_domain",
1243
+ "type": "text",
1244
+ "primaryKey": false,
1245
+ "notNull": false
1246
+ },
1247
+ "type": {
1248
+ "name": "type",
1249
+ "type": "text",
1250
+ "primaryKey": false,
1251
+ "notNull": true
1252
+ },
1253
+ "uri": {
1254
+ "name": "uri",
1255
+ "type": "text",
1256
+ "primaryKey": false,
1257
+ "notNull": false
1258
+ },
1259
+ "inbox_url": {
1260
+ "name": "inbox_url",
1261
+ "type": "text",
1262
+ "primaryKey": false,
1263
+ "notNull": false
1264
+ },
1265
+ "shared_inbox_url": {
1266
+ "name": "shared_inbox_url",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": false
1270
+ },
1271
+ "public_key_pem": {
1272
+ "name": "public_key_pem",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": false
1276
+ },
1277
+ "private_key_pem": {
1278
+ "name": "private_key_pem",
1279
+ "type": "text",
1280
+ "primaryKey": false,
1281
+ "notNull": false
1282
+ },
1283
+ "key_id": {
1284
+ "name": "key_id",
1285
+ "type": "text",
1286
+ "primaryKey": false,
1287
+ "notNull": false
1288
+ },
1289
+ "fetched_at": {
1290
+ "name": "fetched_at",
1291
+ "type": "timestamp with time zone",
1292
+ "primaryKey": false,
1293
+ "notNull": false
1294
+ },
1295
+ "body": {
1296
+ "name": "body",
1297
+ "type": "jsonb",
1298
+ "primaryKey": false,
1299
+ "notNull": true,
1300
+ "default": "'{}'::jsonb"
1301
+ },
1302
+ "search_vector": {
1303
+ "name": "search_vector",
1304
+ "type": "tsvector",
1305
+ "primaryKey": false,
1306
+ "notNull": false
1307
+ },
1308
+ "created_at": {
1309
+ "name": "created_at",
1310
+ "type": "timestamp with time zone",
1311
+ "primaryKey": false,
1312
+ "notNull": true,
1313
+ "default": "now()"
1314
+ },
1315
+ "updated_at": {
1316
+ "name": "updated_at",
1317
+ "type": "timestamp with time zone",
1318
+ "primaryKey": false,
1319
+ "notNull": true,
1320
+ "default": "now()"
1321
+ },
1322
+ "deleted_at": {
1323
+ "name": "deleted_at",
1324
+ "type": "timestamp with time zone",
1325
+ "primaryKey": false,
1326
+ "notNull": false
1327
+ }
1328
+ },
1329
+ "indexes": {
1330
+ "profiles_handle_domain_unique": {
1331
+ "name": "profiles_handle_domain_unique",
1332
+ "columns": [
1333
+ {
1334
+ "expression": "handle",
1335
+ "isExpression": false,
1336
+ "asc": true,
1337
+ "nulls": "last"
1338
+ },
1339
+ {
1340
+ "expression": "activity_pub_domain",
1341
+ "isExpression": false,
1342
+ "asc": true,
1343
+ "nulls": "last"
1344
+ }
1345
+ ],
1346
+ "isUnique": true,
1347
+ "concurrently": false,
1348
+ "method": "btree",
1349
+ "with": {}
1350
+ },
1351
+ "profiles_uri_unique": {
1352
+ "name": "profiles_uri_unique",
1353
+ "columns": [
1354
+ {
1355
+ "expression": "uri",
1356
+ "isExpression": false,
1357
+ "asc": true,
1358
+ "nulls": "last"
1359
+ }
1360
+ ],
1361
+ "isUnique": true,
1362
+ "concurrently": false,
1363
+ "method": "btree",
1364
+ "with": {}
1365
+ },
1366
+ "profiles_search_vector_idx": {
1367
+ "name": "profiles_search_vector_idx",
1368
+ "columns": [
1369
+ {
1370
+ "expression": "search_vector",
1371
+ "isExpression": false,
1372
+ "asc": true,
1373
+ "nulls": "last"
1374
+ }
1375
+ ],
1376
+ "isUnique": false,
1377
+ "concurrently": false,
1378
+ "method": "gin",
1379
+ "with": {}
1380
+ }
1381
+ },
1382
+ "foreignKeys": {},
1383
+ "compositePrimaryKeys": {},
1384
+ "uniqueConstraints": {},
1385
+ "policies": {},
1386
+ "checkConstraints": {},
1387
+ "isRLSEnabled": false
1388
+ },
1389
+ "public.push_subscriptions": {
1390
+ "name": "push_subscriptions",
1391
+ "schema": "",
1392
+ "columns": {
1393
+ "id": {
1394
+ "name": "id",
1395
+ "type": "uuid",
1396
+ "primaryKey": true,
1397
+ "notNull": true
1398
+ },
1399
+ "body": {
1400
+ "name": "body",
1401
+ "type": "jsonb",
1402
+ "primaryKey": false,
1403
+ "notNull": true,
1404
+ "default": "'{}'::jsonb"
1405
+ },
1406
+ "created_at": {
1407
+ "name": "created_at",
1408
+ "type": "timestamp with time zone",
1409
+ "primaryKey": false,
1410
+ "notNull": true,
1411
+ "default": "now()"
1412
+ },
1413
+ "updated_at": {
1414
+ "name": "updated_at",
1415
+ "type": "timestamp with time zone",
1416
+ "primaryKey": false,
1417
+ "notNull": true,
1418
+ "default": "now()"
1419
+ },
1420
+ "deleted_at": {
1421
+ "name": "deleted_at",
1422
+ "type": "timestamp with time zone",
1423
+ "primaryKey": false,
1424
+ "notNull": false
1425
+ }
1426
+ },
1427
+ "indexes": {},
1428
+ "foreignKeys": {},
1429
+ "compositePrimaryKeys": {},
1430
+ "uniqueConstraints": {},
1431
+ "policies": {},
1432
+ "checkConstraints": {},
1433
+ "isRLSEnabled": false
1434
+ },
1435
+ "public.reports": {
1436
+ "name": "reports",
1437
+ "schema": "",
1438
+ "columns": {
1439
+ "id": {
1440
+ "name": "id",
1441
+ "type": "uuid",
1442
+ "primaryKey": true,
1443
+ "notNull": true
1444
+ },
1445
+ "body": {
1446
+ "name": "body",
1447
+ "type": "jsonb",
1448
+ "primaryKey": false,
1449
+ "notNull": true,
1450
+ "default": "'{}'::jsonb"
1451
+ },
1452
+ "created_at": {
1453
+ "name": "created_at",
1454
+ "type": "timestamp with time zone",
1455
+ "primaryKey": false,
1456
+ "notNull": true,
1457
+ "default": "now()"
1458
+ },
1459
+ "updated_at": {
1460
+ "name": "updated_at",
1461
+ "type": "timestamp with time zone",
1462
+ "primaryKey": false,
1463
+ "notNull": true,
1464
+ "default": "now()"
1465
+ },
1466
+ "deleted_at": {
1467
+ "name": "deleted_at",
1468
+ "type": "timestamp with time zone",
1469
+ "primaryKey": false,
1470
+ "notNull": false
1471
+ }
1472
+ },
1473
+ "indexes": {},
1474
+ "foreignKeys": {},
1475
+ "compositePrimaryKeys": {},
1476
+ "uniqueConstraints": {},
1477
+ "policies": {},
1478
+ "checkConstraints": {},
1479
+ "isRLSEnabled": false
1480
+ },
1481
+ "public.roles": {
1482
+ "name": "roles",
1483
+ "schema": "",
1484
+ "columns": {
1485
+ "id": {
1486
+ "name": "id",
1487
+ "type": "uuid",
1488
+ "primaryKey": true,
1489
+ "notNull": true
1490
+ },
1491
+ "key": {
1492
+ "name": "key",
1493
+ "type": "text",
1494
+ "primaryKey": false,
1495
+ "notNull": true
1496
+ },
1497
+ "is_default": {
1498
+ "name": "is_default",
1499
+ "type": "boolean",
1500
+ "primaryKey": false,
1501
+ "notNull": true,
1502
+ "default": false
1503
+ },
1504
+ "body": {
1505
+ "name": "body",
1506
+ "type": "jsonb",
1507
+ "primaryKey": false,
1508
+ "notNull": true,
1509
+ "default": "'{}'::jsonb"
1510
+ },
1511
+ "created_at": {
1512
+ "name": "created_at",
1513
+ "type": "timestamp with time zone",
1514
+ "primaryKey": false,
1515
+ "notNull": true,
1516
+ "default": "now()"
1517
+ },
1518
+ "updated_at": {
1519
+ "name": "updated_at",
1520
+ "type": "timestamp with time zone",
1521
+ "primaryKey": false,
1522
+ "notNull": true,
1523
+ "default": "now()"
1524
+ },
1525
+ "deleted_at": {
1526
+ "name": "deleted_at",
1527
+ "type": "timestamp with time zone",
1528
+ "primaryKey": false,
1529
+ "notNull": false
1530
+ }
1531
+ },
1532
+ "indexes": {
1533
+ "roles_key_unique": {
1534
+ "name": "roles_key_unique",
1535
+ "columns": [
1536
+ {
1537
+ "expression": "key",
1538
+ "isExpression": false,
1539
+ "asc": true,
1540
+ "nulls": "last"
1541
+ }
1542
+ ],
1543
+ "isUnique": true,
1544
+ "concurrently": false,
1545
+ "method": "btree",
1546
+ "with": {}
1547
+ }
1548
+ },
1549
+ "foreignKeys": {},
1550
+ "compositePrimaryKeys": {},
1551
+ "uniqueConstraints": {},
1552
+ "policies": {},
1553
+ "checkConstraints": {},
1554
+ "isRLSEnabled": false
1555
+ },
1556
+ "public.account_to_push_subscription": {
1557
+ "name": "account_to_push_subscription",
1558
+ "schema": "",
1559
+ "columns": {
1560
+ "id": {
1561
+ "name": "id",
1562
+ "type": "uuid",
1563
+ "primaryKey": true,
1564
+ "notNull": true
1565
+ },
1566
+ "from_id": {
1567
+ "name": "from_id",
1568
+ "type": "text",
1569
+ "primaryKey": false,
1570
+ "notNull": true
1571
+ },
1572
+ "to_id": {
1573
+ "name": "to_id",
1574
+ "type": "text",
1575
+ "primaryKey": false,
1576
+ "notNull": true
1577
+ },
1578
+ "body": {
1579
+ "name": "body",
1580
+ "type": "jsonb",
1581
+ "primaryKey": false,
1582
+ "notNull": false,
1583
+ "default": "'{}'::jsonb"
1584
+ },
1585
+ "created_at": {
1586
+ "name": "created_at",
1587
+ "type": "timestamp with time zone",
1588
+ "primaryKey": false,
1589
+ "notNull": true,
1590
+ "default": "now()"
1591
+ },
1592
+ "updated_at": {
1593
+ "name": "updated_at",
1594
+ "type": "timestamp with time zone",
1595
+ "primaryKey": false,
1596
+ "notNull": true,
1597
+ "default": "now()"
1598
+ }
1599
+ },
1600
+ "indexes": {
1601
+ "account_to_push_subscription_from_idx": {
1602
+ "name": "account_to_push_subscription_from_idx",
1603
+ "columns": [
1604
+ {
1605
+ "expression": "from_id",
1606
+ "isExpression": false,
1607
+ "asc": true,
1608
+ "nulls": "last"
1609
+ }
1610
+ ],
1611
+ "isUnique": false,
1612
+ "concurrently": false,
1613
+ "method": "btree",
1614
+ "with": {}
1615
+ },
1616
+ "account_to_push_subscription_to_idx": {
1617
+ "name": "account_to_push_subscription_to_idx",
1618
+ "columns": [
1619
+ {
1620
+ "expression": "to_id",
1621
+ "isExpression": false,
1622
+ "asc": true,
1623
+ "nulls": "last"
1624
+ }
1625
+ ],
1626
+ "isUnique": false,
1627
+ "concurrently": false,
1628
+ "method": "btree",
1629
+ "with": {}
1630
+ }
1631
+ },
1632
+ "foreignKeys": {},
1633
+ "compositePrimaryKeys": {},
1634
+ "uniqueConstraints": {},
1635
+ "policies": {},
1636
+ "checkConstraints": {},
1637
+ "isRLSEnabled": false
1638
+ },
1639
+ "public.audience": {
1640
+ "name": "audience",
1641
+ "schema": "",
1642
+ "columns": {
1643
+ "id": {
1644
+ "name": "id",
1645
+ "type": "uuid",
1646
+ "primaryKey": true,
1647
+ "notNull": true
1648
+ },
1649
+ "from_id": {
1650
+ "name": "from_id",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true
1654
+ },
1655
+ "to_id": {
1656
+ "name": "to_id",
1657
+ "type": "text",
1658
+ "primaryKey": false,
1659
+ "notNull": true
1660
+ },
1661
+ "body": {
1662
+ "name": "body",
1663
+ "type": "jsonb",
1664
+ "primaryKey": false,
1665
+ "notNull": false,
1666
+ "default": "'{}'::jsonb"
1667
+ },
1668
+ "created_at": {
1669
+ "name": "created_at",
1670
+ "type": "timestamp with time zone",
1671
+ "primaryKey": false,
1672
+ "notNull": true,
1673
+ "default": "now()"
1674
+ },
1675
+ "updated_at": {
1676
+ "name": "updated_at",
1677
+ "type": "timestamp with time zone",
1678
+ "primaryKey": false,
1679
+ "notNull": true,
1680
+ "default": "now()"
1681
+ }
1682
+ },
1683
+ "indexes": {
1684
+ "audience_from_idx": {
1685
+ "name": "audience_from_idx",
1686
+ "columns": [
1687
+ {
1688
+ "expression": "from_id",
1689
+ "isExpression": false,
1690
+ "asc": true,
1691
+ "nulls": "last"
1692
+ }
1693
+ ],
1694
+ "isUnique": false,
1695
+ "concurrently": false,
1696
+ "method": "btree",
1697
+ "with": {}
1698
+ },
1699
+ "audience_to_idx": {
1700
+ "name": "audience_to_idx",
1701
+ "columns": [
1702
+ {
1703
+ "expression": "to_id",
1704
+ "isExpression": false,
1705
+ "asc": true,
1706
+ "nulls": "last"
1707
+ }
1708
+ ],
1709
+ "isUnique": false,
1710
+ "concurrently": false,
1711
+ "method": "btree",
1712
+ "with": {}
1713
+ }
1714
+ },
1715
+ "foreignKeys": {},
1716
+ "compositePrimaryKeys": {},
1717
+ "uniqueConstraints": {},
1718
+ "policies": {},
1719
+ "checkConstraints": {},
1720
+ "isRLSEnabled": false
1721
+ },
1722
+ "public.blocks": {
1723
+ "name": "blocks",
1724
+ "schema": "",
1725
+ "columns": {
1726
+ "id": {
1727
+ "name": "id",
1728
+ "type": "uuid",
1729
+ "primaryKey": true,
1730
+ "notNull": true
1731
+ },
1732
+ "from_id": {
1733
+ "name": "from_id",
1734
+ "type": "text",
1735
+ "primaryKey": false,
1736
+ "notNull": true
1737
+ },
1738
+ "to_id": {
1739
+ "name": "to_id",
1740
+ "type": "text",
1741
+ "primaryKey": false,
1742
+ "notNull": true
1743
+ },
1744
+ "body": {
1745
+ "name": "body",
1746
+ "type": "jsonb",
1747
+ "primaryKey": false,
1748
+ "notNull": false,
1749
+ "default": "'{}'::jsonb"
1750
+ },
1751
+ "created_at": {
1752
+ "name": "created_at",
1753
+ "type": "timestamp with time zone",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "default": "now()"
1757
+ },
1758
+ "updated_at": {
1759
+ "name": "updated_at",
1760
+ "type": "timestamp with time zone",
1761
+ "primaryKey": false,
1762
+ "notNull": true,
1763
+ "default": "now()"
1764
+ }
1765
+ },
1766
+ "indexes": {
1767
+ "blocks_from_idx": {
1768
+ "name": "blocks_from_idx",
1769
+ "columns": [
1770
+ {
1771
+ "expression": "from_id",
1772
+ "isExpression": false,
1773
+ "asc": true,
1774
+ "nulls": "last"
1775
+ }
1776
+ ],
1777
+ "isUnique": false,
1778
+ "concurrently": false,
1779
+ "method": "btree",
1780
+ "with": {}
1781
+ },
1782
+ "blocks_to_idx": {
1783
+ "name": "blocks_to_idx",
1784
+ "columns": [
1785
+ {
1786
+ "expression": "to_id",
1787
+ "isExpression": false,
1788
+ "asc": true,
1789
+ "nulls": "last"
1790
+ }
1791
+ ],
1792
+ "isUnique": false,
1793
+ "concurrently": false,
1794
+ "method": "btree",
1795
+ "with": {}
1796
+ },
1797
+ "blocks_from_to_unique": {
1798
+ "name": "blocks_from_to_unique",
1799
+ "columns": [
1800
+ {
1801
+ "expression": "from_id",
1802
+ "isExpression": false,
1803
+ "asc": true,
1804
+ "nulls": "last"
1805
+ },
1806
+ {
1807
+ "expression": "to_id",
1808
+ "isExpression": false,
1809
+ "asc": true,
1810
+ "nulls": "last"
1811
+ }
1812
+ ],
1813
+ "isUnique": true,
1814
+ "concurrently": false,
1815
+ "method": "btree",
1816
+ "with": {}
1817
+ }
1818
+ },
1819
+ "foreignKeys": {},
1820
+ "compositePrimaryKeys": {},
1821
+ "uniqueConstraints": {},
1822
+ "policies": {},
1823
+ "checkConstraints": {},
1824
+ "isRLSEnabled": false
1825
+ },
1826
+ "public.bookmarks": {
1827
+ "name": "bookmarks",
1828
+ "schema": "",
1829
+ "columns": {
1830
+ "id": {
1831
+ "name": "id",
1832
+ "type": "uuid",
1833
+ "primaryKey": true,
1834
+ "notNull": true
1835
+ },
1836
+ "from_id": {
1837
+ "name": "from_id",
1838
+ "type": "text",
1839
+ "primaryKey": false,
1840
+ "notNull": true
1841
+ },
1842
+ "to_id": {
1843
+ "name": "to_id",
1844
+ "type": "text",
1845
+ "primaryKey": false,
1846
+ "notNull": true
1847
+ },
1848
+ "body": {
1849
+ "name": "body",
1850
+ "type": "jsonb",
1851
+ "primaryKey": false,
1852
+ "notNull": false,
1853
+ "default": "'{}'::jsonb"
1854
+ },
1855
+ "created_at": {
1856
+ "name": "created_at",
1857
+ "type": "timestamp with time zone",
1858
+ "primaryKey": false,
1859
+ "notNull": true,
1860
+ "default": "now()"
1861
+ },
1862
+ "updated_at": {
1863
+ "name": "updated_at",
1864
+ "type": "timestamp with time zone",
1865
+ "primaryKey": false,
1866
+ "notNull": true,
1867
+ "default": "now()"
1868
+ }
1869
+ },
1870
+ "indexes": {
1871
+ "bookmarks_from_idx": {
1872
+ "name": "bookmarks_from_idx",
1873
+ "columns": [
1874
+ {
1875
+ "expression": "from_id",
1876
+ "isExpression": false,
1877
+ "asc": true,
1878
+ "nulls": "last"
1879
+ }
1880
+ ],
1881
+ "isUnique": false,
1882
+ "concurrently": false,
1883
+ "method": "btree",
1884
+ "with": {}
1885
+ },
1886
+ "bookmarks_to_idx": {
1887
+ "name": "bookmarks_to_idx",
1888
+ "columns": [
1889
+ {
1890
+ "expression": "to_id",
1891
+ "isExpression": false,
1892
+ "asc": true,
1893
+ "nulls": "last"
1894
+ }
1895
+ ],
1896
+ "isUnique": false,
1897
+ "concurrently": false,
1898
+ "method": "btree",
1899
+ "with": {}
1900
+ }
1901
+ },
1902
+ "foreignKeys": {},
1903
+ "compositePrimaryKeys": {},
1904
+ "uniqueConstraints": {},
1905
+ "policies": {},
1906
+ "checkConstraints": {},
1907
+ "isRLSEnabled": false
1908
+ },
1909
+ "public.controls": {
1910
+ "name": "controls",
1911
+ "schema": "",
1912
+ "columns": {
1913
+ "id": {
1914
+ "name": "id",
1915
+ "type": "uuid",
1916
+ "primaryKey": true,
1917
+ "notNull": true
1918
+ },
1919
+ "from_id": {
1920
+ "name": "from_id",
1921
+ "type": "text",
1922
+ "primaryKey": false,
1923
+ "notNull": true
1924
+ },
1925
+ "to_id": {
1926
+ "name": "to_id",
1927
+ "type": "text",
1928
+ "primaryKey": false,
1929
+ "notNull": true
1930
+ },
1931
+ "body": {
1932
+ "name": "body",
1933
+ "type": "jsonb",
1934
+ "primaryKey": false,
1935
+ "notNull": false,
1936
+ "default": "'{}'::jsonb"
1937
+ },
1938
+ "created_at": {
1939
+ "name": "created_at",
1940
+ "type": "timestamp with time zone",
1941
+ "primaryKey": false,
1942
+ "notNull": true,
1943
+ "default": "now()"
1944
+ },
1945
+ "updated_at": {
1946
+ "name": "updated_at",
1947
+ "type": "timestamp with time zone",
1948
+ "primaryKey": false,
1949
+ "notNull": true,
1950
+ "default": "now()"
1951
+ }
1952
+ },
1953
+ "indexes": {
1954
+ "controls_from_idx": {
1955
+ "name": "controls_from_idx",
1956
+ "columns": [
1957
+ {
1958
+ "expression": "from_id",
1959
+ "isExpression": false,
1960
+ "asc": true,
1961
+ "nulls": "last"
1962
+ }
1963
+ ],
1964
+ "isUnique": false,
1965
+ "concurrently": false,
1966
+ "method": "btree",
1967
+ "with": {}
1968
+ },
1969
+ "controls_to_idx": {
1970
+ "name": "controls_to_idx",
1971
+ "columns": [
1972
+ {
1973
+ "expression": "to_id",
1974
+ "isExpression": false,
1975
+ "asc": true,
1976
+ "nulls": "last"
1977
+ }
1978
+ ],
1979
+ "isUnique": false,
1980
+ "concurrently": false,
1981
+ "method": "btree",
1982
+ "with": {}
1983
+ }
1984
+ },
1985
+ "foreignKeys": {},
1986
+ "compositePrimaryKeys": {},
1987
+ "uniqueConstraints": {},
1988
+ "policies": {},
1989
+ "checkConstraints": {},
1990
+ "isRLSEnabled": false
1991
+ },
1992
+ "public.created_report": {
1993
+ "name": "created_report",
1994
+ "schema": "",
1995
+ "columns": {
1996
+ "id": {
1997
+ "name": "id",
1998
+ "type": "uuid",
1999
+ "primaryKey": true,
2000
+ "notNull": true
2001
+ },
2002
+ "from_id": {
2003
+ "name": "from_id",
2004
+ "type": "text",
2005
+ "primaryKey": false,
2006
+ "notNull": true
2007
+ },
2008
+ "to_id": {
2009
+ "name": "to_id",
2010
+ "type": "text",
2011
+ "primaryKey": false,
2012
+ "notNull": true
2013
+ },
2014
+ "body": {
2015
+ "name": "body",
2016
+ "type": "jsonb",
2017
+ "primaryKey": false,
2018
+ "notNull": false,
2019
+ "default": "'{}'::jsonb"
2020
+ },
2021
+ "created_at": {
2022
+ "name": "created_at",
2023
+ "type": "timestamp with time zone",
2024
+ "primaryKey": false,
2025
+ "notNull": true,
2026
+ "default": "now()"
2027
+ },
2028
+ "updated_at": {
2029
+ "name": "updated_at",
2030
+ "type": "timestamp with time zone",
2031
+ "primaryKey": false,
2032
+ "notNull": true,
2033
+ "default": "now()"
2034
+ }
2035
+ },
2036
+ "indexes": {
2037
+ "created_report_from_idx": {
2038
+ "name": "created_report_from_idx",
2039
+ "columns": [
2040
+ {
2041
+ "expression": "from_id",
2042
+ "isExpression": false,
2043
+ "asc": true,
2044
+ "nulls": "last"
2045
+ }
2046
+ ],
2047
+ "isUnique": false,
2048
+ "concurrently": false,
2049
+ "method": "btree",
2050
+ "with": {}
2051
+ },
2052
+ "created_report_to_idx": {
2053
+ "name": "created_report_to_idx",
2054
+ "columns": [
2055
+ {
2056
+ "expression": "to_id",
2057
+ "isExpression": false,
2058
+ "asc": true,
2059
+ "nulls": "last"
2060
+ }
2061
+ ],
2062
+ "isUnique": false,
2063
+ "concurrently": false,
2064
+ "method": "btree",
2065
+ "with": {}
2066
+ }
2067
+ },
2068
+ "foreignKeys": {},
2069
+ "compositePrimaryKeys": {},
2070
+ "uniqueConstraints": {},
2071
+ "policies": {},
2072
+ "checkConstraints": {},
2073
+ "isRLSEnabled": false
2074
+ },
2075
+ "public.entries": {
2076
+ "name": "entries",
2077
+ "schema": "",
2078
+ "columns": {
2079
+ "id": {
2080
+ "name": "id",
2081
+ "type": "uuid",
2082
+ "primaryKey": true,
2083
+ "notNull": true
2084
+ },
2085
+ "from_id": {
2086
+ "name": "from_id",
2087
+ "type": "text",
2088
+ "primaryKey": false,
2089
+ "notNull": true
2090
+ },
2091
+ "to_id": {
2092
+ "name": "to_id",
2093
+ "type": "text",
2094
+ "primaryKey": false,
2095
+ "notNull": true
2096
+ },
2097
+ "body": {
2098
+ "name": "body",
2099
+ "type": "jsonb",
2100
+ "primaryKey": false,
2101
+ "notNull": false,
2102
+ "default": "'{}'::jsonb"
2103
+ },
2104
+ "created_at": {
2105
+ "name": "created_at",
2106
+ "type": "timestamp with time zone",
2107
+ "primaryKey": false,
2108
+ "notNull": true,
2109
+ "default": "now()"
2110
+ },
2111
+ "updated_at": {
2112
+ "name": "updated_at",
2113
+ "type": "timestamp with time zone",
2114
+ "primaryKey": false,
2115
+ "notNull": true,
2116
+ "default": "now()"
2117
+ }
2118
+ },
2119
+ "indexes": {
2120
+ "entries_from_idx": {
2121
+ "name": "entries_from_idx",
2122
+ "columns": [
2123
+ {
2124
+ "expression": "from_id",
2125
+ "isExpression": false,
2126
+ "asc": true,
2127
+ "nulls": "last"
2128
+ }
2129
+ ],
2130
+ "isUnique": false,
2131
+ "concurrently": false,
2132
+ "method": "btree",
2133
+ "with": {}
2134
+ },
2135
+ "entries_to_idx": {
2136
+ "name": "entries_to_idx",
2137
+ "columns": [
2138
+ {
2139
+ "expression": "to_id",
2140
+ "isExpression": false,
2141
+ "asc": true,
2142
+ "nulls": "last"
2143
+ }
2144
+ ],
2145
+ "isUnique": false,
2146
+ "concurrently": false,
2147
+ "method": "btree",
2148
+ "with": {}
2149
+ }
2150
+ },
2151
+ "foreignKeys": {},
2152
+ "compositePrimaryKeys": {},
2153
+ "uniqueConstraints": {},
2154
+ "policies": {},
2155
+ "checkConstraints": {},
2156
+ "isRLSEnabled": false
2157
+ },
2158
+ "public.follows": {
2159
+ "name": "follows",
2160
+ "schema": "",
2161
+ "columns": {
2162
+ "id": {
2163
+ "name": "id",
2164
+ "type": "uuid",
2165
+ "primaryKey": true,
2166
+ "notNull": true
2167
+ },
2168
+ "from_id": {
2169
+ "name": "from_id",
2170
+ "type": "text",
2171
+ "primaryKey": false,
2172
+ "notNull": true
2173
+ },
2174
+ "to_id": {
2175
+ "name": "to_id",
2176
+ "type": "text",
2177
+ "primaryKey": false,
2178
+ "notNull": true
2179
+ },
2180
+ "body": {
2181
+ "name": "body",
2182
+ "type": "jsonb",
2183
+ "primaryKey": false,
2184
+ "notNull": false,
2185
+ "default": "'{}'::jsonb"
2186
+ },
2187
+ "created_at": {
2188
+ "name": "created_at",
2189
+ "type": "timestamp with time zone",
2190
+ "primaryKey": false,
2191
+ "notNull": true,
2192
+ "default": "now()"
2193
+ },
2194
+ "updated_at": {
2195
+ "name": "updated_at",
2196
+ "type": "timestamp with time zone",
2197
+ "primaryKey": false,
2198
+ "notNull": true,
2199
+ "default": "now()"
2200
+ }
2201
+ },
2202
+ "indexes": {
2203
+ "follows_from_idx": {
2204
+ "name": "follows_from_idx",
2205
+ "columns": [
2206
+ {
2207
+ "expression": "from_id",
2208
+ "isExpression": false,
2209
+ "asc": true,
2210
+ "nulls": "last"
2211
+ }
2212
+ ],
2213
+ "isUnique": false,
2214
+ "concurrently": false,
2215
+ "method": "btree",
2216
+ "with": {}
2217
+ },
2218
+ "follows_to_idx": {
2219
+ "name": "follows_to_idx",
2220
+ "columns": [
2221
+ {
2222
+ "expression": "to_id",
2223
+ "isExpression": false,
2224
+ "asc": true,
2225
+ "nulls": "last"
2226
+ }
2227
+ ],
2228
+ "isUnique": false,
2229
+ "concurrently": false,
2230
+ "method": "btree",
2231
+ "with": {}
2232
+ },
2233
+ "follows_from_to_unique": {
2234
+ "name": "follows_from_to_unique",
2235
+ "columns": [
2236
+ {
2237
+ "expression": "from_id",
2238
+ "isExpression": false,
2239
+ "asc": true,
2240
+ "nulls": "last"
2241
+ },
2242
+ {
2243
+ "expression": "to_id",
2244
+ "isExpression": false,
2245
+ "asc": true,
2246
+ "nulls": "last"
2247
+ }
2248
+ ],
2249
+ "isUnique": true,
2250
+ "concurrently": false,
2251
+ "method": "btree",
2252
+ "with": {}
2253
+ }
2254
+ },
2255
+ "foreignKeys": {},
2256
+ "compositePrimaryKeys": {},
2257
+ "uniqueConstraints": {},
2258
+ "policies": {},
2259
+ "checkConstraints": {},
2260
+ "isRLSEnabled": false
2261
+ },
2262
+ "public.has_read": {
2263
+ "name": "has_read",
2264
+ "schema": "",
2265
+ "columns": {
2266
+ "id": {
2267
+ "name": "id",
2268
+ "type": "uuid",
2269
+ "primaryKey": true,
2270
+ "notNull": true
2271
+ },
2272
+ "from_id": {
2273
+ "name": "from_id",
2274
+ "type": "text",
2275
+ "primaryKey": false,
2276
+ "notNull": true
2277
+ },
2278
+ "to_id": {
2279
+ "name": "to_id",
2280
+ "type": "text",
2281
+ "primaryKey": false,
2282
+ "notNull": true
2283
+ },
2284
+ "body": {
2285
+ "name": "body",
2286
+ "type": "jsonb",
2287
+ "primaryKey": false,
2288
+ "notNull": false,
2289
+ "default": "'{}'::jsonb"
2290
+ },
2291
+ "created_at": {
2292
+ "name": "created_at",
2293
+ "type": "timestamp with time zone",
2294
+ "primaryKey": false,
2295
+ "notNull": true,
2296
+ "default": "now()"
2297
+ },
2298
+ "updated_at": {
2299
+ "name": "updated_at",
2300
+ "type": "timestamp with time zone",
2301
+ "primaryKey": false,
2302
+ "notNull": true,
2303
+ "default": "now()"
2304
+ }
2305
+ },
2306
+ "indexes": {
2307
+ "has_read_from_idx": {
2308
+ "name": "has_read_from_idx",
2309
+ "columns": [
2310
+ {
2311
+ "expression": "from_id",
2312
+ "isExpression": false,
2313
+ "asc": true,
2314
+ "nulls": "last"
2315
+ }
2316
+ ],
2317
+ "isUnique": false,
2318
+ "concurrently": false,
2319
+ "method": "btree",
2320
+ "with": {}
2321
+ },
2322
+ "has_read_to_idx": {
2323
+ "name": "has_read_to_idx",
2324
+ "columns": [
2325
+ {
2326
+ "expression": "to_id",
2327
+ "isExpression": false,
2328
+ "asc": true,
2329
+ "nulls": "last"
2330
+ }
2331
+ ],
2332
+ "isUnique": false,
2333
+ "concurrently": false,
2334
+ "method": "btree",
2335
+ "with": {}
2336
+ }
2337
+ },
2338
+ "foreignKeys": {},
2339
+ "compositePrimaryKeys": {},
2340
+ "uniqueConstraints": {},
2341
+ "policies": {},
2342
+ "checkConstraints": {},
2343
+ "isRLSEnabled": false
2344
+ },
2345
+ "public.has_role": {
2346
+ "name": "has_role",
2347
+ "schema": "",
2348
+ "columns": {
2349
+ "id": {
2350
+ "name": "id",
2351
+ "type": "uuid",
2352
+ "primaryKey": true,
2353
+ "notNull": true
2354
+ },
2355
+ "from_id": {
2356
+ "name": "from_id",
2357
+ "type": "text",
2358
+ "primaryKey": false,
2359
+ "notNull": true
2360
+ },
2361
+ "to_id": {
2362
+ "name": "to_id",
2363
+ "type": "text",
2364
+ "primaryKey": false,
2365
+ "notNull": true
2366
+ },
2367
+ "body": {
2368
+ "name": "body",
2369
+ "type": "jsonb",
2370
+ "primaryKey": false,
2371
+ "notNull": false,
2372
+ "default": "'{}'::jsonb"
2373
+ },
2374
+ "created_at": {
2375
+ "name": "created_at",
2376
+ "type": "timestamp with time zone",
2377
+ "primaryKey": false,
2378
+ "notNull": true,
2379
+ "default": "now()"
2380
+ },
2381
+ "updated_at": {
2382
+ "name": "updated_at",
2383
+ "type": "timestamp with time zone",
2384
+ "primaryKey": false,
2385
+ "notNull": true,
2386
+ "default": "now()"
2387
+ }
2388
+ },
2389
+ "indexes": {
2390
+ "has_role_from_idx": {
2391
+ "name": "has_role_from_idx",
2392
+ "columns": [
2393
+ {
2394
+ "expression": "from_id",
2395
+ "isExpression": false,
2396
+ "asc": true,
2397
+ "nulls": "last"
2398
+ }
2399
+ ],
2400
+ "isUnique": false,
2401
+ "concurrently": false,
2402
+ "method": "btree",
2403
+ "with": {}
2404
+ },
2405
+ "has_role_to_idx": {
2406
+ "name": "has_role_to_idx",
2407
+ "columns": [
2408
+ {
2409
+ "expression": "to_id",
2410
+ "isExpression": false,
2411
+ "asc": true,
2412
+ "nulls": "last"
2413
+ }
2414
+ ],
2415
+ "isUnique": false,
2416
+ "concurrently": false,
2417
+ "method": "btree",
2418
+ "with": {}
2419
+ },
2420
+ "has_role_from_to_unique": {
2421
+ "name": "has_role_from_to_unique",
2422
+ "columns": [
2423
+ {
2424
+ "expression": "from_id",
2425
+ "isExpression": false,
2426
+ "asc": true,
2427
+ "nulls": "last"
2428
+ },
2429
+ {
2430
+ "expression": "to_id",
2431
+ "isExpression": false,
2432
+ "asc": true,
2433
+ "nulls": "last"
2434
+ }
2435
+ ],
2436
+ "isUnique": true,
2437
+ "concurrently": false,
2438
+ "method": "btree",
2439
+ "with": {}
2440
+ }
2441
+ },
2442
+ "foreignKeys": {},
2443
+ "compositePrimaryKeys": {},
2444
+ "uniqueConstraints": {},
2445
+ "policies": {},
2446
+ "checkConstraints": {},
2447
+ "isRLSEnabled": false
2448
+ },
2449
+ "public.has_seen": {
2450
+ "name": "has_seen",
2451
+ "schema": "",
2452
+ "columns": {
2453
+ "id": {
2454
+ "name": "id",
2455
+ "type": "uuid",
2456
+ "primaryKey": true,
2457
+ "notNull": true
2458
+ },
2459
+ "from_id": {
2460
+ "name": "from_id",
2461
+ "type": "text",
2462
+ "primaryKey": false,
2463
+ "notNull": true
2464
+ },
2465
+ "to_id": {
2466
+ "name": "to_id",
2467
+ "type": "text",
2468
+ "primaryKey": false,
2469
+ "notNull": true
2470
+ },
2471
+ "body": {
2472
+ "name": "body",
2473
+ "type": "jsonb",
2474
+ "primaryKey": false,
2475
+ "notNull": false,
2476
+ "default": "'{}'::jsonb"
2477
+ },
2478
+ "created_at": {
2479
+ "name": "created_at",
2480
+ "type": "timestamp with time zone",
2481
+ "primaryKey": false,
2482
+ "notNull": true,
2483
+ "default": "now()"
2484
+ },
2485
+ "updated_at": {
2486
+ "name": "updated_at",
2487
+ "type": "timestamp with time zone",
2488
+ "primaryKey": false,
2489
+ "notNull": true,
2490
+ "default": "now()"
2491
+ }
2492
+ },
2493
+ "indexes": {
2494
+ "has_seen_from_idx": {
2495
+ "name": "has_seen_from_idx",
2496
+ "columns": [
2497
+ {
2498
+ "expression": "from_id",
2499
+ "isExpression": false,
2500
+ "asc": true,
2501
+ "nulls": "last"
2502
+ }
2503
+ ],
2504
+ "isUnique": false,
2505
+ "concurrently": false,
2506
+ "method": "btree",
2507
+ "with": {}
2508
+ },
2509
+ "has_seen_to_idx": {
2510
+ "name": "has_seen_to_idx",
2511
+ "columns": [
2512
+ {
2513
+ "expression": "to_id",
2514
+ "isExpression": false,
2515
+ "asc": true,
2516
+ "nulls": "last"
2517
+ }
2518
+ ],
2519
+ "isUnique": false,
2520
+ "concurrently": false,
2521
+ "method": "btree",
2522
+ "with": {}
2523
+ }
2524
+ },
2525
+ "foreignKeys": {},
2526
+ "compositePrimaryKeys": {},
2527
+ "uniqueConstraints": {},
2528
+ "policies": {},
2529
+ "checkConstraints": {},
2530
+ "isRLSEnabled": false
2531
+ },
2532
+ "public.invite_link_creators": {
2533
+ "name": "invite_link_creators",
2534
+ "schema": "",
2535
+ "columns": {
2536
+ "id": {
2537
+ "name": "id",
2538
+ "type": "uuid",
2539
+ "primaryKey": true,
2540
+ "notNull": true
2541
+ },
2542
+ "from_id": {
2543
+ "name": "from_id",
2544
+ "type": "text",
2545
+ "primaryKey": false,
2546
+ "notNull": true
2547
+ },
2548
+ "to_id": {
2549
+ "name": "to_id",
2550
+ "type": "text",
2551
+ "primaryKey": false,
2552
+ "notNull": true
2553
+ },
2554
+ "body": {
2555
+ "name": "body",
2556
+ "type": "jsonb",
2557
+ "primaryKey": false,
2558
+ "notNull": false,
2559
+ "default": "'{}'::jsonb"
2560
+ },
2561
+ "created_at": {
2562
+ "name": "created_at",
2563
+ "type": "timestamp with time zone",
2564
+ "primaryKey": false,
2565
+ "notNull": true,
2566
+ "default": "now()"
2567
+ },
2568
+ "updated_at": {
2569
+ "name": "updated_at",
2570
+ "type": "timestamp with time zone",
2571
+ "primaryKey": false,
2572
+ "notNull": true,
2573
+ "default": "now()"
2574
+ }
2575
+ },
2576
+ "indexes": {
2577
+ "invite_link_creators_from_idx": {
2578
+ "name": "invite_link_creators_from_idx",
2579
+ "columns": [
2580
+ {
2581
+ "expression": "from_id",
2582
+ "isExpression": false,
2583
+ "asc": true,
2584
+ "nulls": "last"
2585
+ }
2586
+ ],
2587
+ "isUnique": false,
2588
+ "concurrently": false,
2589
+ "method": "btree",
2590
+ "with": {}
2591
+ },
2592
+ "invite_link_creators_to_idx": {
2593
+ "name": "invite_link_creators_to_idx",
2594
+ "columns": [
2595
+ {
2596
+ "expression": "to_id",
2597
+ "isExpression": false,
2598
+ "asc": true,
2599
+ "nulls": "last"
2600
+ }
2601
+ ],
2602
+ "isUnique": false,
2603
+ "concurrently": false,
2604
+ "method": "btree",
2605
+ "with": {}
2606
+ }
2607
+ },
2608
+ "foreignKeys": {},
2609
+ "compositePrimaryKeys": {},
2610
+ "uniqueConstraints": {},
2611
+ "policies": {},
2612
+ "checkConstraints": {},
2613
+ "isRLSEnabled": false
2614
+ },
2615
+ "public.invite_link_redeemers": {
2616
+ "name": "invite_link_redeemers",
2617
+ "schema": "",
2618
+ "columns": {
2619
+ "id": {
2620
+ "name": "id",
2621
+ "type": "uuid",
2622
+ "primaryKey": true,
2623
+ "notNull": true
2624
+ },
2625
+ "from_id": {
2626
+ "name": "from_id",
2627
+ "type": "text",
2628
+ "primaryKey": false,
2629
+ "notNull": true
2630
+ },
2631
+ "to_id": {
2632
+ "name": "to_id",
2633
+ "type": "text",
2634
+ "primaryKey": false,
2635
+ "notNull": true
2636
+ },
2637
+ "body": {
2638
+ "name": "body",
2639
+ "type": "jsonb",
2640
+ "primaryKey": false,
2641
+ "notNull": false,
2642
+ "default": "'{}'::jsonb"
2643
+ },
2644
+ "created_at": {
2645
+ "name": "created_at",
2646
+ "type": "timestamp with time zone",
2647
+ "primaryKey": false,
2648
+ "notNull": true,
2649
+ "default": "now()"
2650
+ },
2651
+ "updated_at": {
2652
+ "name": "updated_at",
2653
+ "type": "timestamp with time zone",
2654
+ "primaryKey": false,
2655
+ "notNull": true,
2656
+ "default": "now()"
2657
+ }
2658
+ },
2659
+ "indexes": {
2660
+ "invite_link_redeemers_from_idx": {
2661
+ "name": "invite_link_redeemers_from_idx",
2662
+ "columns": [
2663
+ {
2664
+ "expression": "from_id",
2665
+ "isExpression": false,
2666
+ "asc": true,
2667
+ "nulls": "last"
2668
+ }
2669
+ ],
2670
+ "isUnique": false,
2671
+ "concurrently": false,
2672
+ "method": "btree",
2673
+ "with": {}
2674
+ },
2675
+ "invite_link_redeemers_to_idx": {
2676
+ "name": "invite_link_redeemers_to_idx",
2677
+ "columns": [
2678
+ {
2679
+ "expression": "to_id",
2680
+ "isExpression": false,
2681
+ "asc": true,
2682
+ "nulls": "last"
2683
+ }
2684
+ ],
2685
+ "isUnique": false,
2686
+ "concurrently": false,
2687
+ "method": "btree",
2688
+ "with": {}
2689
+ }
2690
+ },
2691
+ "foreignKeys": {},
2692
+ "compositePrimaryKeys": {},
2693
+ "uniqueConstraints": {},
2694
+ "policies": {},
2695
+ "checkConstraints": {},
2696
+ "isRLSEnabled": false
2697
+ },
2698
+ "public.is_reported_object": {
2699
+ "name": "is_reported_object",
2700
+ "schema": "",
2701
+ "columns": {
2702
+ "id": {
2703
+ "name": "id",
2704
+ "type": "uuid",
2705
+ "primaryKey": true,
2706
+ "notNull": true
2707
+ },
2708
+ "from_id": {
2709
+ "name": "from_id",
2710
+ "type": "text",
2711
+ "primaryKey": false,
2712
+ "notNull": true
2713
+ },
2714
+ "to_id": {
2715
+ "name": "to_id",
2716
+ "type": "text",
2717
+ "primaryKey": false,
2718
+ "notNull": true
2719
+ },
2720
+ "body": {
2721
+ "name": "body",
2722
+ "type": "jsonb",
2723
+ "primaryKey": false,
2724
+ "notNull": false,
2725
+ "default": "'{}'::jsonb"
2726
+ },
2727
+ "created_at": {
2728
+ "name": "created_at",
2729
+ "type": "timestamp with time zone",
2730
+ "primaryKey": false,
2731
+ "notNull": true,
2732
+ "default": "now()"
2733
+ },
2734
+ "updated_at": {
2735
+ "name": "updated_at",
2736
+ "type": "timestamp with time zone",
2737
+ "primaryKey": false,
2738
+ "notNull": true,
2739
+ "default": "now()"
2740
+ }
2741
+ },
2742
+ "indexes": {
2743
+ "is_reported_object_from_idx": {
2744
+ "name": "is_reported_object_from_idx",
2745
+ "columns": [
2746
+ {
2747
+ "expression": "from_id",
2748
+ "isExpression": false,
2749
+ "asc": true,
2750
+ "nulls": "last"
2751
+ }
2752
+ ],
2753
+ "isUnique": false,
2754
+ "concurrently": false,
2755
+ "method": "btree",
2756
+ "with": {}
2757
+ },
2758
+ "is_reported_object_to_idx": {
2759
+ "name": "is_reported_object_to_idx",
2760
+ "columns": [
2761
+ {
2762
+ "expression": "to_id",
2763
+ "isExpression": false,
2764
+ "asc": true,
2765
+ "nulls": "last"
2766
+ }
2767
+ ],
2768
+ "isUnique": false,
2769
+ "concurrently": false,
2770
+ "method": "btree",
2771
+ "with": {}
2772
+ }
2773
+ },
2774
+ "foreignKeys": {},
2775
+ "compositePrimaryKeys": {},
2776
+ "uniqueConstraints": {},
2777
+ "policies": {},
2778
+ "checkConstraints": {},
2779
+ "isRLSEnabled": false
2780
+ },
2781
+ "public.is_reported_profile": {
2782
+ "name": "is_reported_profile",
2783
+ "schema": "",
2784
+ "columns": {
2785
+ "id": {
2786
+ "name": "id",
2787
+ "type": "uuid",
2788
+ "primaryKey": true,
2789
+ "notNull": true
2790
+ },
2791
+ "from_id": {
2792
+ "name": "from_id",
2793
+ "type": "text",
2794
+ "primaryKey": false,
2795
+ "notNull": true
2796
+ },
2797
+ "to_id": {
2798
+ "name": "to_id",
2799
+ "type": "text",
2800
+ "primaryKey": false,
2801
+ "notNull": true
2802
+ },
2803
+ "body": {
2804
+ "name": "body",
2805
+ "type": "jsonb",
2806
+ "primaryKey": false,
2807
+ "notNull": false,
2808
+ "default": "'{}'::jsonb"
2809
+ },
2810
+ "created_at": {
2811
+ "name": "created_at",
2812
+ "type": "timestamp with time zone",
2813
+ "primaryKey": false,
2814
+ "notNull": true,
2815
+ "default": "now()"
2816
+ },
2817
+ "updated_at": {
2818
+ "name": "updated_at",
2819
+ "type": "timestamp with time zone",
2820
+ "primaryKey": false,
2821
+ "notNull": true,
2822
+ "default": "now()"
2823
+ }
2824
+ },
2825
+ "indexes": {
2826
+ "is_reported_profile_from_idx": {
2827
+ "name": "is_reported_profile_from_idx",
2828
+ "columns": [
2829
+ {
2830
+ "expression": "from_id",
2831
+ "isExpression": false,
2832
+ "asc": true,
2833
+ "nulls": "last"
2834
+ }
2835
+ ],
2836
+ "isUnique": false,
2837
+ "concurrently": false,
2838
+ "method": "btree",
2839
+ "with": {}
2840
+ },
2841
+ "is_reported_profile_to_idx": {
2842
+ "name": "is_reported_profile_to_idx",
2843
+ "columns": [
2844
+ {
2845
+ "expression": "to_id",
2846
+ "isExpression": false,
2847
+ "asc": true,
2848
+ "nulls": "last"
2849
+ }
2850
+ ],
2851
+ "isUnique": false,
2852
+ "concurrently": false,
2853
+ "method": "btree",
2854
+ "with": {}
2855
+ }
2856
+ },
2857
+ "foreignKeys": {},
2858
+ "compositePrimaryKeys": {},
2859
+ "uniqueConstraints": {},
2860
+ "policies": {},
2861
+ "checkConstraints": {},
2862
+ "isRLSEnabled": false
2863
+ },
2864
+ "public.jam_recordings": {
2865
+ "name": "jam_recordings",
2866
+ "schema": "",
2867
+ "columns": {
2868
+ "id": {
2869
+ "name": "id",
2870
+ "type": "uuid",
2871
+ "primaryKey": true,
2872
+ "notNull": true
2873
+ },
2874
+ "from_id": {
2875
+ "name": "from_id",
2876
+ "type": "text",
2877
+ "primaryKey": false,
2878
+ "notNull": true
2879
+ },
2880
+ "to_id": {
2881
+ "name": "to_id",
2882
+ "type": "text",
2883
+ "primaryKey": false,
2884
+ "notNull": true
2885
+ },
2886
+ "body": {
2887
+ "name": "body",
2888
+ "type": "jsonb",
2889
+ "primaryKey": false,
2890
+ "notNull": false,
2891
+ "default": "'{}'::jsonb"
2892
+ },
2893
+ "created_at": {
2894
+ "name": "created_at",
2895
+ "type": "timestamp with time zone",
2896
+ "primaryKey": false,
2897
+ "notNull": true,
2898
+ "default": "now()"
2899
+ },
2900
+ "updated_at": {
2901
+ "name": "updated_at",
2902
+ "type": "timestamp with time zone",
2903
+ "primaryKey": false,
2904
+ "notNull": true,
2905
+ "default": "now()"
2906
+ }
2907
+ },
2908
+ "indexes": {
2909
+ "jam_recordings_from_idx": {
2910
+ "name": "jam_recordings_from_idx",
2911
+ "columns": [
2912
+ {
2913
+ "expression": "from_id",
2914
+ "isExpression": false,
2915
+ "asc": true,
2916
+ "nulls": "last"
2917
+ }
2918
+ ],
2919
+ "isUnique": false,
2920
+ "concurrently": false,
2921
+ "method": "btree",
2922
+ "with": {}
2923
+ },
2924
+ "jam_recordings_to_idx": {
2925
+ "name": "jam_recordings_to_idx",
2926
+ "columns": [
2927
+ {
2928
+ "expression": "to_id",
2929
+ "isExpression": false,
2930
+ "asc": true,
2931
+ "nulls": "last"
2932
+ }
2933
+ ],
2934
+ "isUnique": false,
2935
+ "concurrently": false,
2936
+ "method": "btree",
2937
+ "with": {}
2938
+ }
2939
+ },
2940
+ "foreignKeys": {},
2941
+ "compositePrimaryKeys": {},
2942
+ "uniqueConstraints": {},
2943
+ "policies": {},
2944
+ "checkConstraints": {},
2945
+ "isRLSEnabled": false
2946
+ },
2947
+ "public.mentions": {
2948
+ "name": "mentions",
2949
+ "schema": "",
2950
+ "columns": {
2951
+ "id": {
2952
+ "name": "id",
2953
+ "type": "uuid",
2954
+ "primaryKey": true,
2955
+ "notNull": true
2956
+ },
2957
+ "from_id": {
2958
+ "name": "from_id",
2959
+ "type": "text",
2960
+ "primaryKey": false,
2961
+ "notNull": true
2962
+ },
2963
+ "to_id": {
2964
+ "name": "to_id",
2965
+ "type": "text",
2966
+ "primaryKey": false,
2967
+ "notNull": true
2968
+ },
2969
+ "body": {
2970
+ "name": "body",
2971
+ "type": "jsonb",
2972
+ "primaryKey": false,
2973
+ "notNull": false,
2974
+ "default": "'{}'::jsonb"
2975
+ },
2976
+ "created_at": {
2977
+ "name": "created_at",
2978
+ "type": "timestamp with time zone",
2979
+ "primaryKey": false,
2980
+ "notNull": true,
2981
+ "default": "now()"
2982
+ },
2983
+ "updated_at": {
2984
+ "name": "updated_at",
2985
+ "type": "timestamp with time zone",
2986
+ "primaryKey": false,
2987
+ "notNull": true,
2988
+ "default": "now()"
2989
+ }
2990
+ },
2991
+ "indexes": {
2992
+ "mentions_from_idx": {
2993
+ "name": "mentions_from_idx",
2994
+ "columns": [
2995
+ {
2996
+ "expression": "from_id",
2997
+ "isExpression": false,
2998
+ "asc": true,
2999
+ "nulls": "last"
3000
+ }
3001
+ ],
3002
+ "isUnique": false,
3003
+ "concurrently": false,
3004
+ "method": "btree",
3005
+ "with": {}
3006
+ },
3007
+ "mentions_to_idx": {
3008
+ "name": "mentions_to_idx",
3009
+ "columns": [
3010
+ {
3011
+ "expression": "to_id",
3012
+ "isExpression": false,
3013
+ "asc": true,
3014
+ "nulls": "last"
3015
+ }
3016
+ ],
3017
+ "isUnique": false,
3018
+ "concurrently": false,
3019
+ "method": "btree",
3020
+ "with": {}
3021
+ }
3022
+ },
3023
+ "foreignKeys": {},
3024
+ "compositePrimaryKeys": {},
3025
+ "uniqueConstraints": {},
3026
+ "policies": {},
3027
+ "checkConstraints": {},
3028
+ "isRLSEnabled": false
3029
+ },
3030
+ "public.post_groups": {
3031
+ "name": "post_groups",
3032
+ "schema": "",
3033
+ "columns": {
3034
+ "id": {
3035
+ "name": "id",
3036
+ "type": "uuid",
3037
+ "primaryKey": true,
3038
+ "notNull": true
3039
+ },
3040
+ "from_id": {
3041
+ "name": "from_id",
3042
+ "type": "text",
3043
+ "primaryKey": false,
3044
+ "notNull": true
3045
+ },
3046
+ "to_id": {
3047
+ "name": "to_id",
3048
+ "type": "text",
3049
+ "primaryKey": false,
3050
+ "notNull": true
3051
+ },
3052
+ "body": {
3053
+ "name": "body",
3054
+ "type": "jsonb",
3055
+ "primaryKey": false,
3056
+ "notNull": false,
3057
+ "default": "'{}'::jsonb"
3058
+ },
3059
+ "created_at": {
3060
+ "name": "created_at",
3061
+ "type": "timestamp with time zone",
3062
+ "primaryKey": false,
3063
+ "notNull": true,
3064
+ "default": "now()"
3065
+ },
3066
+ "updated_at": {
3067
+ "name": "updated_at",
3068
+ "type": "timestamp with time zone",
3069
+ "primaryKey": false,
3070
+ "notNull": true,
3071
+ "default": "now()"
3072
+ }
3073
+ },
3074
+ "indexes": {
3075
+ "post_groups_from_idx": {
3076
+ "name": "post_groups_from_idx",
3077
+ "columns": [
3078
+ {
3079
+ "expression": "from_id",
3080
+ "isExpression": false,
3081
+ "asc": true,
3082
+ "nulls": "last"
3083
+ }
3084
+ ],
3085
+ "isUnique": false,
3086
+ "concurrently": false,
3087
+ "method": "btree",
3088
+ "with": {}
3089
+ },
3090
+ "post_groups_to_idx": {
3091
+ "name": "post_groups_to_idx",
3092
+ "columns": [
3093
+ {
3094
+ "expression": "to_id",
3095
+ "isExpression": false,
3096
+ "asc": true,
3097
+ "nulls": "last"
3098
+ }
3099
+ ],
3100
+ "isUnique": false,
3101
+ "concurrently": false,
3102
+ "method": "btree",
3103
+ "with": {}
3104
+ }
3105
+ },
3106
+ "foreignKeys": {},
3107
+ "compositePrimaryKeys": {},
3108
+ "uniqueConstraints": {},
3109
+ "policies": {},
3110
+ "checkConstraints": {},
3111
+ "isRLSEnabled": false
3112
+ },
3113
+ "public.post_hashtags": {
3114
+ "name": "post_hashtags",
3115
+ "schema": "",
3116
+ "columns": {
3117
+ "id": {
3118
+ "name": "id",
3119
+ "type": "uuid",
3120
+ "primaryKey": true,
3121
+ "notNull": true
3122
+ },
3123
+ "from_id": {
3124
+ "name": "from_id",
3125
+ "type": "text",
3126
+ "primaryKey": false,
3127
+ "notNull": true
3128
+ },
3129
+ "to_id": {
3130
+ "name": "to_id",
3131
+ "type": "text",
3132
+ "primaryKey": false,
3133
+ "notNull": true
3134
+ },
3135
+ "body": {
3136
+ "name": "body",
3137
+ "type": "jsonb",
3138
+ "primaryKey": false,
3139
+ "notNull": false,
3140
+ "default": "'{}'::jsonb"
3141
+ },
3142
+ "created_at": {
3143
+ "name": "created_at",
3144
+ "type": "timestamp with time zone",
3145
+ "primaryKey": false,
3146
+ "notNull": true,
3147
+ "default": "now()"
3148
+ },
3149
+ "updated_at": {
3150
+ "name": "updated_at",
3151
+ "type": "timestamp with time zone",
3152
+ "primaryKey": false,
3153
+ "notNull": true,
3154
+ "default": "now()"
3155
+ }
3156
+ },
3157
+ "indexes": {
3158
+ "post_hashtags_from_idx": {
3159
+ "name": "post_hashtags_from_idx",
3160
+ "columns": [
3161
+ {
3162
+ "expression": "from_id",
3163
+ "isExpression": false,
3164
+ "asc": true,
3165
+ "nulls": "last"
3166
+ }
3167
+ ],
3168
+ "isUnique": false,
3169
+ "concurrently": false,
3170
+ "method": "btree",
3171
+ "with": {}
3172
+ },
3173
+ "post_hashtags_to_idx": {
3174
+ "name": "post_hashtags_to_idx",
3175
+ "columns": [
3176
+ {
3177
+ "expression": "to_id",
3178
+ "isExpression": false,
3179
+ "asc": true,
3180
+ "nulls": "last"
3181
+ }
3182
+ ],
3183
+ "isUnique": false,
3184
+ "concurrently": false,
3185
+ "method": "btree",
3186
+ "with": {}
3187
+ }
3188
+ },
3189
+ "foreignKeys": {},
3190
+ "compositePrimaryKeys": {},
3191
+ "uniqueConstraints": {},
3192
+ "policies": {},
3193
+ "checkConstraints": {},
3194
+ "isRLSEnabled": false
3195
+ },
3196
+ "public.post_seen": {
3197
+ "name": "post_seen",
3198
+ "schema": "",
3199
+ "columns": {
3200
+ "id": {
3201
+ "name": "id",
3202
+ "type": "uuid",
3203
+ "primaryKey": true,
3204
+ "notNull": true
3205
+ },
3206
+ "from_id": {
3207
+ "name": "from_id",
3208
+ "type": "text",
3209
+ "primaryKey": false,
3210
+ "notNull": true
3211
+ },
3212
+ "to_id": {
3213
+ "name": "to_id",
3214
+ "type": "text",
3215
+ "primaryKey": false,
3216
+ "notNull": true
3217
+ },
3218
+ "body": {
3219
+ "name": "body",
3220
+ "type": "jsonb",
3221
+ "primaryKey": false,
3222
+ "notNull": false,
3223
+ "default": "'{}'::jsonb"
3224
+ },
3225
+ "created_at": {
3226
+ "name": "created_at",
3227
+ "type": "timestamp with time zone",
3228
+ "primaryKey": false,
3229
+ "notNull": true,
3230
+ "default": "now()"
3231
+ },
3232
+ "updated_at": {
3233
+ "name": "updated_at",
3234
+ "type": "timestamp with time zone",
3235
+ "primaryKey": false,
3236
+ "notNull": true,
3237
+ "default": "now()"
3238
+ }
3239
+ },
3240
+ "indexes": {
3241
+ "post_seen_from_idx": {
3242
+ "name": "post_seen_from_idx",
3243
+ "columns": [
3244
+ {
3245
+ "expression": "from_id",
3246
+ "isExpression": false,
3247
+ "asc": true,
3248
+ "nulls": "last"
3249
+ }
3250
+ ],
3251
+ "isUnique": false,
3252
+ "concurrently": false,
3253
+ "method": "btree",
3254
+ "with": {}
3255
+ },
3256
+ "post_seen_to_idx": {
3257
+ "name": "post_seen_to_idx",
3258
+ "columns": [
3259
+ {
3260
+ "expression": "to_id",
3261
+ "isExpression": false,
3262
+ "asc": true,
3263
+ "nulls": "last"
3264
+ }
3265
+ ],
3266
+ "isUnique": false,
3267
+ "concurrently": false,
3268
+ "method": "btree",
3269
+ "with": {}
3270
+ }
3271
+ },
3272
+ "foreignKeys": {},
3273
+ "compositePrimaryKeys": {},
3274
+ "uniqueConstraints": {},
3275
+ "policies": {},
3276
+ "checkConstraints": {},
3277
+ "isRLSEnabled": false
3278
+ },
3279
+ "public.profile_access_tokens": {
3280
+ "name": "profile_access_tokens",
3281
+ "schema": "",
3282
+ "columns": {
3283
+ "id": {
3284
+ "name": "id",
3285
+ "type": "uuid",
3286
+ "primaryKey": true,
3287
+ "notNull": true
3288
+ },
3289
+ "from_id": {
3290
+ "name": "from_id",
3291
+ "type": "text",
3292
+ "primaryKey": false,
3293
+ "notNull": true
3294
+ },
3295
+ "to_id": {
3296
+ "name": "to_id",
3297
+ "type": "text",
3298
+ "primaryKey": false,
3299
+ "notNull": true
3300
+ },
3301
+ "body": {
3302
+ "name": "body",
3303
+ "type": "jsonb",
3304
+ "primaryKey": false,
3305
+ "notNull": false,
3306
+ "default": "'{}'::jsonb"
3307
+ },
3308
+ "created_at": {
3309
+ "name": "created_at",
3310
+ "type": "timestamp with time zone",
3311
+ "primaryKey": false,
3312
+ "notNull": true,
3313
+ "default": "now()"
3314
+ },
3315
+ "updated_at": {
3316
+ "name": "updated_at",
3317
+ "type": "timestamp with time zone",
3318
+ "primaryKey": false,
3319
+ "notNull": true,
3320
+ "default": "now()"
3321
+ }
3322
+ },
3323
+ "indexes": {
3324
+ "profile_access_tokens_from_idx": {
3325
+ "name": "profile_access_tokens_from_idx",
3326
+ "columns": [
3327
+ {
3328
+ "expression": "from_id",
3329
+ "isExpression": false,
3330
+ "asc": true,
3331
+ "nulls": "last"
3332
+ }
3333
+ ],
3334
+ "isUnique": false,
3335
+ "concurrently": false,
3336
+ "method": "btree",
3337
+ "with": {}
3338
+ },
3339
+ "profile_access_tokens_to_idx": {
3340
+ "name": "profile_access_tokens_to_idx",
3341
+ "columns": [
3342
+ {
3343
+ "expression": "to_id",
3344
+ "isExpression": false,
3345
+ "asc": true,
3346
+ "nulls": "last"
3347
+ }
3348
+ ],
3349
+ "isUnique": false,
3350
+ "concurrently": false,
3351
+ "method": "btree",
3352
+ "with": {}
3353
+ },
3354
+ "profile_access_tokens_from_to_unique": {
3355
+ "name": "profile_access_tokens_from_to_unique",
3356
+ "columns": [
3357
+ {
3358
+ "expression": "from_id",
3359
+ "isExpression": false,
3360
+ "asc": true,
3361
+ "nulls": "last"
3362
+ },
3363
+ {
3364
+ "expression": "to_id",
3365
+ "isExpression": false,
3366
+ "asc": true,
3367
+ "nulls": "last"
3368
+ }
3369
+ ],
3370
+ "isUnique": true,
3371
+ "concurrently": false,
3372
+ "method": "btree",
3373
+ "with": {}
3374
+ }
3375
+ },
3376
+ "foreignKeys": {},
3377
+ "compositePrimaryKeys": {},
3378
+ "uniqueConstraints": {},
3379
+ "policies": {},
3380
+ "checkConstraints": {},
3381
+ "isRLSEnabled": false
3382
+ },
3383
+ "public.profile_hashtags": {
3384
+ "name": "profile_hashtags",
3385
+ "schema": "",
3386
+ "columns": {
3387
+ "id": {
3388
+ "name": "id",
3389
+ "type": "uuid",
3390
+ "primaryKey": true,
3391
+ "notNull": true
3392
+ },
3393
+ "from_id": {
3394
+ "name": "from_id",
3395
+ "type": "text",
3396
+ "primaryKey": false,
3397
+ "notNull": true
3398
+ },
3399
+ "to_id": {
3400
+ "name": "to_id",
3401
+ "type": "text",
3402
+ "primaryKey": false,
3403
+ "notNull": true
3404
+ },
3405
+ "body": {
3406
+ "name": "body",
3407
+ "type": "jsonb",
3408
+ "primaryKey": false,
3409
+ "notNull": false,
3410
+ "default": "'{}'::jsonb"
3411
+ },
3412
+ "created_at": {
3413
+ "name": "created_at",
3414
+ "type": "timestamp with time zone",
3415
+ "primaryKey": false,
3416
+ "notNull": true,
3417
+ "default": "now()"
3418
+ },
3419
+ "updated_at": {
3420
+ "name": "updated_at",
3421
+ "type": "timestamp with time zone",
3422
+ "primaryKey": false,
3423
+ "notNull": true,
3424
+ "default": "now()"
3425
+ }
3426
+ },
3427
+ "indexes": {
3428
+ "profile_hashtags_from_idx": {
3429
+ "name": "profile_hashtags_from_idx",
3430
+ "columns": [
3431
+ {
3432
+ "expression": "from_id",
3433
+ "isExpression": false,
3434
+ "asc": true,
3435
+ "nulls": "last"
3436
+ }
3437
+ ],
3438
+ "isUnique": false,
3439
+ "concurrently": false,
3440
+ "method": "btree",
3441
+ "with": {}
3442
+ },
3443
+ "profile_hashtags_to_idx": {
3444
+ "name": "profile_hashtags_to_idx",
3445
+ "columns": [
3446
+ {
3447
+ "expression": "to_id",
3448
+ "isExpression": false,
3449
+ "asc": true,
3450
+ "nulls": "last"
3451
+ }
3452
+ ],
3453
+ "isUnique": false,
3454
+ "concurrently": false,
3455
+ "method": "btree",
3456
+ "with": {}
3457
+ },
3458
+ "profile_hashtags_from_to_unique": {
3459
+ "name": "profile_hashtags_from_to_unique",
3460
+ "columns": [
3461
+ {
3462
+ "expression": "from_id",
3463
+ "isExpression": false,
3464
+ "asc": true,
3465
+ "nulls": "last"
3466
+ },
3467
+ {
3468
+ "expression": "to_id",
3469
+ "isExpression": false,
3470
+ "asc": true,
3471
+ "nulls": "last"
3472
+ }
3473
+ ],
3474
+ "isUnique": true,
3475
+ "concurrently": false,
3476
+ "method": "btree",
3477
+ "with": {}
3478
+ }
3479
+ },
3480
+ "foreignKeys": {},
3481
+ "compositePrimaryKeys": {},
3482
+ "uniqueConstraints": {},
3483
+ "policies": {},
3484
+ "checkConstraints": {},
3485
+ "isRLSEnabled": false
3486
+ },
3487
+ "public.reply_to": {
3488
+ "name": "reply_to",
3489
+ "schema": "",
3490
+ "columns": {
3491
+ "id": {
3492
+ "name": "id",
3493
+ "type": "uuid",
3494
+ "primaryKey": true,
3495
+ "notNull": true
3496
+ },
3497
+ "from_id": {
3498
+ "name": "from_id",
3499
+ "type": "text",
3500
+ "primaryKey": false,
3501
+ "notNull": true
3502
+ },
3503
+ "to_id": {
3504
+ "name": "to_id",
3505
+ "type": "text",
3506
+ "primaryKey": false,
3507
+ "notNull": true
3508
+ },
3509
+ "body": {
3510
+ "name": "body",
3511
+ "type": "jsonb",
3512
+ "primaryKey": false,
3513
+ "notNull": false,
3514
+ "default": "'{}'::jsonb"
3515
+ },
3516
+ "created_at": {
3517
+ "name": "created_at",
3518
+ "type": "timestamp with time zone",
3519
+ "primaryKey": false,
3520
+ "notNull": true,
3521
+ "default": "now()"
3522
+ },
3523
+ "updated_at": {
3524
+ "name": "updated_at",
3525
+ "type": "timestamp with time zone",
3526
+ "primaryKey": false,
3527
+ "notNull": true,
3528
+ "default": "now()"
3529
+ }
3530
+ },
3531
+ "indexes": {
3532
+ "reply_to_from_idx": {
3533
+ "name": "reply_to_from_idx",
3534
+ "columns": [
3535
+ {
3536
+ "expression": "from_id",
3537
+ "isExpression": false,
3538
+ "asc": true,
3539
+ "nulls": "last"
3540
+ }
3541
+ ],
3542
+ "isUnique": false,
3543
+ "concurrently": false,
3544
+ "method": "btree",
3545
+ "with": {}
3546
+ },
3547
+ "reply_to_to_idx": {
3548
+ "name": "reply_to_to_idx",
3549
+ "columns": [
3550
+ {
3551
+ "expression": "to_id",
3552
+ "isExpression": false,
3553
+ "asc": true,
3554
+ "nulls": "last"
3555
+ }
3556
+ ],
3557
+ "isUnique": false,
3558
+ "concurrently": false,
3559
+ "method": "btree",
3560
+ "with": {}
3561
+ },
3562
+ "reply_to_from_to_unique": {
3563
+ "name": "reply_to_from_to_unique",
3564
+ "columns": [
3565
+ {
3566
+ "expression": "from_id",
3567
+ "isExpression": false,
3568
+ "asc": true,
3569
+ "nulls": "last"
3570
+ },
3571
+ {
3572
+ "expression": "to_id",
3573
+ "isExpression": false,
3574
+ "asc": true,
3575
+ "nulls": "last"
3576
+ }
3577
+ ],
3578
+ "isUnique": true,
3579
+ "concurrently": false,
3580
+ "method": "btree",
3581
+ "with": {}
3582
+ }
3583
+ },
3584
+ "foreignKeys": {},
3585
+ "compositePrimaryKeys": {},
3586
+ "uniqueConstraints": {},
3587
+ "policies": {},
3588
+ "checkConstraints": {},
3589
+ "isRLSEnabled": false
3590
+ },
3591
+ "public.repost": {
3592
+ "name": "repost",
3593
+ "schema": "",
3594
+ "columns": {
3595
+ "id": {
3596
+ "name": "id",
3597
+ "type": "uuid",
3598
+ "primaryKey": true,
3599
+ "notNull": true
3600
+ },
3601
+ "from_id": {
3602
+ "name": "from_id",
3603
+ "type": "text",
3604
+ "primaryKey": false,
3605
+ "notNull": true
3606
+ },
3607
+ "to_id": {
3608
+ "name": "to_id",
3609
+ "type": "text",
3610
+ "primaryKey": false,
3611
+ "notNull": true
3612
+ },
3613
+ "body": {
3614
+ "name": "body",
3615
+ "type": "jsonb",
3616
+ "primaryKey": false,
3617
+ "notNull": false,
3618
+ "default": "'{}'::jsonb"
3619
+ },
3620
+ "created_at": {
3621
+ "name": "created_at",
3622
+ "type": "timestamp with time zone",
3623
+ "primaryKey": false,
3624
+ "notNull": true,
3625
+ "default": "now()"
3626
+ },
3627
+ "updated_at": {
3628
+ "name": "updated_at",
3629
+ "type": "timestamp with time zone",
3630
+ "primaryKey": false,
3631
+ "notNull": true,
3632
+ "default": "now()"
3633
+ }
3634
+ },
3635
+ "indexes": {
3636
+ "repost_from_idx": {
3637
+ "name": "repost_from_idx",
3638
+ "columns": [
3639
+ {
3640
+ "expression": "from_id",
3641
+ "isExpression": false,
3642
+ "asc": true,
3643
+ "nulls": "last"
3644
+ }
3645
+ ],
3646
+ "isUnique": false,
3647
+ "concurrently": false,
3648
+ "method": "btree",
3649
+ "with": {}
3650
+ },
3651
+ "repost_to_idx": {
3652
+ "name": "repost_to_idx",
3653
+ "columns": [
3654
+ {
3655
+ "expression": "to_id",
3656
+ "isExpression": false,
3657
+ "asc": true,
3658
+ "nulls": "last"
3659
+ }
3660
+ ],
3661
+ "isUnique": false,
3662
+ "concurrently": false,
3663
+ "method": "btree",
3664
+ "with": {}
3665
+ },
3666
+ "repost_from_to_unique": {
3667
+ "name": "repost_from_to_unique",
3668
+ "columns": [
3669
+ {
3670
+ "expression": "from_id",
3671
+ "isExpression": false,
3672
+ "asc": true,
3673
+ "nulls": "last"
3674
+ },
3675
+ {
3676
+ "expression": "to_id",
3677
+ "isExpression": false,
3678
+ "asc": true,
3679
+ "nulls": "last"
3680
+ }
3681
+ ],
3682
+ "isUnique": true,
3683
+ "concurrently": false,
3684
+ "method": "btree",
3685
+ "with": {}
3686
+ }
3687
+ },
3688
+ "foreignKeys": {},
3689
+ "compositePrimaryKeys": {},
3690
+ "uniqueConstraints": {},
3691
+ "policies": {},
3692
+ "checkConstraints": {},
3693
+ "isRLSEnabled": false
3694
+ },
3695
+ "public.requests_follow": {
3696
+ "name": "requests_follow",
3697
+ "schema": "",
3698
+ "columns": {
3699
+ "id": {
3700
+ "name": "id",
3701
+ "type": "uuid",
3702
+ "primaryKey": true,
3703
+ "notNull": true
3704
+ },
3705
+ "from_id": {
3706
+ "name": "from_id",
3707
+ "type": "text",
3708
+ "primaryKey": false,
3709
+ "notNull": true
3710
+ },
3711
+ "to_id": {
3712
+ "name": "to_id",
3713
+ "type": "text",
3714
+ "primaryKey": false,
3715
+ "notNull": true
3716
+ },
3717
+ "body": {
3718
+ "name": "body",
3719
+ "type": "jsonb",
3720
+ "primaryKey": false,
3721
+ "notNull": false,
3722
+ "default": "'{}'::jsonb"
3723
+ },
3724
+ "created_at": {
3725
+ "name": "created_at",
3726
+ "type": "timestamp with time zone",
3727
+ "primaryKey": false,
3728
+ "notNull": true,
3729
+ "default": "now()"
3730
+ },
3731
+ "updated_at": {
3732
+ "name": "updated_at",
3733
+ "type": "timestamp with time zone",
3734
+ "primaryKey": false,
3735
+ "notNull": true,
3736
+ "default": "now()"
3737
+ }
3738
+ },
3739
+ "indexes": {
3740
+ "requests_follow_from_idx": {
3741
+ "name": "requests_follow_from_idx",
3742
+ "columns": [
3743
+ {
3744
+ "expression": "from_id",
3745
+ "isExpression": false,
3746
+ "asc": true,
3747
+ "nulls": "last"
3748
+ }
3749
+ ],
3750
+ "isUnique": false,
3751
+ "concurrently": false,
3752
+ "method": "btree",
3753
+ "with": {}
3754
+ },
3755
+ "requests_follow_to_idx": {
3756
+ "name": "requests_follow_to_idx",
3757
+ "columns": [
3758
+ {
3759
+ "expression": "to_id",
3760
+ "isExpression": false,
3761
+ "asc": true,
3762
+ "nulls": "last"
3763
+ }
3764
+ ],
3765
+ "isUnique": false,
3766
+ "concurrently": false,
3767
+ "method": "btree",
3768
+ "with": {}
3769
+ }
3770
+ },
3771
+ "foreignKeys": {},
3772
+ "compositePrimaryKeys": {},
3773
+ "uniqueConstraints": {},
3774
+ "policies": {},
3775
+ "checkConstraints": {},
3776
+ "isRLSEnabled": false
3777
+ },
3778
+ "public.user_groups": {
3779
+ "name": "user_groups",
3780
+ "schema": "",
3781
+ "columns": {
3782
+ "id": {
3783
+ "name": "id",
3784
+ "type": "uuid",
3785
+ "primaryKey": true,
3786
+ "notNull": true
3787
+ },
3788
+ "from_id": {
3789
+ "name": "from_id",
3790
+ "type": "text",
3791
+ "primaryKey": false,
3792
+ "notNull": true
3793
+ },
3794
+ "to_id": {
3795
+ "name": "to_id",
3796
+ "type": "text",
3797
+ "primaryKey": false,
3798
+ "notNull": true
3799
+ },
3800
+ "body": {
3801
+ "name": "body",
3802
+ "type": "jsonb",
3803
+ "primaryKey": false,
3804
+ "notNull": false,
3805
+ "default": "'{}'::jsonb"
3806
+ },
3807
+ "created_at": {
3808
+ "name": "created_at",
3809
+ "type": "timestamp with time zone",
3810
+ "primaryKey": false,
3811
+ "notNull": true,
3812
+ "default": "now()"
3813
+ },
3814
+ "updated_at": {
3815
+ "name": "updated_at",
3816
+ "type": "timestamp with time zone",
3817
+ "primaryKey": false,
3818
+ "notNull": true,
3819
+ "default": "now()"
3820
+ }
3821
+ },
3822
+ "indexes": {
3823
+ "user_groups_from_idx": {
3824
+ "name": "user_groups_from_idx",
3825
+ "columns": [
3826
+ {
3827
+ "expression": "from_id",
3828
+ "isExpression": false,
3829
+ "asc": true,
3830
+ "nulls": "last"
3831
+ }
3832
+ ],
3833
+ "isUnique": false,
3834
+ "concurrently": false,
3835
+ "method": "btree",
3836
+ "with": {}
3837
+ },
3838
+ "user_groups_to_idx": {
3839
+ "name": "user_groups_to_idx",
3840
+ "columns": [
3841
+ {
3842
+ "expression": "to_id",
3843
+ "isExpression": false,
3844
+ "asc": true,
3845
+ "nulls": "last"
3846
+ }
3847
+ ],
3848
+ "isUnique": false,
3849
+ "concurrently": false,
3850
+ "method": "btree",
3851
+ "with": {}
3852
+ }
3853
+ },
3854
+ "foreignKeys": {},
3855
+ "compositePrimaryKeys": {},
3856
+ "uniqueConstraints": {},
3857
+ "policies": {},
3858
+ "checkConstraints": {},
3859
+ "isRLSEnabled": false
3860
+ },
3861
+ "public.analytics_daily_activity_heatmap": {
3862
+ "name": "analytics_daily_activity_heatmap",
3863
+ "schema": "",
3864
+ "columns": {
3865
+ "id": {
3866
+ "name": "id",
3867
+ "type": "uuid",
3868
+ "primaryKey": true,
3869
+ "notNull": true
3870
+ },
3871
+ "day": {
3872
+ "name": "day",
3873
+ "type": "date",
3874
+ "primaryKey": false,
3875
+ "notNull": true
3876
+ },
3877
+ "dow": {
3878
+ "name": "dow",
3879
+ "type": "integer",
3880
+ "primaryKey": false,
3881
+ "notNull": true
3882
+ },
3883
+ "hour": {
3884
+ "name": "hour",
3885
+ "type": "integer",
3886
+ "primaryKey": false,
3887
+ "notNull": true
3888
+ },
3889
+ "activity_count": {
3890
+ "name": "activity_count",
3891
+ "type": "integer",
3892
+ "primaryKey": false,
3893
+ "notNull": true,
3894
+ "default": 0
3895
+ },
3896
+ "compiled_at": {
3897
+ "name": "compiled_at",
3898
+ "type": "timestamp with time zone",
3899
+ "primaryKey": false,
3900
+ "notNull": true,
3901
+ "default": "now()"
3902
+ }
3903
+ },
3904
+ "indexes": {
3905
+ "analytics_heatmap_day_dow_hour": {
3906
+ "name": "analytics_heatmap_day_dow_hour",
3907
+ "columns": [
3908
+ {
3909
+ "expression": "day",
3910
+ "isExpression": false,
3911
+ "asc": true,
3912
+ "nulls": "last"
3913
+ },
3914
+ {
3915
+ "expression": "dow",
3916
+ "isExpression": false,
3917
+ "asc": true,
3918
+ "nulls": "last"
3919
+ },
3920
+ {
3921
+ "expression": "hour",
3922
+ "isExpression": false,
3923
+ "asc": true,
3924
+ "nulls": "last"
3925
+ }
3926
+ ],
3927
+ "isUnique": true,
3928
+ "concurrently": false,
3929
+ "method": "btree",
3930
+ "with": {}
3931
+ },
3932
+ "analytics_heatmap_day_idx": {
3933
+ "name": "analytics_heatmap_day_idx",
3934
+ "columns": [
3935
+ {
3936
+ "expression": "day",
3937
+ "isExpression": false,
3938
+ "asc": true,
3939
+ "nulls": "last"
3940
+ }
3941
+ ],
3942
+ "isUnique": false,
3943
+ "concurrently": false,
3944
+ "method": "btree",
3945
+ "with": {}
3946
+ }
3947
+ },
3948
+ "foreignKeys": {},
3949
+ "compositePrimaryKeys": {},
3950
+ "uniqueConstraints": {},
3951
+ "policies": {},
3952
+ "checkConstraints": {},
3953
+ "isRLSEnabled": false
3954
+ },
3955
+ "public.analytics_daily_by_group": {
3956
+ "name": "analytics_daily_by_group",
3957
+ "schema": "",
3958
+ "columns": {
3959
+ "id": {
3960
+ "name": "id",
3961
+ "type": "uuid",
3962
+ "primaryKey": true,
3963
+ "notNull": true
3964
+ },
3965
+ "day": {
3966
+ "name": "day",
3967
+ "type": "date",
3968
+ "primaryKey": false,
3969
+ "notNull": true
3970
+ },
3971
+ "group_id": {
3972
+ "name": "group_id",
3973
+ "type": "text",
3974
+ "primaryKey": false,
3975
+ "notNull": true
3976
+ },
3977
+ "posts": {
3978
+ "name": "posts",
3979
+ "type": "integer",
3980
+ "primaryKey": false,
3981
+ "notNull": true,
3982
+ "default": 0
3983
+ },
3984
+ "likes": {
3985
+ "name": "likes",
3986
+ "type": "integer",
3987
+ "primaryKey": false,
3988
+ "notNull": true,
3989
+ "default": 0
3990
+ },
3991
+ "comments": {
3992
+ "name": "comments",
3993
+ "type": "integer",
3994
+ "primaryKey": false,
3995
+ "notNull": true,
3996
+ "default": 0
3997
+ },
3998
+ "unique_viewers": {
3999
+ "name": "unique_viewers",
4000
+ "type": "integer",
4001
+ "primaryKey": false,
4002
+ "notNull": true,
4003
+ "default": 0
4004
+ },
4005
+ "compiled_at": {
4006
+ "name": "compiled_at",
4007
+ "type": "timestamp with time zone",
4008
+ "primaryKey": false,
4009
+ "notNull": true,
4010
+ "default": "now()"
4011
+ }
4012
+ },
4013
+ "indexes": {
4014
+ "analytics_daily_by_group_day_group": {
4015
+ "name": "analytics_daily_by_group_day_group",
4016
+ "columns": [
4017
+ {
4018
+ "expression": "day",
4019
+ "isExpression": false,
4020
+ "asc": true,
4021
+ "nulls": "last"
4022
+ },
4023
+ {
4024
+ "expression": "group_id",
4025
+ "isExpression": false,
4026
+ "asc": true,
4027
+ "nulls": "last"
4028
+ }
4029
+ ],
4030
+ "isUnique": true,
4031
+ "concurrently": false,
4032
+ "method": "btree",
4033
+ "with": {}
4034
+ },
4035
+ "analytics_daily_by_group_day_idx": {
4036
+ "name": "analytics_daily_by_group_day_idx",
4037
+ "columns": [
4038
+ {
4039
+ "expression": "day",
4040
+ "isExpression": false,
4041
+ "asc": true,
4042
+ "nulls": "last"
4043
+ }
4044
+ ],
4045
+ "isUnique": false,
4046
+ "concurrently": false,
4047
+ "method": "btree",
4048
+ "with": {}
4049
+ }
4050
+ },
4051
+ "foreignKeys": {},
4052
+ "compositePrimaryKeys": {},
4053
+ "uniqueConstraints": {},
4054
+ "policies": {},
4055
+ "checkConstraints": {},
4056
+ "isRLSEnabled": false
4057
+ },
4058
+ "public.analytics_daily_clicks": {
4059
+ "name": "analytics_daily_clicks",
4060
+ "schema": "",
4061
+ "columns": {
4062
+ "day": {
4063
+ "name": "day",
4064
+ "type": "date",
4065
+ "primaryKey": false,
4066
+ "notNull": true
4067
+ },
4068
+ "kind": {
4069
+ "name": "kind",
4070
+ "type": "text",
4071
+ "primaryKey": false,
4072
+ "notNull": true
4073
+ },
4074
+ "target": {
4075
+ "name": "target",
4076
+ "type": "text",
4077
+ "primaryKey": false,
4078
+ "notNull": true
4079
+ },
4080
+ "clicks": {
4081
+ "name": "clicks",
4082
+ "type": "integer",
4083
+ "primaryKey": false,
4084
+ "notNull": true,
4085
+ "default": 0
4086
+ }
4087
+ },
4088
+ "indexes": {
4089
+ "analytics_daily_clicks_day_kind_idx": {
4090
+ "name": "analytics_daily_clicks_day_kind_idx",
4091
+ "columns": [
4092
+ {
4093
+ "expression": "day",
4094
+ "isExpression": false,
4095
+ "asc": true,
4096
+ "nulls": "last"
4097
+ },
4098
+ {
4099
+ "expression": "kind",
4100
+ "isExpression": false,
4101
+ "asc": true,
4102
+ "nulls": "last"
4103
+ }
4104
+ ],
4105
+ "isUnique": false,
4106
+ "concurrently": false,
4107
+ "method": "btree",
4108
+ "with": {}
4109
+ }
4110
+ },
4111
+ "foreignKeys": {},
4112
+ "compositePrimaryKeys": {
4113
+ "analytics_daily_clicks_day_kind_target_pk": {
4114
+ "name": "analytics_daily_clicks_day_kind_target_pk",
4115
+ "columns": [
4116
+ "day",
4117
+ "kind",
4118
+ "target"
4119
+ ]
4120
+ }
4121
+ },
4122
+ "uniqueConstraints": {},
4123
+ "policies": {},
4124
+ "checkConstraints": {},
4125
+ "isRLSEnabled": false
4126
+ },
4127
+ "public.analytics_daily_signups_by_channel": {
4128
+ "name": "analytics_daily_signups_by_channel",
4129
+ "schema": "",
4130
+ "columns": {
4131
+ "id": {
4132
+ "name": "id",
4133
+ "type": "uuid",
4134
+ "primaryKey": true,
4135
+ "notNull": true
4136
+ },
4137
+ "day": {
4138
+ "name": "day",
4139
+ "type": "date",
4140
+ "primaryKey": false,
4141
+ "notNull": true
4142
+ },
4143
+ "channel": {
4144
+ "name": "channel",
4145
+ "type": "text",
4146
+ "primaryKey": false,
4147
+ "notNull": true
4148
+ },
4149
+ "count": {
4150
+ "name": "count",
4151
+ "type": "integer",
4152
+ "primaryKey": false,
4153
+ "notNull": true,
4154
+ "default": 0
4155
+ },
4156
+ "compiled_at": {
4157
+ "name": "compiled_at",
4158
+ "type": "timestamp with time zone",
4159
+ "primaryKey": false,
4160
+ "notNull": true,
4161
+ "default": "now()"
4162
+ }
4163
+ },
4164
+ "indexes": {
4165
+ "analytics_signups_day_channel": {
4166
+ "name": "analytics_signups_day_channel",
4167
+ "columns": [
4168
+ {
4169
+ "expression": "day",
4170
+ "isExpression": false,
4171
+ "asc": true,
4172
+ "nulls": "last"
4173
+ },
4174
+ {
4175
+ "expression": "channel",
4176
+ "isExpression": false,
4177
+ "asc": true,
4178
+ "nulls": "last"
4179
+ }
4180
+ ],
4181
+ "isUnique": true,
4182
+ "concurrently": false,
4183
+ "method": "btree",
4184
+ "with": {}
4185
+ },
4186
+ "analytics_signups_day_idx": {
4187
+ "name": "analytics_signups_day_idx",
4188
+ "columns": [
4189
+ {
4190
+ "expression": "day",
4191
+ "isExpression": false,
4192
+ "asc": true,
4193
+ "nulls": "last"
4194
+ }
4195
+ ],
4196
+ "isUnique": false,
4197
+ "concurrently": false,
4198
+ "method": "btree",
4199
+ "with": {}
4200
+ }
4201
+ },
4202
+ "foreignKeys": {},
4203
+ "compositePrimaryKeys": {},
4204
+ "uniqueConstraints": {},
4205
+ "policies": {},
4206
+ "checkConstraints": {},
4207
+ "isRLSEnabled": false
4208
+ },
4209
+ "public.analytics_daily_totals": {
4210
+ "name": "analytics_daily_totals",
4211
+ "schema": "",
4212
+ "columns": {
4213
+ "day": {
4214
+ "name": "day",
4215
+ "type": "date",
4216
+ "primaryKey": true,
4217
+ "notNull": true
4218
+ },
4219
+ "new_members": {
4220
+ "name": "new_members",
4221
+ "type": "integer",
4222
+ "primaryKey": false,
4223
+ "notNull": true,
4224
+ "default": 0
4225
+ },
4226
+ "active_members": {
4227
+ "name": "active_members",
4228
+ "type": "integer",
4229
+ "primaryKey": false,
4230
+ "notNull": true,
4231
+ "default": 0
4232
+ },
4233
+ "posts": {
4234
+ "name": "posts",
4235
+ "type": "integer",
4236
+ "primaryKey": false,
4237
+ "notNull": true,
4238
+ "default": 0
4239
+ },
4240
+ "replies": {
4241
+ "name": "replies",
4242
+ "type": "integer",
4243
+ "primaryKey": false,
4244
+ "notNull": true,
4245
+ "default": 0
4246
+ },
4247
+ "likes": {
4248
+ "name": "likes",
4249
+ "type": "integer",
4250
+ "primaryKey": false,
4251
+ "notNull": true,
4252
+ "default": 0
4253
+ },
4254
+ "reposts": {
4255
+ "name": "reposts",
4256
+ "type": "integer",
4257
+ "primaryKey": false,
4258
+ "notNull": true,
4259
+ "default": 0
4260
+ },
4261
+ "bookmarks": {
4262
+ "name": "bookmarks",
4263
+ "type": "integer",
4264
+ "primaryKey": false,
4265
+ "notNull": true,
4266
+ "default": 0
4267
+ },
4268
+ "comments": {
4269
+ "name": "comments",
4270
+ "type": "integer",
4271
+ "primaryKey": false,
4272
+ "notNull": true,
4273
+ "default": 0
4274
+ },
4275
+ "dms": {
4276
+ "name": "dms",
4277
+ "type": "integer",
4278
+ "primaryKey": false,
4279
+ "notNull": true,
4280
+ "default": 0
4281
+ },
4282
+ "unique_viewers": {
4283
+ "name": "unique_viewers",
4284
+ "type": "integer",
4285
+ "primaryKey": false,
4286
+ "notNull": true,
4287
+ "default": 0
4288
+ },
4289
+ "view_events": {
4290
+ "name": "view_events",
4291
+ "type": "integer",
4292
+ "primaryKey": false,
4293
+ "notNull": true,
4294
+ "default": 0
4295
+ },
4296
+ "jam_sessions": {
4297
+ "name": "jam_sessions",
4298
+ "type": "integer",
4299
+ "primaryKey": false,
4300
+ "notNull": true,
4301
+ "default": 0
4302
+ },
4303
+ "jam_participants": {
4304
+ "name": "jam_participants",
4305
+ "type": "integer",
4306
+ "primaryKey": false,
4307
+ "notNull": true,
4308
+ "default": 0
4309
+ },
4310
+ "compiled_at": {
4311
+ "name": "compiled_at",
4312
+ "type": "timestamp with time zone",
4313
+ "primaryKey": false,
4314
+ "notNull": true,
4315
+ "default": "now()"
4316
+ }
4317
+ },
4318
+ "indexes": {},
4319
+ "foreignKeys": {},
4320
+ "compositePrimaryKeys": {},
4321
+ "uniqueConstraints": {},
4322
+ "policies": {},
4323
+ "checkConstraints": {},
4324
+ "isRLSEnabled": false
4325
+ },
4326
+ "public.analytics_post_views_daily": {
4327
+ "name": "analytics_post_views_daily",
4328
+ "schema": "",
4329
+ "columns": {
4330
+ "id": {
4331
+ "name": "id",
4332
+ "type": "uuid",
4333
+ "primaryKey": true,
4334
+ "notNull": true
4335
+ },
4336
+ "day": {
4337
+ "name": "day",
4338
+ "type": "date",
4339
+ "primaryKey": false,
4340
+ "notNull": true
4341
+ },
4342
+ "post_id": {
4343
+ "name": "post_id",
4344
+ "type": "text",
4345
+ "primaryKey": false,
4346
+ "notNull": true
4347
+ },
4348
+ "unique_viewers": {
4349
+ "name": "unique_viewers",
4350
+ "type": "integer",
4351
+ "primaryKey": false,
4352
+ "notNull": true,
4353
+ "default": 0
4354
+ },
4355
+ "view_events": {
4356
+ "name": "view_events",
4357
+ "type": "integer",
4358
+ "primaryKey": false,
4359
+ "notNull": true,
4360
+ "default": 0
4361
+ },
4362
+ "compiled_at": {
4363
+ "name": "compiled_at",
4364
+ "type": "timestamp with time zone",
4365
+ "primaryKey": false,
4366
+ "notNull": true,
4367
+ "default": "now()"
4368
+ }
4369
+ },
4370
+ "indexes": {
4371
+ "analytics_post_views_day_post": {
4372
+ "name": "analytics_post_views_day_post",
4373
+ "columns": [
4374
+ {
4375
+ "expression": "day",
4376
+ "isExpression": false,
4377
+ "asc": true,
4378
+ "nulls": "last"
4379
+ },
4380
+ {
4381
+ "expression": "post_id",
4382
+ "isExpression": false,
4383
+ "asc": true,
4384
+ "nulls": "last"
4385
+ }
4386
+ ],
4387
+ "isUnique": true,
4388
+ "concurrently": false,
4389
+ "method": "btree",
4390
+ "with": {}
4391
+ },
4392
+ "analytics_post_views_day_idx": {
4393
+ "name": "analytics_post_views_day_idx",
4394
+ "columns": [
4395
+ {
4396
+ "expression": "day",
4397
+ "isExpression": false,
4398
+ "asc": true,
4399
+ "nulls": "last"
4400
+ }
4401
+ ],
4402
+ "isUnique": false,
4403
+ "concurrently": false,
4404
+ "method": "btree",
4405
+ "with": {}
4406
+ },
4407
+ "analytics_post_views_post_idx": {
4408
+ "name": "analytics_post_views_post_idx",
4409
+ "columns": [
4410
+ {
4411
+ "expression": "post_id",
4412
+ "isExpression": false,
4413
+ "asc": true,
4414
+ "nulls": "last"
4415
+ }
4416
+ ],
4417
+ "isUnique": false,
4418
+ "concurrently": false,
4419
+ "method": "btree",
4420
+ "with": {}
4421
+ }
4422
+ },
4423
+ "foreignKeys": {},
4424
+ "compositePrimaryKeys": {},
4425
+ "uniqueConstraints": {},
4426
+ "policies": {},
4427
+ "checkConstraints": {},
4428
+ "isRLSEnabled": false
4429
+ },
4430
+ "public.analytics_report_deliveries": {
4431
+ "name": "analytics_report_deliveries",
4432
+ "schema": "",
4433
+ "columns": {
4434
+ "id": {
4435
+ "name": "id",
4436
+ "type": "uuid",
4437
+ "primaryKey": true,
4438
+ "notNull": true
4439
+ },
4440
+ "period_start": {
4441
+ "name": "period_start",
4442
+ "type": "date",
4443
+ "primaryKey": false,
4444
+ "notNull": true
4445
+ },
4446
+ "period_end": {
4447
+ "name": "period_end",
4448
+ "type": "date",
4449
+ "primaryKey": false,
4450
+ "notNull": true
4451
+ },
4452
+ "recipients": {
4453
+ "name": "recipients",
4454
+ "type": "jsonb",
4455
+ "primaryKey": false,
4456
+ "notNull": true,
4457
+ "default": "'[]'::jsonb"
4458
+ },
4459
+ "status": {
4460
+ "name": "status",
4461
+ "type": "text",
4462
+ "primaryKey": false,
4463
+ "notNull": true,
4464
+ "default": "'pending'"
4465
+ },
4466
+ "body": {
4467
+ "name": "body",
4468
+ "type": "jsonb",
4469
+ "primaryKey": false,
4470
+ "notNull": true,
4471
+ "default": "'{}'::jsonb"
4472
+ },
4473
+ "created_at": {
4474
+ "name": "created_at",
4475
+ "type": "timestamp with time zone",
4476
+ "primaryKey": false,
4477
+ "notNull": true,
4478
+ "default": "now()"
4479
+ }
4480
+ },
4481
+ "indexes": {
4482
+ "analytics_report_deliveries_period_idx": {
4483
+ "name": "analytics_report_deliveries_period_idx",
4484
+ "columns": [
4485
+ {
4486
+ "expression": "period_start",
4487
+ "isExpression": false,
4488
+ "asc": true,
4489
+ "nulls": "last"
4490
+ }
4491
+ ],
4492
+ "isUnique": false,
4493
+ "concurrently": false,
4494
+ "method": "btree",
4495
+ "with": {}
4496
+ }
4497
+ },
4498
+ "foreignKeys": {},
4499
+ "compositePrimaryKeys": {},
4500
+ "uniqueConstraints": {},
4501
+ "policies": {},
4502
+ "checkConstraints": {},
4503
+ "isRLSEnabled": false
4504
+ },
4505
+ "public.analytics_retention_cohorts": {
4506
+ "name": "analytics_retention_cohorts",
4507
+ "schema": "",
4508
+ "columns": {
4509
+ "id": {
4510
+ "name": "id",
4511
+ "type": "uuid",
4512
+ "primaryKey": true,
4513
+ "notNull": true
4514
+ },
4515
+ "cohort_week": {
4516
+ "name": "cohort_week",
4517
+ "type": "date",
4518
+ "primaryKey": false,
4519
+ "notNull": true
4520
+ },
4521
+ "cohort_size": {
4522
+ "name": "cohort_size",
4523
+ "type": "integer",
4524
+ "primaryKey": false,
4525
+ "notNull": true,
4526
+ "default": 0
4527
+ },
4528
+ "rates": {
4529
+ "name": "rates",
4530
+ "type": "jsonb",
4531
+ "primaryKey": false,
4532
+ "notNull": true,
4533
+ "default": "'{}'::jsonb"
4534
+ },
4535
+ "compiled_at": {
4536
+ "name": "compiled_at",
4537
+ "type": "timestamp with time zone",
4538
+ "primaryKey": false,
4539
+ "notNull": true,
4540
+ "default": "now()"
4541
+ }
4542
+ },
4543
+ "indexes": {
4544
+ "analytics_retention_cohort_week": {
4545
+ "name": "analytics_retention_cohort_week",
4546
+ "columns": [
4547
+ {
4548
+ "expression": "cohort_week",
4549
+ "isExpression": false,
4550
+ "asc": true,
4551
+ "nulls": "last"
4552
+ }
4553
+ ],
4554
+ "isUnique": true,
4555
+ "concurrently": false,
4556
+ "method": "btree",
4557
+ "with": {}
4558
+ }
4559
+ },
4560
+ "foreignKeys": {},
4561
+ "compositePrimaryKeys": {},
4562
+ "uniqueConstraints": {},
4563
+ "policies": {},
4564
+ "checkConstraints": {},
4565
+ "isRLSEnabled": false
4566
+ },
4567
+ "public.analytics_settings": {
4568
+ "name": "analytics_settings",
4569
+ "schema": "",
4570
+ "columns": {
4571
+ "id": {
4572
+ "name": "id",
4573
+ "type": "text",
4574
+ "primaryKey": true,
4575
+ "notNull": true,
4576
+ "default": "'default'"
4577
+ },
4578
+ "body": {
4579
+ "name": "body",
4580
+ "type": "jsonb",
4581
+ "primaryKey": false,
4582
+ "notNull": true,
4583
+ "default": "'{}'::jsonb"
4584
+ },
4585
+ "updated_at": {
4586
+ "name": "updated_at",
4587
+ "type": "timestamp with time zone",
4588
+ "primaryKey": false,
4589
+ "notNull": true,
4590
+ "default": "now()"
4591
+ }
4592
+ },
4593
+ "indexes": {},
4594
+ "foreignKeys": {},
4595
+ "compositePrimaryKeys": {},
4596
+ "uniqueConstraints": {},
4597
+ "policies": {},
4598
+ "checkConstraints": {},
4599
+ "isRLSEnabled": false
4600
+ },
4601
+ "public.calendar_feed_tokens": {
4602
+ "name": "calendar_feed_tokens",
4603
+ "schema": "",
4604
+ "columns": {
4605
+ "id": {
4606
+ "name": "id",
4607
+ "type": "uuid",
4608
+ "primaryKey": true,
4609
+ "notNull": true
4610
+ },
4611
+ "profile_id": {
4612
+ "name": "profile_id",
4613
+ "type": "text",
4614
+ "primaryKey": false,
4615
+ "notNull": true
4616
+ },
4617
+ "token_hash": {
4618
+ "name": "token_hash",
4619
+ "type": "varchar(64)",
4620
+ "primaryKey": false,
4621
+ "notNull": true
4622
+ },
4623
+ "expires_at": {
4624
+ "name": "expires_at",
4625
+ "type": "timestamp with time zone",
4626
+ "primaryKey": false,
4627
+ "notNull": true
4628
+ },
4629
+ "created_at": {
4630
+ "name": "created_at",
4631
+ "type": "timestamp with time zone",
4632
+ "primaryKey": false,
4633
+ "notNull": true,
4634
+ "default": "now()"
4635
+ },
4636
+ "updated_at": {
4637
+ "name": "updated_at",
4638
+ "type": "timestamp with time zone",
4639
+ "primaryKey": false,
4640
+ "notNull": true,
4641
+ "default": "now()"
4642
+ },
4643
+ "deleted_at": {
4644
+ "name": "deleted_at",
4645
+ "type": "timestamp with time zone",
4646
+ "primaryKey": false,
4647
+ "notNull": false
4648
+ }
4649
+ },
4650
+ "indexes": {
4651
+ "calendar_feed_tokens_profile_idx": {
4652
+ "name": "calendar_feed_tokens_profile_idx",
4653
+ "columns": [
4654
+ {
4655
+ "expression": "profile_id",
4656
+ "isExpression": false,
4657
+ "asc": true,
4658
+ "nulls": "last"
4659
+ }
4660
+ ],
4661
+ "isUnique": false,
4662
+ "concurrently": false,
4663
+ "method": "btree",
4664
+ "with": {}
4665
+ },
4666
+ "calendar_feed_tokens_token_hash_unique": {
4667
+ "name": "calendar_feed_tokens_token_hash_unique",
4668
+ "columns": [
4669
+ {
4670
+ "expression": "token_hash",
4671
+ "isExpression": false,
4672
+ "asc": true,
4673
+ "nulls": "last"
4674
+ }
4675
+ ],
4676
+ "isUnique": true,
4677
+ "concurrently": false,
4678
+ "method": "btree",
4679
+ "with": {}
4680
+ }
4681
+ },
4682
+ "foreignKeys": {},
4683
+ "compositePrimaryKeys": {},
4684
+ "uniqueConstraints": {},
4685
+ "policies": {},
4686
+ "checkConstraints": {},
4687
+ "isRLSEnabled": false
4688
+ }
4689
+ },
4690
+ "enums": {},
4691
+ "schemas": {},
4692
+ "sequences": {},
4693
+ "roles": {},
4694
+ "policies": {},
4695
+ "views": {},
4696
+ "_meta": {
4697
+ "columns": {},
4698
+ "schemas": {},
4699
+ "tables": {}
4700
+ }
4701
+ }