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