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