@drfed/models 0.0.0-stage → 0.1.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +230 -2
  3. package/dist/activity-delivery.d.mts +111 -0
  4. package/dist/activity-delivery.d.mts.map +1 -0
  5. package/dist/activity-delivery.mjs +240 -0
  6. package/dist/activity-delivery.mjs.map +1 -0
  7. package/dist/db-DtcLuISw.d.mts +3098 -0
  8. package/dist/db-DtcLuISw.d.mts.map +1 -0
  9. package/dist/db.d.mts +2 -0
  10. package/dist/db.mjs +3 -0
  11. package/dist/email.d.mts +39 -0
  12. package/dist/email.d.mts.map +1 -0
  13. package/dist/email.mjs +12 -0
  14. package/dist/email.mjs.map +1 -0
  15. package/dist/index.d.mts +14 -0
  16. package/dist/index.mjs +18 -0
  17. package/dist/instance.d.mts +11 -0
  18. package/dist/instance.d.mts.map +1 -0
  19. package/dist/instance.mjs +21 -0
  20. package/dist/instance.mjs.map +1 -0
  21. package/dist/key.d.mts +2 -0
  22. package/dist/key.mjs +86 -0
  23. package/dist/key.mjs.map +1 -0
  24. package/dist/login.d.mts +49 -0
  25. package/dist/login.d.mts.map +1 -0
  26. package/dist/login.mjs +71 -0
  27. package/dist/login.mjs.map +1 -0
  28. package/dist/migrate.d.mts +46 -0
  29. package/dist/migrate.d.mts.map +1 -0
  30. package/dist/migrate.mjs +58 -0
  31. package/dist/migrate.mjs.map +1 -0
  32. package/dist/migration-manifest.d.mts +39 -0
  33. package/dist/migration-manifest.d.mts.map +1 -0
  34. package/dist/migration-manifest.mjs +77 -0
  35. package/dist/migration-manifest.mjs.map +1 -0
  36. package/dist/migration-session-B4xHeU_a.d.mts +56 -0
  37. package/dist/migration-session-B4xHeU_a.d.mts.map +1 -0
  38. package/dist/migration-session.d.mts +2 -0
  39. package/dist/migration-session.mjs +204 -0
  40. package/dist/migration-session.mjs.map +1 -0
  41. package/dist/migration-snapshot-OM5jQN1-.mjs +69 -0
  42. package/dist/migration-snapshot-OM5jQN1-.mjs.map +1 -0
  43. package/dist/migration-state.d.mts +41 -0
  44. package/dist/migration-state.d.mts.map +1 -0
  45. package/dist/migration-state.mjs +155 -0
  46. package/dist/migration-state.mjs.map +1 -0
  47. package/dist/migrations-manifest.json +109 -0
  48. package/dist/pglite-preparation.d.mts +23 -0
  49. package/dist/pglite-preparation.d.mts.map +1 -0
  50. package/dist/pglite-preparation.mjs +77 -0
  51. package/dist/pglite-preparation.mjs.map +1 -0
  52. package/dist/pglite-store.d.mts +29 -0
  53. package/dist/pglite-store.d.mts.map +1 -0
  54. package/dist/pglite-store.mjs +117 -0
  55. package/dist/pglite-store.mjs.map +1 -0
  56. package/dist/relations.d.mts +2 -0
  57. package/dist/relations.mjs +307 -0
  58. package/dist/relations.mjs.map +1 -0
  59. package/dist/resource.d.mts +50 -0
  60. package/dist/resource.d.mts.map +1 -0
  61. package/dist/resource.mjs +123 -0
  62. package/dist/resource.mjs.map +1 -0
  63. package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
  64. package/dist/schema.d.mts +2 -0
  65. package/dist/schema.mjs +495 -0
  66. package/dist/schema.mjs.map +1 -0
  67. package/dist/slug.d.mts +28 -0
  68. package/dist/slug.d.mts.map +1 -0
  69. package/dist/slug.mjs +55 -0
  70. package/dist/slug.mjs.map +1 -0
  71. package/dist/text.d.mts +10 -0
  72. package/dist/text.d.mts.map +1 -0
  73. package/dist/text.mjs +11 -0
  74. package/dist/text.mjs.map +1 -0
  75. package/dist/uuid-CKMzlIND.d.mts +26 -0
  76. package/dist/uuid-CKMzlIND.d.mts.map +1 -0
  77. package/dist/uuid.d.mts +2 -0
  78. package/dist/uuid.mjs +28 -0
  79. package/dist/uuid.mjs.map +1 -0
  80. package/drizzle/20260622021748_init/migration.sql +25 -0
  81. package/drizzle/20260622021748_init/snapshot.json +246 -0
  82. package/drizzle/20260623162238_dear_felicia_hardy/migration.sql +5 -0
  83. package/drizzle/20260623162238_dear_felicia_hardy/snapshot.json +321 -0
  84. package/drizzle/20260624094817_lethal_sinister_six/migration.sql +2 -0
  85. package/drizzle/20260624094817_lethal_sinister_six/snapshot.json +347 -0
  86. package/drizzle/20260716000333_email_auth/migration.sql +20 -0
  87. package/drizzle/20260716000333_email_auth/snapshot.json +575 -0
  88. package/drizzle/20260723065002_chief_colleen_wing/migration.sql +2 -0
  89. package/drizzle/20260723065002_chief_colleen_wing/snapshot.json +595 -0
  90. package/drizzle/20260802205417_separate-instance-local-remote/migration.sql +26 -0
  91. package/drizzle/20260802205417_separate-instance-local-remote/snapshot.json +768 -0
  92. package/drizzle/20260804061119_instances-local-remote-constraint/migration.sql +7 -0
  93. package/drizzle/20260804061119_instances-local-remote-constraint/snapshot.json +843 -0
  94. package/drizzle/20260818080259_dark_night_thrasher/migration.sql +15 -0
  95. package/drizzle/20260818080259_dark_night_thrasher/snapshot.json +722 -0
  96. package/drizzle/20260821072150_merge_remote_actors/migration.sql +54 -0
  97. package/drizzle/20260821072150_merge_remote_actors/snapshot.json +1312 -0
  98. package/drizzle/20260906052949_rename_followees_to_following/migration.sql +2 -0
  99. package/drizzle/20260906052949_rename_followees_to_following/snapshot.json +1315 -0
  100. package/drizzle/20260908062446_rename_login_tokens_to_login_challenges/migration.sql +1 -0
  101. package/drizzle/20260908062446_rename_login_tokens_to_login_challenges/snapshot.json +1312 -0
  102. package/drizzle/20260908065945_simplify_login_challenges/migration.sql +7 -0
  103. package/drizzle/20260908065945_simplify_login_challenges/snapshot.json +1290 -0
  104. package/drizzle/20260915061356_tighten_slug_constraint/migration.sql +12 -0
  105. package/drizzle/20260915061356_tighten_slug_constraint/snapshot.json +1290 -0
  106. package/drizzle/20260915063339_widen_instance_host/migration.sql +1 -0
  107. package/drizzle/20260915063339_widen_instance_host/snapshot.json +1290 -0
  108. package/drizzle/20260916085902_add_objects_activities_and_resources/migration.sql +110 -0
  109. package/drizzle/20260916085902_add_objects_activities_and_resources/snapshot.json +2263 -0
  110. package/drizzle/20260917163517_order_local_outbox_items/migration.sql +22 -0
  111. package/drizzle/20260917163517_order_local_outbox_items/snapshot.json +2263 -0
  112. package/drizzle/20260918071839_add_activity_object_index/migration.sql +1 -0
  113. package/drizzle/20260918071839_add_activity_object_index/snapshot.json +2298 -0
  114. package/drizzle/20261006061745_add_activity_deliveries_and_keys/migration.sql +106 -0
  115. package/drizzle/20261006061745_add_activity_deliveries_and_keys/snapshot.json +3538 -0
  116. package/drizzle/20261006085045_snake_case_columns/migration.sql +42 -0
  117. package/drizzle/20261006085045_snake_case_columns/snapshot.json +3570 -0
  118. package/drizzle/20261006122653_local_actor_keys/migration.sql +11 -0
  119. package/drizzle/20261006122653_local_actor_keys/snapshot.json +3627 -0
  120. package/drizzle/20261010044954_link_activity_deliveries_to_activities/migration.sql +8 -0
  121. package/drizzle/20261010044954_link_activity_deliveries_to_activities/snapshot.json +3714 -0
  122. package/drizzle/20261010073134_check_inbound_activity_link/migration.sql +1 -0
  123. package/drizzle/20261010073134_check_inbound_activity_link/snapshot.json +3721 -0
  124. package/drizzle/20261010104304_record_object_activity/migration.sql +3 -0
  125. package/drizzle/20261010104304_record_object_activity/snapshot.json +3756 -0
  126. package/drizzle/20261010111648_record_delivery_snapshot/migration.sql +29 -0
  127. package/drizzle/20261010111648_record_delivery_snapshot/snapshot.json +3769 -0
  128. package/drizzle/20261011144453_record_object_snapshot/migration.sql +10 -0
  129. package/drizzle/20261011144453_record_object_snapshot/snapshot.json +3808 -0
  130. package/drizzle/20261011192718_record_actor_followers/migration.sql +1 -0
  131. package/drizzle/20261011192718_record_actor_followers/snapshot.json +3821 -0
  132. package/package.json +181 -3
@@ -0,0 +1,3821 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "7eb23336-1b14-449c-a7ec-c2cbeaf92751",
5
+ "prevIds": ["e25fd26d-d15b-43a1-8349-7c6bd24f5c7c"],
6
+ "ddl": [
7
+ {
8
+ "values": ["inbound", "outbound"],
9
+ "name": "activity_delivery_direction",
10
+ "entityType": "enums",
11
+ "schema": "public"
12
+ },
13
+ {
14
+ "values": [
15
+ "received",
16
+ "acknowledged",
17
+ "unverified",
18
+ "rejected",
19
+ "queued",
20
+ "sent",
21
+ "failed",
22
+ "permanently_failed",
23
+ "abandoned"
24
+ ],
25
+ "name": "activity_delivery_status",
26
+ "entityType": "enums",
27
+ "schema": "public"
28
+ },
29
+ {
30
+ "values": ["http_signature", "ld_signature", "object_integrity_proof"],
31
+ "name": "activity_delivery_verification_mechanism",
32
+ "entityType": "enums",
33
+ "schema": "public"
34
+ },
35
+ {
36
+ "values": [
37
+ "verified",
38
+ "invalid_signature",
39
+ "key_fetch_error",
40
+ "no_signature",
41
+ "unattempted",
42
+ "unobserved"
43
+ ],
44
+ "name": "activity_delivery_verification_result",
45
+ "entityType": "enums",
46
+ "schema": "public"
47
+ },
48
+ {
49
+ "values": ["Create"],
50
+ "name": "activity_type",
51
+ "entityType": "enums",
52
+ "schema": "public"
53
+ },
54
+ {
55
+ "values": ["Application", "Group", "Organization", "Person", "Service"],
56
+ "name": "actor_type",
57
+ "entityType": "enums",
58
+ "schema": "public"
59
+ },
60
+ {
61
+ "values": ["to", "cc", "bto", "bcc", "audience"],
62
+ "name": "addressing_property",
63
+ "entityType": "enums",
64
+ "schema": "public"
65
+ },
66
+ {
67
+ "values": ["followers", "following", "featured", "outbox"],
68
+ "name": "collection_role",
69
+ "entityType": "enums",
70
+ "schema": "public"
71
+ },
72
+ {
73
+ "values": ["Collection", "OrderedCollection"],
74
+ "name": "collection_type",
75
+ "entityType": "enums",
76
+ "schema": "public"
77
+ },
78
+ {
79
+ "values": ["RSASSA-PKCS1-v1_5", "Ed25519"],
80
+ "name": "local_actor_key_type",
81
+ "entityType": "enums",
82
+ "schema": "public"
83
+ },
84
+ {
85
+ "values": ["Article", "Note"],
86
+ "name": "object_type",
87
+ "entityType": "enums",
88
+ "schema": "public"
89
+ },
90
+ {
91
+ "values": ["actor", "object", "activity", "collection", "unknown"],
92
+ "name": "resource_kind",
93
+ "entityType": "enums",
94
+ "schema": "public"
95
+ },
96
+ {
97
+ "isRlsEnabled": false,
98
+ "name": "accounts",
99
+ "entityType": "tables",
100
+ "schema": "public"
101
+ },
102
+ {
103
+ "isRlsEnabled": false,
104
+ "name": "activities",
105
+ "entityType": "tables",
106
+ "schema": "public"
107
+ },
108
+ {
109
+ "isRlsEnabled": false,
110
+ "name": "activity_deliveries",
111
+ "entityType": "tables",
112
+ "schema": "public"
113
+ },
114
+ {
115
+ "isRlsEnabled": false,
116
+ "name": "activity_delivery_actor_collections",
117
+ "entityType": "tables",
118
+ "schema": "public"
119
+ },
120
+ {
121
+ "isRlsEnabled": false,
122
+ "name": "activity_delivery_actors",
123
+ "entityType": "tables",
124
+ "schema": "public"
125
+ },
126
+ {
127
+ "isRlsEnabled": false,
128
+ "name": "activity_delivery_attempts",
129
+ "entityType": "tables",
130
+ "schema": "public"
131
+ },
132
+ {
133
+ "isRlsEnabled": false,
134
+ "name": "actor_collection_references",
135
+ "entityType": "tables",
136
+ "schema": "public"
137
+ },
138
+ {
139
+ "isRlsEnabled": false,
140
+ "name": "actors",
141
+ "entityType": "tables",
142
+ "schema": "public"
143
+ },
144
+ {
145
+ "isRlsEnabled": false,
146
+ "name": "addressing",
147
+ "entityType": "tables",
148
+ "schema": "public"
149
+ },
150
+ {
151
+ "isRlsEnabled": false,
152
+ "name": "collection_items",
153
+ "entityType": "tables",
154
+ "schema": "public"
155
+ },
156
+ {
157
+ "isRlsEnabled": false,
158
+ "name": "collections",
159
+ "entityType": "tables",
160
+ "schema": "public"
161
+ },
162
+ {
163
+ "isRlsEnabled": false,
164
+ "name": "instance_members",
165
+ "entityType": "tables",
166
+ "schema": "public"
167
+ },
168
+ {
169
+ "isRlsEnabled": false,
170
+ "name": "instances",
171
+ "entityType": "tables",
172
+ "schema": "public"
173
+ },
174
+ {
175
+ "isRlsEnabled": false,
176
+ "name": "key_versions",
177
+ "entityType": "tables",
178
+ "schema": "public"
179
+ },
180
+ {
181
+ "isRlsEnabled": false,
182
+ "name": "keys",
183
+ "entityType": "tables",
184
+ "schema": "public"
185
+ },
186
+ {
187
+ "isRlsEnabled": false,
188
+ "name": "local_actor_keys",
189
+ "entityType": "tables",
190
+ "schema": "public"
191
+ },
192
+ {
193
+ "isRlsEnabled": false,
194
+ "name": "local_actors",
195
+ "entityType": "tables",
196
+ "schema": "public"
197
+ },
198
+ {
199
+ "isRlsEnabled": false,
200
+ "name": "local_instances",
201
+ "entityType": "tables",
202
+ "schema": "public"
203
+ },
204
+ {
205
+ "isRlsEnabled": false,
206
+ "name": "login_challenges",
207
+ "entityType": "tables",
208
+ "schema": "public"
209
+ },
210
+ {
211
+ "isRlsEnabled": false,
212
+ "name": "objects",
213
+ "entityType": "tables",
214
+ "schema": "public"
215
+ },
216
+ {
217
+ "isRlsEnabled": false,
218
+ "name": "resources",
219
+ "entityType": "tables",
220
+ "schema": "public"
221
+ },
222
+ {
223
+ "isRlsEnabled": false,
224
+ "name": "sessions",
225
+ "entityType": "tables",
226
+ "schema": "public"
227
+ },
228
+ {
229
+ "type": "uuid",
230
+ "typeSchema": null,
231
+ "notNull": true,
232
+ "dimensions": 0,
233
+ "default": null,
234
+ "generated": null,
235
+ "identity": null,
236
+ "name": "id",
237
+ "entityType": "columns",
238
+ "schema": "public",
239
+ "table": "accounts"
240
+ },
241
+ {
242
+ "type": "varchar(255)",
243
+ "typeSchema": null,
244
+ "notNull": true,
245
+ "dimensions": 0,
246
+ "default": null,
247
+ "generated": null,
248
+ "identity": null,
249
+ "name": "email",
250
+ "entityType": "columns",
251
+ "schema": "public",
252
+ "table": "accounts"
253
+ },
254
+ {
255
+ "type": "varchar(100)",
256
+ "typeSchema": null,
257
+ "notNull": true,
258
+ "dimensions": 0,
259
+ "default": null,
260
+ "generated": null,
261
+ "identity": null,
262
+ "name": "name",
263
+ "entityType": "columns",
264
+ "schema": "public",
265
+ "table": "accounts"
266
+ },
267
+ {
268
+ "type": "integer",
269
+ "typeSchema": null,
270
+ "notNull": true,
271
+ "dimensions": 0,
272
+ "default": "10",
273
+ "generated": null,
274
+ "identity": null,
275
+ "name": "max_instances",
276
+ "entityType": "columns",
277
+ "schema": "public",
278
+ "table": "accounts"
279
+ },
280
+ {
281
+ "type": "boolean",
282
+ "typeSchema": null,
283
+ "notNull": true,
284
+ "dimensions": 0,
285
+ "default": "false",
286
+ "generated": null,
287
+ "identity": null,
288
+ "name": "admin",
289
+ "entityType": "columns",
290
+ "schema": "public",
291
+ "table": "accounts"
292
+ },
293
+ {
294
+ "type": "timestamp with time zone",
295
+ "typeSchema": null,
296
+ "notNull": true,
297
+ "dimensions": 0,
298
+ "default": "CURRENT_TIMESTAMP",
299
+ "generated": null,
300
+ "identity": null,
301
+ "name": "created",
302
+ "entityType": "columns",
303
+ "schema": "public",
304
+ "table": "accounts"
305
+ },
306
+ {
307
+ "type": "uuid",
308
+ "typeSchema": null,
309
+ "notNull": true,
310
+ "dimensions": 0,
311
+ "default": null,
312
+ "generated": null,
313
+ "identity": null,
314
+ "name": "id",
315
+ "entityType": "columns",
316
+ "schema": "public",
317
+ "table": "activities"
318
+ },
319
+ {
320
+ "type": "activity_type",
321
+ "typeSchema": "public",
322
+ "notNull": true,
323
+ "dimensions": 0,
324
+ "default": null,
325
+ "generated": null,
326
+ "identity": null,
327
+ "name": "type",
328
+ "entityType": "columns",
329
+ "schema": "public",
330
+ "table": "activities"
331
+ },
332
+ {
333
+ "type": "uuid",
334
+ "typeSchema": null,
335
+ "notNull": true,
336
+ "dimensions": 0,
337
+ "default": null,
338
+ "generated": null,
339
+ "identity": null,
340
+ "name": "actor_id",
341
+ "entityType": "columns",
342
+ "schema": "public",
343
+ "table": "activities"
344
+ },
345
+ {
346
+ "type": "uuid",
347
+ "typeSchema": null,
348
+ "notNull": false,
349
+ "dimensions": 0,
350
+ "default": null,
351
+ "generated": null,
352
+ "identity": null,
353
+ "name": "object_id",
354
+ "entityType": "columns",
355
+ "schema": "public",
356
+ "table": "activities"
357
+ },
358
+ {
359
+ "type": "timestamp with time zone",
360
+ "typeSchema": null,
361
+ "notNull": true,
362
+ "dimensions": 0,
363
+ "default": null,
364
+ "generated": null,
365
+ "identity": null,
366
+ "name": "published",
367
+ "entityType": "columns",
368
+ "schema": "public",
369
+ "table": "activities"
370
+ },
371
+ {
372
+ "type": "json",
373
+ "typeSchema": null,
374
+ "notNull": false,
375
+ "dimensions": 0,
376
+ "default": null,
377
+ "generated": null,
378
+ "identity": null,
379
+ "name": "document",
380
+ "entityType": "columns",
381
+ "schema": "public",
382
+ "table": "activities"
383
+ },
384
+ {
385
+ "type": "timestamp with time zone",
386
+ "typeSchema": null,
387
+ "notNull": true,
388
+ "dimensions": 0,
389
+ "default": "CURRENT_TIMESTAMP",
390
+ "generated": null,
391
+ "identity": null,
392
+ "name": "created",
393
+ "entityType": "columns",
394
+ "schema": "public",
395
+ "table": "activities"
396
+ },
397
+ {
398
+ "type": "uuid",
399
+ "typeSchema": null,
400
+ "notNull": true,
401
+ "dimensions": 0,
402
+ "default": null,
403
+ "generated": null,
404
+ "identity": null,
405
+ "name": "id",
406
+ "entityType": "columns",
407
+ "schema": "public",
408
+ "table": "activity_deliveries"
409
+ },
410
+ {
411
+ "type": "uuid",
412
+ "typeSchema": null,
413
+ "notNull": true,
414
+ "dimensions": 0,
415
+ "default": null,
416
+ "generated": null,
417
+ "identity": null,
418
+ "name": "instance_id",
419
+ "entityType": "columns",
420
+ "schema": "public",
421
+ "table": "activity_deliveries"
422
+ },
423
+ {
424
+ "type": "uuid",
425
+ "typeSchema": null,
426
+ "notNull": false,
427
+ "dimensions": 0,
428
+ "default": null,
429
+ "generated": null,
430
+ "identity": null,
431
+ "name": "actor_id",
432
+ "entityType": "columns",
433
+ "schema": "public",
434
+ "table": "activity_deliveries"
435
+ },
436
+ {
437
+ "type": "activity_delivery_direction",
438
+ "typeSchema": "public",
439
+ "notNull": true,
440
+ "dimensions": 0,
441
+ "default": null,
442
+ "generated": null,
443
+ "identity": null,
444
+ "name": "direction",
445
+ "entityType": "columns",
446
+ "schema": "public",
447
+ "table": "activity_deliveries"
448
+ },
449
+ {
450
+ "type": "activity_delivery_status",
451
+ "typeSchema": "public",
452
+ "notNull": true,
453
+ "dimensions": 0,
454
+ "default": null,
455
+ "generated": null,
456
+ "identity": null,
457
+ "name": "status",
458
+ "entityType": "columns",
459
+ "schema": "public",
460
+ "table": "activity_deliveries"
461
+ },
462
+ {
463
+ "type": "activity_delivery_verification_mechanism",
464
+ "typeSchema": "public",
465
+ "notNull": false,
466
+ "dimensions": 0,
467
+ "default": null,
468
+ "generated": null,
469
+ "identity": null,
470
+ "name": "verification_mechanism",
471
+ "entityType": "columns",
472
+ "schema": "public",
473
+ "table": "activity_deliveries"
474
+ },
475
+ {
476
+ "type": "activity_delivery_verification_result",
477
+ "typeSchema": "public",
478
+ "notNull": false,
479
+ "dimensions": 0,
480
+ "default": null,
481
+ "generated": null,
482
+ "identity": null,
483
+ "name": "verification_result",
484
+ "entityType": "columns",
485
+ "schema": "public",
486
+ "table": "activity_deliveries"
487
+ },
488
+ {
489
+ "type": "text",
490
+ "typeSchema": null,
491
+ "notNull": false,
492
+ "dimensions": 0,
493
+ "default": null,
494
+ "generated": null,
495
+ "identity": null,
496
+ "name": "type",
497
+ "entityType": "columns",
498
+ "schema": "public",
499
+ "table": "activity_deliveries"
500
+ },
501
+ {
502
+ "type": "text",
503
+ "typeSchema": null,
504
+ "notNull": true,
505
+ "dimensions": 1,
506
+ "default": "'{}'",
507
+ "generated": null,
508
+ "identity": null,
509
+ "name": "types",
510
+ "entityType": "columns",
511
+ "schema": "public",
512
+ "table": "activity_deliveries"
513
+ },
514
+ {
515
+ "type": "text",
516
+ "typeSchema": null,
517
+ "notNull": false,
518
+ "dimensions": 0,
519
+ "default": null,
520
+ "generated": null,
521
+ "identity": null,
522
+ "name": "activity_iri",
523
+ "entityType": "columns",
524
+ "schema": "public",
525
+ "table": "activity_deliveries"
526
+ },
527
+ {
528
+ "type": "uuid",
529
+ "typeSchema": null,
530
+ "notNull": false,
531
+ "dimensions": 0,
532
+ "default": null,
533
+ "generated": null,
534
+ "identity": null,
535
+ "name": "activity_id",
536
+ "entityType": "columns",
537
+ "schema": "public",
538
+ "table": "activity_deliveries"
539
+ },
540
+ {
541
+ "type": "boolean",
542
+ "typeSchema": null,
543
+ "notNull": true,
544
+ "dimensions": 0,
545
+ "default": "false",
546
+ "generated": null,
547
+ "identity": null,
548
+ "name": "carried_snapshot",
549
+ "entityType": "columns",
550
+ "schema": "public",
551
+ "table": "activity_deliveries"
552
+ },
553
+ {
554
+ "type": "jsonb",
555
+ "typeSchema": null,
556
+ "notNull": false,
557
+ "dimensions": 0,
558
+ "default": null,
559
+ "generated": null,
560
+ "identity": null,
561
+ "name": "fetched_object",
562
+ "entityType": "columns",
563
+ "schema": "public",
564
+ "table": "activity_deliveries"
565
+ },
566
+ {
567
+ "type": "boolean",
568
+ "typeSchema": null,
569
+ "notNull": true,
570
+ "dimensions": 0,
571
+ "default": "false",
572
+ "generated": null,
573
+ "identity": null,
574
+ "name": "carried_object_snapshot",
575
+ "entityType": "columns",
576
+ "schema": "public",
577
+ "table": "activity_deliveries"
578
+ },
579
+ {
580
+ "type": "text",
581
+ "typeSchema": null,
582
+ "notNull": false,
583
+ "dimensions": 0,
584
+ "default": null,
585
+ "generated": null,
586
+ "identity": null,
587
+ "name": "object_type",
588
+ "entityType": "columns",
589
+ "schema": "public",
590
+ "table": "activity_deliveries"
591
+ },
592
+ {
593
+ "type": "text",
594
+ "typeSchema": null,
595
+ "notNull": false,
596
+ "dimensions": 0,
597
+ "default": null,
598
+ "generated": null,
599
+ "identity": null,
600
+ "name": "object_iri",
601
+ "entityType": "columns",
602
+ "schema": "public",
603
+ "table": "activity_deliveries"
604
+ },
605
+ {
606
+ "type": "text",
607
+ "typeSchema": null,
608
+ "notNull": false,
609
+ "dimensions": 0,
610
+ "default": null,
611
+ "generated": null,
612
+ "identity": null,
613
+ "name": "signed_key_iri",
614
+ "entityType": "columns",
615
+ "schema": "public",
616
+ "table": "activity_deliveries"
617
+ },
618
+ {
619
+ "type": "uuid",
620
+ "typeSchema": null,
621
+ "notNull": false,
622
+ "dimensions": 0,
623
+ "default": null,
624
+ "generated": null,
625
+ "identity": null,
626
+ "name": "verification_key_id",
627
+ "entityType": "columns",
628
+ "schema": "public",
629
+ "table": "activity_deliveries"
630
+ },
631
+ {
632
+ "type": "text",
633
+ "typeSchema": null,
634
+ "notNull": false,
635
+ "dimensions": 0,
636
+ "default": null,
637
+ "generated": null,
638
+ "identity": null,
639
+ "name": "remote_actor_iri",
640
+ "entityType": "columns",
641
+ "schema": "public",
642
+ "table": "activity_deliveries"
643
+ },
644
+ {
645
+ "type": "text",
646
+ "typeSchema": null,
647
+ "notNull": false,
648
+ "dimensions": 0,
649
+ "default": null,
650
+ "generated": null,
651
+ "identity": null,
652
+ "name": "remote_host",
653
+ "entityType": "columns",
654
+ "schema": "public",
655
+ "table": "activity_deliveries"
656
+ },
657
+ {
658
+ "type": "text",
659
+ "typeSchema": null,
660
+ "notNull": true,
661
+ "dimensions": 0,
662
+ "default": null,
663
+ "generated": null,
664
+ "identity": null,
665
+ "name": "inbox_url",
666
+ "entityType": "columns",
667
+ "schema": "public",
668
+ "table": "activity_deliveries"
669
+ },
670
+ {
671
+ "type": "text",
672
+ "typeSchema": null,
673
+ "notNull": false,
674
+ "dimensions": 0,
675
+ "default": null,
676
+ "generated": null,
677
+ "identity": null,
678
+ "name": "request_url",
679
+ "entityType": "columns",
680
+ "schema": "public",
681
+ "table": "activity_deliveries"
682
+ },
683
+ {
684
+ "type": "jsonb",
685
+ "typeSchema": null,
686
+ "notNull": false,
687
+ "dimensions": 0,
688
+ "default": null,
689
+ "generated": null,
690
+ "identity": null,
691
+ "name": "headers",
692
+ "entityType": "columns",
693
+ "schema": "public",
694
+ "table": "activity_deliveries"
695
+ },
696
+ {
697
+ "type": "bytea",
698
+ "typeSchema": null,
699
+ "notNull": false,
700
+ "dimensions": 0,
701
+ "default": null,
702
+ "generated": null,
703
+ "identity": null,
704
+ "name": "body",
705
+ "entityType": "columns",
706
+ "schema": "public",
707
+ "table": "activity_deliveries"
708
+ },
709
+ {
710
+ "type": "integer",
711
+ "typeSchema": null,
712
+ "notNull": false,
713
+ "dimensions": 0,
714
+ "default": null,
715
+ "generated": null,
716
+ "identity": null,
717
+ "name": "status_code",
718
+ "entityType": "columns",
719
+ "schema": "public",
720
+ "table": "activity_deliveries"
721
+ },
722
+ {
723
+ "type": "text",
724
+ "typeSchema": null,
725
+ "notNull": false,
726
+ "dimensions": 0,
727
+ "default": null,
728
+ "generated": null,
729
+ "identity": null,
730
+ "name": "response_body",
731
+ "entityType": "columns",
732
+ "schema": "public",
733
+ "table": "activity_deliveries"
734
+ },
735
+ {
736
+ "type": "text",
737
+ "typeSchema": null,
738
+ "notNull": false,
739
+ "dimensions": 0,
740
+ "default": null,
741
+ "generated": null,
742
+ "identity": null,
743
+ "name": "error",
744
+ "entityType": "columns",
745
+ "schema": "public",
746
+ "table": "activity_deliveries"
747
+ },
748
+ {
749
+ "type": "jsonb",
750
+ "typeSchema": null,
751
+ "notNull": false,
752
+ "dimensions": 0,
753
+ "default": null,
754
+ "generated": null,
755
+ "identity": null,
756
+ "name": "payload",
757
+ "entityType": "columns",
758
+ "schema": "public",
759
+ "table": "activity_deliveries"
760
+ },
761
+ {
762
+ "type": "text",
763
+ "typeSchema": null,
764
+ "notNull": true,
765
+ "dimensions": 1,
766
+ "default": "'{}'",
767
+ "generated": null,
768
+ "identity": null,
769
+ "name": "recipient_iris",
770
+ "entityType": "columns",
771
+ "schema": "public",
772
+ "table": "activity_deliveries"
773
+ },
774
+ {
775
+ "type": "timestamp with time zone",
776
+ "typeSchema": null,
777
+ "notNull": true,
778
+ "dimensions": 0,
779
+ "default": "CURRENT_TIMESTAMP",
780
+ "generated": null,
781
+ "identity": null,
782
+ "name": "created",
783
+ "entityType": "columns",
784
+ "schema": "public",
785
+ "table": "activity_deliveries"
786
+ },
787
+ {
788
+ "type": "timestamp with time zone",
789
+ "typeSchema": null,
790
+ "notNull": false,
791
+ "dimensions": 0,
792
+ "default": null,
793
+ "generated": null,
794
+ "identity": null,
795
+ "name": "completed",
796
+ "entityType": "columns",
797
+ "schema": "public",
798
+ "table": "activity_deliveries"
799
+ },
800
+ {
801
+ "type": "uuid",
802
+ "typeSchema": null,
803
+ "notNull": true,
804
+ "dimensions": 0,
805
+ "default": null,
806
+ "generated": null,
807
+ "identity": null,
808
+ "name": "delivery_id",
809
+ "entityType": "columns",
810
+ "schema": "public",
811
+ "table": "activity_delivery_actor_collections"
812
+ },
813
+ {
814
+ "type": "uuid",
815
+ "typeSchema": null,
816
+ "notNull": true,
817
+ "dimensions": 0,
818
+ "default": null,
819
+ "generated": null,
820
+ "identity": null,
821
+ "name": "actor_id",
822
+ "entityType": "columns",
823
+ "schema": "public",
824
+ "table": "activity_delivery_actor_collections"
825
+ },
826
+ {
827
+ "type": "text",
828
+ "typeSchema": null,
829
+ "notNull": true,
830
+ "dimensions": 0,
831
+ "default": null,
832
+ "generated": null,
833
+ "identity": null,
834
+ "name": "collection_iri",
835
+ "entityType": "columns",
836
+ "schema": "public",
837
+ "table": "activity_delivery_actor_collections"
838
+ },
839
+ {
840
+ "type": "uuid",
841
+ "typeSchema": null,
842
+ "notNull": true,
843
+ "dimensions": 0,
844
+ "default": null,
845
+ "generated": null,
846
+ "identity": null,
847
+ "name": "delivery_id",
848
+ "entityType": "columns",
849
+ "schema": "public",
850
+ "table": "activity_delivery_actors"
851
+ },
852
+ {
853
+ "type": "uuid",
854
+ "typeSchema": null,
855
+ "notNull": true,
856
+ "dimensions": 0,
857
+ "default": null,
858
+ "generated": null,
859
+ "identity": null,
860
+ "name": "actor_id",
861
+ "entityType": "columns",
862
+ "schema": "public",
863
+ "table": "activity_delivery_actors"
864
+ },
865
+ {
866
+ "type": "boolean",
867
+ "typeSchema": null,
868
+ "notNull": true,
869
+ "dimensions": 0,
870
+ "default": "false",
871
+ "generated": null,
872
+ "identity": null,
873
+ "name": "inbox_owner",
874
+ "entityType": "columns",
875
+ "schema": "public",
876
+ "table": "activity_delivery_actors"
877
+ },
878
+ {
879
+ "type": "boolean",
880
+ "typeSchema": null,
881
+ "notNull": true,
882
+ "dimensions": 0,
883
+ "default": "false",
884
+ "generated": null,
885
+ "identity": null,
886
+ "name": "addressed",
887
+ "entityType": "columns",
888
+ "schema": "public",
889
+ "table": "activity_delivery_actors"
890
+ },
891
+ {
892
+ "type": "boolean",
893
+ "typeSchema": null,
894
+ "notNull": true,
895
+ "dimensions": 0,
896
+ "default": "false",
897
+ "generated": null,
898
+ "identity": null,
899
+ "name": "addressed_directly",
900
+ "entityType": "columns",
901
+ "schema": "public",
902
+ "table": "activity_delivery_actors"
903
+ },
904
+ {
905
+ "type": "boolean",
906
+ "typeSchema": null,
907
+ "notNull": true,
908
+ "dimensions": 0,
909
+ "default": "false",
910
+ "generated": null,
911
+ "identity": null,
912
+ "name": "sender",
913
+ "entityType": "columns",
914
+ "schema": "public",
915
+ "table": "activity_delivery_actors"
916
+ },
917
+ {
918
+ "type": "timestamp with time zone",
919
+ "typeSchema": null,
920
+ "notNull": true,
921
+ "dimensions": 0,
922
+ "default": null,
923
+ "generated": null,
924
+ "identity": null,
925
+ "name": "created",
926
+ "entityType": "columns",
927
+ "schema": "public",
928
+ "table": "activity_delivery_actors"
929
+ },
930
+ {
931
+ "type": "uuid",
932
+ "typeSchema": null,
933
+ "notNull": true,
934
+ "dimensions": 0,
935
+ "default": null,
936
+ "generated": null,
937
+ "identity": null,
938
+ "name": "id",
939
+ "entityType": "columns",
940
+ "schema": "public",
941
+ "table": "activity_delivery_attempts"
942
+ },
943
+ {
944
+ "type": "uuid",
945
+ "typeSchema": null,
946
+ "notNull": true,
947
+ "dimensions": 0,
948
+ "default": null,
949
+ "generated": null,
950
+ "identity": null,
951
+ "name": "delivery_id",
952
+ "entityType": "columns",
953
+ "schema": "public",
954
+ "table": "activity_delivery_attempts"
955
+ },
956
+ {
957
+ "type": "boolean",
958
+ "typeSchema": null,
959
+ "notNull": true,
960
+ "dimensions": 0,
961
+ "default": null,
962
+ "generated": null,
963
+ "identity": null,
964
+ "name": "succeeded",
965
+ "entityType": "columns",
966
+ "schema": "public",
967
+ "table": "activity_delivery_attempts"
968
+ },
969
+ {
970
+ "type": "integer",
971
+ "typeSchema": null,
972
+ "notNull": false,
973
+ "dimensions": 0,
974
+ "default": null,
975
+ "generated": null,
976
+ "identity": null,
977
+ "name": "status_code",
978
+ "entityType": "columns",
979
+ "schema": "public",
980
+ "table": "activity_delivery_attempts"
981
+ },
982
+ {
983
+ "type": "text",
984
+ "typeSchema": null,
985
+ "notNull": false,
986
+ "dimensions": 0,
987
+ "default": null,
988
+ "generated": null,
989
+ "identity": null,
990
+ "name": "response_body",
991
+ "entityType": "columns",
992
+ "schema": "public",
993
+ "table": "activity_delivery_attempts"
994
+ },
995
+ {
996
+ "type": "text",
997
+ "typeSchema": null,
998
+ "notNull": false,
999
+ "dimensions": 0,
1000
+ "default": null,
1001
+ "generated": null,
1002
+ "identity": null,
1003
+ "name": "error",
1004
+ "entityType": "columns",
1005
+ "schema": "public",
1006
+ "table": "activity_delivery_attempts"
1007
+ },
1008
+ {
1009
+ "type": "timestamp with time zone",
1010
+ "typeSchema": null,
1011
+ "notNull": true,
1012
+ "dimensions": 0,
1013
+ "default": "CURRENT_TIMESTAMP",
1014
+ "generated": null,
1015
+ "identity": null,
1016
+ "name": "created",
1017
+ "entityType": "columns",
1018
+ "schema": "public",
1019
+ "table": "activity_delivery_attempts"
1020
+ },
1021
+ {
1022
+ "type": "uuid",
1023
+ "typeSchema": null,
1024
+ "notNull": true,
1025
+ "dimensions": 0,
1026
+ "default": null,
1027
+ "generated": null,
1028
+ "identity": null,
1029
+ "name": "actor_id",
1030
+ "entityType": "columns",
1031
+ "schema": "public",
1032
+ "table": "actor_collection_references"
1033
+ },
1034
+ {
1035
+ "type": "collection_role",
1036
+ "typeSchema": "public",
1037
+ "notNull": true,
1038
+ "dimensions": 0,
1039
+ "default": null,
1040
+ "generated": null,
1041
+ "identity": null,
1042
+ "name": "role",
1043
+ "entityType": "columns",
1044
+ "schema": "public",
1045
+ "table": "actor_collection_references"
1046
+ },
1047
+ {
1048
+ "type": "uuid",
1049
+ "typeSchema": null,
1050
+ "notNull": true,
1051
+ "dimensions": 0,
1052
+ "default": null,
1053
+ "generated": null,
1054
+ "identity": null,
1055
+ "name": "collection_id",
1056
+ "entityType": "columns",
1057
+ "schema": "public",
1058
+ "table": "actor_collection_references"
1059
+ },
1060
+ {
1061
+ "type": "uuid",
1062
+ "typeSchema": null,
1063
+ "notNull": true,
1064
+ "dimensions": 0,
1065
+ "default": null,
1066
+ "generated": null,
1067
+ "identity": null,
1068
+ "name": "id",
1069
+ "entityType": "columns",
1070
+ "schema": "public",
1071
+ "table": "actors"
1072
+ },
1073
+ {
1074
+ "type": "uuid",
1075
+ "typeSchema": null,
1076
+ "notNull": false,
1077
+ "dimensions": 0,
1078
+ "default": null,
1079
+ "generated": null,
1080
+ "identity": null,
1081
+ "name": "local_id",
1082
+ "entityType": "columns",
1083
+ "schema": "public",
1084
+ "table": "actors"
1085
+ },
1086
+ {
1087
+ "type": "actor_type",
1088
+ "typeSchema": "public",
1089
+ "notNull": true,
1090
+ "dimensions": 0,
1091
+ "default": null,
1092
+ "generated": null,
1093
+ "identity": null,
1094
+ "name": "type",
1095
+ "entityType": "columns",
1096
+ "schema": "public",
1097
+ "table": "actors"
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "typeSchema": null,
1102
+ "notNull": false,
1103
+ "dimensions": 0,
1104
+ "default": null,
1105
+ "generated": null,
1106
+ "identity": null,
1107
+ "name": "username",
1108
+ "entityType": "columns",
1109
+ "schema": "public",
1110
+ "table": "actors"
1111
+ },
1112
+ {
1113
+ "type": "uuid",
1114
+ "typeSchema": null,
1115
+ "notNull": true,
1116
+ "dimensions": 0,
1117
+ "default": null,
1118
+ "generated": null,
1119
+ "identity": null,
1120
+ "name": "instance_id",
1121
+ "entityType": "columns",
1122
+ "schema": "public",
1123
+ "table": "actors"
1124
+ },
1125
+ {
1126
+ "type": "json",
1127
+ "typeSchema": null,
1128
+ "notNull": false,
1129
+ "dimensions": 0,
1130
+ "default": null,
1131
+ "generated": null,
1132
+ "identity": null,
1133
+ "name": "document",
1134
+ "entityType": "columns",
1135
+ "schema": "public",
1136
+ "table": "actors"
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "typeSchema": null,
1141
+ "notNull": true,
1142
+ "dimensions": 0,
1143
+ "default": null,
1144
+ "generated": null,
1145
+ "identity": null,
1146
+ "name": "inbox_url",
1147
+ "entityType": "columns",
1148
+ "schema": "public",
1149
+ "table": "actors"
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "typeSchema": null,
1154
+ "notNull": false,
1155
+ "dimensions": 0,
1156
+ "default": null,
1157
+ "generated": null,
1158
+ "identity": null,
1159
+ "name": "followers_url",
1160
+ "entityType": "columns",
1161
+ "schema": "public",
1162
+ "table": "actors"
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "typeSchema": null,
1167
+ "notNull": false,
1168
+ "dimensions": 0,
1169
+ "default": null,
1170
+ "generated": null,
1171
+ "identity": null,
1172
+ "name": "profile_url",
1173
+ "entityType": "columns",
1174
+ "schema": "public",
1175
+ "table": "actors"
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "typeSchema": null,
1180
+ "notNull": false,
1181
+ "dimensions": 0,
1182
+ "default": null,
1183
+ "generated": null,
1184
+ "identity": null,
1185
+ "name": "avatar_url",
1186
+ "entityType": "columns",
1187
+ "schema": "public",
1188
+ "table": "actors"
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "typeSchema": null,
1193
+ "notNull": false,
1194
+ "dimensions": 0,
1195
+ "default": null,
1196
+ "generated": null,
1197
+ "identity": null,
1198
+ "name": "header_url",
1199
+ "entityType": "columns",
1200
+ "schema": "public",
1201
+ "table": "actors"
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "typeSchema": null,
1206
+ "notNull": false,
1207
+ "dimensions": 0,
1208
+ "default": null,
1209
+ "generated": null,
1210
+ "identity": null,
1211
+ "name": "name",
1212
+ "entityType": "columns",
1213
+ "schema": "public",
1214
+ "table": "actors"
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "typeSchema": null,
1219
+ "notNull": false,
1220
+ "dimensions": 0,
1221
+ "default": null,
1222
+ "generated": null,
1223
+ "identity": null,
1224
+ "name": "bio_html",
1225
+ "entityType": "columns",
1226
+ "schema": "public",
1227
+ "table": "actors"
1228
+ },
1229
+ {
1230
+ "type": "boolean",
1231
+ "typeSchema": null,
1232
+ "notNull": true,
1233
+ "dimensions": 0,
1234
+ "default": "false",
1235
+ "generated": null,
1236
+ "identity": null,
1237
+ "name": "automatically_approves_followers",
1238
+ "entityType": "columns",
1239
+ "schema": "public",
1240
+ "table": "actors"
1241
+ },
1242
+ {
1243
+ "type": "jsonb",
1244
+ "typeSchema": null,
1245
+ "notNull": true,
1246
+ "dimensions": 0,
1247
+ "default": "'{}'",
1248
+ "generated": null,
1249
+ "identity": null,
1250
+ "name": "field_htmls",
1251
+ "entityType": "columns",
1252
+ "schema": "public",
1253
+ "table": "actors"
1254
+ },
1255
+ {
1256
+ "type": "jsonb",
1257
+ "typeSchema": null,
1258
+ "notNull": true,
1259
+ "dimensions": 0,
1260
+ "default": "'{}'",
1261
+ "generated": null,
1262
+ "identity": null,
1263
+ "name": "emojis",
1264
+ "entityType": "columns",
1265
+ "schema": "public",
1266
+ "table": "actors"
1267
+ },
1268
+ {
1269
+ "type": "jsonb",
1270
+ "typeSchema": null,
1271
+ "notNull": true,
1272
+ "dimensions": 0,
1273
+ "default": "'{}'",
1274
+ "generated": null,
1275
+ "identity": null,
1276
+ "name": "tags",
1277
+ "entityType": "columns",
1278
+ "schema": "public",
1279
+ "table": "actors"
1280
+ },
1281
+ {
1282
+ "type": "boolean",
1283
+ "typeSchema": null,
1284
+ "notNull": true,
1285
+ "dimensions": 0,
1286
+ "default": "false",
1287
+ "generated": null,
1288
+ "identity": null,
1289
+ "name": "sensitive",
1290
+ "entityType": "columns",
1291
+ "schema": "public",
1292
+ "table": "actors"
1293
+ },
1294
+ {
1295
+ "type": "timestamp with time zone",
1296
+ "typeSchema": null,
1297
+ "notNull": false,
1298
+ "dimensions": 0,
1299
+ "default": null,
1300
+ "generated": null,
1301
+ "identity": null,
1302
+ "name": "suspended",
1303
+ "entityType": "columns",
1304
+ "schema": "public",
1305
+ "table": "actors"
1306
+ },
1307
+ {
1308
+ "type": "timestamp with time zone",
1309
+ "typeSchema": null,
1310
+ "notNull": false,
1311
+ "dimensions": 0,
1312
+ "default": null,
1313
+ "generated": null,
1314
+ "identity": null,
1315
+ "name": "suspended_until",
1316
+ "entityType": "columns",
1317
+ "schema": "public",
1318
+ "table": "actors"
1319
+ },
1320
+ {
1321
+ "type": "uuid",
1322
+ "typeSchema": null,
1323
+ "notNull": false,
1324
+ "dimensions": 0,
1325
+ "default": null,
1326
+ "generated": null,
1327
+ "identity": null,
1328
+ "name": "successor_id",
1329
+ "entityType": "columns",
1330
+ "schema": "public",
1331
+ "table": "actors"
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "typeSchema": null,
1336
+ "notNull": true,
1337
+ "dimensions": 1,
1338
+ "default": "(ARRAY[]::text[])",
1339
+ "generated": null,
1340
+ "identity": null,
1341
+ "name": "aliases",
1342
+ "entityType": "columns",
1343
+ "schema": "public",
1344
+ "table": "actors"
1345
+ },
1346
+ {
1347
+ "type": "integer",
1348
+ "typeSchema": null,
1349
+ "notNull": true,
1350
+ "dimensions": 0,
1351
+ "default": "0",
1352
+ "generated": null,
1353
+ "identity": null,
1354
+ "name": "following_count",
1355
+ "entityType": "columns",
1356
+ "schema": "public",
1357
+ "table": "actors"
1358
+ },
1359
+ {
1360
+ "type": "integer",
1361
+ "typeSchema": null,
1362
+ "notNull": true,
1363
+ "dimensions": 0,
1364
+ "default": "0",
1365
+ "generated": null,
1366
+ "identity": null,
1367
+ "name": "followers_count",
1368
+ "entityType": "columns",
1369
+ "schema": "public",
1370
+ "table": "actors"
1371
+ },
1372
+ {
1373
+ "type": "timestamp with time zone",
1374
+ "typeSchema": null,
1375
+ "notNull": true,
1376
+ "dimensions": 0,
1377
+ "default": "CURRENT_TIMESTAMP",
1378
+ "generated": null,
1379
+ "identity": null,
1380
+ "name": "updated",
1381
+ "entityType": "columns",
1382
+ "schema": "public",
1383
+ "table": "actors"
1384
+ },
1385
+ {
1386
+ "type": "timestamp with time zone",
1387
+ "typeSchema": null,
1388
+ "notNull": false,
1389
+ "dimensions": 0,
1390
+ "default": null,
1391
+ "generated": null,
1392
+ "identity": null,
1393
+ "name": "published",
1394
+ "entityType": "columns",
1395
+ "schema": "public",
1396
+ "table": "actors"
1397
+ },
1398
+ {
1399
+ "type": "timestamp with time zone",
1400
+ "typeSchema": null,
1401
+ "notNull": true,
1402
+ "dimensions": 0,
1403
+ "default": "CURRENT_TIMESTAMP",
1404
+ "generated": null,
1405
+ "identity": null,
1406
+ "name": "created",
1407
+ "entityType": "columns",
1408
+ "schema": "public",
1409
+ "table": "actors"
1410
+ },
1411
+ {
1412
+ "type": "timestamp with time zone",
1413
+ "typeSchema": null,
1414
+ "notNull": false,
1415
+ "dimensions": 0,
1416
+ "default": null,
1417
+ "generated": null,
1418
+ "identity": null,
1419
+ "name": "deleted",
1420
+ "entityType": "columns",
1421
+ "schema": "public",
1422
+ "table": "actors"
1423
+ },
1424
+ {
1425
+ "type": "uuid",
1426
+ "typeSchema": null,
1427
+ "notNull": true,
1428
+ "dimensions": 0,
1429
+ "default": null,
1430
+ "generated": null,
1431
+ "identity": null,
1432
+ "name": "id",
1433
+ "entityType": "columns",
1434
+ "schema": "public",
1435
+ "table": "addressing"
1436
+ },
1437
+ {
1438
+ "type": "uuid",
1439
+ "typeSchema": null,
1440
+ "notNull": true,
1441
+ "dimensions": 0,
1442
+ "default": null,
1443
+ "generated": null,
1444
+ "identity": null,
1445
+ "name": "source_id",
1446
+ "entityType": "columns",
1447
+ "schema": "public",
1448
+ "table": "addressing"
1449
+ },
1450
+ {
1451
+ "type": "addressing_property",
1452
+ "typeSchema": "public",
1453
+ "notNull": true,
1454
+ "dimensions": 0,
1455
+ "default": null,
1456
+ "generated": null,
1457
+ "identity": null,
1458
+ "name": "property",
1459
+ "entityType": "columns",
1460
+ "schema": "public",
1461
+ "table": "addressing"
1462
+ },
1463
+ {
1464
+ "type": "integer",
1465
+ "typeSchema": null,
1466
+ "notNull": true,
1467
+ "dimensions": 0,
1468
+ "default": null,
1469
+ "generated": null,
1470
+ "identity": null,
1471
+ "name": "position",
1472
+ "entityType": "columns",
1473
+ "schema": "public",
1474
+ "table": "addressing"
1475
+ },
1476
+ {
1477
+ "type": "uuid",
1478
+ "typeSchema": null,
1479
+ "notNull": true,
1480
+ "dimensions": 0,
1481
+ "default": null,
1482
+ "generated": null,
1483
+ "identity": null,
1484
+ "name": "target_id",
1485
+ "entityType": "columns",
1486
+ "schema": "public",
1487
+ "table": "addressing"
1488
+ },
1489
+ {
1490
+ "type": "uuid",
1491
+ "typeSchema": null,
1492
+ "notNull": true,
1493
+ "dimensions": 0,
1494
+ "default": null,
1495
+ "generated": null,
1496
+ "identity": null,
1497
+ "name": "collection_id",
1498
+ "entityType": "columns",
1499
+ "schema": "public",
1500
+ "table": "collection_items"
1501
+ },
1502
+ {
1503
+ "type": "uuid",
1504
+ "typeSchema": null,
1505
+ "notNull": true,
1506
+ "dimensions": 0,
1507
+ "default": null,
1508
+ "generated": null,
1509
+ "identity": null,
1510
+ "name": "item_id",
1511
+ "entityType": "columns",
1512
+ "schema": "public",
1513
+ "table": "collection_items"
1514
+ },
1515
+ {
1516
+ "type": "integer",
1517
+ "typeSchema": null,
1518
+ "notNull": false,
1519
+ "dimensions": 0,
1520
+ "default": null,
1521
+ "generated": null,
1522
+ "identity": null,
1523
+ "name": "position",
1524
+ "entityType": "columns",
1525
+ "schema": "public",
1526
+ "table": "collection_items"
1527
+ },
1528
+ {
1529
+ "type": "timestamp with time zone",
1530
+ "typeSchema": null,
1531
+ "notNull": true,
1532
+ "dimensions": 0,
1533
+ "default": "CURRENT_TIMESTAMP",
1534
+ "generated": null,
1535
+ "identity": null,
1536
+ "name": "observed",
1537
+ "entityType": "columns",
1538
+ "schema": "public",
1539
+ "table": "collection_items"
1540
+ },
1541
+ {
1542
+ "type": "uuid",
1543
+ "typeSchema": null,
1544
+ "notNull": true,
1545
+ "dimensions": 0,
1546
+ "default": null,
1547
+ "generated": null,
1548
+ "identity": null,
1549
+ "name": "id",
1550
+ "entityType": "columns",
1551
+ "schema": "public",
1552
+ "table": "collections"
1553
+ },
1554
+ {
1555
+ "type": "collection_type",
1556
+ "typeSchema": "public",
1557
+ "notNull": true,
1558
+ "dimensions": 0,
1559
+ "default": null,
1560
+ "generated": null,
1561
+ "identity": null,
1562
+ "name": "type",
1563
+ "entityType": "columns",
1564
+ "schema": "public",
1565
+ "table": "collections"
1566
+ },
1567
+ {
1568
+ "type": "uuid",
1569
+ "typeSchema": null,
1570
+ "notNull": false,
1571
+ "dimensions": 0,
1572
+ "default": null,
1573
+ "generated": null,
1574
+ "identity": null,
1575
+ "name": "owner_actor_id",
1576
+ "entityType": "columns",
1577
+ "schema": "public",
1578
+ "table": "collections"
1579
+ },
1580
+ {
1581
+ "type": "integer",
1582
+ "typeSchema": null,
1583
+ "notNull": false,
1584
+ "dimensions": 0,
1585
+ "default": null,
1586
+ "generated": null,
1587
+ "identity": null,
1588
+ "name": "total_items",
1589
+ "entityType": "columns",
1590
+ "schema": "public",
1591
+ "table": "collections"
1592
+ },
1593
+ {
1594
+ "type": "json",
1595
+ "typeSchema": null,
1596
+ "notNull": false,
1597
+ "dimensions": 0,
1598
+ "default": null,
1599
+ "generated": null,
1600
+ "identity": null,
1601
+ "name": "document",
1602
+ "entityType": "columns",
1603
+ "schema": "public",
1604
+ "table": "collections"
1605
+ },
1606
+ {
1607
+ "type": "timestamp with time zone",
1608
+ "typeSchema": null,
1609
+ "notNull": true,
1610
+ "dimensions": 0,
1611
+ "default": "CURRENT_TIMESTAMP",
1612
+ "generated": null,
1613
+ "identity": null,
1614
+ "name": "updated",
1615
+ "entityType": "columns",
1616
+ "schema": "public",
1617
+ "table": "collections"
1618
+ },
1619
+ {
1620
+ "type": "uuid",
1621
+ "typeSchema": null,
1622
+ "notNull": true,
1623
+ "dimensions": 0,
1624
+ "default": null,
1625
+ "generated": null,
1626
+ "identity": null,
1627
+ "name": "account_id",
1628
+ "entityType": "columns",
1629
+ "schema": "public",
1630
+ "table": "instance_members"
1631
+ },
1632
+ {
1633
+ "type": "uuid",
1634
+ "typeSchema": null,
1635
+ "notNull": true,
1636
+ "dimensions": 0,
1637
+ "default": null,
1638
+ "generated": null,
1639
+ "identity": null,
1640
+ "name": "instance_id",
1641
+ "entityType": "columns",
1642
+ "schema": "public",
1643
+ "table": "instance_members"
1644
+ },
1645
+ {
1646
+ "type": "boolean",
1647
+ "typeSchema": null,
1648
+ "notNull": true,
1649
+ "dimensions": 0,
1650
+ "default": "false",
1651
+ "generated": null,
1652
+ "identity": null,
1653
+ "name": "admin",
1654
+ "entityType": "columns",
1655
+ "schema": "public",
1656
+ "table": "instance_members"
1657
+ },
1658
+ {
1659
+ "type": "timestamp with time zone",
1660
+ "typeSchema": null,
1661
+ "notNull": false,
1662
+ "dimensions": 0,
1663
+ "default": null,
1664
+ "generated": null,
1665
+ "identity": null,
1666
+ "name": "accepted",
1667
+ "entityType": "columns",
1668
+ "schema": "public",
1669
+ "table": "instance_members"
1670
+ },
1671
+ {
1672
+ "type": "timestamp with time zone",
1673
+ "typeSchema": null,
1674
+ "notNull": true,
1675
+ "dimensions": 0,
1676
+ "default": "CURRENT_TIMESTAMP",
1677
+ "generated": null,
1678
+ "identity": null,
1679
+ "name": "created",
1680
+ "entityType": "columns",
1681
+ "schema": "public",
1682
+ "table": "instance_members"
1683
+ },
1684
+ {
1685
+ "type": "uuid",
1686
+ "typeSchema": null,
1687
+ "notNull": true,
1688
+ "dimensions": 0,
1689
+ "default": null,
1690
+ "generated": null,
1691
+ "identity": null,
1692
+ "name": "id",
1693
+ "entityType": "columns",
1694
+ "schema": "public",
1695
+ "table": "instances"
1696
+ },
1697
+ {
1698
+ "type": "uuid",
1699
+ "typeSchema": null,
1700
+ "notNull": false,
1701
+ "dimensions": 0,
1702
+ "default": null,
1703
+ "generated": null,
1704
+ "identity": null,
1705
+ "name": "local_id",
1706
+ "entityType": "columns",
1707
+ "schema": "public",
1708
+ "table": "instances"
1709
+ },
1710
+ {
1711
+ "type": "timestamp with time zone",
1712
+ "typeSchema": null,
1713
+ "notNull": true,
1714
+ "dimensions": 0,
1715
+ "default": "CURRENT_TIMESTAMP",
1716
+ "generated": null,
1717
+ "identity": null,
1718
+ "name": "created",
1719
+ "entityType": "columns",
1720
+ "schema": "public",
1721
+ "table": "instances"
1722
+ },
1723
+ {
1724
+ "type": "varchar(259)",
1725
+ "typeSchema": null,
1726
+ "notNull": true,
1727
+ "dimensions": 0,
1728
+ "default": null,
1729
+ "generated": null,
1730
+ "identity": null,
1731
+ "name": "host",
1732
+ "entityType": "columns",
1733
+ "schema": "public",
1734
+ "table": "instances"
1735
+ },
1736
+ {
1737
+ "type": "text",
1738
+ "typeSchema": null,
1739
+ "notNull": false,
1740
+ "dimensions": 0,
1741
+ "default": null,
1742
+ "generated": null,
1743
+ "identity": null,
1744
+ "name": "node_info_url",
1745
+ "entityType": "columns",
1746
+ "schema": "public",
1747
+ "table": "instances"
1748
+ },
1749
+ {
1750
+ "type": "text",
1751
+ "typeSchema": null,
1752
+ "notNull": false,
1753
+ "dimensions": 0,
1754
+ "default": null,
1755
+ "generated": null,
1756
+ "identity": null,
1757
+ "name": "software",
1758
+ "entityType": "columns",
1759
+ "schema": "public",
1760
+ "table": "instances"
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "typeSchema": null,
1765
+ "notNull": false,
1766
+ "dimensions": 0,
1767
+ "default": null,
1768
+ "generated": null,
1769
+ "identity": null,
1770
+ "name": "software_version",
1771
+ "entityType": "columns",
1772
+ "schema": "public",
1773
+ "table": "instances"
1774
+ },
1775
+ {
1776
+ "type": "uuid",
1777
+ "typeSchema": null,
1778
+ "notNull": true,
1779
+ "dimensions": 0,
1780
+ "default": null,
1781
+ "generated": null,
1782
+ "identity": null,
1783
+ "name": "id",
1784
+ "entityType": "columns",
1785
+ "schema": "public",
1786
+ "table": "key_versions"
1787
+ },
1788
+ {
1789
+ "type": "uuid",
1790
+ "typeSchema": null,
1791
+ "notNull": true,
1792
+ "dimensions": 0,
1793
+ "default": null,
1794
+ "generated": null,
1795
+ "identity": null,
1796
+ "name": "key_id",
1797
+ "entityType": "columns",
1798
+ "schema": "public",
1799
+ "table": "key_versions"
1800
+ },
1801
+ {
1802
+ "type": "jsonb",
1803
+ "typeSchema": null,
1804
+ "notNull": true,
1805
+ "dimensions": 0,
1806
+ "default": null,
1807
+ "generated": null,
1808
+ "identity": null,
1809
+ "name": "public_key",
1810
+ "entityType": "columns",
1811
+ "schema": "public",
1812
+ "table": "key_versions"
1813
+ },
1814
+ {
1815
+ "type": "text",
1816
+ "typeSchema": null,
1817
+ "notNull": true,
1818
+ "dimensions": 0,
1819
+ "default": null,
1820
+ "generated": null,
1821
+ "identity": null,
1822
+ "name": "fingerprint",
1823
+ "entityType": "columns",
1824
+ "schema": "public",
1825
+ "table": "key_versions"
1826
+ },
1827
+ {
1828
+ "type": "timestamp with time zone",
1829
+ "typeSchema": null,
1830
+ "notNull": true,
1831
+ "dimensions": 0,
1832
+ "default": null,
1833
+ "generated": null,
1834
+ "identity": null,
1835
+ "name": "first_seen",
1836
+ "entityType": "columns",
1837
+ "schema": "public",
1838
+ "table": "key_versions"
1839
+ },
1840
+ {
1841
+ "type": "timestamp with time zone",
1842
+ "typeSchema": null,
1843
+ "notNull": true,
1844
+ "dimensions": 0,
1845
+ "default": null,
1846
+ "generated": null,
1847
+ "identity": null,
1848
+ "name": "last_seen",
1849
+ "entityType": "columns",
1850
+ "schema": "public",
1851
+ "table": "key_versions"
1852
+ },
1853
+ {
1854
+ "type": "uuid",
1855
+ "typeSchema": null,
1856
+ "notNull": true,
1857
+ "dimensions": 0,
1858
+ "default": null,
1859
+ "generated": null,
1860
+ "identity": null,
1861
+ "name": "id",
1862
+ "entityType": "columns",
1863
+ "schema": "public",
1864
+ "table": "keys"
1865
+ },
1866
+ {
1867
+ "type": "text",
1868
+ "typeSchema": null,
1869
+ "notNull": true,
1870
+ "dimensions": 0,
1871
+ "default": null,
1872
+ "generated": null,
1873
+ "identity": null,
1874
+ "name": "iri",
1875
+ "entityType": "columns",
1876
+ "schema": "public",
1877
+ "table": "keys"
1878
+ },
1879
+ {
1880
+ "type": "timestamp with time zone",
1881
+ "typeSchema": null,
1882
+ "notNull": true,
1883
+ "dimensions": 0,
1884
+ "default": "CURRENT_TIMESTAMP",
1885
+ "generated": null,
1886
+ "identity": null,
1887
+ "name": "created",
1888
+ "entityType": "columns",
1889
+ "schema": "public",
1890
+ "table": "keys"
1891
+ },
1892
+ {
1893
+ "type": "uuid",
1894
+ "typeSchema": null,
1895
+ "notNull": true,
1896
+ "dimensions": 0,
1897
+ "default": null,
1898
+ "generated": null,
1899
+ "identity": null,
1900
+ "name": "local_actor_id",
1901
+ "entityType": "columns",
1902
+ "schema": "public",
1903
+ "table": "local_actor_keys"
1904
+ },
1905
+ {
1906
+ "type": "local_actor_key_type",
1907
+ "typeSchema": "public",
1908
+ "notNull": true,
1909
+ "dimensions": 0,
1910
+ "default": null,
1911
+ "generated": null,
1912
+ "identity": null,
1913
+ "name": "type",
1914
+ "entityType": "columns",
1915
+ "schema": "public",
1916
+ "table": "local_actor_keys"
1917
+ },
1918
+ {
1919
+ "type": "jsonb",
1920
+ "typeSchema": null,
1921
+ "notNull": true,
1922
+ "dimensions": 0,
1923
+ "default": null,
1924
+ "generated": null,
1925
+ "identity": null,
1926
+ "name": "public_key",
1927
+ "entityType": "columns",
1928
+ "schema": "public",
1929
+ "table": "local_actor_keys"
1930
+ },
1931
+ {
1932
+ "type": "jsonb",
1933
+ "typeSchema": null,
1934
+ "notNull": true,
1935
+ "dimensions": 0,
1936
+ "default": null,
1937
+ "generated": null,
1938
+ "identity": null,
1939
+ "name": "private_key",
1940
+ "entityType": "columns",
1941
+ "schema": "public",
1942
+ "table": "local_actor_keys"
1943
+ },
1944
+ {
1945
+ "type": "uuid",
1946
+ "typeSchema": null,
1947
+ "notNull": true,
1948
+ "dimensions": 0,
1949
+ "default": null,
1950
+ "generated": null,
1951
+ "identity": null,
1952
+ "name": "id",
1953
+ "entityType": "columns",
1954
+ "schema": "public",
1955
+ "table": "local_actors"
1956
+ },
1957
+ {
1958
+ "type": "text",
1959
+ "typeSchema": null,
1960
+ "notNull": false,
1961
+ "dimensions": 0,
1962
+ "default": null,
1963
+ "generated": null,
1964
+ "identity": null,
1965
+ "name": "avatar",
1966
+ "entityType": "columns",
1967
+ "schema": "public",
1968
+ "table": "local_actors"
1969
+ },
1970
+ {
1971
+ "type": "text",
1972
+ "typeSchema": null,
1973
+ "notNull": false,
1974
+ "dimensions": 0,
1975
+ "default": null,
1976
+ "generated": null,
1977
+ "identity": null,
1978
+ "name": "header",
1979
+ "entityType": "columns",
1980
+ "schema": "public",
1981
+ "table": "local_actors"
1982
+ },
1983
+ {
1984
+ "type": "uuid",
1985
+ "typeSchema": null,
1986
+ "notNull": true,
1987
+ "dimensions": 0,
1988
+ "default": null,
1989
+ "generated": null,
1990
+ "identity": null,
1991
+ "name": "id",
1992
+ "entityType": "columns",
1993
+ "schema": "public",
1994
+ "table": "local_instances"
1995
+ },
1996
+ {
1997
+ "type": "varchar(63)",
1998
+ "typeSchema": null,
1999
+ "notNull": true,
2000
+ "dimensions": 0,
2001
+ "default": null,
2002
+ "generated": null,
2003
+ "identity": null,
2004
+ "name": "slug",
2005
+ "entityType": "columns",
2006
+ "schema": "public",
2007
+ "table": "local_instances"
2008
+ },
2009
+ {
2010
+ "type": "timestamp with time zone",
2011
+ "typeSchema": null,
2012
+ "notNull": true,
2013
+ "dimensions": 0,
2014
+ "default": null,
2015
+ "generated": null,
2016
+ "identity": null,
2017
+ "name": "expires",
2018
+ "entityType": "columns",
2019
+ "schema": "public",
2020
+ "table": "local_instances"
2021
+ },
2022
+ {
2023
+ "type": "integer",
2024
+ "typeSchema": null,
2025
+ "notNull": true,
2026
+ "dimensions": 0,
2027
+ "default": "10",
2028
+ "generated": null,
2029
+ "identity": null,
2030
+ "name": "max_actors",
2031
+ "entityType": "columns",
2032
+ "schema": "public",
2033
+ "table": "local_instances"
2034
+ },
2035
+ {
2036
+ "type": "uuid",
2037
+ "typeSchema": null,
2038
+ "notNull": true,
2039
+ "dimensions": 0,
2040
+ "default": null,
2041
+ "generated": null,
2042
+ "identity": null,
2043
+ "name": "id",
2044
+ "entityType": "columns",
2045
+ "schema": "public",
2046
+ "table": "login_challenges"
2047
+ },
2048
+ {
2049
+ "type": "uuid",
2050
+ "typeSchema": null,
2051
+ "notNull": true,
2052
+ "dimensions": 0,
2053
+ "default": null,
2054
+ "generated": null,
2055
+ "identity": null,
2056
+ "name": "account_id",
2057
+ "entityType": "columns",
2058
+ "schema": "public",
2059
+ "table": "login_challenges"
2060
+ },
2061
+ {
2062
+ "type": "char(6)",
2063
+ "typeSchema": null,
2064
+ "notNull": true,
2065
+ "dimensions": 0,
2066
+ "default": null,
2067
+ "generated": null,
2068
+ "identity": null,
2069
+ "name": "code",
2070
+ "entityType": "columns",
2071
+ "schema": "public",
2072
+ "table": "login_challenges"
2073
+ },
2074
+ {
2075
+ "type": "timestamp with time zone",
2076
+ "typeSchema": null,
2077
+ "notNull": true,
2078
+ "dimensions": 0,
2079
+ "default": "CURRENT_TIMESTAMP",
2080
+ "generated": null,
2081
+ "identity": null,
2082
+ "name": "created",
2083
+ "entityType": "columns",
2084
+ "schema": "public",
2085
+ "table": "login_challenges"
2086
+ },
2087
+ {
2088
+ "type": "timestamp with time zone",
2089
+ "typeSchema": null,
2090
+ "notNull": true,
2091
+ "dimensions": 0,
2092
+ "default": "CURRENT_TIMESTAMP + INTERVAL '15 minutes'",
2093
+ "generated": null,
2094
+ "identity": null,
2095
+ "name": "expires",
2096
+ "entityType": "columns",
2097
+ "schema": "public",
2098
+ "table": "login_challenges"
2099
+ },
2100
+ {
2101
+ "type": "timestamp with time zone",
2102
+ "typeSchema": null,
2103
+ "notNull": false,
2104
+ "dimensions": 0,
2105
+ "default": null,
2106
+ "generated": null,
2107
+ "identity": null,
2108
+ "name": "consumed",
2109
+ "entityType": "columns",
2110
+ "schema": "public",
2111
+ "table": "login_challenges"
2112
+ },
2113
+ {
2114
+ "type": "uuid",
2115
+ "typeSchema": null,
2116
+ "notNull": true,
2117
+ "dimensions": 0,
2118
+ "default": null,
2119
+ "generated": null,
2120
+ "identity": null,
2121
+ "name": "id",
2122
+ "entityType": "columns",
2123
+ "schema": "public",
2124
+ "table": "objects"
2125
+ },
2126
+ {
2127
+ "type": "uuid",
2128
+ "typeSchema": null,
2129
+ "notNull": true,
2130
+ "dimensions": 0,
2131
+ "default": null,
2132
+ "generated": null,
2133
+ "identity": null,
2134
+ "name": "actor_id",
2135
+ "entityType": "columns",
2136
+ "schema": "public",
2137
+ "table": "objects"
2138
+ },
2139
+ {
2140
+ "type": "uuid",
2141
+ "typeSchema": null,
2142
+ "notNull": false,
2143
+ "dimensions": 0,
2144
+ "default": null,
2145
+ "generated": null,
2146
+ "identity": null,
2147
+ "name": "activity_id",
2148
+ "entityType": "columns",
2149
+ "schema": "public",
2150
+ "table": "objects"
2151
+ },
2152
+ {
2153
+ "type": "boolean",
2154
+ "typeSchema": null,
2155
+ "notNull": true,
2156
+ "dimensions": 0,
2157
+ "default": "false",
2158
+ "generated": null,
2159
+ "identity": null,
2160
+ "name": "fetched",
2161
+ "entityType": "columns",
2162
+ "schema": "public",
2163
+ "table": "objects"
2164
+ },
2165
+ {
2166
+ "type": "object_type",
2167
+ "typeSchema": "public",
2168
+ "notNull": true,
2169
+ "dimensions": 0,
2170
+ "default": null,
2171
+ "generated": null,
2172
+ "identity": null,
2173
+ "name": "type",
2174
+ "entityType": "columns",
2175
+ "schema": "public",
2176
+ "table": "objects"
2177
+ },
2178
+ {
2179
+ "type": "json",
2180
+ "typeSchema": null,
2181
+ "notNull": false,
2182
+ "dimensions": 0,
2183
+ "default": null,
2184
+ "generated": null,
2185
+ "identity": null,
2186
+ "name": "document",
2187
+ "entityType": "columns",
2188
+ "schema": "public",
2189
+ "table": "objects"
2190
+ },
2191
+ {
2192
+ "type": "text",
2193
+ "typeSchema": null,
2194
+ "notNull": false,
2195
+ "dimensions": 0,
2196
+ "default": null,
2197
+ "generated": null,
2198
+ "identity": null,
2199
+ "name": "url",
2200
+ "entityType": "columns",
2201
+ "schema": "public",
2202
+ "table": "objects"
2203
+ },
2204
+ {
2205
+ "type": "text",
2206
+ "typeSchema": null,
2207
+ "notNull": false,
2208
+ "dimensions": 0,
2209
+ "default": null,
2210
+ "generated": null,
2211
+ "identity": null,
2212
+ "name": "name",
2213
+ "entityType": "columns",
2214
+ "schema": "public",
2215
+ "table": "objects"
2216
+ },
2217
+ {
2218
+ "type": "text",
2219
+ "typeSchema": null,
2220
+ "notNull": false,
2221
+ "dimensions": 0,
2222
+ "default": null,
2223
+ "generated": null,
2224
+ "identity": null,
2225
+ "name": "summary",
2226
+ "entityType": "columns",
2227
+ "schema": "public",
2228
+ "table": "objects"
2229
+ },
2230
+ {
2231
+ "type": "text",
2232
+ "typeSchema": null,
2233
+ "notNull": true,
2234
+ "dimensions": 0,
2235
+ "default": null,
2236
+ "generated": null,
2237
+ "identity": null,
2238
+ "name": "content_html",
2239
+ "entityType": "columns",
2240
+ "schema": "public",
2241
+ "table": "objects"
2242
+ },
2243
+ {
2244
+ "type": "varchar(35)",
2245
+ "typeSchema": null,
2246
+ "notNull": false,
2247
+ "dimensions": 0,
2248
+ "default": null,
2249
+ "generated": null,
2250
+ "identity": null,
2251
+ "name": "language",
2252
+ "entityType": "columns",
2253
+ "schema": "public",
2254
+ "table": "objects"
2255
+ },
2256
+ {
2257
+ "type": "boolean",
2258
+ "typeSchema": null,
2259
+ "notNull": true,
2260
+ "dimensions": 0,
2261
+ "default": "false",
2262
+ "generated": null,
2263
+ "identity": null,
2264
+ "name": "sensitive",
2265
+ "entityType": "columns",
2266
+ "schema": "public",
2267
+ "table": "objects"
2268
+ },
2269
+ {
2270
+ "type": "timestamp with time zone",
2271
+ "typeSchema": null,
2272
+ "notNull": true,
2273
+ "dimensions": 0,
2274
+ "default": "CURRENT_TIMESTAMP",
2275
+ "generated": null,
2276
+ "identity": null,
2277
+ "name": "published",
2278
+ "entityType": "columns",
2279
+ "schema": "public",
2280
+ "table": "objects"
2281
+ },
2282
+ {
2283
+ "type": "timestamp with time zone",
2284
+ "typeSchema": null,
2285
+ "notNull": true,
2286
+ "dimensions": 0,
2287
+ "default": "CURRENT_TIMESTAMP",
2288
+ "generated": null,
2289
+ "identity": null,
2290
+ "name": "updated",
2291
+ "entityType": "columns",
2292
+ "schema": "public",
2293
+ "table": "objects"
2294
+ },
2295
+ {
2296
+ "type": "timestamp with time zone",
2297
+ "typeSchema": null,
2298
+ "notNull": true,
2299
+ "dimensions": 0,
2300
+ "default": "CURRENT_TIMESTAMP",
2301
+ "generated": null,
2302
+ "identity": null,
2303
+ "name": "created",
2304
+ "entityType": "columns",
2305
+ "schema": "public",
2306
+ "table": "objects"
2307
+ },
2308
+ {
2309
+ "type": "timestamp with time zone",
2310
+ "typeSchema": null,
2311
+ "notNull": false,
2312
+ "dimensions": 0,
2313
+ "default": null,
2314
+ "generated": null,
2315
+ "identity": null,
2316
+ "name": "deleted",
2317
+ "entityType": "columns",
2318
+ "schema": "public",
2319
+ "table": "objects"
2320
+ },
2321
+ {
2322
+ "type": "uuid",
2323
+ "typeSchema": null,
2324
+ "notNull": true,
2325
+ "dimensions": 0,
2326
+ "default": null,
2327
+ "generated": null,
2328
+ "identity": null,
2329
+ "name": "id",
2330
+ "entityType": "columns",
2331
+ "schema": "public",
2332
+ "table": "resources"
2333
+ },
2334
+ {
2335
+ "type": "text",
2336
+ "typeSchema": null,
2337
+ "notNull": true,
2338
+ "dimensions": 0,
2339
+ "default": null,
2340
+ "generated": null,
2341
+ "identity": null,
2342
+ "name": "iri",
2343
+ "entityType": "columns",
2344
+ "schema": "public",
2345
+ "table": "resources"
2346
+ },
2347
+ {
2348
+ "type": "resource_kind",
2349
+ "typeSchema": "public",
2350
+ "notNull": true,
2351
+ "dimensions": 0,
2352
+ "default": null,
2353
+ "generated": null,
2354
+ "identity": null,
2355
+ "name": "kind",
2356
+ "entityType": "columns",
2357
+ "schema": "public",
2358
+ "table": "resources"
2359
+ },
2360
+ {
2361
+ "type": "timestamp with time zone",
2362
+ "typeSchema": null,
2363
+ "notNull": true,
2364
+ "dimensions": 0,
2365
+ "default": "CURRENT_TIMESTAMP",
2366
+ "generated": null,
2367
+ "identity": null,
2368
+ "name": "created",
2369
+ "entityType": "columns",
2370
+ "schema": "public",
2371
+ "table": "resources"
2372
+ },
2373
+ {
2374
+ "type": "uuid",
2375
+ "typeSchema": null,
2376
+ "notNull": true,
2377
+ "dimensions": 0,
2378
+ "default": null,
2379
+ "generated": null,
2380
+ "identity": null,
2381
+ "name": "id",
2382
+ "entityType": "columns",
2383
+ "schema": "public",
2384
+ "table": "sessions"
2385
+ },
2386
+ {
2387
+ "type": "uuid",
2388
+ "typeSchema": null,
2389
+ "notNull": true,
2390
+ "dimensions": 0,
2391
+ "default": null,
2392
+ "generated": null,
2393
+ "identity": null,
2394
+ "name": "account_id",
2395
+ "entityType": "columns",
2396
+ "schema": "public",
2397
+ "table": "sessions"
2398
+ },
2399
+ {
2400
+ "type": "varchar(64)",
2401
+ "typeSchema": null,
2402
+ "notNull": true,
2403
+ "dimensions": 0,
2404
+ "default": null,
2405
+ "generated": null,
2406
+ "identity": null,
2407
+ "name": "token_hash",
2408
+ "entityType": "columns",
2409
+ "schema": "public",
2410
+ "table": "sessions"
2411
+ },
2412
+ {
2413
+ "type": "timestamp with time zone",
2414
+ "typeSchema": null,
2415
+ "notNull": true,
2416
+ "dimensions": 0,
2417
+ "default": "CURRENT_TIMESTAMP",
2418
+ "generated": null,
2419
+ "identity": null,
2420
+ "name": "created",
2421
+ "entityType": "columns",
2422
+ "schema": "public",
2423
+ "table": "sessions"
2424
+ },
2425
+ {
2426
+ "type": "timestamp with time zone",
2427
+ "typeSchema": null,
2428
+ "notNull": true,
2429
+ "dimensions": 0,
2430
+ "default": "CURRENT_TIMESTAMP + INTERVAL '1 month'",
2431
+ "generated": null,
2432
+ "identity": null,
2433
+ "name": "expires",
2434
+ "entityType": "columns",
2435
+ "schema": "public",
2436
+ "table": "sessions"
2437
+ },
2438
+ {
2439
+ "nameExplicit": true,
2440
+ "columns": [
2441
+ {
2442
+ "value": "actor_id",
2443
+ "isExpression": false,
2444
+ "asc": true,
2445
+ "nullsFirst": false,
2446
+ "opclass": null
2447
+ },
2448
+ {
2449
+ "value": "\"published\" desc",
2450
+ "isExpression": true,
2451
+ "asc": true,
2452
+ "nullsFirst": false,
2453
+ "opclass": null
2454
+ },
2455
+ {
2456
+ "value": "\"id\" desc",
2457
+ "isExpression": true,
2458
+ "asc": true,
2459
+ "nullsFirst": false,
2460
+ "opclass": null
2461
+ }
2462
+ ],
2463
+ "isUnique": false,
2464
+ "where": null,
2465
+ "with": "",
2466
+ "method": "btree",
2467
+ "concurrently": false,
2468
+ "name": "activity_actor_published_index",
2469
+ "entityType": "indexes",
2470
+ "schema": "public",
2471
+ "table": "activities"
2472
+ },
2473
+ {
2474
+ "nameExplicit": true,
2475
+ "columns": [
2476
+ {
2477
+ "value": "object_id",
2478
+ "isExpression": false,
2479
+ "asc": true,
2480
+ "nullsFirst": false,
2481
+ "opclass": null
2482
+ },
2483
+ {
2484
+ "value": "published",
2485
+ "isExpression": false,
2486
+ "asc": true,
2487
+ "nullsFirst": false,
2488
+ "opclass": null
2489
+ },
2490
+ {
2491
+ "value": "id",
2492
+ "isExpression": false,
2493
+ "asc": true,
2494
+ "nullsFirst": false,
2495
+ "opclass": null
2496
+ }
2497
+ ],
2498
+ "isUnique": false,
2499
+ "where": null,
2500
+ "with": "",
2501
+ "method": "btree",
2502
+ "concurrently": false,
2503
+ "name": "activity_object_published_index",
2504
+ "entityType": "indexes",
2505
+ "schema": "public",
2506
+ "table": "activities"
2507
+ },
2508
+ {
2509
+ "nameExplicit": true,
2510
+ "columns": [
2511
+ {
2512
+ "value": "instance_id",
2513
+ "isExpression": false,
2514
+ "asc": true,
2515
+ "nullsFirst": false,
2516
+ "opclass": null
2517
+ },
2518
+ {
2519
+ "value": "\"created\" desc",
2520
+ "isExpression": true,
2521
+ "asc": true,
2522
+ "nullsFirst": false,
2523
+ "opclass": null
2524
+ },
2525
+ {
2526
+ "value": "\"id\" desc",
2527
+ "isExpression": true,
2528
+ "asc": true,
2529
+ "nullsFirst": false,
2530
+ "opclass": null
2531
+ }
2532
+ ],
2533
+ "isUnique": false,
2534
+ "where": null,
2535
+ "with": "",
2536
+ "method": "btree",
2537
+ "concurrently": false,
2538
+ "name": "activity_delivery_instance_created_index",
2539
+ "entityType": "indexes",
2540
+ "schema": "public",
2541
+ "table": "activity_deliveries"
2542
+ },
2543
+ {
2544
+ "nameExplicit": true,
2545
+ "columns": [
2546
+ {
2547
+ "value": "actor_id",
2548
+ "isExpression": false,
2549
+ "asc": true,
2550
+ "nullsFirst": false,
2551
+ "opclass": null
2552
+ }
2553
+ ],
2554
+ "isUnique": false,
2555
+ "where": null,
2556
+ "with": "",
2557
+ "method": "btree",
2558
+ "concurrently": false,
2559
+ "name": "activity_delivery_actor_index",
2560
+ "entityType": "indexes",
2561
+ "schema": "public",
2562
+ "table": "activity_deliveries"
2563
+ },
2564
+ {
2565
+ "nameExplicit": true,
2566
+ "columns": [
2567
+ {
2568
+ "value": "activity_id",
2569
+ "isExpression": false,
2570
+ "asc": true,
2571
+ "nullsFirst": false,
2572
+ "opclass": null
2573
+ },
2574
+ {
2575
+ "value": "\"created\" desc",
2576
+ "isExpression": true,
2577
+ "asc": true,
2578
+ "nullsFirst": false,
2579
+ "opclass": null
2580
+ },
2581
+ {
2582
+ "value": "\"id\" desc",
2583
+ "isExpression": true,
2584
+ "asc": true,
2585
+ "nullsFirst": false,
2586
+ "opclass": null
2587
+ }
2588
+ ],
2589
+ "isUnique": false,
2590
+ "where": null,
2591
+ "with": "",
2592
+ "method": "btree",
2593
+ "concurrently": false,
2594
+ "name": "activity_delivery_activity_created_index",
2595
+ "entityType": "indexes",
2596
+ "schema": "public",
2597
+ "table": "activity_deliveries"
2598
+ },
2599
+ {
2600
+ "nameExplicit": true,
2601
+ "columns": [
2602
+ {
2603
+ "value": "verification_key_id",
2604
+ "isExpression": false,
2605
+ "asc": true,
2606
+ "nullsFirst": false,
2607
+ "opclass": null
2608
+ }
2609
+ ],
2610
+ "isUnique": false,
2611
+ "where": null,
2612
+ "with": "",
2613
+ "method": "btree",
2614
+ "concurrently": false,
2615
+ "name": "activity_delivery_verification_key_index",
2616
+ "entityType": "indexes",
2617
+ "schema": "public",
2618
+ "table": "activity_deliveries"
2619
+ },
2620
+ {
2621
+ "nameExplicit": true,
2622
+ "columns": [
2623
+ {
2624
+ "value": "activity_iri",
2625
+ "isExpression": false,
2626
+ "asc": true,
2627
+ "nullsFirst": false,
2628
+ "opclass": null
2629
+ },
2630
+ {
2631
+ "value": "inbox_url",
2632
+ "isExpression": false,
2633
+ "asc": true,
2634
+ "nullsFirst": false,
2635
+ "opclass": null
2636
+ }
2637
+ ],
2638
+ "isUnique": false,
2639
+ "where": "\"direction\" = 'outbound'",
2640
+ "with": "",
2641
+ "method": "btree",
2642
+ "concurrently": false,
2643
+ "name": "activity_delivery_outbound_index",
2644
+ "entityType": "indexes",
2645
+ "schema": "public",
2646
+ "table": "activity_deliveries"
2647
+ },
2648
+ {
2649
+ "nameExplicit": true,
2650
+ "columns": [
2651
+ {
2652
+ "value": "actor_id",
2653
+ "isExpression": false,
2654
+ "asc": true,
2655
+ "nullsFirst": false,
2656
+ "opclass": null
2657
+ },
2658
+ {
2659
+ "value": "\"created\" desc",
2660
+ "isExpression": true,
2661
+ "asc": true,
2662
+ "nullsFirst": false,
2663
+ "opclass": null
2664
+ },
2665
+ {
2666
+ "value": "\"delivery_id\" desc",
2667
+ "isExpression": true,
2668
+ "asc": true,
2669
+ "nullsFirst": false,
2670
+ "opclass": null
2671
+ }
2672
+ ],
2673
+ "isUnique": false,
2674
+ "where": null,
2675
+ "with": "",
2676
+ "method": "btree",
2677
+ "concurrently": false,
2678
+ "name": "activity_delivery_actor_created_index",
2679
+ "entityType": "indexes",
2680
+ "schema": "public",
2681
+ "table": "activity_delivery_actors"
2682
+ },
2683
+ {
2684
+ "nameExplicit": true,
2685
+ "columns": [
2686
+ {
2687
+ "value": "delivery_id",
2688
+ "isExpression": false,
2689
+ "asc": true,
2690
+ "nullsFirst": false,
2691
+ "opclass": null
2692
+ },
2693
+ {
2694
+ "value": "created",
2695
+ "isExpression": false,
2696
+ "asc": true,
2697
+ "nullsFirst": false,
2698
+ "opclass": null
2699
+ },
2700
+ {
2701
+ "value": "id",
2702
+ "isExpression": false,
2703
+ "asc": true,
2704
+ "nullsFirst": false,
2705
+ "opclass": null
2706
+ }
2707
+ ],
2708
+ "isUnique": false,
2709
+ "where": null,
2710
+ "with": "",
2711
+ "method": "btree",
2712
+ "concurrently": false,
2713
+ "name": "activity_delivery_attempt_delivery_index",
2714
+ "entityType": "indexes",
2715
+ "schema": "public",
2716
+ "table": "activity_delivery_attempts"
2717
+ },
2718
+ {
2719
+ "nameExplicit": true,
2720
+ "columns": [
2721
+ {
2722
+ "value": "collection_id",
2723
+ "isExpression": false,
2724
+ "asc": true,
2725
+ "nullsFirst": false,
2726
+ "opclass": null
2727
+ }
2728
+ ],
2729
+ "isUnique": false,
2730
+ "where": null,
2731
+ "with": "",
2732
+ "method": "btree",
2733
+ "concurrently": false,
2734
+ "name": "actor_collection_reference_collection_index",
2735
+ "entityType": "indexes",
2736
+ "schema": "public",
2737
+ "table": "actor_collection_references"
2738
+ },
2739
+ {
2740
+ "nameExplicit": true,
2741
+ "columns": [
2742
+ {
2743
+ "value": "username",
2744
+ "isExpression": false,
2745
+ "asc": true,
2746
+ "nullsFirst": false,
2747
+ "opclass": null
2748
+ },
2749
+ {
2750
+ "value": "instance_id",
2751
+ "isExpression": false,
2752
+ "asc": true,
2753
+ "nullsFirst": false,
2754
+ "opclass": null
2755
+ }
2756
+ ],
2757
+ "isUnique": true,
2758
+ "where": "\"local_id\" IS NOT NULL",
2759
+ "with": "",
2760
+ "method": "btree",
2761
+ "concurrently": false,
2762
+ "name": "username_key",
2763
+ "entityType": "indexes",
2764
+ "schema": "public",
2765
+ "table": "actors"
2766
+ },
2767
+ {
2768
+ "nameExplicit": true,
2769
+ "columns": [
2770
+ {
2771
+ "value": "instance_id",
2772
+ "isExpression": false,
2773
+ "asc": true,
2774
+ "nullsFirst": false,
2775
+ "opclass": null
2776
+ }
2777
+ ],
2778
+ "isUnique": false,
2779
+ "where": null,
2780
+ "with": "",
2781
+ "method": "btree",
2782
+ "concurrently": false,
2783
+ "name": "actor_instance_index",
2784
+ "entityType": "indexes",
2785
+ "schema": "public",
2786
+ "table": "actors"
2787
+ },
2788
+ {
2789
+ "nameExplicit": true,
2790
+ "columns": [
2791
+ {
2792
+ "value": "target_id",
2793
+ "isExpression": false,
2794
+ "asc": true,
2795
+ "nullsFirst": false,
2796
+ "opclass": null
2797
+ },
2798
+ {
2799
+ "value": "property",
2800
+ "isExpression": false,
2801
+ "asc": true,
2802
+ "nullsFirst": false,
2803
+ "opclass": null
2804
+ }
2805
+ ],
2806
+ "isUnique": false,
2807
+ "where": null,
2808
+ "with": "",
2809
+ "method": "btree",
2810
+ "concurrently": false,
2811
+ "name": "addressing_target_property_index",
2812
+ "entityType": "indexes",
2813
+ "schema": "public",
2814
+ "table": "addressing"
2815
+ },
2816
+ {
2817
+ "nameExplicit": true,
2818
+ "columns": [
2819
+ {
2820
+ "value": "collection_id",
2821
+ "isExpression": false,
2822
+ "asc": true,
2823
+ "nullsFirst": false,
2824
+ "opclass": null
2825
+ },
2826
+ {
2827
+ "value": "position",
2828
+ "isExpression": false,
2829
+ "asc": true,
2830
+ "nullsFirst": false,
2831
+ "opclass": null
2832
+ }
2833
+ ],
2834
+ "isUnique": false,
2835
+ "where": null,
2836
+ "with": "",
2837
+ "method": "btree",
2838
+ "concurrently": false,
2839
+ "name": "collection_item_position_index",
2840
+ "entityType": "indexes",
2841
+ "schema": "public",
2842
+ "table": "collection_items"
2843
+ },
2844
+ {
2845
+ "nameExplicit": false,
2846
+ "columns": [
2847
+ {
2848
+ "value": "account_id",
2849
+ "isExpression": false,
2850
+ "asc": true,
2851
+ "nullsFirst": false,
2852
+ "opclass": null
2853
+ }
2854
+ ],
2855
+ "isUnique": false,
2856
+ "where": "\"accepted\" IS NOT NULL",
2857
+ "with": "",
2858
+ "method": "btree",
2859
+ "concurrently": false,
2860
+ "name": "instance_members_accountId_index",
2861
+ "entityType": "indexes",
2862
+ "schema": "public",
2863
+ "table": "instance_members"
2864
+ },
2865
+ {
2866
+ "nameExplicit": false,
2867
+ "columns": [
2868
+ {
2869
+ "value": "instance_id",
2870
+ "isExpression": false,
2871
+ "asc": true,
2872
+ "nullsFirst": false,
2873
+ "opclass": null
2874
+ }
2875
+ ],
2876
+ "isUnique": false,
2877
+ "where": "\"accepted\" IS NOT NULL",
2878
+ "with": "",
2879
+ "method": "btree",
2880
+ "concurrently": false,
2881
+ "name": "instance_members_instanceId_index",
2882
+ "entityType": "indexes",
2883
+ "schema": "public",
2884
+ "table": "instance_members"
2885
+ },
2886
+ {
2887
+ "nameExplicit": true,
2888
+ "columns": [
2889
+ {
2890
+ "value": "key_id",
2891
+ "isExpression": false,
2892
+ "asc": true,
2893
+ "nullsFirst": false,
2894
+ "opclass": null
2895
+ },
2896
+ {
2897
+ "value": "first_seen",
2898
+ "isExpression": false,
2899
+ "asc": true,
2900
+ "nullsFirst": false,
2901
+ "opclass": null
2902
+ },
2903
+ {
2904
+ "value": "id",
2905
+ "isExpression": false,
2906
+ "asc": true,
2907
+ "nullsFirst": false,
2908
+ "opclass": null
2909
+ }
2910
+ ],
2911
+ "isUnique": false,
2912
+ "where": null,
2913
+ "with": "",
2914
+ "method": "btree",
2915
+ "concurrently": false,
2916
+ "name": "key_version_key_first_seen_index",
2917
+ "entityType": "indexes",
2918
+ "schema": "public",
2919
+ "table": "key_versions"
2920
+ },
2921
+ {
2922
+ "nameExplicit": true,
2923
+ "columns": [
2924
+ {
2925
+ "value": "actor_id",
2926
+ "isExpression": false,
2927
+ "asc": true,
2928
+ "nullsFirst": false,
2929
+ "opclass": null
2930
+ },
2931
+ {
2932
+ "value": "\"published\" desc",
2933
+ "isExpression": true,
2934
+ "asc": true,
2935
+ "nullsFirst": false,
2936
+ "opclass": null
2937
+ },
2938
+ {
2939
+ "value": "\"id\" desc",
2940
+ "isExpression": true,
2941
+ "asc": true,
2942
+ "nullsFirst": false,
2943
+ "opclass": null
2944
+ }
2945
+ ],
2946
+ "isUnique": false,
2947
+ "where": null,
2948
+ "with": "",
2949
+ "method": "btree",
2950
+ "concurrently": false,
2951
+ "name": "object_actor_published_index",
2952
+ "entityType": "indexes",
2953
+ "schema": "public",
2954
+ "table": "objects"
2955
+ },
2956
+ {
2957
+ "nameExplicit": false,
2958
+ "columns": ["id"],
2959
+ "schemaTo": "public",
2960
+ "tableTo": "resources",
2961
+ "columnsTo": ["id"],
2962
+ "onUpdate": "NO ACTION",
2963
+ "onDelete": "CASCADE",
2964
+ "name": "activities_id_resources_id_fkey",
2965
+ "entityType": "fks",
2966
+ "schema": "public",
2967
+ "table": "activities"
2968
+ },
2969
+ {
2970
+ "nameExplicit": false,
2971
+ "columns": ["actor_id"],
2972
+ "schemaTo": "public",
2973
+ "tableTo": "actors",
2974
+ "columnsTo": ["id"],
2975
+ "onUpdate": "NO ACTION",
2976
+ "onDelete": "CASCADE",
2977
+ "name": "activities_actorId_actors_id_fkey",
2978
+ "entityType": "fks",
2979
+ "schema": "public",
2980
+ "table": "activities"
2981
+ },
2982
+ {
2983
+ "nameExplicit": false,
2984
+ "columns": ["object_id"],
2985
+ "schemaTo": "public",
2986
+ "tableTo": "resources",
2987
+ "columnsTo": ["id"],
2988
+ "onUpdate": "NO ACTION",
2989
+ "onDelete": "CASCADE",
2990
+ "name": "activities_objectId_resources_id_fkey",
2991
+ "entityType": "fks",
2992
+ "schema": "public",
2993
+ "table": "activities"
2994
+ },
2995
+ {
2996
+ "nameExplicit": false,
2997
+ "columns": ["instance_id"],
2998
+ "schemaTo": "public",
2999
+ "tableTo": "instances",
3000
+ "columnsTo": ["id"],
3001
+ "onUpdate": "NO ACTION",
3002
+ "onDelete": "CASCADE",
3003
+ "name": "activity_deliveries_instance_id_instances_id_fkey",
3004
+ "entityType": "fks",
3005
+ "schema": "public",
3006
+ "table": "activity_deliveries"
3007
+ },
3008
+ {
3009
+ "nameExplicit": false,
3010
+ "columns": ["actor_id"],
3011
+ "schemaTo": "public",
3012
+ "tableTo": "actors",
3013
+ "columnsTo": ["id"],
3014
+ "onUpdate": "NO ACTION",
3015
+ "onDelete": "SET NULL",
3016
+ "name": "activity_deliveries_actor_id_actors_id_fkey",
3017
+ "entityType": "fks",
3018
+ "schema": "public",
3019
+ "table": "activity_deliveries"
3020
+ },
3021
+ {
3022
+ "nameExplicit": false,
3023
+ "columns": ["activity_id"],
3024
+ "schemaTo": "public",
3025
+ "tableTo": "activities",
3026
+ "columnsTo": ["id"],
3027
+ "onUpdate": "NO ACTION",
3028
+ "onDelete": "SET NULL",
3029
+ "name": "activity_deliveries_activity_id_activities_id_fkey",
3030
+ "entityType": "fks",
3031
+ "schema": "public",
3032
+ "table": "activity_deliveries"
3033
+ },
3034
+ {
3035
+ "nameExplicit": false,
3036
+ "columns": ["verification_key_id"],
3037
+ "schemaTo": "public",
3038
+ "tableTo": "key_versions",
3039
+ "columnsTo": ["id"],
3040
+ "onUpdate": "NO ACTION",
3041
+ "onDelete": "RESTRICT",
3042
+ "name": "activity_deliveries_verification_key_id_key_versions_id_fkey",
3043
+ "entityType": "fks",
3044
+ "schema": "public",
3045
+ "table": "activity_deliveries"
3046
+ },
3047
+ {
3048
+ "nameExplicit": true,
3049
+ "columns": ["delivery_id", "actor_id"],
3050
+ "schemaTo": "public",
3051
+ "tableTo": "activity_delivery_actors",
3052
+ "columnsTo": ["delivery_id", "actor_id"],
3053
+ "onUpdate": "NO ACTION",
3054
+ "onDelete": "CASCADE",
3055
+ "name": "activity_delivery_actor_collections_link_fkey",
3056
+ "entityType": "fks",
3057
+ "schema": "public",
3058
+ "table": "activity_delivery_actor_collections"
3059
+ },
3060
+ {
3061
+ "nameExplicit": false,
3062
+ "columns": ["delivery_id"],
3063
+ "schemaTo": "public",
3064
+ "tableTo": "activity_deliveries",
3065
+ "columnsTo": ["id"],
3066
+ "onUpdate": "NO ACTION",
3067
+ "onDelete": "CASCADE",
3068
+ "name": "activity_delivery_actors_eZEmaeqml3qX_fkey",
3069
+ "entityType": "fks",
3070
+ "schema": "public",
3071
+ "table": "activity_delivery_actors"
3072
+ },
3073
+ {
3074
+ "nameExplicit": false,
3075
+ "columns": ["actor_id"],
3076
+ "schemaTo": "public",
3077
+ "tableTo": "actors",
3078
+ "columnsTo": ["id"],
3079
+ "onUpdate": "NO ACTION",
3080
+ "onDelete": "CASCADE",
3081
+ "name": "activity_delivery_actors_actor_id_actors_id_fkey",
3082
+ "entityType": "fks",
3083
+ "schema": "public",
3084
+ "table": "activity_delivery_actors"
3085
+ },
3086
+ {
3087
+ "nameExplicit": false,
3088
+ "columns": ["delivery_id"],
3089
+ "schemaTo": "public",
3090
+ "tableTo": "activity_deliveries",
3091
+ "columnsTo": ["id"],
3092
+ "onUpdate": "NO ACTION",
3093
+ "onDelete": "CASCADE",
3094
+ "name": "activity_delivery_attempts_BJqYxUSnVaXX_fkey",
3095
+ "entityType": "fks",
3096
+ "schema": "public",
3097
+ "table": "activity_delivery_attempts"
3098
+ },
3099
+ {
3100
+ "nameExplicit": false,
3101
+ "columns": ["actor_id"],
3102
+ "schemaTo": "public",
3103
+ "tableTo": "actors",
3104
+ "columnsTo": ["id"],
3105
+ "onUpdate": "NO ACTION",
3106
+ "onDelete": "CASCADE",
3107
+ "name": "actor_collection_references_actorId_actors_id_fkey",
3108
+ "entityType": "fks",
3109
+ "schema": "public",
3110
+ "table": "actor_collection_references"
3111
+ },
3112
+ {
3113
+ "nameExplicit": false,
3114
+ "columns": ["collection_id"],
3115
+ "schemaTo": "public",
3116
+ "tableTo": "collections",
3117
+ "columnsTo": ["id"],
3118
+ "onUpdate": "NO ACTION",
3119
+ "onDelete": "CASCADE",
3120
+ "name": "actor_collection_references_collectionId_collections_id_fkey",
3121
+ "entityType": "fks",
3122
+ "schema": "public",
3123
+ "table": "actor_collection_references"
3124
+ },
3125
+ {
3126
+ "nameExplicit": false,
3127
+ "columns": ["id"],
3128
+ "schemaTo": "public",
3129
+ "tableTo": "resources",
3130
+ "columnsTo": ["id"],
3131
+ "onUpdate": "NO ACTION",
3132
+ "onDelete": "CASCADE",
3133
+ "name": "actors_id_resources_id_fkey",
3134
+ "entityType": "fks",
3135
+ "schema": "public",
3136
+ "table": "actors"
3137
+ },
3138
+ {
3139
+ "nameExplicit": false,
3140
+ "columns": ["local_id"],
3141
+ "schemaTo": "public",
3142
+ "tableTo": "local_actors",
3143
+ "columnsTo": ["id"],
3144
+ "onUpdate": "NO ACTION",
3145
+ "onDelete": "CASCADE",
3146
+ "name": "actors_localId_local_actors_id_fkey",
3147
+ "entityType": "fks",
3148
+ "schema": "public",
3149
+ "table": "actors"
3150
+ },
3151
+ {
3152
+ "nameExplicit": false,
3153
+ "columns": ["instance_id"],
3154
+ "schemaTo": "public",
3155
+ "tableTo": "instances",
3156
+ "columnsTo": ["id"],
3157
+ "onUpdate": "NO ACTION",
3158
+ "onDelete": "CASCADE",
3159
+ "name": "actors_instanceId_instances_id_fkey",
3160
+ "entityType": "fks",
3161
+ "schema": "public",
3162
+ "table": "actors"
3163
+ },
3164
+ {
3165
+ "nameExplicit": false,
3166
+ "columns": ["successor_id"],
3167
+ "schemaTo": "public",
3168
+ "tableTo": "actors",
3169
+ "columnsTo": ["id"],
3170
+ "onUpdate": "NO ACTION",
3171
+ "onDelete": "SET NULL",
3172
+ "name": "actors_successorId_actors_id_fkey",
3173
+ "entityType": "fks",
3174
+ "schema": "public",
3175
+ "table": "actors"
3176
+ },
3177
+ {
3178
+ "nameExplicit": false,
3179
+ "columns": ["source_id"],
3180
+ "schemaTo": "public",
3181
+ "tableTo": "resources",
3182
+ "columnsTo": ["id"],
3183
+ "onUpdate": "NO ACTION",
3184
+ "onDelete": "CASCADE",
3185
+ "name": "addressing_sourceId_resources_id_fkey",
3186
+ "entityType": "fks",
3187
+ "schema": "public",
3188
+ "table": "addressing"
3189
+ },
3190
+ {
3191
+ "nameExplicit": false,
3192
+ "columns": ["target_id"],
3193
+ "schemaTo": "public",
3194
+ "tableTo": "resources",
3195
+ "columnsTo": ["id"],
3196
+ "onUpdate": "NO ACTION",
3197
+ "onDelete": "RESTRICT",
3198
+ "name": "addressing_targetId_resources_id_fkey",
3199
+ "entityType": "fks",
3200
+ "schema": "public",
3201
+ "table": "addressing"
3202
+ },
3203
+ {
3204
+ "nameExplicit": false,
3205
+ "columns": ["collection_id"],
3206
+ "schemaTo": "public",
3207
+ "tableTo": "collections",
3208
+ "columnsTo": ["id"],
3209
+ "onUpdate": "NO ACTION",
3210
+ "onDelete": "CASCADE",
3211
+ "name": "collection_items_collectionId_collections_id_fkey",
3212
+ "entityType": "fks",
3213
+ "schema": "public",
3214
+ "table": "collection_items"
3215
+ },
3216
+ {
3217
+ "nameExplicit": false,
3218
+ "columns": ["item_id"],
3219
+ "schemaTo": "public",
3220
+ "tableTo": "resources",
3221
+ "columnsTo": ["id"],
3222
+ "onUpdate": "NO ACTION",
3223
+ "onDelete": "CASCADE",
3224
+ "name": "collection_items_itemId_resources_id_fkey",
3225
+ "entityType": "fks",
3226
+ "schema": "public",
3227
+ "table": "collection_items"
3228
+ },
3229
+ {
3230
+ "nameExplicit": false,
3231
+ "columns": ["id"],
3232
+ "schemaTo": "public",
3233
+ "tableTo": "resources",
3234
+ "columnsTo": ["id"],
3235
+ "onUpdate": "NO ACTION",
3236
+ "onDelete": "CASCADE",
3237
+ "name": "collections_id_resources_id_fkey",
3238
+ "entityType": "fks",
3239
+ "schema": "public",
3240
+ "table": "collections"
3241
+ },
3242
+ {
3243
+ "nameExplicit": false,
3244
+ "columns": ["owner_actor_id"],
3245
+ "schemaTo": "public",
3246
+ "tableTo": "actors",
3247
+ "columnsTo": ["id"],
3248
+ "onUpdate": "NO ACTION",
3249
+ "onDelete": "CASCADE",
3250
+ "name": "collections_ownerActorId_actors_id_fkey",
3251
+ "entityType": "fks",
3252
+ "schema": "public",
3253
+ "table": "collections"
3254
+ },
3255
+ {
3256
+ "nameExplicit": false,
3257
+ "columns": ["account_id"],
3258
+ "schemaTo": "public",
3259
+ "tableTo": "accounts",
3260
+ "columnsTo": ["id"],
3261
+ "onUpdate": "NO ACTION",
3262
+ "onDelete": "NO ACTION",
3263
+ "name": "instance_members_accountId_accounts_id_fkey",
3264
+ "entityType": "fks",
3265
+ "schema": "public",
3266
+ "table": "instance_members"
3267
+ },
3268
+ {
3269
+ "nameExplicit": false,
3270
+ "columns": ["instance_id"],
3271
+ "schemaTo": "public",
3272
+ "tableTo": "instances",
3273
+ "columnsTo": ["id"],
3274
+ "onUpdate": "NO ACTION",
3275
+ "onDelete": "NO ACTION",
3276
+ "name": "instance_members_instanceId_instances_id_fkey",
3277
+ "entityType": "fks",
3278
+ "schema": "public",
3279
+ "table": "instance_members"
3280
+ },
3281
+ {
3282
+ "nameExplicit": false,
3283
+ "columns": ["local_id"],
3284
+ "schemaTo": "public",
3285
+ "tableTo": "local_instances",
3286
+ "columnsTo": ["id"],
3287
+ "onUpdate": "NO ACTION",
3288
+ "onDelete": "CASCADE",
3289
+ "name": "instances_localId_local_instances_id_fkey",
3290
+ "entityType": "fks",
3291
+ "schema": "public",
3292
+ "table": "instances"
3293
+ },
3294
+ {
3295
+ "nameExplicit": false,
3296
+ "columns": ["key_id"],
3297
+ "schemaTo": "public",
3298
+ "tableTo": "keys",
3299
+ "columnsTo": ["id"],
3300
+ "onUpdate": "NO ACTION",
3301
+ "onDelete": "RESTRICT",
3302
+ "name": "key_versions_key_id_keys_id_fkey",
3303
+ "entityType": "fks",
3304
+ "schema": "public",
3305
+ "table": "key_versions"
3306
+ },
3307
+ {
3308
+ "nameExplicit": false,
3309
+ "columns": ["local_actor_id"],
3310
+ "schemaTo": "public",
3311
+ "tableTo": "local_actors",
3312
+ "columnsTo": ["id"],
3313
+ "onUpdate": "NO ACTION",
3314
+ "onDelete": "CASCADE",
3315
+ "name": "local_actor_keys_local_actor_id_local_actors_id_fkey",
3316
+ "entityType": "fks",
3317
+ "schema": "public",
3318
+ "table": "local_actor_keys"
3319
+ },
3320
+ {
3321
+ "nameExplicit": false,
3322
+ "columns": ["account_id"],
3323
+ "schemaTo": "public",
3324
+ "tableTo": "accounts",
3325
+ "columnsTo": ["id"],
3326
+ "onUpdate": "NO ACTION",
3327
+ "onDelete": "CASCADE",
3328
+ "name": "login_tokens_accountId_accounts_id_fkey",
3329
+ "entityType": "fks",
3330
+ "schema": "public",
3331
+ "table": "login_challenges"
3332
+ },
3333
+ {
3334
+ "nameExplicit": false,
3335
+ "columns": ["id"],
3336
+ "schemaTo": "public",
3337
+ "tableTo": "resources",
3338
+ "columnsTo": ["id"],
3339
+ "onUpdate": "NO ACTION",
3340
+ "onDelete": "CASCADE",
3341
+ "name": "objects_id_resources_id_fkey",
3342
+ "entityType": "fks",
3343
+ "schema": "public",
3344
+ "table": "objects"
3345
+ },
3346
+ {
3347
+ "nameExplicit": false,
3348
+ "columns": ["actor_id"],
3349
+ "schemaTo": "public",
3350
+ "tableTo": "actors",
3351
+ "columnsTo": ["id"],
3352
+ "onUpdate": "NO ACTION",
3353
+ "onDelete": "CASCADE",
3354
+ "name": "objects_actorId_actors_id_fkey",
3355
+ "entityType": "fks",
3356
+ "schema": "public",
3357
+ "table": "objects"
3358
+ },
3359
+ {
3360
+ "nameExplicit": false,
3361
+ "columns": ["activity_id"],
3362
+ "schemaTo": "public",
3363
+ "tableTo": "resources",
3364
+ "columnsTo": ["id"],
3365
+ "onUpdate": "NO ACTION",
3366
+ "onDelete": "SET NULL",
3367
+ "name": "objects_activity_id_resources_id_fkey",
3368
+ "entityType": "fks",
3369
+ "schema": "public",
3370
+ "table": "objects"
3371
+ },
3372
+ {
3373
+ "nameExplicit": false,
3374
+ "columns": ["account_id"],
3375
+ "schemaTo": "public",
3376
+ "tableTo": "accounts",
3377
+ "columnsTo": ["id"],
3378
+ "onUpdate": "NO ACTION",
3379
+ "onDelete": "CASCADE",
3380
+ "name": "sessions_accountId_accounts_id_fkey",
3381
+ "entityType": "fks",
3382
+ "schema": "public",
3383
+ "table": "sessions"
3384
+ },
3385
+ {
3386
+ "columns": ["delivery_id", "actor_id", "collection_iri"],
3387
+ "nameExplicit": false,
3388
+ "name": "activity_delivery_actor_collections_pkey",
3389
+ "entityType": "pks",
3390
+ "schema": "public",
3391
+ "table": "activity_delivery_actor_collections"
3392
+ },
3393
+ {
3394
+ "columns": ["delivery_id", "actor_id"],
3395
+ "nameExplicit": false,
3396
+ "name": "activity_delivery_actors_pkey",
3397
+ "entityType": "pks",
3398
+ "schema": "public",
3399
+ "table": "activity_delivery_actors"
3400
+ },
3401
+ {
3402
+ "columns": ["actor_id", "role"],
3403
+ "nameExplicit": false,
3404
+ "name": "actor_collection_references_pkey",
3405
+ "entityType": "pks",
3406
+ "schema": "public",
3407
+ "table": "actor_collection_references"
3408
+ },
3409
+ {
3410
+ "columns": ["collection_id", "item_id"],
3411
+ "nameExplicit": false,
3412
+ "name": "collection_items_pkey",
3413
+ "entityType": "pks",
3414
+ "schema": "public",
3415
+ "table": "collection_items"
3416
+ },
3417
+ {
3418
+ "columns": ["instance_id", "account_id"],
3419
+ "nameExplicit": false,
3420
+ "name": "instance_members_pkey",
3421
+ "entityType": "pks",
3422
+ "schema": "public",
3423
+ "table": "instance_members"
3424
+ },
3425
+ {
3426
+ "columns": ["local_actor_id", "type"],
3427
+ "nameExplicit": false,
3428
+ "name": "local_actor_keys_pkey",
3429
+ "entityType": "pks",
3430
+ "schema": "public",
3431
+ "table": "local_actor_keys"
3432
+ },
3433
+ {
3434
+ "columns": ["id"],
3435
+ "nameExplicit": false,
3436
+ "name": "accounts_pkey",
3437
+ "schema": "public",
3438
+ "table": "accounts",
3439
+ "entityType": "pks"
3440
+ },
3441
+ {
3442
+ "columns": ["id"],
3443
+ "nameExplicit": false,
3444
+ "name": "activities_pkey",
3445
+ "schema": "public",
3446
+ "table": "activities",
3447
+ "entityType": "pks"
3448
+ },
3449
+ {
3450
+ "columns": ["id"],
3451
+ "nameExplicit": false,
3452
+ "name": "activity_deliveries_pkey",
3453
+ "schema": "public",
3454
+ "table": "activity_deliveries",
3455
+ "entityType": "pks"
3456
+ },
3457
+ {
3458
+ "columns": ["id"],
3459
+ "nameExplicit": false,
3460
+ "name": "activity_delivery_attempts_pkey",
3461
+ "schema": "public",
3462
+ "table": "activity_delivery_attempts",
3463
+ "entityType": "pks"
3464
+ },
3465
+ {
3466
+ "columns": ["id"],
3467
+ "nameExplicit": false,
3468
+ "name": "actors_pkey",
3469
+ "schema": "public",
3470
+ "table": "actors",
3471
+ "entityType": "pks"
3472
+ },
3473
+ {
3474
+ "columns": ["id"],
3475
+ "nameExplicit": false,
3476
+ "name": "addressing_pkey",
3477
+ "schema": "public",
3478
+ "table": "addressing",
3479
+ "entityType": "pks"
3480
+ },
3481
+ {
3482
+ "columns": ["id"],
3483
+ "nameExplicit": false,
3484
+ "name": "collections_pkey",
3485
+ "schema": "public",
3486
+ "table": "collections",
3487
+ "entityType": "pks"
3488
+ },
3489
+ {
3490
+ "columns": ["id"],
3491
+ "nameExplicit": false,
3492
+ "name": "instances_pkey",
3493
+ "schema": "public",
3494
+ "table": "instances",
3495
+ "entityType": "pks"
3496
+ },
3497
+ {
3498
+ "columns": ["id"],
3499
+ "nameExplicit": false,
3500
+ "name": "key_versions_pkey",
3501
+ "schema": "public",
3502
+ "table": "key_versions",
3503
+ "entityType": "pks"
3504
+ },
3505
+ {
3506
+ "columns": ["id"],
3507
+ "nameExplicit": false,
3508
+ "name": "keys_pkey",
3509
+ "schema": "public",
3510
+ "table": "keys",
3511
+ "entityType": "pks"
3512
+ },
3513
+ {
3514
+ "columns": ["id"],
3515
+ "nameExplicit": false,
3516
+ "name": "local_actors_pkey",
3517
+ "schema": "public",
3518
+ "table": "local_actors",
3519
+ "entityType": "pks"
3520
+ },
3521
+ {
3522
+ "columns": ["id"],
3523
+ "nameExplicit": false,
3524
+ "name": "local_instances_pkey",
3525
+ "schema": "public",
3526
+ "table": "local_instances",
3527
+ "entityType": "pks"
3528
+ },
3529
+ {
3530
+ "columns": ["id"],
3531
+ "nameExplicit": false,
3532
+ "name": "login_tokens_pkey",
3533
+ "schema": "public",
3534
+ "table": "login_challenges",
3535
+ "entityType": "pks"
3536
+ },
3537
+ {
3538
+ "columns": ["id"],
3539
+ "nameExplicit": false,
3540
+ "name": "objects_pkey",
3541
+ "schema": "public",
3542
+ "table": "objects",
3543
+ "entityType": "pks"
3544
+ },
3545
+ {
3546
+ "columns": ["id"],
3547
+ "nameExplicit": false,
3548
+ "name": "resources_pkey",
3549
+ "schema": "public",
3550
+ "table": "resources",
3551
+ "entityType": "pks"
3552
+ },
3553
+ {
3554
+ "columns": ["id"],
3555
+ "nameExplicit": false,
3556
+ "name": "sessions_pkey",
3557
+ "schema": "public",
3558
+ "table": "sessions",
3559
+ "entityType": "pks"
3560
+ },
3561
+ {
3562
+ "nameExplicit": true,
3563
+ "columns": ["source_id", "property", "position"],
3564
+ "nullsNotDistinct": false,
3565
+ "name": "addressing_source_property_position_key",
3566
+ "entityType": "uniques",
3567
+ "schema": "public",
3568
+ "table": "addressing"
3569
+ },
3570
+ {
3571
+ "nameExplicit": true,
3572
+ "columns": ["key_id", "fingerprint"],
3573
+ "nullsNotDistinct": false,
3574
+ "name": "key_versions_key_id_fingerprint_unique",
3575
+ "entityType": "uniques",
3576
+ "schema": "public",
3577
+ "table": "key_versions"
3578
+ },
3579
+ {
3580
+ "nameExplicit": true,
3581
+ "columns": ["activity_id"],
3582
+ "nullsNotDistinct": false,
3583
+ "name": "objects_activity_id_key",
3584
+ "entityType": "uniques",
3585
+ "schema": "public",
3586
+ "table": "objects"
3587
+ },
3588
+ {
3589
+ "nameExplicit": false,
3590
+ "columns": ["email"],
3591
+ "nullsNotDistinct": false,
3592
+ "name": "accounts_email_key",
3593
+ "schema": "public",
3594
+ "table": "accounts",
3595
+ "entityType": "uniques"
3596
+ },
3597
+ {
3598
+ "nameExplicit": false,
3599
+ "columns": ["local_id"],
3600
+ "nullsNotDistinct": false,
3601
+ "name": "actors_localId_key",
3602
+ "schema": "public",
3603
+ "table": "actors",
3604
+ "entityType": "uniques"
3605
+ },
3606
+ {
3607
+ "nameExplicit": false,
3608
+ "columns": ["host"],
3609
+ "nullsNotDistinct": false,
3610
+ "name": "instances_host_key",
3611
+ "schema": "public",
3612
+ "table": "instances",
3613
+ "entityType": "uniques"
3614
+ },
3615
+ {
3616
+ "nameExplicit": false,
3617
+ "columns": ["iri"],
3618
+ "nullsNotDistinct": false,
3619
+ "name": "keys_iri_key",
3620
+ "schema": "public",
3621
+ "table": "keys",
3622
+ "entityType": "uniques"
3623
+ },
3624
+ {
3625
+ "nameExplicit": false,
3626
+ "columns": ["slug"],
3627
+ "nullsNotDistinct": false,
3628
+ "name": "local_instances_slug_key",
3629
+ "schema": "public",
3630
+ "table": "local_instances",
3631
+ "entityType": "uniques"
3632
+ },
3633
+ {
3634
+ "nameExplicit": false,
3635
+ "columns": ["iri"],
3636
+ "nullsNotDistinct": false,
3637
+ "name": "resources_iri_key",
3638
+ "schema": "public",
3639
+ "table": "resources",
3640
+ "entityType": "uniques"
3641
+ },
3642
+ {
3643
+ "nameExplicit": false,
3644
+ "columns": ["token_hash"],
3645
+ "nullsNotDistinct": false,
3646
+ "name": "sessions_tokenHash_key",
3647
+ "schema": "public",
3648
+ "table": "sessions",
3649
+ "entityType": "uniques"
3650
+ },
3651
+ {
3652
+ "value": "\"email\" ~ '^[^@]+@[^@]+\\.[^@]+$'",
3653
+ "name": "accounts_email_check",
3654
+ "entityType": "checks",
3655
+ "schema": "public",
3656
+ "table": "accounts"
3657
+ },
3658
+ {
3659
+ "value": "\"max_instances\" >= 0",
3660
+ "name": "accounts_max_instances_check",
3661
+ "entityType": "checks",
3662
+ "schema": "public",
3663
+ "table": "accounts"
3664
+ },
3665
+ {
3666
+ "value": "trim(both from \"name\") <> ''",
3667
+ "name": "accounts_name_check",
3668
+ "entityType": "checks",
3669
+ "schema": "public",
3670
+ "table": "accounts"
3671
+ },
3672
+ {
3673
+ "value": "(\"direction\" = 'inbound' AND \"status\" IN ('received', 'acknowledged', 'unverified', 'rejected')) OR (\"direction\" = 'outbound' AND \"status\" IN ('queued', 'sent', 'failed', 'permanently_failed', 'abandoned'))",
3674
+ "name": "activity_deliveries_direction_status_check",
3675
+ "entityType": "checks",
3676
+ "schema": "public",
3677
+ "table": "activity_deliveries"
3678
+ },
3679
+ {
3680
+ "value": "(\"completed\" IS NULL) = (\"status\" = 'queued')",
3681
+ "name": "activity_deliveries_completed_check",
3682
+ "entityType": "checks",
3683
+ "schema": "public",
3684
+ "table": "activity_deliveries"
3685
+ },
3686
+ {
3687
+ "value": "\"status_code\" IS NULL OR \"status_code\" BETWEEN 100 AND 599",
3688
+ "name": "activity_deliveries_status_code_check",
3689
+ "entityType": "checks",
3690
+ "schema": "public",
3691
+ "table": "activity_deliveries"
3692
+ },
3693
+ {
3694
+ "value": "\"direction\" <> 'outbound' OR \"verification_key_id\" IS NULL",
3695
+ "name": "activity_deliveries_outbound_key_check",
3696
+ "entityType": "checks",
3697
+ "schema": "public",
3698
+ "table": "activity_deliveries"
3699
+ },
3700
+ {
3701
+ "value": "(\"direction\" = 'inbound') = (\"verification_result\" IS NOT NULL)",
3702
+ "name": "activity_deliveries_verification_result_check",
3703
+ "entityType": "checks",
3704
+ "schema": "public",
3705
+ "table": "activity_deliveries"
3706
+ },
3707
+ {
3708
+ "value": "\"verification_mechanism\" IS NULL OR (\"direction\" = 'inbound' AND \"verification_result\" NOT IN ('unattempted', 'unobserved'))",
3709
+ "name": "activity_deliveries_verification_mechanism_check",
3710
+ "entityType": "checks",
3711
+ "schema": "public",
3712
+ "table": "activity_deliveries"
3713
+ },
3714
+ {
3715
+ "value": "(\"direction\" = 'inbound') = (\"body\" IS NOT NULL)",
3716
+ "name": "activity_deliveries_body_check",
3717
+ "entityType": "checks",
3718
+ "schema": "public",
3719
+ "table": "activity_deliveries"
3720
+ },
3721
+ {
3722
+ "value": "\"activity_id\" IS NULL OR \"direction\" = 'outbound' OR (\"verification_result\" = 'verified' AND \"status\" IN ('received', 'acknowledged'))",
3723
+ "name": "activity_deliveries_activity_check",
3724
+ "entityType": "checks",
3725
+ "schema": "public",
3726
+ "table": "activity_deliveries"
3727
+ },
3728
+ {
3729
+ "value": "\"inbox_owner\" OR \"addressed\" OR \"sender\"",
3730
+ "name": "activity_delivery_actors_role_check",
3731
+ "entityType": "checks",
3732
+ "schema": "public",
3733
+ "table": "activity_delivery_actors"
3734
+ },
3735
+ {
3736
+ "value": "NOT \"addressed_directly\" OR \"addressed\"",
3737
+ "name": "activity_delivery_actors_addressed_directly_check",
3738
+ "entityType": "checks",
3739
+ "schema": "public",
3740
+ "table": "activity_delivery_actors"
3741
+ },
3742
+ {
3743
+ "value": "\"status_code\" IS NULL OR \"status_code\" BETWEEN 100 AND 599",
3744
+ "name": "activity_delivery_attempts_status_code_check",
3745
+ "entityType": "checks",
3746
+ "schema": "public",
3747
+ "table": "activity_delivery_attempts"
3748
+ },
3749
+ {
3750
+ "value": "\"succeeded\" = (\"error\" IS NULL)",
3751
+ "name": "activity_delivery_attempts_error_check",
3752
+ "entityType": "checks",
3753
+ "schema": "public",
3754
+ "table": "activity_delivery_attempts"
3755
+ },
3756
+ {
3757
+ "value": "\"local_id\" IS NULL OR \"username\" NOT LIKE '%@%'",
3758
+ "name": "actors_username_check",
3759
+ "entityType": "checks",
3760
+ "schema": "public",
3761
+ "table": "actors"
3762
+ },
3763
+ {
3764
+ "value": "\"local_id\" IS NULL OR \"username\" IS NOT NULL",
3765
+ "name": "actors_local_username_check",
3766
+ "entityType": "checks",
3767
+ "schema": "public",
3768
+ "table": "actors"
3769
+ },
3770
+ {
3771
+ "value": "\n \"suspended_until\" IS NULL OR (\n \"suspended\" IS NOT NULL AND\n \"suspended_until\" > \"suspended\"\n )\n ",
3772
+ "name": "actors_suspended_check",
3773
+ "entityType": "checks",
3774
+ "schema": "public",
3775
+ "table": "actors"
3776
+ },
3777
+ {
3778
+ "value": "\"last_seen\" >= \"first_seen\"",
3779
+ "name": "key_versions_seen_check",
3780
+ "entityType": "checks",
3781
+ "schema": "public",
3782
+ "table": "key_versions"
3783
+ },
3784
+ {
3785
+ "value": "NOT (\"public_key\" ?| array['d','p','q','dp','dq','qi','oth','k'])",
3786
+ "name": "key_versions_public_key_check",
3787
+ "entityType": "checks",
3788
+ "schema": "public",
3789
+ "table": "key_versions"
3790
+ },
3791
+ {
3792
+ "value": "jsonb_typeof(\"public_key\") = 'object' AND NOT (\"public_key\" ?| array['d','p','q','dp','dq','qi','oth','k'])",
3793
+ "name": "local_actor_keys_public_key_check",
3794
+ "entityType": "checks",
3795
+ "schema": "public",
3796
+ "table": "local_actor_keys"
3797
+ },
3798
+ {
3799
+ "value": "\"slug\" ~ '^[a-z0-9][a-z0-9-]{2,61}[a-z0-9]$'\n AND (\"slug\" !~ '^..--' OR \"slug\" ~ '^xn--')",
3800
+ "name": "local_instances_slug_check",
3801
+ "entityType": "checks",
3802
+ "schema": "public",
3803
+ "table": "local_instances"
3804
+ },
3805
+ {
3806
+ "value": "\"max_actors\" > 0",
3807
+ "name": "instances_max_actors_check",
3808
+ "entityType": "checks",
3809
+ "schema": "public",
3810
+ "table": "local_instances"
3811
+ },
3812
+ {
3813
+ "value": "trim(both from \"content_html\") <> ''",
3814
+ "name": "objects_content_html_check",
3815
+ "entityType": "checks",
3816
+ "schema": "public",
3817
+ "table": "objects"
3818
+ }
3819
+ ],
3820
+ "renames": []
3821
+ }