@openpeepshq/core 0.1.32 → 0.1.33

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 (136) hide show
  1. package/dist/accessTokens/helpers.d.ts +2 -2
  2. package/dist/accessTokens/tokens.js +14 -7
  3. package/dist/accounts/mutations.d.ts +2 -2
  4. package/dist/analytics/cache.js +12 -7
  5. package/dist/analytics/pdfReport.d.ts +1 -0
  6. package/dist/analytics/pdfReport.js +5 -4
  7. package/dist/analytics/privacy.d.ts +18 -0
  8. package/dist/analytics/privacy.js +10 -0
  9. package/dist/analytics/read.js +24 -11
  10. package/dist/analytics/report.d.ts +1 -1
  11. package/dist/analytics/report.js +9 -2
  12. package/dist/backups/index.js +6 -3
  13. package/dist/backups/metadata.d.ts +7 -0
  14. package/dist/config/defaults/community.js +0 -6
  15. package/dist/config/defaults/db.d.ts +0 -2
  16. package/dist/config/defaults/db.js +0 -2
  17. package/dist/config/index.d.ts +10 -9
  18. package/dist/db/helpers.d.ts +6 -28
  19. package/dist/db/helpers.js +19 -149
  20. package/dist/db/index.d.ts +2 -0
  21. package/dist/db/index.js +4 -0
  22. package/dist/db/init.js +3 -2
  23. package/dist/db/migration/detect.d.ts +0 -3
  24. package/dist/db/migration/detect.js +0 -54
  25. package/dist/db/migration/importCollections.d.ts +1 -1
  26. package/dist/db/migration/importCollections.js +22 -6
  27. package/dist/db/migration/shared.d.ts +0 -4
  28. package/dist/db/migration/shared.js +0 -7
  29. package/dist/db/migration/transform.d.ts +2 -0
  30. package/dist/db/migration/transform.js +23 -0
  31. package/dist/db/pg/client.js +4 -0
  32. package/dist/db/pg/filters/edges.d.ts +1 -1
  33. package/dist/db/pg/filters/edges.js +1 -1
  34. package/dist/db/pg/filters/posts.d.ts +1 -0
  35. package/dist/db/pg/filters/posts.js +11 -1
  36. package/dist/db/pg/map/filters.js +5 -0
  37. package/dist/db/pg/map/relations.d.ts +1 -1
  38. package/dist/db/pg/map/relations.js +89 -41
  39. package/dist/db/pg/migrate.d.ts +23 -0
  40. package/dist/db/pg/migrate.js +87 -1
  41. package/dist/db/pg/schema/documents.d.ts +143 -0
  42. package/dist/db/pg/schema/documents.js +22 -1
  43. package/dist/db/pg/schema/edges.d.ts +1 -0
  44. package/dist/db/pg/schema/edges.js +2 -1
  45. package/dist/db/pg/schema/index.d.ts +143 -0
  46. package/dist/db/pg/sql/0007_shallow_oracle.sql +3 -0
  47. package/dist/db/pg/sql/0008_group_owner_roles.sql +31 -0
  48. package/dist/db/pg/sql/0009_event_occurrences.sql +26 -0
  49. package/dist/db/pg/sql/meta/0007_snapshot.json +4179 -0
  50. package/dist/db/pg/sql/meta/0009_snapshot.json +4299 -0
  51. package/dist/db/pg/sql/meta/_journal.json +21 -0
  52. package/dist/db/replaceOrigin.js +6 -0
  53. package/dist/db/types.d.ts +0 -4
  54. package/dist/events/index.d.ts +2 -1
  55. package/dist/events/index.js +54 -33
  56. package/dist/groups/finders.d.ts +2 -2
  57. package/dist/groups/helpers.d.ts +6 -6
  58. package/dist/groups/mapping.d.ts +4 -4
  59. package/dist/groups/mapping.js +2 -2
  60. package/dist/groups/mutations.js +1 -1
  61. package/dist/inviteLinks/helpers.d.ts +4 -4
  62. package/dist/jams/cache.d.ts +1 -1
  63. package/dist/jams/cache.js +2 -1
  64. package/dist/jams/finders.d.ts +2 -1
  65. package/dist/jams/finders.js +18 -7
  66. package/dist/jams/helpers.d.ts +4 -0
  67. package/dist/jams/index.d.ts +4 -3
  68. package/dist/jams/index.js +20 -13
  69. package/dist/jams/livekit.d.ts +46 -8
  70. package/dist/jams/livekit.js +103 -21
  71. package/dist/jams/mapping.d.ts +14 -4
  72. package/dist/jams/mutations.d.ts +2 -0
  73. package/dist/jams/rtmp.d.ts +5 -0
  74. package/dist/jams/rtmp.js +8 -0
  75. package/dist/jams/token.d.ts +3 -3
  76. package/dist/jams/token.js +15 -12
  77. package/dist/jams/waitingRoom.d.ts +6 -6
  78. package/dist/jams/waitingRoom.js +24 -23
  79. package/dist/migration/index.d.ts +4 -0
  80. package/dist/migration/index.js +4 -0
  81. package/dist/notifications/defaultNotifications/groupMemberJoined/index.js +3 -1
  82. package/dist/notifications/defaultNotifications/groupMemberLeft/index.js +3 -1
  83. package/dist/notifications/helpers.js +6 -2
  84. package/dist/notifications/push.js +11 -4
  85. package/dist/plugins/helpers.d.ts +1 -0
  86. package/dist/plugins/helpers.js +1 -8
  87. package/dist/plugins/index.d.ts +5 -0
  88. package/dist/plugins/index.js +41 -4
  89. package/dist/plugins/install.d.ts +20 -0
  90. package/dist/plugins/install.js +223 -0
  91. package/dist/plugins/state.d.ts +4 -0
  92. package/dist/plugins/state.js +29 -0
  93. package/dist/posts/eventAgenda.d.ts +165 -0
  94. package/dist/posts/eventAgenda.js +120 -0
  95. package/dist/posts/eventOccurrenceJobs.d.ts +4 -0
  96. package/dist/posts/eventOccurrenceJobs.js +23 -0
  97. package/dist/posts/eventOccurrences.d.ts +4 -0
  98. package/dist/posts/eventOccurrences.js +40 -0
  99. package/dist/posts/finders.d.ts +32 -8
  100. package/dist/posts/finders.js +27 -45
  101. package/dist/posts/helpers/filters.js +1 -1
  102. package/dist/posts/helpers/index.d.ts +102 -16
  103. package/dist/posts/helpers/index.js +33 -20
  104. package/dist/posts/index.d.ts +3 -0
  105. package/dist/posts/index.js +3 -0
  106. package/dist/posts/mapping.d.ts +275 -0
  107. package/dist/posts/mapping.js +37 -3
  108. package/dist/posts/mutations.d.ts +1 -1
  109. package/dist/posts/mutations.js +29 -18
  110. package/dist/posts/rsvpConfirmationEmail.js +2 -1
  111. package/dist/posts/unseenCounts.d.ts +2 -0
  112. package/dist/posts/unseenCounts.js +25 -8
  113. package/dist/profiles/cache.d.ts +3 -1
  114. package/dist/profiles/cache.js +9 -1
  115. package/dist/profiles/helpers.d.ts +5 -5
  116. package/dist/profiles/index.d.ts +1 -1
  117. package/dist/profiles/index.js +1 -1
  118. package/dist/profiles/mapping.d.ts +5 -5
  119. package/dist/profiles/mutations.js +12 -14
  120. package/dist/pushSubscriptions/helpers.d.ts +2 -2
  121. package/dist/pushSubscriptions/mutations.js +13 -1
  122. package/dist/reports/helpers.d.ts +6 -6
  123. package/dist/roles/defaults.js +1 -0
  124. package/dist/server/index.d.ts +7 -7
  125. package/dist/server/index.js +15 -8
  126. package/dist/stats/finders.d.ts +1692 -142
  127. package/dist/stats/mapping.d.ts +21 -0
  128. package/package.json +4 -9
  129. package/dist/db/arango.d.ts +0 -2
  130. package/dist/db/arango.js +0 -110
  131. package/dist/db/migration/autoMigrate.d.ts +0 -2
  132. package/dist/db/migration/autoMigrate.js +0 -111
  133. package/dist/db/migration/cli.d.ts +0 -1
  134. package/dist/db/migration/cli.js +0 -56
  135. package/dist/db/migration/exportArango.d.ts +0 -4
  136. package/dist/db/migration/exportArango.js +0 -80
@@ -0,0 +1,4179 @@
1
+ {
2
+ "id": "8fc6aeab-cf72-40e8-809c-72f1f4433a5d",
3
+ "prevId": "a4e33423-6bc7-489f-bec1-b5564b55ce37",
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
+ },
2842
+ "foreignKeys": {},
2843
+ "compositePrimaryKeys": {},
2844
+ "uniqueConstraints": {},
2845
+ "policies": {},
2846
+ "checkConstraints": {},
2847
+ "isRLSEnabled": false
2848
+ },
2849
+ "public.profile_access_tokens": {
2850
+ "name": "profile_access_tokens",
2851
+ "schema": "",
2852
+ "columns": {
2853
+ "id": {
2854
+ "name": "id",
2855
+ "type": "uuid",
2856
+ "primaryKey": true,
2857
+ "notNull": true
2858
+ },
2859
+ "from_id": {
2860
+ "name": "from_id",
2861
+ "type": "text",
2862
+ "primaryKey": false,
2863
+ "notNull": true
2864
+ },
2865
+ "to_id": {
2866
+ "name": "to_id",
2867
+ "type": "text",
2868
+ "primaryKey": false,
2869
+ "notNull": true
2870
+ },
2871
+ "body": {
2872
+ "name": "body",
2873
+ "type": "jsonb",
2874
+ "primaryKey": false,
2875
+ "notNull": false,
2876
+ "default": "'{}'::jsonb"
2877
+ },
2878
+ "created_at": {
2879
+ "name": "created_at",
2880
+ "type": "timestamp with time zone",
2881
+ "primaryKey": false,
2882
+ "notNull": true,
2883
+ "default": "now()"
2884
+ },
2885
+ "updated_at": {
2886
+ "name": "updated_at",
2887
+ "type": "timestamp with time zone",
2888
+ "primaryKey": false,
2889
+ "notNull": true,
2890
+ "default": "now()"
2891
+ }
2892
+ },
2893
+ "indexes": {
2894
+ "profile_access_tokens_from_idx": {
2895
+ "name": "profile_access_tokens_from_idx",
2896
+ "columns": [
2897
+ {
2898
+ "expression": "from_id",
2899
+ "isExpression": false,
2900
+ "asc": true,
2901
+ "nulls": "last"
2902
+ }
2903
+ ],
2904
+ "isUnique": false,
2905
+ "concurrently": false,
2906
+ "method": "btree",
2907
+ "with": {}
2908
+ },
2909
+ "profile_access_tokens_to_idx": {
2910
+ "name": "profile_access_tokens_to_idx",
2911
+ "columns": [
2912
+ {
2913
+ "expression": "to_id",
2914
+ "isExpression": false,
2915
+ "asc": true,
2916
+ "nulls": "last"
2917
+ }
2918
+ ],
2919
+ "isUnique": false,
2920
+ "concurrently": false,
2921
+ "method": "btree",
2922
+ "with": {}
2923
+ },
2924
+ "profile_access_tokens_from_to_unique": {
2925
+ "name": "profile_access_tokens_from_to_unique",
2926
+ "columns": [
2927
+ {
2928
+ "expression": "from_id",
2929
+ "isExpression": false,
2930
+ "asc": true,
2931
+ "nulls": "last"
2932
+ },
2933
+ {
2934
+ "expression": "to_id",
2935
+ "isExpression": false,
2936
+ "asc": true,
2937
+ "nulls": "last"
2938
+ }
2939
+ ],
2940
+ "isUnique": true,
2941
+ "concurrently": false,
2942
+ "method": "btree",
2943
+ "with": {}
2944
+ }
2945
+ },
2946
+ "foreignKeys": {},
2947
+ "compositePrimaryKeys": {},
2948
+ "uniqueConstraints": {},
2949
+ "policies": {},
2950
+ "checkConstraints": {},
2951
+ "isRLSEnabled": false
2952
+ },
2953
+ "public.reactions": {
2954
+ "name": "reactions",
2955
+ "schema": "",
2956
+ "columns": {
2957
+ "id": {
2958
+ "name": "id",
2959
+ "type": "uuid",
2960
+ "primaryKey": true,
2961
+ "notNull": true
2962
+ },
2963
+ "from_id": {
2964
+ "name": "from_id",
2965
+ "type": "text",
2966
+ "primaryKey": false,
2967
+ "notNull": true
2968
+ },
2969
+ "to_id": {
2970
+ "name": "to_id",
2971
+ "type": "text",
2972
+ "primaryKey": false,
2973
+ "notNull": true
2974
+ },
2975
+ "body": {
2976
+ "name": "body",
2977
+ "type": "jsonb",
2978
+ "primaryKey": false,
2979
+ "notNull": false,
2980
+ "default": "'{}'::jsonb"
2981
+ },
2982
+ "created_at": {
2983
+ "name": "created_at",
2984
+ "type": "timestamp with time zone",
2985
+ "primaryKey": false,
2986
+ "notNull": true,
2987
+ "default": "now()"
2988
+ },
2989
+ "updated_at": {
2990
+ "name": "updated_at",
2991
+ "type": "timestamp with time zone",
2992
+ "primaryKey": false,
2993
+ "notNull": true,
2994
+ "default": "now()"
2995
+ }
2996
+ },
2997
+ "indexes": {
2998
+ "reactions_from_idx": {
2999
+ "name": "reactions_from_idx",
3000
+ "columns": [
3001
+ {
3002
+ "expression": "from_id",
3003
+ "isExpression": false,
3004
+ "asc": true,
3005
+ "nulls": "last"
3006
+ }
3007
+ ],
3008
+ "isUnique": false,
3009
+ "concurrently": false,
3010
+ "method": "btree",
3011
+ "with": {}
3012
+ },
3013
+ "reactions_to_idx": {
3014
+ "name": "reactions_to_idx",
3015
+ "columns": [
3016
+ {
3017
+ "expression": "to_id",
3018
+ "isExpression": false,
3019
+ "asc": true,
3020
+ "nulls": "last"
3021
+ }
3022
+ ],
3023
+ "isUnique": false,
3024
+ "concurrently": false,
3025
+ "method": "btree",
3026
+ "with": {}
3027
+ },
3028
+ "reactions_from_to_unique": {
3029
+ "name": "reactions_from_to_unique",
3030
+ "columns": [
3031
+ {
3032
+ "expression": "from_id",
3033
+ "isExpression": false,
3034
+ "asc": true,
3035
+ "nulls": "last"
3036
+ },
3037
+ {
3038
+ "expression": "to_id",
3039
+ "isExpression": false,
3040
+ "asc": true,
3041
+ "nulls": "last"
3042
+ }
3043
+ ],
3044
+ "isUnique": true,
3045
+ "concurrently": false,
3046
+ "method": "btree",
3047
+ "with": {}
3048
+ }
3049
+ },
3050
+ "foreignKeys": {},
3051
+ "compositePrimaryKeys": {},
3052
+ "uniqueConstraints": {},
3053
+ "policies": {},
3054
+ "checkConstraints": {},
3055
+ "isRLSEnabled": false
3056
+ },
3057
+ "public.reply_to": {
3058
+ "name": "reply_to",
3059
+ "schema": "",
3060
+ "columns": {
3061
+ "id": {
3062
+ "name": "id",
3063
+ "type": "uuid",
3064
+ "primaryKey": true,
3065
+ "notNull": true
3066
+ },
3067
+ "from_id": {
3068
+ "name": "from_id",
3069
+ "type": "text",
3070
+ "primaryKey": false,
3071
+ "notNull": true
3072
+ },
3073
+ "to_id": {
3074
+ "name": "to_id",
3075
+ "type": "text",
3076
+ "primaryKey": false,
3077
+ "notNull": true
3078
+ },
3079
+ "body": {
3080
+ "name": "body",
3081
+ "type": "jsonb",
3082
+ "primaryKey": false,
3083
+ "notNull": false,
3084
+ "default": "'{}'::jsonb"
3085
+ },
3086
+ "created_at": {
3087
+ "name": "created_at",
3088
+ "type": "timestamp with time zone",
3089
+ "primaryKey": false,
3090
+ "notNull": true,
3091
+ "default": "now()"
3092
+ },
3093
+ "updated_at": {
3094
+ "name": "updated_at",
3095
+ "type": "timestamp with time zone",
3096
+ "primaryKey": false,
3097
+ "notNull": true,
3098
+ "default": "now()"
3099
+ }
3100
+ },
3101
+ "indexes": {
3102
+ "reply_to_from_idx": {
3103
+ "name": "reply_to_from_idx",
3104
+ "columns": [
3105
+ {
3106
+ "expression": "from_id",
3107
+ "isExpression": false,
3108
+ "asc": true,
3109
+ "nulls": "last"
3110
+ }
3111
+ ],
3112
+ "isUnique": false,
3113
+ "concurrently": false,
3114
+ "method": "btree",
3115
+ "with": {}
3116
+ },
3117
+ "reply_to_to_idx": {
3118
+ "name": "reply_to_to_idx",
3119
+ "columns": [
3120
+ {
3121
+ "expression": "to_id",
3122
+ "isExpression": false,
3123
+ "asc": true,
3124
+ "nulls": "last"
3125
+ }
3126
+ ],
3127
+ "isUnique": false,
3128
+ "concurrently": false,
3129
+ "method": "btree",
3130
+ "with": {}
3131
+ },
3132
+ "reply_to_from_to_unique": {
3133
+ "name": "reply_to_from_to_unique",
3134
+ "columns": [
3135
+ {
3136
+ "expression": "from_id",
3137
+ "isExpression": false,
3138
+ "asc": true,
3139
+ "nulls": "last"
3140
+ },
3141
+ {
3142
+ "expression": "to_id",
3143
+ "isExpression": false,
3144
+ "asc": true,
3145
+ "nulls": "last"
3146
+ }
3147
+ ],
3148
+ "isUnique": true,
3149
+ "concurrently": false,
3150
+ "method": "btree",
3151
+ "with": {}
3152
+ }
3153
+ },
3154
+ "foreignKeys": {},
3155
+ "compositePrimaryKeys": {},
3156
+ "uniqueConstraints": {},
3157
+ "policies": {},
3158
+ "checkConstraints": {},
3159
+ "isRLSEnabled": false
3160
+ },
3161
+ "public.repost": {
3162
+ "name": "repost",
3163
+ "schema": "",
3164
+ "columns": {
3165
+ "id": {
3166
+ "name": "id",
3167
+ "type": "uuid",
3168
+ "primaryKey": true,
3169
+ "notNull": true
3170
+ },
3171
+ "from_id": {
3172
+ "name": "from_id",
3173
+ "type": "text",
3174
+ "primaryKey": false,
3175
+ "notNull": true
3176
+ },
3177
+ "to_id": {
3178
+ "name": "to_id",
3179
+ "type": "text",
3180
+ "primaryKey": false,
3181
+ "notNull": true
3182
+ },
3183
+ "body": {
3184
+ "name": "body",
3185
+ "type": "jsonb",
3186
+ "primaryKey": false,
3187
+ "notNull": false,
3188
+ "default": "'{}'::jsonb"
3189
+ },
3190
+ "created_at": {
3191
+ "name": "created_at",
3192
+ "type": "timestamp with time zone",
3193
+ "primaryKey": false,
3194
+ "notNull": true,
3195
+ "default": "now()"
3196
+ },
3197
+ "updated_at": {
3198
+ "name": "updated_at",
3199
+ "type": "timestamp with time zone",
3200
+ "primaryKey": false,
3201
+ "notNull": true,
3202
+ "default": "now()"
3203
+ }
3204
+ },
3205
+ "indexes": {
3206
+ "repost_from_idx": {
3207
+ "name": "repost_from_idx",
3208
+ "columns": [
3209
+ {
3210
+ "expression": "from_id",
3211
+ "isExpression": false,
3212
+ "asc": true,
3213
+ "nulls": "last"
3214
+ }
3215
+ ],
3216
+ "isUnique": false,
3217
+ "concurrently": false,
3218
+ "method": "btree",
3219
+ "with": {}
3220
+ },
3221
+ "repost_to_idx": {
3222
+ "name": "repost_to_idx",
3223
+ "columns": [
3224
+ {
3225
+ "expression": "to_id",
3226
+ "isExpression": false,
3227
+ "asc": true,
3228
+ "nulls": "last"
3229
+ }
3230
+ ],
3231
+ "isUnique": false,
3232
+ "concurrently": false,
3233
+ "method": "btree",
3234
+ "with": {}
3235
+ },
3236
+ "repost_from_to_unique": {
3237
+ "name": "repost_from_to_unique",
3238
+ "columns": [
3239
+ {
3240
+ "expression": "from_id",
3241
+ "isExpression": false,
3242
+ "asc": true,
3243
+ "nulls": "last"
3244
+ },
3245
+ {
3246
+ "expression": "to_id",
3247
+ "isExpression": false,
3248
+ "asc": true,
3249
+ "nulls": "last"
3250
+ }
3251
+ ],
3252
+ "isUnique": true,
3253
+ "concurrently": false,
3254
+ "method": "btree",
3255
+ "with": {}
3256
+ }
3257
+ },
3258
+ "foreignKeys": {},
3259
+ "compositePrimaryKeys": {},
3260
+ "uniqueConstraints": {},
3261
+ "policies": {},
3262
+ "checkConstraints": {},
3263
+ "isRLSEnabled": false
3264
+ },
3265
+ "public.requests_follow": {
3266
+ "name": "requests_follow",
3267
+ "schema": "",
3268
+ "columns": {
3269
+ "id": {
3270
+ "name": "id",
3271
+ "type": "uuid",
3272
+ "primaryKey": true,
3273
+ "notNull": true
3274
+ },
3275
+ "from_id": {
3276
+ "name": "from_id",
3277
+ "type": "text",
3278
+ "primaryKey": false,
3279
+ "notNull": true
3280
+ },
3281
+ "to_id": {
3282
+ "name": "to_id",
3283
+ "type": "text",
3284
+ "primaryKey": false,
3285
+ "notNull": true
3286
+ },
3287
+ "body": {
3288
+ "name": "body",
3289
+ "type": "jsonb",
3290
+ "primaryKey": false,
3291
+ "notNull": false,
3292
+ "default": "'{}'::jsonb"
3293
+ },
3294
+ "created_at": {
3295
+ "name": "created_at",
3296
+ "type": "timestamp with time zone",
3297
+ "primaryKey": false,
3298
+ "notNull": true,
3299
+ "default": "now()"
3300
+ },
3301
+ "updated_at": {
3302
+ "name": "updated_at",
3303
+ "type": "timestamp with time zone",
3304
+ "primaryKey": false,
3305
+ "notNull": true,
3306
+ "default": "now()"
3307
+ }
3308
+ },
3309
+ "indexes": {
3310
+ "requests_follow_from_idx": {
3311
+ "name": "requests_follow_from_idx",
3312
+ "columns": [
3313
+ {
3314
+ "expression": "from_id",
3315
+ "isExpression": false,
3316
+ "asc": true,
3317
+ "nulls": "last"
3318
+ }
3319
+ ],
3320
+ "isUnique": false,
3321
+ "concurrently": false,
3322
+ "method": "btree",
3323
+ "with": {}
3324
+ },
3325
+ "requests_follow_to_idx": {
3326
+ "name": "requests_follow_to_idx",
3327
+ "columns": [
3328
+ {
3329
+ "expression": "to_id",
3330
+ "isExpression": false,
3331
+ "asc": true,
3332
+ "nulls": "last"
3333
+ }
3334
+ ],
3335
+ "isUnique": false,
3336
+ "concurrently": false,
3337
+ "method": "btree",
3338
+ "with": {}
3339
+ }
3340
+ },
3341
+ "foreignKeys": {},
3342
+ "compositePrimaryKeys": {},
3343
+ "uniqueConstraints": {},
3344
+ "policies": {},
3345
+ "checkConstraints": {},
3346
+ "isRLSEnabled": false
3347
+ },
3348
+ "public.user_groups": {
3349
+ "name": "user_groups",
3350
+ "schema": "",
3351
+ "columns": {
3352
+ "id": {
3353
+ "name": "id",
3354
+ "type": "uuid",
3355
+ "primaryKey": true,
3356
+ "notNull": true
3357
+ },
3358
+ "from_id": {
3359
+ "name": "from_id",
3360
+ "type": "text",
3361
+ "primaryKey": false,
3362
+ "notNull": true
3363
+ },
3364
+ "to_id": {
3365
+ "name": "to_id",
3366
+ "type": "text",
3367
+ "primaryKey": false,
3368
+ "notNull": true
3369
+ },
3370
+ "body": {
3371
+ "name": "body",
3372
+ "type": "jsonb",
3373
+ "primaryKey": false,
3374
+ "notNull": false,
3375
+ "default": "'{}'::jsonb"
3376
+ },
3377
+ "created_at": {
3378
+ "name": "created_at",
3379
+ "type": "timestamp with time zone",
3380
+ "primaryKey": false,
3381
+ "notNull": true,
3382
+ "default": "now()"
3383
+ },
3384
+ "updated_at": {
3385
+ "name": "updated_at",
3386
+ "type": "timestamp with time zone",
3387
+ "primaryKey": false,
3388
+ "notNull": true,
3389
+ "default": "now()"
3390
+ }
3391
+ },
3392
+ "indexes": {
3393
+ "user_groups_from_idx": {
3394
+ "name": "user_groups_from_idx",
3395
+ "columns": [
3396
+ {
3397
+ "expression": "from_id",
3398
+ "isExpression": false,
3399
+ "asc": true,
3400
+ "nulls": "last"
3401
+ }
3402
+ ],
3403
+ "isUnique": false,
3404
+ "concurrently": false,
3405
+ "method": "btree",
3406
+ "with": {}
3407
+ },
3408
+ "user_groups_to_idx": {
3409
+ "name": "user_groups_to_idx",
3410
+ "columns": [
3411
+ {
3412
+ "expression": "to_id",
3413
+ "isExpression": false,
3414
+ "asc": true,
3415
+ "nulls": "last"
3416
+ }
3417
+ ],
3418
+ "isUnique": false,
3419
+ "concurrently": false,
3420
+ "method": "btree",
3421
+ "with": {}
3422
+ }
3423
+ },
3424
+ "foreignKeys": {},
3425
+ "compositePrimaryKeys": {},
3426
+ "uniqueConstraints": {},
3427
+ "policies": {},
3428
+ "checkConstraints": {},
3429
+ "isRLSEnabled": false
3430
+ },
3431
+ "public.analytics_daily_activity_heatmap": {
3432
+ "name": "analytics_daily_activity_heatmap",
3433
+ "schema": "",
3434
+ "columns": {
3435
+ "id": {
3436
+ "name": "id",
3437
+ "type": "uuid",
3438
+ "primaryKey": true,
3439
+ "notNull": true
3440
+ },
3441
+ "day": {
3442
+ "name": "day",
3443
+ "type": "date",
3444
+ "primaryKey": false,
3445
+ "notNull": true
3446
+ },
3447
+ "dow": {
3448
+ "name": "dow",
3449
+ "type": "integer",
3450
+ "primaryKey": false,
3451
+ "notNull": true
3452
+ },
3453
+ "hour": {
3454
+ "name": "hour",
3455
+ "type": "integer",
3456
+ "primaryKey": false,
3457
+ "notNull": true
3458
+ },
3459
+ "activity_count": {
3460
+ "name": "activity_count",
3461
+ "type": "integer",
3462
+ "primaryKey": false,
3463
+ "notNull": true,
3464
+ "default": 0
3465
+ },
3466
+ "compiled_at": {
3467
+ "name": "compiled_at",
3468
+ "type": "timestamp with time zone",
3469
+ "primaryKey": false,
3470
+ "notNull": true,
3471
+ "default": "now()"
3472
+ }
3473
+ },
3474
+ "indexes": {
3475
+ "analytics_heatmap_day_dow_hour": {
3476
+ "name": "analytics_heatmap_day_dow_hour",
3477
+ "columns": [
3478
+ {
3479
+ "expression": "day",
3480
+ "isExpression": false,
3481
+ "asc": true,
3482
+ "nulls": "last"
3483
+ },
3484
+ {
3485
+ "expression": "dow",
3486
+ "isExpression": false,
3487
+ "asc": true,
3488
+ "nulls": "last"
3489
+ },
3490
+ {
3491
+ "expression": "hour",
3492
+ "isExpression": false,
3493
+ "asc": true,
3494
+ "nulls": "last"
3495
+ }
3496
+ ],
3497
+ "isUnique": true,
3498
+ "concurrently": false,
3499
+ "method": "btree",
3500
+ "with": {}
3501
+ },
3502
+ "analytics_heatmap_day_idx": {
3503
+ "name": "analytics_heatmap_day_idx",
3504
+ "columns": [
3505
+ {
3506
+ "expression": "day",
3507
+ "isExpression": false,
3508
+ "asc": true,
3509
+ "nulls": "last"
3510
+ }
3511
+ ],
3512
+ "isUnique": false,
3513
+ "concurrently": false,
3514
+ "method": "btree",
3515
+ "with": {}
3516
+ }
3517
+ },
3518
+ "foreignKeys": {},
3519
+ "compositePrimaryKeys": {},
3520
+ "uniqueConstraints": {},
3521
+ "policies": {},
3522
+ "checkConstraints": {},
3523
+ "isRLSEnabled": false
3524
+ },
3525
+ "public.analytics_daily_by_group": {
3526
+ "name": "analytics_daily_by_group",
3527
+ "schema": "",
3528
+ "columns": {
3529
+ "id": {
3530
+ "name": "id",
3531
+ "type": "uuid",
3532
+ "primaryKey": true,
3533
+ "notNull": true
3534
+ },
3535
+ "day": {
3536
+ "name": "day",
3537
+ "type": "date",
3538
+ "primaryKey": false,
3539
+ "notNull": true
3540
+ },
3541
+ "group_id": {
3542
+ "name": "group_id",
3543
+ "type": "text",
3544
+ "primaryKey": false,
3545
+ "notNull": true
3546
+ },
3547
+ "posts": {
3548
+ "name": "posts",
3549
+ "type": "integer",
3550
+ "primaryKey": false,
3551
+ "notNull": true,
3552
+ "default": 0
3553
+ },
3554
+ "likes": {
3555
+ "name": "likes",
3556
+ "type": "integer",
3557
+ "primaryKey": false,
3558
+ "notNull": true,
3559
+ "default": 0
3560
+ },
3561
+ "comments": {
3562
+ "name": "comments",
3563
+ "type": "integer",
3564
+ "primaryKey": false,
3565
+ "notNull": true,
3566
+ "default": 0
3567
+ },
3568
+ "unique_viewers": {
3569
+ "name": "unique_viewers",
3570
+ "type": "integer",
3571
+ "primaryKey": false,
3572
+ "notNull": true,
3573
+ "default": 0
3574
+ },
3575
+ "compiled_at": {
3576
+ "name": "compiled_at",
3577
+ "type": "timestamp with time zone",
3578
+ "primaryKey": false,
3579
+ "notNull": true,
3580
+ "default": "now()"
3581
+ }
3582
+ },
3583
+ "indexes": {
3584
+ "analytics_daily_by_group_day_group": {
3585
+ "name": "analytics_daily_by_group_day_group",
3586
+ "columns": [
3587
+ {
3588
+ "expression": "day",
3589
+ "isExpression": false,
3590
+ "asc": true,
3591
+ "nulls": "last"
3592
+ },
3593
+ {
3594
+ "expression": "group_id",
3595
+ "isExpression": false,
3596
+ "asc": true,
3597
+ "nulls": "last"
3598
+ }
3599
+ ],
3600
+ "isUnique": true,
3601
+ "concurrently": false,
3602
+ "method": "btree",
3603
+ "with": {}
3604
+ },
3605
+ "analytics_daily_by_group_day_idx": {
3606
+ "name": "analytics_daily_by_group_day_idx",
3607
+ "columns": [
3608
+ {
3609
+ "expression": "day",
3610
+ "isExpression": false,
3611
+ "asc": true,
3612
+ "nulls": "last"
3613
+ }
3614
+ ],
3615
+ "isUnique": false,
3616
+ "concurrently": false,
3617
+ "method": "btree",
3618
+ "with": {}
3619
+ }
3620
+ },
3621
+ "foreignKeys": {},
3622
+ "compositePrimaryKeys": {},
3623
+ "uniqueConstraints": {},
3624
+ "policies": {},
3625
+ "checkConstraints": {},
3626
+ "isRLSEnabled": false
3627
+ },
3628
+ "public.analytics_daily_clicks": {
3629
+ "name": "analytics_daily_clicks",
3630
+ "schema": "",
3631
+ "columns": {
3632
+ "day": {
3633
+ "name": "day",
3634
+ "type": "date",
3635
+ "primaryKey": false,
3636
+ "notNull": true
3637
+ },
3638
+ "kind": {
3639
+ "name": "kind",
3640
+ "type": "text",
3641
+ "primaryKey": false,
3642
+ "notNull": true
3643
+ },
3644
+ "target": {
3645
+ "name": "target",
3646
+ "type": "text",
3647
+ "primaryKey": false,
3648
+ "notNull": true
3649
+ },
3650
+ "clicks": {
3651
+ "name": "clicks",
3652
+ "type": "integer",
3653
+ "primaryKey": false,
3654
+ "notNull": true,
3655
+ "default": 0
3656
+ }
3657
+ },
3658
+ "indexes": {
3659
+ "analytics_daily_clicks_day_kind_idx": {
3660
+ "name": "analytics_daily_clicks_day_kind_idx",
3661
+ "columns": [
3662
+ {
3663
+ "expression": "day",
3664
+ "isExpression": false,
3665
+ "asc": true,
3666
+ "nulls": "last"
3667
+ },
3668
+ {
3669
+ "expression": "kind",
3670
+ "isExpression": false,
3671
+ "asc": true,
3672
+ "nulls": "last"
3673
+ }
3674
+ ],
3675
+ "isUnique": false,
3676
+ "concurrently": false,
3677
+ "method": "btree",
3678
+ "with": {}
3679
+ }
3680
+ },
3681
+ "foreignKeys": {},
3682
+ "compositePrimaryKeys": {
3683
+ "analytics_daily_clicks_day_kind_target_pk": {
3684
+ "name": "analytics_daily_clicks_day_kind_target_pk",
3685
+ "columns": ["day", "kind", "target"]
3686
+ }
3687
+ },
3688
+ "uniqueConstraints": {},
3689
+ "policies": {},
3690
+ "checkConstraints": {},
3691
+ "isRLSEnabled": false
3692
+ },
3693
+ "public.analytics_daily_signups_by_channel": {
3694
+ "name": "analytics_daily_signups_by_channel",
3695
+ "schema": "",
3696
+ "columns": {
3697
+ "id": {
3698
+ "name": "id",
3699
+ "type": "uuid",
3700
+ "primaryKey": true,
3701
+ "notNull": true
3702
+ },
3703
+ "day": {
3704
+ "name": "day",
3705
+ "type": "date",
3706
+ "primaryKey": false,
3707
+ "notNull": true
3708
+ },
3709
+ "channel": {
3710
+ "name": "channel",
3711
+ "type": "text",
3712
+ "primaryKey": false,
3713
+ "notNull": true
3714
+ },
3715
+ "count": {
3716
+ "name": "count",
3717
+ "type": "integer",
3718
+ "primaryKey": false,
3719
+ "notNull": true,
3720
+ "default": 0
3721
+ },
3722
+ "compiled_at": {
3723
+ "name": "compiled_at",
3724
+ "type": "timestamp with time zone",
3725
+ "primaryKey": false,
3726
+ "notNull": true,
3727
+ "default": "now()"
3728
+ }
3729
+ },
3730
+ "indexes": {
3731
+ "analytics_signups_day_channel": {
3732
+ "name": "analytics_signups_day_channel",
3733
+ "columns": [
3734
+ {
3735
+ "expression": "day",
3736
+ "isExpression": false,
3737
+ "asc": true,
3738
+ "nulls": "last"
3739
+ },
3740
+ {
3741
+ "expression": "channel",
3742
+ "isExpression": false,
3743
+ "asc": true,
3744
+ "nulls": "last"
3745
+ }
3746
+ ],
3747
+ "isUnique": true,
3748
+ "concurrently": false,
3749
+ "method": "btree",
3750
+ "with": {}
3751
+ },
3752
+ "analytics_signups_day_idx": {
3753
+ "name": "analytics_signups_day_idx",
3754
+ "columns": [
3755
+ {
3756
+ "expression": "day",
3757
+ "isExpression": false,
3758
+ "asc": true,
3759
+ "nulls": "last"
3760
+ }
3761
+ ],
3762
+ "isUnique": false,
3763
+ "concurrently": false,
3764
+ "method": "btree",
3765
+ "with": {}
3766
+ }
3767
+ },
3768
+ "foreignKeys": {},
3769
+ "compositePrimaryKeys": {},
3770
+ "uniqueConstraints": {},
3771
+ "policies": {},
3772
+ "checkConstraints": {},
3773
+ "isRLSEnabled": false
3774
+ },
3775
+ "public.analytics_daily_totals": {
3776
+ "name": "analytics_daily_totals",
3777
+ "schema": "",
3778
+ "columns": {
3779
+ "day": {
3780
+ "name": "day",
3781
+ "type": "date",
3782
+ "primaryKey": true,
3783
+ "notNull": true
3784
+ },
3785
+ "new_members": {
3786
+ "name": "new_members",
3787
+ "type": "integer",
3788
+ "primaryKey": false,
3789
+ "notNull": true,
3790
+ "default": 0
3791
+ },
3792
+ "active_members": {
3793
+ "name": "active_members",
3794
+ "type": "integer",
3795
+ "primaryKey": false,
3796
+ "notNull": true,
3797
+ "default": 0
3798
+ },
3799
+ "posts": {
3800
+ "name": "posts",
3801
+ "type": "integer",
3802
+ "primaryKey": false,
3803
+ "notNull": true,
3804
+ "default": 0
3805
+ },
3806
+ "replies": {
3807
+ "name": "replies",
3808
+ "type": "integer",
3809
+ "primaryKey": false,
3810
+ "notNull": true,
3811
+ "default": 0
3812
+ },
3813
+ "likes": {
3814
+ "name": "likes",
3815
+ "type": "integer",
3816
+ "primaryKey": false,
3817
+ "notNull": true,
3818
+ "default": 0
3819
+ },
3820
+ "reposts": {
3821
+ "name": "reposts",
3822
+ "type": "integer",
3823
+ "primaryKey": false,
3824
+ "notNull": true,
3825
+ "default": 0
3826
+ },
3827
+ "bookmarks": {
3828
+ "name": "bookmarks",
3829
+ "type": "integer",
3830
+ "primaryKey": false,
3831
+ "notNull": true,
3832
+ "default": 0
3833
+ },
3834
+ "comments": {
3835
+ "name": "comments",
3836
+ "type": "integer",
3837
+ "primaryKey": false,
3838
+ "notNull": true,
3839
+ "default": 0
3840
+ },
3841
+ "dms": {
3842
+ "name": "dms",
3843
+ "type": "integer",
3844
+ "primaryKey": false,
3845
+ "notNull": true,
3846
+ "default": 0
3847
+ },
3848
+ "unique_viewers": {
3849
+ "name": "unique_viewers",
3850
+ "type": "integer",
3851
+ "primaryKey": false,
3852
+ "notNull": true,
3853
+ "default": 0
3854
+ },
3855
+ "view_events": {
3856
+ "name": "view_events",
3857
+ "type": "integer",
3858
+ "primaryKey": false,
3859
+ "notNull": true,
3860
+ "default": 0
3861
+ },
3862
+ "jam_sessions": {
3863
+ "name": "jam_sessions",
3864
+ "type": "integer",
3865
+ "primaryKey": false,
3866
+ "notNull": true,
3867
+ "default": 0
3868
+ },
3869
+ "jam_participants": {
3870
+ "name": "jam_participants",
3871
+ "type": "integer",
3872
+ "primaryKey": false,
3873
+ "notNull": true,
3874
+ "default": 0
3875
+ },
3876
+ "compiled_at": {
3877
+ "name": "compiled_at",
3878
+ "type": "timestamp with time zone",
3879
+ "primaryKey": false,
3880
+ "notNull": true,
3881
+ "default": "now()"
3882
+ }
3883
+ },
3884
+ "indexes": {},
3885
+ "foreignKeys": {},
3886
+ "compositePrimaryKeys": {},
3887
+ "uniqueConstraints": {},
3888
+ "policies": {},
3889
+ "checkConstraints": {},
3890
+ "isRLSEnabled": false
3891
+ },
3892
+ "public.analytics_post_views_daily": {
3893
+ "name": "analytics_post_views_daily",
3894
+ "schema": "",
3895
+ "columns": {
3896
+ "id": {
3897
+ "name": "id",
3898
+ "type": "uuid",
3899
+ "primaryKey": true,
3900
+ "notNull": true
3901
+ },
3902
+ "day": {
3903
+ "name": "day",
3904
+ "type": "date",
3905
+ "primaryKey": false,
3906
+ "notNull": true
3907
+ },
3908
+ "post_id": {
3909
+ "name": "post_id",
3910
+ "type": "text",
3911
+ "primaryKey": false,
3912
+ "notNull": true
3913
+ },
3914
+ "unique_viewers": {
3915
+ "name": "unique_viewers",
3916
+ "type": "integer",
3917
+ "primaryKey": false,
3918
+ "notNull": true,
3919
+ "default": 0
3920
+ },
3921
+ "view_events": {
3922
+ "name": "view_events",
3923
+ "type": "integer",
3924
+ "primaryKey": false,
3925
+ "notNull": true,
3926
+ "default": 0
3927
+ },
3928
+ "compiled_at": {
3929
+ "name": "compiled_at",
3930
+ "type": "timestamp with time zone",
3931
+ "primaryKey": false,
3932
+ "notNull": true,
3933
+ "default": "now()"
3934
+ }
3935
+ },
3936
+ "indexes": {
3937
+ "analytics_post_views_day_post": {
3938
+ "name": "analytics_post_views_day_post",
3939
+ "columns": [
3940
+ {
3941
+ "expression": "day",
3942
+ "isExpression": false,
3943
+ "asc": true,
3944
+ "nulls": "last"
3945
+ },
3946
+ {
3947
+ "expression": "post_id",
3948
+ "isExpression": false,
3949
+ "asc": true,
3950
+ "nulls": "last"
3951
+ }
3952
+ ],
3953
+ "isUnique": true,
3954
+ "concurrently": false,
3955
+ "method": "btree",
3956
+ "with": {}
3957
+ },
3958
+ "analytics_post_views_day_idx": {
3959
+ "name": "analytics_post_views_day_idx",
3960
+ "columns": [
3961
+ {
3962
+ "expression": "day",
3963
+ "isExpression": false,
3964
+ "asc": true,
3965
+ "nulls": "last"
3966
+ }
3967
+ ],
3968
+ "isUnique": false,
3969
+ "concurrently": false,
3970
+ "method": "btree",
3971
+ "with": {}
3972
+ },
3973
+ "analytics_post_views_post_idx": {
3974
+ "name": "analytics_post_views_post_idx",
3975
+ "columns": [
3976
+ {
3977
+ "expression": "post_id",
3978
+ "isExpression": false,
3979
+ "asc": true,
3980
+ "nulls": "last"
3981
+ }
3982
+ ],
3983
+ "isUnique": false,
3984
+ "concurrently": false,
3985
+ "method": "btree",
3986
+ "with": {}
3987
+ }
3988
+ },
3989
+ "foreignKeys": {},
3990
+ "compositePrimaryKeys": {},
3991
+ "uniqueConstraints": {},
3992
+ "policies": {},
3993
+ "checkConstraints": {},
3994
+ "isRLSEnabled": false
3995
+ },
3996
+ "public.analytics_report_deliveries": {
3997
+ "name": "analytics_report_deliveries",
3998
+ "schema": "",
3999
+ "columns": {
4000
+ "id": {
4001
+ "name": "id",
4002
+ "type": "uuid",
4003
+ "primaryKey": true,
4004
+ "notNull": true
4005
+ },
4006
+ "period_start": {
4007
+ "name": "period_start",
4008
+ "type": "date",
4009
+ "primaryKey": false,
4010
+ "notNull": true
4011
+ },
4012
+ "period_end": {
4013
+ "name": "period_end",
4014
+ "type": "date",
4015
+ "primaryKey": false,
4016
+ "notNull": true
4017
+ },
4018
+ "recipients": {
4019
+ "name": "recipients",
4020
+ "type": "jsonb",
4021
+ "primaryKey": false,
4022
+ "notNull": true,
4023
+ "default": "'[]'::jsonb"
4024
+ },
4025
+ "status": {
4026
+ "name": "status",
4027
+ "type": "text",
4028
+ "primaryKey": false,
4029
+ "notNull": true,
4030
+ "default": "'pending'"
4031
+ },
4032
+ "body": {
4033
+ "name": "body",
4034
+ "type": "jsonb",
4035
+ "primaryKey": false,
4036
+ "notNull": true,
4037
+ "default": "'{}'::jsonb"
4038
+ },
4039
+ "created_at": {
4040
+ "name": "created_at",
4041
+ "type": "timestamp with time zone",
4042
+ "primaryKey": false,
4043
+ "notNull": true,
4044
+ "default": "now()"
4045
+ }
4046
+ },
4047
+ "indexes": {
4048
+ "analytics_report_deliveries_period_idx": {
4049
+ "name": "analytics_report_deliveries_period_idx",
4050
+ "columns": [
4051
+ {
4052
+ "expression": "period_start",
4053
+ "isExpression": false,
4054
+ "asc": true,
4055
+ "nulls": "last"
4056
+ }
4057
+ ],
4058
+ "isUnique": false,
4059
+ "concurrently": false,
4060
+ "method": "btree",
4061
+ "with": {}
4062
+ }
4063
+ },
4064
+ "foreignKeys": {},
4065
+ "compositePrimaryKeys": {},
4066
+ "uniqueConstraints": {},
4067
+ "policies": {},
4068
+ "checkConstraints": {},
4069
+ "isRLSEnabled": false
4070
+ },
4071
+ "public.analytics_retention_cohorts": {
4072
+ "name": "analytics_retention_cohorts",
4073
+ "schema": "",
4074
+ "columns": {
4075
+ "id": {
4076
+ "name": "id",
4077
+ "type": "uuid",
4078
+ "primaryKey": true,
4079
+ "notNull": true
4080
+ },
4081
+ "cohort_week": {
4082
+ "name": "cohort_week",
4083
+ "type": "date",
4084
+ "primaryKey": false,
4085
+ "notNull": true
4086
+ },
4087
+ "cohort_size": {
4088
+ "name": "cohort_size",
4089
+ "type": "integer",
4090
+ "primaryKey": false,
4091
+ "notNull": true,
4092
+ "default": 0
4093
+ },
4094
+ "rates": {
4095
+ "name": "rates",
4096
+ "type": "jsonb",
4097
+ "primaryKey": false,
4098
+ "notNull": true,
4099
+ "default": "'{}'::jsonb"
4100
+ },
4101
+ "compiled_at": {
4102
+ "name": "compiled_at",
4103
+ "type": "timestamp with time zone",
4104
+ "primaryKey": false,
4105
+ "notNull": true,
4106
+ "default": "now()"
4107
+ }
4108
+ },
4109
+ "indexes": {
4110
+ "analytics_retention_cohort_week": {
4111
+ "name": "analytics_retention_cohort_week",
4112
+ "columns": [
4113
+ {
4114
+ "expression": "cohort_week",
4115
+ "isExpression": false,
4116
+ "asc": true,
4117
+ "nulls": "last"
4118
+ }
4119
+ ],
4120
+ "isUnique": true,
4121
+ "concurrently": false,
4122
+ "method": "btree",
4123
+ "with": {}
4124
+ }
4125
+ },
4126
+ "foreignKeys": {},
4127
+ "compositePrimaryKeys": {},
4128
+ "uniqueConstraints": {},
4129
+ "policies": {},
4130
+ "checkConstraints": {},
4131
+ "isRLSEnabled": false
4132
+ },
4133
+ "public.analytics_settings": {
4134
+ "name": "analytics_settings",
4135
+ "schema": "",
4136
+ "columns": {
4137
+ "id": {
4138
+ "name": "id",
4139
+ "type": "text",
4140
+ "primaryKey": true,
4141
+ "notNull": true,
4142
+ "default": "'default'"
4143
+ },
4144
+ "body": {
4145
+ "name": "body",
4146
+ "type": "jsonb",
4147
+ "primaryKey": false,
4148
+ "notNull": true,
4149
+ "default": "'{}'::jsonb"
4150
+ },
4151
+ "updated_at": {
4152
+ "name": "updated_at",
4153
+ "type": "timestamp with time zone",
4154
+ "primaryKey": false,
4155
+ "notNull": true,
4156
+ "default": "now()"
4157
+ }
4158
+ },
4159
+ "indexes": {},
4160
+ "foreignKeys": {},
4161
+ "compositePrimaryKeys": {},
4162
+ "uniqueConstraints": {},
4163
+ "policies": {},
4164
+ "checkConstraints": {},
4165
+ "isRLSEnabled": false
4166
+ }
4167
+ },
4168
+ "enums": {},
4169
+ "schemas": {},
4170
+ "sequences": {},
4171
+ "roles": {},
4172
+ "policies": {},
4173
+ "views": {},
4174
+ "_meta": {
4175
+ "columns": {},
4176
+ "schemas": {},
4177
+ "tables": {}
4178
+ }
4179
+ }