@openpeepshq/core 0.1.31 → 0.1.32

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