@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,3769 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "e99167b6-caec-4147-a00c-8ba6450fdb4f",
5
+ "prevIds": ["66dc6b28-dcaa-4b9f-a42c-5b46b4db4dd0"],
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": "text",
555
+ "typeSchema": null,
556
+ "notNull": false,
557
+ "dimensions": 0,
558
+ "default": null,
559
+ "generated": null,
560
+ "identity": null,
561
+ "name": "object_type",
562
+ "entityType": "columns",
563
+ "schema": "public",
564
+ "table": "activity_deliveries"
565
+ },
566
+ {
567
+ "type": "text",
568
+ "typeSchema": null,
569
+ "notNull": false,
570
+ "dimensions": 0,
571
+ "default": null,
572
+ "generated": null,
573
+ "identity": null,
574
+ "name": "object_iri",
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": "signed_key_iri",
588
+ "entityType": "columns",
589
+ "schema": "public",
590
+ "table": "activity_deliveries"
591
+ },
592
+ {
593
+ "type": "uuid",
594
+ "typeSchema": null,
595
+ "notNull": false,
596
+ "dimensions": 0,
597
+ "default": null,
598
+ "generated": null,
599
+ "identity": null,
600
+ "name": "verification_key_id",
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": "remote_actor_iri",
614
+ "entityType": "columns",
615
+ "schema": "public",
616
+ "table": "activity_deliveries"
617
+ },
618
+ {
619
+ "type": "text",
620
+ "typeSchema": null,
621
+ "notNull": false,
622
+ "dimensions": 0,
623
+ "default": null,
624
+ "generated": null,
625
+ "identity": null,
626
+ "name": "remote_host",
627
+ "entityType": "columns",
628
+ "schema": "public",
629
+ "table": "activity_deliveries"
630
+ },
631
+ {
632
+ "type": "text",
633
+ "typeSchema": null,
634
+ "notNull": true,
635
+ "dimensions": 0,
636
+ "default": null,
637
+ "generated": null,
638
+ "identity": null,
639
+ "name": "inbox_url",
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": "request_url",
653
+ "entityType": "columns",
654
+ "schema": "public",
655
+ "table": "activity_deliveries"
656
+ },
657
+ {
658
+ "type": "jsonb",
659
+ "typeSchema": null,
660
+ "notNull": false,
661
+ "dimensions": 0,
662
+ "default": null,
663
+ "generated": null,
664
+ "identity": null,
665
+ "name": "headers",
666
+ "entityType": "columns",
667
+ "schema": "public",
668
+ "table": "activity_deliveries"
669
+ },
670
+ {
671
+ "type": "bytea",
672
+ "typeSchema": null,
673
+ "notNull": false,
674
+ "dimensions": 0,
675
+ "default": null,
676
+ "generated": null,
677
+ "identity": null,
678
+ "name": "body",
679
+ "entityType": "columns",
680
+ "schema": "public",
681
+ "table": "activity_deliveries"
682
+ },
683
+ {
684
+ "type": "integer",
685
+ "typeSchema": null,
686
+ "notNull": false,
687
+ "dimensions": 0,
688
+ "default": null,
689
+ "generated": null,
690
+ "identity": null,
691
+ "name": "status_code",
692
+ "entityType": "columns",
693
+ "schema": "public",
694
+ "table": "activity_deliveries"
695
+ },
696
+ {
697
+ "type": "text",
698
+ "typeSchema": null,
699
+ "notNull": false,
700
+ "dimensions": 0,
701
+ "default": null,
702
+ "generated": null,
703
+ "identity": null,
704
+ "name": "response_body",
705
+ "entityType": "columns",
706
+ "schema": "public",
707
+ "table": "activity_deliveries"
708
+ },
709
+ {
710
+ "type": "text",
711
+ "typeSchema": null,
712
+ "notNull": false,
713
+ "dimensions": 0,
714
+ "default": null,
715
+ "generated": null,
716
+ "identity": null,
717
+ "name": "error",
718
+ "entityType": "columns",
719
+ "schema": "public",
720
+ "table": "activity_deliveries"
721
+ },
722
+ {
723
+ "type": "jsonb",
724
+ "typeSchema": null,
725
+ "notNull": false,
726
+ "dimensions": 0,
727
+ "default": null,
728
+ "generated": null,
729
+ "identity": null,
730
+ "name": "payload",
731
+ "entityType": "columns",
732
+ "schema": "public",
733
+ "table": "activity_deliveries"
734
+ },
735
+ {
736
+ "type": "text",
737
+ "typeSchema": null,
738
+ "notNull": true,
739
+ "dimensions": 1,
740
+ "default": "'{}'",
741
+ "generated": null,
742
+ "identity": null,
743
+ "name": "recipient_iris",
744
+ "entityType": "columns",
745
+ "schema": "public",
746
+ "table": "activity_deliveries"
747
+ },
748
+ {
749
+ "type": "timestamp with time zone",
750
+ "typeSchema": null,
751
+ "notNull": true,
752
+ "dimensions": 0,
753
+ "default": "CURRENT_TIMESTAMP",
754
+ "generated": null,
755
+ "identity": null,
756
+ "name": "created",
757
+ "entityType": "columns",
758
+ "schema": "public",
759
+ "table": "activity_deliveries"
760
+ },
761
+ {
762
+ "type": "timestamp with time zone",
763
+ "typeSchema": null,
764
+ "notNull": false,
765
+ "dimensions": 0,
766
+ "default": null,
767
+ "generated": null,
768
+ "identity": null,
769
+ "name": "completed",
770
+ "entityType": "columns",
771
+ "schema": "public",
772
+ "table": "activity_deliveries"
773
+ },
774
+ {
775
+ "type": "uuid",
776
+ "typeSchema": null,
777
+ "notNull": true,
778
+ "dimensions": 0,
779
+ "default": null,
780
+ "generated": null,
781
+ "identity": null,
782
+ "name": "delivery_id",
783
+ "entityType": "columns",
784
+ "schema": "public",
785
+ "table": "activity_delivery_actor_collections"
786
+ },
787
+ {
788
+ "type": "uuid",
789
+ "typeSchema": null,
790
+ "notNull": true,
791
+ "dimensions": 0,
792
+ "default": null,
793
+ "generated": null,
794
+ "identity": null,
795
+ "name": "actor_id",
796
+ "entityType": "columns",
797
+ "schema": "public",
798
+ "table": "activity_delivery_actor_collections"
799
+ },
800
+ {
801
+ "type": "text",
802
+ "typeSchema": null,
803
+ "notNull": true,
804
+ "dimensions": 0,
805
+ "default": null,
806
+ "generated": null,
807
+ "identity": null,
808
+ "name": "collection_iri",
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": "delivery_id",
822
+ "entityType": "columns",
823
+ "schema": "public",
824
+ "table": "activity_delivery_actors"
825
+ },
826
+ {
827
+ "type": "uuid",
828
+ "typeSchema": null,
829
+ "notNull": true,
830
+ "dimensions": 0,
831
+ "default": null,
832
+ "generated": null,
833
+ "identity": null,
834
+ "name": "actor_id",
835
+ "entityType": "columns",
836
+ "schema": "public",
837
+ "table": "activity_delivery_actors"
838
+ },
839
+ {
840
+ "type": "boolean",
841
+ "typeSchema": null,
842
+ "notNull": true,
843
+ "dimensions": 0,
844
+ "default": "false",
845
+ "generated": null,
846
+ "identity": null,
847
+ "name": "inbox_owner",
848
+ "entityType": "columns",
849
+ "schema": "public",
850
+ "table": "activity_delivery_actors"
851
+ },
852
+ {
853
+ "type": "boolean",
854
+ "typeSchema": null,
855
+ "notNull": true,
856
+ "dimensions": 0,
857
+ "default": "false",
858
+ "generated": null,
859
+ "identity": null,
860
+ "name": "addressed",
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": "addressed_directly",
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": "sender",
887
+ "entityType": "columns",
888
+ "schema": "public",
889
+ "table": "activity_delivery_actors"
890
+ },
891
+ {
892
+ "type": "timestamp with time zone",
893
+ "typeSchema": null,
894
+ "notNull": true,
895
+ "dimensions": 0,
896
+ "default": null,
897
+ "generated": null,
898
+ "identity": null,
899
+ "name": "created",
900
+ "entityType": "columns",
901
+ "schema": "public",
902
+ "table": "activity_delivery_actors"
903
+ },
904
+ {
905
+ "type": "uuid",
906
+ "typeSchema": null,
907
+ "notNull": true,
908
+ "dimensions": 0,
909
+ "default": null,
910
+ "generated": null,
911
+ "identity": null,
912
+ "name": "id",
913
+ "entityType": "columns",
914
+ "schema": "public",
915
+ "table": "activity_delivery_attempts"
916
+ },
917
+ {
918
+ "type": "uuid",
919
+ "typeSchema": null,
920
+ "notNull": true,
921
+ "dimensions": 0,
922
+ "default": null,
923
+ "generated": null,
924
+ "identity": null,
925
+ "name": "delivery_id",
926
+ "entityType": "columns",
927
+ "schema": "public",
928
+ "table": "activity_delivery_attempts"
929
+ },
930
+ {
931
+ "type": "boolean",
932
+ "typeSchema": null,
933
+ "notNull": true,
934
+ "dimensions": 0,
935
+ "default": null,
936
+ "generated": null,
937
+ "identity": null,
938
+ "name": "succeeded",
939
+ "entityType": "columns",
940
+ "schema": "public",
941
+ "table": "activity_delivery_attempts"
942
+ },
943
+ {
944
+ "type": "integer",
945
+ "typeSchema": null,
946
+ "notNull": false,
947
+ "dimensions": 0,
948
+ "default": null,
949
+ "generated": null,
950
+ "identity": null,
951
+ "name": "status_code",
952
+ "entityType": "columns",
953
+ "schema": "public",
954
+ "table": "activity_delivery_attempts"
955
+ },
956
+ {
957
+ "type": "text",
958
+ "typeSchema": null,
959
+ "notNull": false,
960
+ "dimensions": 0,
961
+ "default": null,
962
+ "generated": null,
963
+ "identity": null,
964
+ "name": "response_body",
965
+ "entityType": "columns",
966
+ "schema": "public",
967
+ "table": "activity_delivery_attempts"
968
+ },
969
+ {
970
+ "type": "text",
971
+ "typeSchema": null,
972
+ "notNull": false,
973
+ "dimensions": 0,
974
+ "default": null,
975
+ "generated": null,
976
+ "identity": null,
977
+ "name": "error",
978
+ "entityType": "columns",
979
+ "schema": "public",
980
+ "table": "activity_delivery_attempts"
981
+ },
982
+ {
983
+ "type": "timestamp with time zone",
984
+ "typeSchema": null,
985
+ "notNull": true,
986
+ "dimensions": 0,
987
+ "default": "CURRENT_TIMESTAMP",
988
+ "generated": null,
989
+ "identity": null,
990
+ "name": "created",
991
+ "entityType": "columns",
992
+ "schema": "public",
993
+ "table": "activity_delivery_attempts"
994
+ },
995
+ {
996
+ "type": "uuid",
997
+ "typeSchema": null,
998
+ "notNull": true,
999
+ "dimensions": 0,
1000
+ "default": null,
1001
+ "generated": null,
1002
+ "identity": null,
1003
+ "name": "actor_id",
1004
+ "entityType": "columns",
1005
+ "schema": "public",
1006
+ "table": "actor_collection_references"
1007
+ },
1008
+ {
1009
+ "type": "collection_role",
1010
+ "typeSchema": "public",
1011
+ "notNull": true,
1012
+ "dimensions": 0,
1013
+ "default": null,
1014
+ "generated": null,
1015
+ "identity": null,
1016
+ "name": "role",
1017
+ "entityType": "columns",
1018
+ "schema": "public",
1019
+ "table": "actor_collection_references"
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": "collection_id",
1030
+ "entityType": "columns",
1031
+ "schema": "public",
1032
+ "table": "actor_collection_references"
1033
+ },
1034
+ {
1035
+ "type": "uuid",
1036
+ "typeSchema": null,
1037
+ "notNull": true,
1038
+ "dimensions": 0,
1039
+ "default": null,
1040
+ "generated": null,
1041
+ "identity": null,
1042
+ "name": "id",
1043
+ "entityType": "columns",
1044
+ "schema": "public",
1045
+ "table": "actors"
1046
+ },
1047
+ {
1048
+ "type": "uuid",
1049
+ "typeSchema": null,
1050
+ "notNull": false,
1051
+ "dimensions": 0,
1052
+ "default": null,
1053
+ "generated": null,
1054
+ "identity": null,
1055
+ "name": "local_id",
1056
+ "entityType": "columns",
1057
+ "schema": "public",
1058
+ "table": "actors"
1059
+ },
1060
+ {
1061
+ "type": "actor_type",
1062
+ "typeSchema": "public",
1063
+ "notNull": true,
1064
+ "dimensions": 0,
1065
+ "default": null,
1066
+ "generated": null,
1067
+ "identity": null,
1068
+ "name": "type",
1069
+ "entityType": "columns",
1070
+ "schema": "public",
1071
+ "table": "actors"
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "typeSchema": null,
1076
+ "notNull": false,
1077
+ "dimensions": 0,
1078
+ "default": null,
1079
+ "generated": null,
1080
+ "identity": null,
1081
+ "name": "username",
1082
+ "entityType": "columns",
1083
+ "schema": "public",
1084
+ "table": "actors"
1085
+ },
1086
+ {
1087
+ "type": "uuid",
1088
+ "typeSchema": null,
1089
+ "notNull": true,
1090
+ "dimensions": 0,
1091
+ "default": null,
1092
+ "generated": null,
1093
+ "identity": null,
1094
+ "name": "instance_id",
1095
+ "entityType": "columns",
1096
+ "schema": "public",
1097
+ "table": "actors"
1098
+ },
1099
+ {
1100
+ "type": "json",
1101
+ "typeSchema": null,
1102
+ "notNull": false,
1103
+ "dimensions": 0,
1104
+ "default": null,
1105
+ "generated": null,
1106
+ "identity": null,
1107
+ "name": "document",
1108
+ "entityType": "columns",
1109
+ "schema": "public",
1110
+ "table": "actors"
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "typeSchema": null,
1115
+ "notNull": true,
1116
+ "dimensions": 0,
1117
+ "default": null,
1118
+ "generated": null,
1119
+ "identity": null,
1120
+ "name": "inbox_url",
1121
+ "entityType": "columns",
1122
+ "schema": "public",
1123
+ "table": "actors"
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "typeSchema": null,
1128
+ "notNull": false,
1129
+ "dimensions": 0,
1130
+ "default": null,
1131
+ "generated": null,
1132
+ "identity": null,
1133
+ "name": "profile_url",
1134
+ "entityType": "columns",
1135
+ "schema": "public",
1136
+ "table": "actors"
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "typeSchema": null,
1141
+ "notNull": false,
1142
+ "dimensions": 0,
1143
+ "default": null,
1144
+ "generated": null,
1145
+ "identity": null,
1146
+ "name": "avatar_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": "header_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": "name",
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": "bio_html",
1186
+ "entityType": "columns",
1187
+ "schema": "public",
1188
+ "table": "actors"
1189
+ },
1190
+ {
1191
+ "type": "boolean",
1192
+ "typeSchema": null,
1193
+ "notNull": true,
1194
+ "dimensions": 0,
1195
+ "default": "false",
1196
+ "generated": null,
1197
+ "identity": null,
1198
+ "name": "automatically_approves_followers",
1199
+ "entityType": "columns",
1200
+ "schema": "public",
1201
+ "table": "actors"
1202
+ },
1203
+ {
1204
+ "type": "jsonb",
1205
+ "typeSchema": null,
1206
+ "notNull": true,
1207
+ "dimensions": 0,
1208
+ "default": "'{}'",
1209
+ "generated": null,
1210
+ "identity": null,
1211
+ "name": "field_htmls",
1212
+ "entityType": "columns",
1213
+ "schema": "public",
1214
+ "table": "actors"
1215
+ },
1216
+ {
1217
+ "type": "jsonb",
1218
+ "typeSchema": null,
1219
+ "notNull": true,
1220
+ "dimensions": 0,
1221
+ "default": "'{}'",
1222
+ "generated": null,
1223
+ "identity": null,
1224
+ "name": "emojis",
1225
+ "entityType": "columns",
1226
+ "schema": "public",
1227
+ "table": "actors"
1228
+ },
1229
+ {
1230
+ "type": "jsonb",
1231
+ "typeSchema": null,
1232
+ "notNull": true,
1233
+ "dimensions": 0,
1234
+ "default": "'{}'",
1235
+ "generated": null,
1236
+ "identity": null,
1237
+ "name": "tags",
1238
+ "entityType": "columns",
1239
+ "schema": "public",
1240
+ "table": "actors"
1241
+ },
1242
+ {
1243
+ "type": "boolean",
1244
+ "typeSchema": null,
1245
+ "notNull": true,
1246
+ "dimensions": 0,
1247
+ "default": "false",
1248
+ "generated": null,
1249
+ "identity": null,
1250
+ "name": "sensitive",
1251
+ "entityType": "columns",
1252
+ "schema": "public",
1253
+ "table": "actors"
1254
+ },
1255
+ {
1256
+ "type": "timestamp with time zone",
1257
+ "typeSchema": null,
1258
+ "notNull": false,
1259
+ "dimensions": 0,
1260
+ "default": null,
1261
+ "generated": null,
1262
+ "identity": null,
1263
+ "name": "suspended",
1264
+ "entityType": "columns",
1265
+ "schema": "public",
1266
+ "table": "actors"
1267
+ },
1268
+ {
1269
+ "type": "timestamp with time zone",
1270
+ "typeSchema": null,
1271
+ "notNull": false,
1272
+ "dimensions": 0,
1273
+ "default": null,
1274
+ "generated": null,
1275
+ "identity": null,
1276
+ "name": "suspended_until",
1277
+ "entityType": "columns",
1278
+ "schema": "public",
1279
+ "table": "actors"
1280
+ },
1281
+ {
1282
+ "type": "uuid",
1283
+ "typeSchema": null,
1284
+ "notNull": false,
1285
+ "dimensions": 0,
1286
+ "default": null,
1287
+ "generated": null,
1288
+ "identity": null,
1289
+ "name": "successor_id",
1290
+ "entityType": "columns",
1291
+ "schema": "public",
1292
+ "table": "actors"
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "typeSchema": null,
1297
+ "notNull": true,
1298
+ "dimensions": 1,
1299
+ "default": "(ARRAY[]::text[])",
1300
+ "generated": null,
1301
+ "identity": null,
1302
+ "name": "aliases",
1303
+ "entityType": "columns",
1304
+ "schema": "public",
1305
+ "table": "actors"
1306
+ },
1307
+ {
1308
+ "type": "integer",
1309
+ "typeSchema": null,
1310
+ "notNull": true,
1311
+ "dimensions": 0,
1312
+ "default": "0",
1313
+ "generated": null,
1314
+ "identity": null,
1315
+ "name": "following_count",
1316
+ "entityType": "columns",
1317
+ "schema": "public",
1318
+ "table": "actors"
1319
+ },
1320
+ {
1321
+ "type": "integer",
1322
+ "typeSchema": null,
1323
+ "notNull": true,
1324
+ "dimensions": 0,
1325
+ "default": "0",
1326
+ "generated": null,
1327
+ "identity": null,
1328
+ "name": "followers_count",
1329
+ "entityType": "columns",
1330
+ "schema": "public",
1331
+ "table": "actors"
1332
+ },
1333
+ {
1334
+ "type": "timestamp with time zone",
1335
+ "typeSchema": null,
1336
+ "notNull": true,
1337
+ "dimensions": 0,
1338
+ "default": "CURRENT_TIMESTAMP",
1339
+ "generated": null,
1340
+ "identity": null,
1341
+ "name": "updated",
1342
+ "entityType": "columns",
1343
+ "schema": "public",
1344
+ "table": "actors"
1345
+ },
1346
+ {
1347
+ "type": "timestamp with time zone",
1348
+ "typeSchema": null,
1349
+ "notNull": false,
1350
+ "dimensions": 0,
1351
+ "default": null,
1352
+ "generated": null,
1353
+ "identity": null,
1354
+ "name": "published",
1355
+ "entityType": "columns",
1356
+ "schema": "public",
1357
+ "table": "actors"
1358
+ },
1359
+ {
1360
+ "type": "timestamp with time zone",
1361
+ "typeSchema": null,
1362
+ "notNull": true,
1363
+ "dimensions": 0,
1364
+ "default": "CURRENT_TIMESTAMP",
1365
+ "generated": null,
1366
+ "identity": null,
1367
+ "name": "created",
1368
+ "entityType": "columns",
1369
+ "schema": "public",
1370
+ "table": "actors"
1371
+ },
1372
+ {
1373
+ "type": "timestamp with time zone",
1374
+ "typeSchema": null,
1375
+ "notNull": false,
1376
+ "dimensions": 0,
1377
+ "default": null,
1378
+ "generated": null,
1379
+ "identity": null,
1380
+ "name": "deleted",
1381
+ "entityType": "columns",
1382
+ "schema": "public",
1383
+ "table": "actors"
1384
+ },
1385
+ {
1386
+ "type": "uuid",
1387
+ "typeSchema": null,
1388
+ "notNull": true,
1389
+ "dimensions": 0,
1390
+ "default": null,
1391
+ "generated": null,
1392
+ "identity": null,
1393
+ "name": "id",
1394
+ "entityType": "columns",
1395
+ "schema": "public",
1396
+ "table": "addressing"
1397
+ },
1398
+ {
1399
+ "type": "uuid",
1400
+ "typeSchema": null,
1401
+ "notNull": true,
1402
+ "dimensions": 0,
1403
+ "default": null,
1404
+ "generated": null,
1405
+ "identity": null,
1406
+ "name": "source_id",
1407
+ "entityType": "columns",
1408
+ "schema": "public",
1409
+ "table": "addressing"
1410
+ },
1411
+ {
1412
+ "type": "addressing_property",
1413
+ "typeSchema": "public",
1414
+ "notNull": true,
1415
+ "dimensions": 0,
1416
+ "default": null,
1417
+ "generated": null,
1418
+ "identity": null,
1419
+ "name": "property",
1420
+ "entityType": "columns",
1421
+ "schema": "public",
1422
+ "table": "addressing"
1423
+ },
1424
+ {
1425
+ "type": "integer",
1426
+ "typeSchema": null,
1427
+ "notNull": true,
1428
+ "dimensions": 0,
1429
+ "default": null,
1430
+ "generated": null,
1431
+ "identity": null,
1432
+ "name": "position",
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": "target_id",
1446
+ "entityType": "columns",
1447
+ "schema": "public",
1448
+ "table": "addressing"
1449
+ },
1450
+ {
1451
+ "type": "uuid",
1452
+ "typeSchema": null,
1453
+ "notNull": true,
1454
+ "dimensions": 0,
1455
+ "default": null,
1456
+ "generated": null,
1457
+ "identity": null,
1458
+ "name": "collection_id",
1459
+ "entityType": "columns",
1460
+ "schema": "public",
1461
+ "table": "collection_items"
1462
+ },
1463
+ {
1464
+ "type": "uuid",
1465
+ "typeSchema": null,
1466
+ "notNull": true,
1467
+ "dimensions": 0,
1468
+ "default": null,
1469
+ "generated": null,
1470
+ "identity": null,
1471
+ "name": "item_id",
1472
+ "entityType": "columns",
1473
+ "schema": "public",
1474
+ "table": "collection_items"
1475
+ },
1476
+ {
1477
+ "type": "integer",
1478
+ "typeSchema": null,
1479
+ "notNull": false,
1480
+ "dimensions": 0,
1481
+ "default": null,
1482
+ "generated": null,
1483
+ "identity": null,
1484
+ "name": "position",
1485
+ "entityType": "columns",
1486
+ "schema": "public",
1487
+ "table": "collection_items"
1488
+ },
1489
+ {
1490
+ "type": "timestamp with time zone",
1491
+ "typeSchema": null,
1492
+ "notNull": true,
1493
+ "dimensions": 0,
1494
+ "default": "CURRENT_TIMESTAMP",
1495
+ "generated": null,
1496
+ "identity": null,
1497
+ "name": "observed",
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": "id",
1511
+ "entityType": "columns",
1512
+ "schema": "public",
1513
+ "table": "collections"
1514
+ },
1515
+ {
1516
+ "type": "collection_type",
1517
+ "typeSchema": "public",
1518
+ "notNull": true,
1519
+ "dimensions": 0,
1520
+ "default": null,
1521
+ "generated": null,
1522
+ "identity": null,
1523
+ "name": "type",
1524
+ "entityType": "columns",
1525
+ "schema": "public",
1526
+ "table": "collections"
1527
+ },
1528
+ {
1529
+ "type": "uuid",
1530
+ "typeSchema": null,
1531
+ "notNull": false,
1532
+ "dimensions": 0,
1533
+ "default": null,
1534
+ "generated": null,
1535
+ "identity": null,
1536
+ "name": "owner_actor_id",
1537
+ "entityType": "columns",
1538
+ "schema": "public",
1539
+ "table": "collections"
1540
+ },
1541
+ {
1542
+ "type": "integer",
1543
+ "typeSchema": null,
1544
+ "notNull": false,
1545
+ "dimensions": 0,
1546
+ "default": null,
1547
+ "generated": null,
1548
+ "identity": null,
1549
+ "name": "total_items",
1550
+ "entityType": "columns",
1551
+ "schema": "public",
1552
+ "table": "collections"
1553
+ },
1554
+ {
1555
+ "type": "json",
1556
+ "typeSchema": null,
1557
+ "notNull": false,
1558
+ "dimensions": 0,
1559
+ "default": null,
1560
+ "generated": null,
1561
+ "identity": null,
1562
+ "name": "document",
1563
+ "entityType": "columns",
1564
+ "schema": "public",
1565
+ "table": "collections"
1566
+ },
1567
+ {
1568
+ "type": "timestamp with time zone",
1569
+ "typeSchema": null,
1570
+ "notNull": true,
1571
+ "dimensions": 0,
1572
+ "default": "CURRENT_TIMESTAMP",
1573
+ "generated": null,
1574
+ "identity": null,
1575
+ "name": "updated",
1576
+ "entityType": "columns",
1577
+ "schema": "public",
1578
+ "table": "collections"
1579
+ },
1580
+ {
1581
+ "type": "uuid",
1582
+ "typeSchema": null,
1583
+ "notNull": true,
1584
+ "dimensions": 0,
1585
+ "default": null,
1586
+ "generated": null,
1587
+ "identity": null,
1588
+ "name": "account_id",
1589
+ "entityType": "columns",
1590
+ "schema": "public",
1591
+ "table": "instance_members"
1592
+ },
1593
+ {
1594
+ "type": "uuid",
1595
+ "typeSchema": null,
1596
+ "notNull": true,
1597
+ "dimensions": 0,
1598
+ "default": null,
1599
+ "generated": null,
1600
+ "identity": null,
1601
+ "name": "instance_id",
1602
+ "entityType": "columns",
1603
+ "schema": "public",
1604
+ "table": "instance_members"
1605
+ },
1606
+ {
1607
+ "type": "boolean",
1608
+ "typeSchema": null,
1609
+ "notNull": true,
1610
+ "dimensions": 0,
1611
+ "default": "false",
1612
+ "generated": null,
1613
+ "identity": null,
1614
+ "name": "admin",
1615
+ "entityType": "columns",
1616
+ "schema": "public",
1617
+ "table": "instance_members"
1618
+ },
1619
+ {
1620
+ "type": "timestamp with time zone",
1621
+ "typeSchema": null,
1622
+ "notNull": false,
1623
+ "dimensions": 0,
1624
+ "default": null,
1625
+ "generated": null,
1626
+ "identity": null,
1627
+ "name": "accepted",
1628
+ "entityType": "columns",
1629
+ "schema": "public",
1630
+ "table": "instance_members"
1631
+ },
1632
+ {
1633
+ "type": "timestamp with time zone",
1634
+ "typeSchema": null,
1635
+ "notNull": true,
1636
+ "dimensions": 0,
1637
+ "default": "CURRENT_TIMESTAMP",
1638
+ "generated": null,
1639
+ "identity": null,
1640
+ "name": "created",
1641
+ "entityType": "columns",
1642
+ "schema": "public",
1643
+ "table": "instance_members"
1644
+ },
1645
+ {
1646
+ "type": "uuid",
1647
+ "typeSchema": null,
1648
+ "notNull": true,
1649
+ "dimensions": 0,
1650
+ "default": null,
1651
+ "generated": null,
1652
+ "identity": null,
1653
+ "name": "id",
1654
+ "entityType": "columns",
1655
+ "schema": "public",
1656
+ "table": "instances"
1657
+ },
1658
+ {
1659
+ "type": "uuid",
1660
+ "typeSchema": null,
1661
+ "notNull": false,
1662
+ "dimensions": 0,
1663
+ "default": null,
1664
+ "generated": null,
1665
+ "identity": null,
1666
+ "name": "local_id",
1667
+ "entityType": "columns",
1668
+ "schema": "public",
1669
+ "table": "instances"
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": "instances"
1683
+ },
1684
+ {
1685
+ "type": "varchar(259)",
1686
+ "typeSchema": null,
1687
+ "notNull": true,
1688
+ "dimensions": 0,
1689
+ "default": null,
1690
+ "generated": null,
1691
+ "identity": null,
1692
+ "name": "host",
1693
+ "entityType": "columns",
1694
+ "schema": "public",
1695
+ "table": "instances"
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "typeSchema": null,
1700
+ "notNull": false,
1701
+ "dimensions": 0,
1702
+ "default": null,
1703
+ "generated": null,
1704
+ "identity": null,
1705
+ "name": "node_info_url",
1706
+ "entityType": "columns",
1707
+ "schema": "public",
1708
+ "table": "instances"
1709
+ },
1710
+ {
1711
+ "type": "text",
1712
+ "typeSchema": null,
1713
+ "notNull": false,
1714
+ "dimensions": 0,
1715
+ "default": null,
1716
+ "generated": null,
1717
+ "identity": null,
1718
+ "name": "software",
1719
+ "entityType": "columns",
1720
+ "schema": "public",
1721
+ "table": "instances"
1722
+ },
1723
+ {
1724
+ "type": "text",
1725
+ "typeSchema": null,
1726
+ "notNull": false,
1727
+ "dimensions": 0,
1728
+ "default": null,
1729
+ "generated": null,
1730
+ "identity": null,
1731
+ "name": "software_version",
1732
+ "entityType": "columns",
1733
+ "schema": "public",
1734
+ "table": "instances"
1735
+ },
1736
+ {
1737
+ "type": "uuid",
1738
+ "typeSchema": null,
1739
+ "notNull": true,
1740
+ "dimensions": 0,
1741
+ "default": null,
1742
+ "generated": null,
1743
+ "identity": null,
1744
+ "name": "id",
1745
+ "entityType": "columns",
1746
+ "schema": "public",
1747
+ "table": "key_versions"
1748
+ },
1749
+ {
1750
+ "type": "uuid",
1751
+ "typeSchema": null,
1752
+ "notNull": true,
1753
+ "dimensions": 0,
1754
+ "default": null,
1755
+ "generated": null,
1756
+ "identity": null,
1757
+ "name": "key_id",
1758
+ "entityType": "columns",
1759
+ "schema": "public",
1760
+ "table": "key_versions"
1761
+ },
1762
+ {
1763
+ "type": "jsonb",
1764
+ "typeSchema": null,
1765
+ "notNull": true,
1766
+ "dimensions": 0,
1767
+ "default": null,
1768
+ "generated": null,
1769
+ "identity": null,
1770
+ "name": "public_key",
1771
+ "entityType": "columns",
1772
+ "schema": "public",
1773
+ "table": "key_versions"
1774
+ },
1775
+ {
1776
+ "type": "text",
1777
+ "typeSchema": null,
1778
+ "notNull": true,
1779
+ "dimensions": 0,
1780
+ "default": null,
1781
+ "generated": null,
1782
+ "identity": null,
1783
+ "name": "fingerprint",
1784
+ "entityType": "columns",
1785
+ "schema": "public",
1786
+ "table": "key_versions"
1787
+ },
1788
+ {
1789
+ "type": "timestamp with time zone",
1790
+ "typeSchema": null,
1791
+ "notNull": true,
1792
+ "dimensions": 0,
1793
+ "default": null,
1794
+ "generated": null,
1795
+ "identity": null,
1796
+ "name": "first_seen",
1797
+ "entityType": "columns",
1798
+ "schema": "public",
1799
+ "table": "key_versions"
1800
+ },
1801
+ {
1802
+ "type": "timestamp with time zone",
1803
+ "typeSchema": null,
1804
+ "notNull": true,
1805
+ "dimensions": 0,
1806
+ "default": null,
1807
+ "generated": null,
1808
+ "identity": null,
1809
+ "name": "last_seen",
1810
+ "entityType": "columns",
1811
+ "schema": "public",
1812
+ "table": "key_versions"
1813
+ },
1814
+ {
1815
+ "type": "uuid",
1816
+ "typeSchema": null,
1817
+ "notNull": true,
1818
+ "dimensions": 0,
1819
+ "default": null,
1820
+ "generated": null,
1821
+ "identity": null,
1822
+ "name": "id",
1823
+ "entityType": "columns",
1824
+ "schema": "public",
1825
+ "table": "keys"
1826
+ },
1827
+ {
1828
+ "type": "text",
1829
+ "typeSchema": null,
1830
+ "notNull": true,
1831
+ "dimensions": 0,
1832
+ "default": null,
1833
+ "generated": null,
1834
+ "identity": null,
1835
+ "name": "iri",
1836
+ "entityType": "columns",
1837
+ "schema": "public",
1838
+ "table": "keys"
1839
+ },
1840
+ {
1841
+ "type": "timestamp with time zone",
1842
+ "typeSchema": null,
1843
+ "notNull": true,
1844
+ "dimensions": 0,
1845
+ "default": "CURRENT_TIMESTAMP",
1846
+ "generated": null,
1847
+ "identity": null,
1848
+ "name": "created",
1849
+ "entityType": "columns",
1850
+ "schema": "public",
1851
+ "table": "keys"
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": "local_actor_id",
1862
+ "entityType": "columns",
1863
+ "schema": "public",
1864
+ "table": "local_actor_keys"
1865
+ },
1866
+ {
1867
+ "type": "local_actor_key_type",
1868
+ "typeSchema": "public",
1869
+ "notNull": true,
1870
+ "dimensions": 0,
1871
+ "default": null,
1872
+ "generated": null,
1873
+ "identity": null,
1874
+ "name": "type",
1875
+ "entityType": "columns",
1876
+ "schema": "public",
1877
+ "table": "local_actor_keys"
1878
+ },
1879
+ {
1880
+ "type": "jsonb",
1881
+ "typeSchema": null,
1882
+ "notNull": true,
1883
+ "dimensions": 0,
1884
+ "default": null,
1885
+ "generated": null,
1886
+ "identity": null,
1887
+ "name": "public_key",
1888
+ "entityType": "columns",
1889
+ "schema": "public",
1890
+ "table": "local_actor_keys"
1891
+ },
1892
+ {
1893
+ "type": "jsonb",
1894
+ "typeSchema": null,
1895
+ "notNull": true,
1896
+ "dimensions": 0,
1897
+ "default": null,
1898
+ "generated": null,
1899
+ "identity": null,
1900
+ "name": "private_key",
1901
+ "entityType": "columns",
1902
+ "schema": "public",
1903
+ "table": "local_actor_keys"
1904
+ },
1905
+ {
1906
+ "type": "uuid",
1907
+ "typeSchema": null,
1908
+ "notNull": true,
1909
+ "dimensions": 0,
1910
+ "default": null,
1911
+ "generated": null,
1912
+ "identity": null,
1913
+ "name": "id",
1914
+ "entityType": "columns",
1915
+ "schema": "public",
1916
+ "table": "local_actors"
1917
+ },
1918
+ {
1919
+ "type": "text",
1920
+ "typeSchema": null,
1921
+ "notNull": false,
1922
+ "dimensions": 0,
1923
+ "default": null,
1924
+ "generated": null,
1925
+ "identity": null,
1926
+ "name": "avatar",
1927
+ "entityType": "columns",
1928
+ "schema": "public",
1929
+ "table": "local_actors"
1930
+ },
1931
+ {
1932
+ "type": "text",
1933
+ "typeSchema": null,
1934
+ "notNull": false,
1935
+ "dimensions": 0,
1936
+ "default": null,
1937
+ "generated": null,
1938
+ "identity": null,
1939
+ "name": "header",
1940
+ "entityType": "columns",
1941
+ "schema": "public",
1942
+ "table": "local_actors"
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_instances"
1956
+ },
1957
+ {
1958
+ "type": "varchar(63)",
1959
+ "typeSchema": null,
1960
+ "notNull": true,
1961
+ "dimensions": 0,
1962
+ "default": null,
1963
+ "generated": null,
1964
+ "identity": null,
1965
+ "name": "slug",
1966
+ "entityType": "columns",
1967
+ "schema": "public",
1968
+ "table": "local_instances"
1969
+ },
1970
+ {
1971
+ "type": "timestamp with time zone",
1972
+ "typeSchema": null,
1973
+ "notNull": true,
1974
+ "dimensions": 0,
1975
+ "default": null,
1976
+ "generated": null,
1977
+ "identity": null,
1978
+ "name": "expires",
1979
+ "entityType": "columns",
1980
+ "schema": "public",
1981
+ "table": "local_instances"
1982
+ },
1983
+ {
1984
+ "type": "integer",
1985
+ "typeSchema": null,
1986
+ "notNull": true,
1987
+ "dimensions": 0,
1988
+ "default": "10",
1989
+ "generated": null,
1990
+ "identity": null,
1991
+ "name": "max_actors",
1992
+ "entityType": "columns",
1993
+ "schema": "public",
1994
+ "table": "local_instances"
1995
+ },
1996
+ {
1997
+ "type": "uuid",
1998
+ "typeSchema": null,
1999
+ "notNull": true,
2000
+ "dimensions": 0,
2001
+ "default": null,
2002
+ "generated": null,
2003
+ "identity": null,
2004
+ "name": "id",
2005
+ "entityType": "columns",
2006
+ "schema": "public",
2007
+ "table": "login_challenges"
2008
+ },
2009
+ {
2010
+ "type": "uuid",
2011
+ "typeSchema": null,
2012
+ "notNull": true,
2013
+ "dimensions": 0,
2014
+ "default": null,
2015
+ "generated": null,
2016
+ "identity": null,
2017
+ "name": "account_id",
2018
+ "entityType": "columns",
2019
+ "schema": "public",
2020
+ "table": "login_challenges"
2021
+ },
2022
+ {
2023
+ "type": "char(6)",
2024
+ "typeSchema": null,
2025
+ "notNull": true,
2026
+ "dimensions": 0,
2027
+ "default": null,
2028
+ "generated": null,
2029
+ "identity": null,
2030
+ "name": "code",
2031
+ "entityType": "columns",
2032
+ "schema": "public",
2033
+ "table": "login_challenges"
2034
+ },
2035
+ {
2036
+ "type": "timestamp with time zone",
2037
+ "typeSchema": null,
2038
+ "notNull": true,
2039
+ "dimensions": 0,
2040
+ "default": "CURRENT_TIMESTAMP",
2041
+ "generated": null,
2042
+ "identity": null,
2043
+ "name": "created",
2044
+ "entityType": "columns",
2045
+ "schema": "public",
2046
+ "table": "login_challenges"
2047
+ },
2048
+ {
2049
+ "type": "timestamp with time zone",
2050
+ "typeSchema": null,
2051
+ "notNull": true,
2052
+ "dimensions": 0,
2053
+ "default": "CURRENT_TIMESTAMP + INTERVAL '15 minutes'",
2054
+ "generated": null,
2055
+ "identity": null,
2056
+ "name": "expires",
2057
+ "entityType": "columns",
2058
+ "schema": "public",
2059
+ "table": "login_challenges"
2060
+ },
2061
+ {
2062
+ "type": "timestamp with time zone",
2063
+ "typeSchema": null,
2064
+ "notNull": false,
2065
+ "dimensions": 0,
2066
+ "default": null,
2067
+ "generated": null,
2068
+ "identity": null,
2069
+ "name": "consumed",
2070
+ "entityType": "columns",
2071
+ "schema": "public",
2072
+ "table": "login_challenges"
2073
+ },
2074
+ {
2075
+ "type": "uuid",
2076
+ "typeSchema": null,
2077
+ "notNull": true,
2078
+ "dimensions": 0,
2079
+ "default": null,
2080
+ "generated": null,
2081
+ "identity": null,
2082
+ "name": "id",
2083
+ "entityType": "columns",
2084
+ "schema": "public",
2085
+ "table": "objects"
2086
+ },
2087
+ {
2088
+ "type": "uuid",
2089
+ "typeSchema": null,
2090
+ "notNull": true,
2091
+ "dimensions": 0,
2092
+ "default": null,
2093
+ "generated": null,
2094
+ "identity": null,
2095
+ "name": "actor_id",
2096
+ "entityType": "columns",
2097
+ "schema": "public",
2098
+ "table": "objects"
2099
+ },
2100
+ {
2101
+ "type": "uuid",
2102
+ "typeSchema": null,
2103
+ "notNull": false,
2104
+ "dimensions": 0,
2105
+ "default": null,
2106
+ "generated": null,
2107
+ "identity": null,
2108
+ "name": "activity_id",
2109
+ "entityType": "columns",
2110
+ "schema": "public",
2111
+ "table": "objects"
2112
+ },
2113
+ {
2114
+ "type": "object_type",
2115
+ "typeSchema": "public",
2116
+ "notNull": true,
2117
+ "dimensions": 0,
2118
+ "default": null,
2119
+ "generated": null,
2120
+ "identity": null,
2121
+ "name": "type",
2122
+ "entityType": "columns",
2123
+ "schema": "public",
2124
+ "table": "objects"
2125
+ },
2126
+ {
2127
+ "type": "json",
2128
+ "typeSchema": null,
2129
+ "notNull": false,
2130
+ "dimensions": 0,
2131
+ "default": null,
2132
+ "generated": null,
2133
+ "identity": null,
2134
+ "name": "document",
2135
+ "entityType": "columns",
2136
+ "schema": "public",
2137
+ "table": "objects"
2138
+ },
2139
+ {
2140
+ "type": "text",
2141
+ "typeSchema": null,
2142
+ "notNull": false,
2143
+ "dimensions": 0,
2144
+ "default": null,
2145
+ "generated": null,
2146
+ "identity": null,
2147
+ "name": "url",
2148
+ "entityType": "columns",
2149
+ "schema": "public",
2150
+ "table": "objects"
2151
+ },
2152
+ {
2153
+ "type": "text",
2154
+ "typeSchema": null,
2155
+ "notNull": false,
2156
+ "dimensions": 0,
2157
+ "default": null,
2158
+ "generated": null,
2159
+ "identity": null,
2160
+ "name": "name",
2161
+ "entityType": "columns",
2162
+ "schema": "public",
2163
+ "table": "objects"
2164
+ },
2165
+ {
2166
+ "type": "text",
2167
+ "typeSchema": null,
2168
+ "notNull": false,
2169
+ "dimensions": 0,
2170
+ "default": null,
2171
+ "generated": null,
2172
+ "identity": null,
2173
+ "name": "summary",
2174
+ "entityType": "columns",
2175
+ "schema": "public",
2176
+ "table": "objects"
2177
+ },
2178
+ {
2179
+ "type": "text",
2180
+ "typeSchema": null,
2181
+ "notNull": true,
2182
+ "dimensions": 0,
2183
+ "default": null,
2184
+ "generated": null,
2185
+ "identity": null,
2186
+ "name": "content_html",
2187
+ "entityType": "columns",
2188
+ "schema": "public",
2189
+ "table": "objects"
2190
+ },
2191
+ {
2192
+ "type": "varchar(35)",
2193
+ "typeSchema": null,
2194
+ "notNull": false,
2195
+ "dimensions": 0,
2196
+ "default": null,
2197
+ "generated": null,
2198
+ "identity": null,
2199
+ "name": "language",
2200
+ "entityType": "columns",
2201
+ "schema": "public",
2202
+ "table": "objects"
2203
+ },
2204
+ {
2205
+ "type": "boolean",
2206
+ "typeSchema": null,
2207
+ "notNull": true,
2208
+ "dimensions": 0,
2209
+ "default": "false",
2210
+ "generated": null,
2211
+ "identity": null,
2212
+ "name": "sensitive",
2213
+ "entityType": "columns",
2214
+ "schema": "public",
2215
+ "table": "objects"
2216
+ },
2217
+ {
2218
+ "type": "timestamp with time zone",
2219
+ "typeSchema": null,
2220
+ "notNull": true,
2221
+ "dimensions": 0,
2222
+ "default": "CURRENT_TIMESTAMP",
2223
+ "generated": null,
2224
+ "identity": null,
2225
+ "name": "published",
2226
+ "entityType": "columns",
2227
+ "schema": "public",
2228
+ "table": "objects"
2229
+ },
2230
+ {
2231
+ "type": "timestamp with time zone",
2232
+ "typeSchema": null,
2233
+ "notNull": true,
2234
+ "dimensions": 0,
2235
+ "default": "CURRENT_TIMESTAMP",
2236
+ "generated": null,
2237
+ "identity": null,
2238
+ "name": "updated",
2239
+ "entityType": "columns",
2240
+ "schema": "public",
2241
+ "table": "objects"
2242
+ },
2243
+ {
2244
+ "type": "timestamp with time zone",
2245
+ "typeSchema": null,
2246
+ "notNull": true,
2247
+ "dimensions": 0,
2248
+ "default": "CURRENT_TIMESTAMP",
2249
+ "generated": null,
2250
+ "identity": null,
2251
+ "name": "created",
2252
+ "entityType": "columns",
2253
+ "schema": "public",
2254
+ "table": "objects"
2255
+ },
2256
+ {
2257
+ "type": "timestamp with time zone",
2258
+ "typeSchema": null,
2259
+ "notNull": false,
2260
+ "dimensions": 0,
2261
+ "default": null,
2262
+ "generated": null,
2263
+ "identity": null,
2264
+ "name": "deleted",
2265
+ "entityType": "columns",
2266
+ "schema": "public",
2267
+ "table": "objects"
2268
+ },
2269
+ {
2270
+ "type": "uuid",
2271
+ "typeSchema": null,
2272
+ "notNull": true,
2273
+ "dimensions": 0,
2274
+ "default": null,
2275
+ "generated": null,
2276
+ "identity": null,
2277
+ "name": "id",
2278
+ "entityType": "columns",
2279
+ "schema": "public",
2280
+ "table": "resources"
2281
+ },
2282
+ {
2283
+ "type": "text",
2284
+ "typeSchema": null,
2285
+ "notNull": true,
2286
+ "dimensions": 0,
2287
+ "default": null,
2288
+ "generated": null,
2289
+ "identity": null,
2290
+ "name": "iri",
2291
+ "entityType": "columns",
2292
+ "schema": "public",
2293
+ "table": "resources"
2294
+ },
2295
+ {
2296
+ "type": "resource_kind",
2297
+ "typeSchema": "public",
2298
+ "notNull": true,
2299
+ "dimensions": 0,
2300
+ "default": null,
2301
+ "generated": null,
2302
+ "identity": null,
2303
+ "name": "kind",
2304
+ "entityType": "columns",
2305
+ "schema": "public",
2306
+ "table": "resources"
2307
+ },
2308
+ {
2309
+ "type": "timestamp with time zone",
2310
+ "typeSchema": null,
2311
+ "notNull": true,
2312
+ "dimensions": 0,
2313
+ "default": "CURRENT_TIMESTAMP",
2314
+ "generated": null,
2315
+ "identity": null,
2316
+ "name": "created",
2317
+ "entityType": "columns",
2318
+ "schema": "public",
2319
+ "table": "resources"
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": "sessions"
2333
+ },
2334
+ {
2335
+ "type": "uuid",
2336
+ "typeSchema": null,
2337
+ "notNull": true,
2338
+ "dimensions": 0,
2339
+ "default": null,
2340
+ "generated": null,
2341
+ "identity": null,
2342
+ "name": "account_id",
2343
+ "entityType": "columns",
2344
+ "schema": "public",
2345
+ "table": "sessions"
2346
+ },
2347
+ {
2348
+ "type": "varchar(64)",
2349
+ "typeSchema": null,
2350
+ "notNull": true,
2351
+ "dimensions": 0,
2352
+ "default": null,
2353
+ "generated": null,
2354
+ "identity": null,
2355
+ "name": "token_hash",
2356
+ "entityType": "columns",
2357
+ "schema": "public",
2358
+ "table": "sessions"
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": "sessions"
2372
+ },
2373
+ {
2374
+ "type": "timestamp with time zone",
2375
+ "typeSchema": null,
2376
+ "notNull": true,
2377
+ "dimensions": 0,
2378
+ "default": "CURRENT_TIMESTAMP + INTERVAL '1 month'",
2379
+ "generated": null,
2380
+ "identity": null,
2381
+ "name": "expires",
2382
+ "entityType": "columns",
2383
+ "schema": "public",
2384
+ "table": "sessions"
2385
+ },
2386
+ {
2387
+ "nameExplicit": true,
2388
+ "columns": [
2389
+ {
2390
+ "value": "actor_id",
2391
+ "isExpression": false,
2392
+ "asc": true,
2393
+ "nullsFirst": false,
2394
+ "opclass": null
2395
+ },
2396
+ {
2397
+ "value": "\"published\" desc",
2398
+ "isExpression": true,
2399
+ "asc": true,
2400
+ "nullsFirst": false,
2401
+ "opclass": null
2402
+ },
2403
+ {
2404
+ "value": "\"id\" desc",
2405
+ "isExpression": true,
2406
+ "asc": true,
2407
+ "nullsFirst": false,
2408
+ "opclass": null
2409
+ }
2410
+ ],
2411
+ "isUnique": false,
2412
+ "where": null,
2413
+ "with": "",
2414
+ "method": "btree",
2415
+ "concurrently": false,
2416
+ "name": "activity_actor_published_index",
2417
+ "entityType": "indexes",
2418
+ "schema": "public",
2419
+ "table": "activities"
2420
+ },
2421
+ {
2422
+ "nameExplicit": true,
2423
+ "columns": [
2424
+ {
2425
+ "value": "object_id",
2426
+ "isExpression": false,
2427
+ "asc": true,
2428
+ "nullsFirst": false,
2429
+ "opclass": null
2430
+ },
2431
+ {
2432
+ "value": "published",
2433
+ "isExpression": false,
2434
+ "asc": true,
2435
+ "nullsFirst": false,
2436
+ "opclass": null
2437
+ },
2438
+ {
2439
+ "value": "id",
2440
+ "isExpression": false,
2441
+ "asc": true,
2442
+ "nullsFirst": false,
2443
+ "opclass": null
2444
+ }
2445
+ ],
2446
+ "isUnique": false,
2447
+ "where": null,
2448
+ "with": "",
2449
+ "method": "btree",
2450
+ "concurrently": false,
2451
+ "name": "activity_object_published_index",
2452
+ "entityType": "indexes",
2453
+ "schema": "public",
2454
+ "table": "activities"
2455
+ },
2456
+ {
2457
+ "nameExplicit": true,
2458
+ "columns": [
2459
+ {
2460
+ "value": "instance_id",
2461
+ "isExpression": false,
2462
+ "asc": true,
2463
+ "nullsFirst": false,
2464
+ "opclass": null
2465
+ },
2466
+ {
2467
+ "value": "\"created\" desc",
2468
+ "isExpression": true,
2469
+ "asc": true,
2470
+ "nullsFirst": false,
2471
+ "opclass": null
2472
+ },
2473
+ {
2474
+ "value": "\"id\" desc",
2475
+ "isExpression": true,
2476
+ "asc": true,
2477
+ "nullsFirst": false,
2478
+ "opclass": null
2479
+ }
2480
+ ],
2481
+ "isUnique": false,
2482
+ "where": null,
2483
+ "with": "",
2484
+ "method": "btree",
2485
+ "concurrently": false,
2486
+ "name": "activity_delivery_instance_created_index",
2487
+ "entityType": "indexes",
2488
+ "schema": "public",
2489
+ "table": "activity_deliveries"
2490
+ },
2491
+ {
2492
+ "nameExplicit": true,
2493
+ "columns": [
2494
+ {
2495
+ "value": "actor_id",
2496
+ "isExpression": false,
2497
+ "asc": true,
2498
+ "nullsFirst": false,
2499
+ "opclass": null
2500
+ }
2501
+ ],
2502
+ "isUnique": false,
2503
+ "where": null,
2504
+ "with": "",
2505
+ "method": "btree",
2506
+ "concurrently": false,
2507
+ "name": "activity_delivery_actor_index",
2508
+ "entityType": "indexes",
2509
+ "schema": "public",
2510
+ "table": "activity_deliveries"
2511
+ },
2512
+ {
2513
+ "nameExplicit": true,
2514
+ "columns": [
2515
+ {
2516
+ "value": "activity_id",
2517
+ "isExpression": false,
2518
+ "asc": true,
2519
+ "nullsFirst": false,
2520
+ "opclass": null
2521
+ },
2522
+ {
2523
+ "value": "\"created\" desc",
2524
+ "isExpression": true,
2525
+ "asc": true,
2526
+ "nullsFirst": false,
2527
+ "opclass": null
2528
+ },
2529
+ {
2530
+ "value": "\"id\" desc",
2531
+ "isExpression": true,
2532
+ "asc": true,
2533
+ "nullsFirst": false,
2534
+ "opclass": null
2535
+ }
2536
+ ],
2537
+ "isUnique": false,
2538
+ "where": null,
2539
+ "with": "",
2540
+ "method": "btree",
2541
+ "concurrently": false,
2542
+ "name": "activity_delivery_activity_created_index",
2543
+ "entityType": "indexes",
2544
+ "schema": "public",
2545
+ "table": "activity_deliveries"
2546
+ },
2547
+ {
2548
+ "nameExplicit": true,
2549
+ "columns": [
2550
+ {
2551
+ "value": "verification_key_id",
2552
+ "isExpression": false,
2553
+ "asc": true,
2554
+ "nullsFirst": false,
2555
+ "opclass": null
2556
+ }
2557
+ ],
2558
+ "isUnique": false,
2559
+ "where": null,
2560
+ "with": "",
2561
+ "method": "btree",
2562
+ "concurrently": false,
2563
+ "name": "activity_delivery_verification_key_index",
2564
+ "entityType": "indexes",
2565
+ "schema": "public",
2566
+ "table": "activity_deliveries"
2567
+ },
2568
+ {
2569
+ "nameExplicit": true,
2570
+ "columns": [
2571
+ {
2572
+ "value": "activity_iri",
2573
+ "isExpression": false,
2574
+ "asc": true,
2575
+ "nullsFirst": false,
2576
+ "opclass": null
2577
+ },
2578
+ {
2579
+ "value": "inbox_url",
2580
+ "isExpression": false,
2581
+ "asc": true,
2582
+ "nullsFirst": false,
2583
+ "opclass": null
2584
+ }
2585
+ ],
2586
+ "isUnique": false,
2587
+ "where": "\"direction\" = 'outbound'",
2588
+ "with": "",
2589
+ "method": "btree",
2590
+ "concurrently": false,
2591
+ "name": "activity_delivery_outbound_index",
2592
+ "entityType": "indexes",
2593
+ "schema": "public",
2594
+ "table": "activity_deliveries"
2595
+ },
2596
+ {
2597
+ "nameExplicit": true,
2598
+ "columns": [
2599
+ {
2600
+ "value": "actor_id",
2601
+ "isExpression": false,
2602
+ "asc": true,
2603
+ "nullsFirst": false,
2604
+ "opclass": null
2605
+ },
2606
+ {
2607
+ "value": "\"created\" desc",
2608
+ "isExpression": true,
2609
+ "asc": true,
2610
+ "nullsFirst": false,
2611
+ "opclass": null
2612
+ },
2613
+ {
2614
+ "value": "\"delivery_id\" desc",
2615
+ "isExpression": true,
2616
+ "asc": true,
2617
+ "nullsFirst": false,
2618
+ "opclass": null
2619
+ }
2620
+ ],
2621
+ "isUnique": false,
2622
+ "where": null,
2623
+ "with": "",
2624
+ "method": "btree",
2625
+ "concurrently": false,
2626
+ "name": "activity_delivery_actor_created_index",
2627
+ "entityType": "indexes",
2628
+ "schema": "public",
2629
+ "table": "activity_delivery_actors"
2630
+ },
2631
+ {
2632
+ "nameExplicit": true,
2633
+ "columns": [
2634
+ {
2635
+ "value": "delivery_id",
2636
+ "isExpression": false,
2637
+ "asc": true,
2638
+ "nullsFirst": false,
2639
+ "opclass": null
2640
+ },
2641
+ {
2642
+ "value": "created",
2643
+ "isExpression": false,
2644
+ "asc": true,
2645
+ "nullsFirst": false,
2646
+ "opclass": null
2647
+ },
2648
+ {
2649
+ "value": "id",
2650
+ "isExpression": false,
2651
+ "asc": true,
2652
+ "nullsFirst": false,
2653
+ "opclass": null
2654
+ }
2655
+ ],
2656
+ "isUnique": false,
2657
+ "where": null,
2658
+ "with": "",
2659
+ "method": "btree",
2660
+ "concurrently": false,
2661
+ "name": "activity_delivery_attempt_delivery_index",
2662
+ "entityType": "indexes",
2663
+ "schema": "public",
2664
+ "table": "activity_delivery_attempts"
2665
+ },
2666
+ {
2667
+ "nameExplicit": true,
2668
+ "columns": [
2669
+ {
2670
+ "value": "collection_id",
2671
+ "isExpression": false,
2672
+ "asc": true,
2673
+ "nullsFirst": false,
2674
+ "opclass": null
2675
+ }
2676
+ ],
2677
+ "isUnique": false,
2678
+ "where": null,
2679
+ "with": "",
2680
+ "method": "btree",
2681
+ "concurrently": false,
2682
+ "name": "actor_collection_reference_collection_index",
2683
+ "entityType": "indexes",
2684
+ "schema": "public",
2685
+ "table": "actor_collection_references"
2686
+ },
2687
+ {
2688
+ "nameExplicit": true,
2689
+ "columns": [
2690
+ {
2691
+ "value": "username",
2692
+ "isExpression": false,
2693
+ "asc": true,
2694
+ "nullsFirst": false,
2695
+ "opclass": null
2696
+ },
2697
+ {
2698
+ "value": "instance_id",
2699
+ "isExpression": false,
2700
+ "asc": true,
2701
+ "nullsFirst": false,
2702
+ "opclass": null
2703
+ }
2704
+ ],
2705
+ "isUnique": true,
2706
+ "where": "\"local_id\" IS NOT NULL",
2707
+ "with": "",
2708
+ "method": "btree",
2709
+ "concurrently": false,
2710
+ "name": "username_key",
2711
+ "entityType": "indexes",
2712
+ "schema": "public",
2713
+ "table": "actors"
2714
+ },
2715
+ {
2716
+ "nameExplicit": true,
2717
+ "columns": [
2718
+ {
2719
+ "value": "instance_id",
2720
+ "isExpression": false,
2721
+ "asc": true,
2722
+ "nullsFirst": false,
2723
+ "opclass": null
2724
+ }
2725
+ ],
2726
+ "isUnique": false,
2727
+ "where": null,
2728
+ "with": "",
2729
+ "method": "btree",
2730
+ "concurrently": false,
2731
+ "name": "actor_instance_index",
2732
+ "entityType": "indexes",
2733
+ "schema": "public",
2734
+ "table": "actors"
2735
+ },
2736
+ {
2737
+ "nameExplicit": true,
2738
+ "columns": [
2739
+ {
2740
+ "value": "target_id",
2741
+ "isExpression": false,
2742
+ "asc": true,
2743
+ "nullsFirst": false,
2744
+ "opclass": null
2745
+ },
2746
+ {
2747
+ "value": "property",
2748
+ "isExpression": false,
2749
+ "asc": true,
2750
+ "nullsFirst": false,
2751
+ "opclass": null
2752
+ }
2753
+ ],
2754
+ "isUnique": false,
2755
+ "where": null,
2756
+ "with": "",
2757
+ "method": "btree",
2758
+ "concurrently": false,
2759
+ "name": "addressing_target_property_index",
2760
+ "entityType": "indexes",
2761
+ "schema": "public",
2762
+ "table": "addressing"
2763
+ },
2764
+ {
2765
+ "nameExplicit": true,
2766
+ "columns": [
2767
+ {
2768
+ "value": "collection_id",
2769
+ "isExpression": false,
2770
+ "asc": true,
2771
+ "nullsFirst": false,
2772
+ "opclass": null
2773
+ },
2774
+ {
2775
+ "value": "position",
2776
+ "isExpression": false,
2777
+ "asc": true,
2778
+ "nullsFirst": false,
2779
+ "opclass": null
2780
+ }
2781
+ ],
2782
+ "isUnique": false,
2783
+ "where": null,
2784
+ "with": "",
2785
+ "method": "btree",
2786
+ "concurrently": false,
2787
+ "name": "collection_item_position_index",
2788
+ "entityType": "indexes",
2789
+ "schema": "public",
2790
+ "table": "collection_items"
2791
+ },
2792
+ {
2793
+ "nameExplicit": false,
2794
+ "columns": [
2795
+ {
2796
+ "value": "account_id",
2797
+ "isExpression": false,
2798
+ "asc": true,
2799
+ "nullsFirst": false,
2800
+ "opclass": null
2801
+ }
2802
+ ],
2803
+ "isUnique": false,
2804
+ "where": "\"accepted\" IS NOT NULL",
2805
+ "with": "",
2806
+ "method": "btree",
2807
+ "concurrently": false,
2808
+ "name": "instance_members_accountId_index",
2809
+ "entityType": "indexes",
2810
+ "schema": "public",
2811
+ "table": "instance_members"
2812
+ },
2813
+ {
2814
+ "nameExplicit": false,
2815
+ "columns": [
2816
+ {
2817
+ "value": "instance_id",
2818
+ "isExpression": false,
2819
+ "asc": true,
2820
+ "nullsFirst": false,
2821
+ "opclass": null
2822
+ }
2823
+ ],
2824
+ "isUnique": false,
2825
+ "where": "\"accepted\" IS NOT NULL",
2826
+ "with": "",
2827
+ "method": "btree",
2828
+ "concurrently": false,
2829
+ "name": "instance_members_instanceId_index",
2830
+ "entityType": "indexes",
2831
+ "schema": "public",
2832
+ "table": "instance_members"
2833
+ },
2834
+ {
2835
+ "nameExplicit": true,
2836
+ "columns": [
2837
+ {
2838
+ "value": "key_id",
2839
+ "isExpression": false,
2840
+ "asc": true,
2841
+ "nullsFirst": false,
2842
+ "opclass": null
2843
+ },
2844
+ {
2845
+ "value": "first_seen",
2846
+ "isExpression": false,
2847
+ "asc": true,
2848
+ "nullsFirst": false,
2849
+ "opclass": null
2850
+ },
2851
+ {
2852
+ "value": "id",
2853
+ "isExpression": false,
2854
+ "asc": true,
2855
+ "nullsFirst": false,
2856
+ "opclass": null
2857
+ }
2858
+ ],
2859
+ "isUnique": false,
2860
+ "where": null,
2861
+ "with": "",
2862
+ "method": "btree",
2863
+ "concurrently": false,
2864
+ "name": "key_version_key_first_seen_index",
2865
+ "entityType": "indexes",
2866
+ "schema": "public",
2867
+ "table": "key_versions"
2868
+ },
2869
+ {
2870
+ "nameExplicit": true,
2871
+ "columns": [
2872
+ {
2873
+ "value": "actor_id",
2874
+ "isExpression": false,
2875
+ "asc": true,
2876
+ "nullsFirst": false,
2877
+ "opclass": null
2878
+ },
2879
+ {
2880
+ "value": "\"published\" desc",
2881
+ "isExpression": true,
2882
+ "asc": true,
2883
+ "nullsFirst": false,
2884
+ "opclass": null
2885
+ },
2886
+ {
2887
+ "value": "\"id\" desc",
2888
+ "isExpression": true,
2889
+ "asc": true,
2890
+ "nullsFirst": false,
2891
+ "opclass": null
2892
+ }
2893
+ ],
2894
+ "isUnique": false,
2895
+ "where": null,
2896
+ "with": "",
2897
+ "method": "btree",
2898
+ "concurrently": false,
2899
+ "name": "object_actor_published_index",
2900
+ "entityType": "indexes",
2901
+ "schema": "public",
2902
+ "table": "objects"
2903
+ },
2904
+ {
2905
+ "nameExplicit": false,
2906
+ "columns": ["id"],
2907
+ "schemaTo": "public",
2908
+ "tableTo": "resources",
2909
+ "columnsTo": ["id"],
2910
+ "onUpdate": "NO ACTION",
2911
+ "onDelete": "CASCADE",
2912
+ "name": "activities_id_resources_id_fkey",
2913
+ "entityType": "fks",
2914
+ "schema": "public",
2915
+ "table": "activities"
2916
+ },
2917
+ {
2918
+ "nameExplicit": false,
2919
+ "columns": ["actor_id"],
2920
+ "schemaTo": "public",
2921
+ "tableTo": "actors",
2922
+ "columnsTo": ["id"],
2923
+ "onUpdate": "NO ACTION",
2924
+ "onDelete": "CASCADE",
2925
+ "name": "activities_actorId_actors_id_fkey",
2926
+ "entityType": "fks",
2927
+ "schema": "public",
2928
+ "table": "activities"
2929
+ },
2930
+ {
2931
+ "nameExplicit": false,
2932
+ "columns": ["object_id"],
2933
+ "schemaTo": "public",
2934
+ "tableTo": "resources",
2935
+ "columnsTo": ["id"],
2936
+ "onUpdate": "NO ACTION",
2937
+ "onDelete": "CASCADE",
2938
+ "name": "activities_objectId_resources_id_fkey",
2939
+ "entityType": "fks",
2940
+ "schema": "public",
2941
+ "table": "activities"
2942
+ },
2943
+ {
2944
+ "nameExplicit": false,
2945
+ "columns": ["instance_id"],
2946
+ "schemaTo": "public",
2947
+ "tableTo": "instances",
2948
+ "columnsTo": ["id"],
2949
+ "onUpdate": "NO ACTION",
2950
+ "onDelete": "CASCADE",
2951
+ "name": "activity_deliveries_instance_id_instances_id_fkey",
2952
+ "entityType": "fks",
2953
+ "schema": "public",
2954
+ "table": "activity_deliveries"
2955
+ },
2956
+ {
2957
+ "nameExplicit": false,
2958
+ "columns": ["actor_id"],
2959
+ "schemaTo": "public",
2960
+ "tableTo": "actors",
2961
+ "columnsTo": ["id"],
2962
+ "onUpdate": "NO ACTION",
2963
+ "onDelete": "SET NULL",
2964
+ "name": "activity_deliveries_actor_id_actors_id_fkey",
2965
+ "entityType": "fks",
2966
+ "schema": "public",
2967
+ "table": "activity_deliveries"
2968
+ },
2969
+ {
2970
+ "nameExplicit": false,
2971
+ "columns": ["activity_id"],
2972
+ "schemaTo": "public",
2973
+ "tableTo": "activities",
2974
+ "columnsTo": ["id"],
2975
+ "onUpdate": "NO ACTION",
2976
+ "onDelete": "SET NULL",
2977
+ "name": "activity_deliveries_activity_id_activities_id_fkey",
2978
+ "entityType": "fks",
2979
+ "schema": "public",
2980
+ "table": "activity_deliveries"
2981
+ },
2982
+ {
2983
+ "nameExplicit": false,
2984
+ "columns": ["verification_key_id"],
2985
+ "schemaTo": "public",
2986
+ "tableTo": "key_versions",
2987
+ "columnsTo": ["id"],
2988
+ "onUpdate": "NO ACTION",
2989
+ "onDelete": "RESTRICT",
2990
+ "name": "activity_deliveries_verification_key_id_key_versions_id_fkey",
2991
+ "entityType": "fks",
2992
+ "schema": "public",
2993
+ "table": "activity_deliveries"
2994
+ },
2995
+ {
2996
+ "nameExplicit": true,
2997
+ "columns": ["delivery_id", "actor_id"],
2998
+ "schemaTo": "public",
2999
+ "tableTo": "activity_delivery_actors",
3000
+ "columnsTo": ["delivery_id", "actor_id"],
3001
+ "onUpdate": "NO ACTION",
3002
+ "onDelete": "CASCADE",
3003
+ "name": "activity_delivery_actor_collections_link_fkey",
3004
+ "entityType": "fks",
3005
+ "schema": "public",
3006
+ "table": "activity_delivery_actor_collections"
3007
+ },
3008
+ {
3009
+ "nameExplicit": false,
3010
+ "columns": ["delivery_id"],
3011
+ "schemaTo": "public",
3012
+ "tableTo": "activity_deliveries",
3013
+ "columnsTo": ["id"],
3014
+ "onUpdate": "NO ACTION",
3015
+ "onDelete": "CASCADE",
3016
+ "name": "activity_delivery_actors_eZEmaeqml3qX_fkey",
3017
+ "entityType": "fks",
3018
+ "schema": "public",
3019
+ "table": "activity_delivery_actors"
3020
+ },
3021
+ {
3022
+ "nameExplicit": false,
3023
+ "columns": ["actor_id"],
3024
+ "schemaTo": "public",
3025
+ "tableTo": "actors",
3026
+ "columnsTo": ["id"],
3027
+ "onUpdate": "NO ACTION",
3028
+ "onDelete": "CASCADE",
3029
+ "name": "activity_delivery_actors_actor_id_actors_id_fkey",
3030
+ "entityType": "fks",
3031
+ "schema": "public",
3032
+ "table": "activity_delivery_actors"
3033
+ },
3034
+ {
3035
+ "nameExplicit": false,
3036
+ "columns": ["delivery_id"],
3037
+ "schemaTo": "public",
3038
+ "tableTo": "activity_deliveries",
3039
+ "columnsTo": ["id"],
3040
+ "onUpdate": "NO ACTION",
3041
+ "onDelete": "CASCADE",
3042
+ "name": "activity_delivery_attempts_BJqYxUSnVaXX_fkey",
3043
+ "entityType": "fks",
3044
+ "schema": "public",
3045
+ "table": "activity_delivery_attempts"
3046
+ },
3047
+ {
3048
+ "nameExplicit": false,
3049
+ "columns": ["actor_id"],
3050
+ "schemaTo": "public",
3051
+ "tableTo": "actors",
3052
+ "columnsTo": ["id"],
3053
+ "onUpdate": "NO ACTION",
3054
+ "onDelete": "CASCADE",
3055
+ "name": "actor_collection_references_actorId_actors_id_fkey",
3056
+ "entityType": "fks",
3057
+ "schema": "public",
3058
+ "table": "actor_collection_references"
3059
+ },
3060
+ {
3061
+ "nameExplicit": false,
3062
+ "columns": ["collection_id"],
3063
+ "schemaTo": "public",
3064
+ "tableTo": "collections",
3065
+ "columnsTo": ["id"],
3066
+ "onUpdate": "NO ACTION",
3067
+ "onDelete": "CASCADE",
3068
+ "name": "actor_collection_references_collectionId_collections_id_fkey",
3069
+ "entityType": "fks",
3070
+ "schema": "public",
3071
+ "table": "actor_collection_references"
3072
+ },
3073
+ {
3074
+ "nameExplicit": false,
3075
+ "columns": ["id"],
3076
+ "schemaTo": "public",
3077
+ "tableTo": "resources",
3078
+ "columnsTo": ["id"],
3079
+ "onUpdate": "NO ACTION",
3080
+ "onDelete": "CASCADE",
3081
+ "name": "actors_id_resources_id_fkey",
3082
+ "entityType": "fks",
3083
+ "schema": "public",
3084
+ "table": "actors"
3085
+ },
3086
+ {
3087
+ "nameExplicit": false,
3088
+ "columns": ["local_id"],
3089
+ "schemaTo": "public",
3090
+ "tableTo": "local_actors",
3091
+ "columnsTo": ["id"],
3092
+ "onUpdate": "NO ACTION",
3093
+ "onDelete": "CASCADE",
3094
+ "name": "actors_localId_local_actors_id_fkey",
3095
+ "entityType": "fks",
3096
+ "schema": "public",
3097
+ "table": "actors"
3098
+ },
3099
+ {
3100
+ "nameExplicit": false,
3101
+ "columns": ["instance_id"],
3102
+ "schemaTo": "public",
3103
+ "tableTo": "instances",
3104
+ "columnsTo": ["id"],
3105
+ "onUpdate": "NO ACTION",
3106
+ "onDelete": "CASCADE",
3107
+ "name": "actors_instanceId_instances_id_fkey",
3108
+ "entityType": "fks",
3109
+ "schema": "public",
3110
+ "table": "actors"
3111
+ },
3112
+ {
3113
+ "nameExplicit": false,
3114
+ "columns": ["successor_id"],
3115
+ "schemaTo": "public",
3116
+ "tableTo": "actors",
3117
+ "columnsTo": ["id"],
3118
+ "onUpdate": "NO ACTION",
3119
+ "onDelete": "SET NULL",
3120
+ "name": "actors_successorId_actors_id_fkey",
3121
+ "entityType": "fks",
3122
+ "schema": "public",
3123
+ "table": "actors"
3124
+ },
3125
+ {
3126
+ "nameExplicit": false,
3127
+ "columns": ["source_id"],
3128
+ "schemaTo": "public",
3129
+ "tableTo": "resources",
3130
+ "columnsTo": ["id"],
3131
+ "onUpdate": "NO ACTION",
3132
+ "onDelete": "CASCADE",
3133
+ "name": "addressing_sourceId_resources_id_fkey",
3134
+ "entityType": "fks",
3135
+ "schema": "public",
3136
+ "table": "addressing"
3137
+ },
3138
+ {
3139
+ "nameExplicit": false,
3140
+ "columns": ["target_id"],
3141
+ "schemaTo": "public",
3142
+ "tableTo": "resources",
3143
+ "columnsTo": ["id"],
3144
+ "onUpdate": "NO ACTION",
3145
+ "onDelete": "RESTRICT",
3146
+ "name": "addressing_targetId_resources_id_fkey",
3147
+ "entityType": "fks",
3148
+ "schema": "public",
3149
+ "table": "addressing"
3150
+ },
3151
+ {
3152
+ "nameExplicit": false,
3153
+ "columns": ["collection_id"],
3154
+ "schemaTo": "public",
3155
+ "tableTo": "collections",
3156
+ "columnsTo": ["id"],
3157
+ "onUpdate": "NO ACTION",
3158
+ "onDelete": "CASCADE",
3159
+ "name": "collection_items_collectionId_collections_id_fkey",
3160
+ "entityType": "fks",
3161
+ "schema": "public",
3162
+ "table": "collection_items"
3163
+ },
3164
+ {
3165
+ "nameExplicit": false,
3166
+ "columns": ["item_id"],
3167
+ "schemaTo": "public",
3168
+ "tableTo": "resources",
3169
+ "columnsTo": ["id"],
3170
+ "onUpdate": "NO ACTION",
3171
+ "onDelete": "CASCADE",
3172
+ "name": "collection_items_itemId_resources_id_fkey",
3173
+ "entityType": "fks",
3174
+ "schema": "public",
3175
+ "table": "collection_items"
3176
+ },
3177
+ {
3178
+ "nameExplicit": false,
3179
+ "columns": ["id"],
3180
+ "schemaTo": "public",
3181
+ "tableTo": "resources",
3182
+ "columnsTo": ["id"],
3183
+ "onUpdate": "NO ACTION",
3184
+ "onDelete": "CASCADE",
3185
+ "name": "collections_id_resources_id_fkey",
3186
+ "entityType": "fks",
3187
+ "schema": "public",
3188
+ "table": "collections"
3189
+ },
3190
+ {
3191
+ "nameExplicit": false,
3192
+ "columns": ["owner_actor_id"],
3193
+ "schemaTo": "public",
3194
+ "tableTo": "actors",
3195
+ "columnsTo": ["id"],
3196
+ "onUpdate": "NO ACTION",
3197
+ "onDelete": "CASCADE",
3198
+ "name": "collections_ownerActorId_actors_id_fkey",
3199
+ "entityType": "fks",
3200
+ "schema": "public",
3201
+ "table": "collections"
3202
+ },
3203
+ {
3204
+ "nameExplicit": false,
3205
+ "columns": ["account_id"],
3206
+ "schemaTo": "public",
3207
+ "tableTo": "accounts",
3208
+ "columnsTo": ["id"],
3209
+ "onUpdate": "NO ACTION",
3210
+ "onDelete": "NO ACTION",
3211
+ "name": "instance_members_accountId_accounts_id_fkey",
3212
+ "entityType": "fks",
3213
+ "schema": "public",
3214
+ "table": "instance_members"
3215
+ },
3216
+ {
3217
+ "nameExplicit": false,
3218
+ "columns": ["instance_id"],
3219
+ "schemaTo": "public",
3220
+ "tableTo": "instances",
3221
+ "columnsTo": ["id"],
3222
+ "onUpdate": "NO ACTION",
3223
+ "onDelete": "NO ACTION",
3224
+ "name": "instance_members_instanceId_instances_id_fkey",
3225
+ "entityType": "fks",
3226
+ "schema": "public",
3227
+ "table": "instance_members"
3228
+ },
3229
+ {
3230
+ "nameExplicit": false,
3231
+ "columns": ["local_id"],
3232
+ "schemaTo": "public",
3233
+ "tableTo": "local_instances",
3234
+ "columnsTo": ["id"],
3235
+ "onUpdate": "NO ACTION",
3236
+ "onDelete": "CASCADE",
3237
+ "name": "instances_localId_local_instances_id_fkey",
3238
+ "entityType": "fks",
3239
+ "schema": "public",
3240
+ "table": "instances"
3241
+ },
3242
+ {
3243
+ "nameExplicit": false,
3244
+ "columns": ["key_id"],
3245
+ "schemaTo": "public",
3246
+ "tableTo": "keys",
3247
+ "columnsTo": ["id"],
3248
+ "onUpdate": "NO ACTION",
3249
+ "onDelete": "RESTRICT",
3250
+ "name": "key_versions_key_id_keys_id_fkey",
3251
+ "entityType": "fks",
3252
+ "schema": "public",
3253
+ "table": "key_versions"
3254
+ },
3255
+ {
3256
+ "nameExplicit": false,
3257
+ "columns": ["local_actor_id"],
3258
+ "schemaTo": "public",
3259
+ "tableTo": "local_actors",
3260
+ "columnsTo": ["id"],
3261
+ "onUpdate": "NO ACTION",
3262
+ "onDelete": "CASCADE",
3263
+ "name": "local_actor_keys_local_actor_id_local_actors_id_fkey",
3264
+ "entityType": "fks",
3265
+ "schema": "public",
3266
+ "table": "local_actor_keys"
3267
+ },
3268
+ {
3269
+ "nameExplicit": false,
3270
+ "columns": ["account_id"],
3271
+ "schemaTo": "public",
3272
+ "tableTo": "accounts",
3273
+ "columnsTo": ["id"],
3274
+ "onUpdate": "NO ACTION",
3275
+ "onDelete": "CASCADE",
3276
+ "name": "login_tokens_accountId_accounts_id_fkey",
3277
+ "entityType": "fks",
3278
+ "schema": "public",
3279
+ "table": "login_challenges"
3280
+ },
3281
+ {
3282
+ "nameExplicit": false,
3283
+ "columns": ["id"],
3284
+ "schemaTo": "public",
3285
+ "tableTo": "resources",
3286
+ "columnsTo": ["id"],
3287
+ "onUpdate": "NO ACTION",
3288
+ "onDelete": "CASCADE",
3289
+ "name": "objects_id_resources_id_fkey",
3290
+ "entityType": "fks",
3291
+ "schema": "public",
3292
+ "table": "objects"
3293
+ },
3294
+ {
3295
+ "nameExplicit": false,
3296
+ "columns": ["actor_id"],
3297
+ "schemaTo": "public",
3298
+ "tableTo": "actors",
3299
+ "columnsTo": ["id"],
3300
+ "onUpdate": "NO ACTION",
3301
+ "onDelete": "CASCADE",
3302
+ "name": "objects_actorId_actors_id_fkey",
3303
+ "entityType": "fks",
3304
+ "schema": "public",
3305
+ "table": "objects"
3306
+ },
3307
+ {
3308
+ "nameExplicit": false,
3309
+ "columns": ["activity_id"],
3310
+ "schemaTo": "public",
3311
+ "tableTo": "resources",
3312
+ "columnsTo": ["id"],
3313
+ "onUpdate": "NO ACTION",
3314
+ "onDelete": "SET NULL",
3315
+ "name": "objects_activity_id_resources_id_fkey",
3316
+ "entityType": "fks",
3317
+ "schema": "public",
3318
+ "table": "objects"
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": "sessions_accountId_accounts_id_fkey",
3329
+ "entityType": "fks",
3330
+ "schema": "public",
3331
+ "table": "sessions"
3332
+ },
3333
+ {
3334
+ "columns": ["delivery_id", "actor_id", "collection_iri"],
3335
+ "nameExplicit": false,
3336
+ "name": "activity_delivery_actor_collections_pkey",
3337
+ "entityType": "pks",
3338
+ "schema": "public",
3339
+ "table": "activity_delivery_actor_collections"
3340
+ },
3341
+ {
3342
+ "columns": ["delivery_id", "actor_id"],
3343
+ "nameExplicit": false,
3344
+ "name": "activity_delivery_actors_pkey",
3345
+ "entityType": "pks",
3346
+ "schema": "public",
3347
+ "table": "activity_delivery_actors"
3348
+ },
3349
+ {
3350
+ "columns": ["actor_id", "role"],
3351
+ "nameExplicit": false,
3352
+ "name": "actor_collection_references_pkey",
3353
+ "entityType": "pks",
3354
+ "schema": "public",
3355
+ "table": "actor_collection_references"
3356
+ },
3357
+ {
3358
+ "columns": ["collection_id", "item_id"],
3359
+ "nameExplicit": false,
3360
+ "name": "collection_items_pkey",
3361
+ "entityType": "pks",
3362
+ "schema": "public",
3363
+ "table": "collection_items"
3364
+ },
3365
+ {
3366
+ "columns": ["instance_id", "account_id"],
3367
+ "nameExplicit": false,
3368
+ "name": "instance_members_pkey",
3369
+ "entityType": "pks",
3370
+ "schema": "public",
3371
+ "table": "instance_members"
3372
+ },
3373
+ {
3374
+ "columns": ["local_actor_id", "type"],
3375
+ "nameExplicit": false,
3376
+ "name": "local_actor_keys_pkey",
3377
+ "entityType": "pks",
3378
+ "schema": "public",
3379
+ "table": "local_actor_keys"
3380
+ },
3381
+ {
3382
+ "columns": ["id"],
3383
+ "nameExplicit": false,
3384
+ "name": "accounts_pkey",
3385
+ "schema": "public",
3386
+ "table": "accounts",
3387
+ "entityType": "pks"
3388
+ },
3389
+ {
3390
+ "columns": ["id"],
3391
+ "nameExplicit": false,
3392
+ "name": "activities_pkey",
3393
+ "schema": "public",
3394
+ "table": "activities",
3395
+ "entityType": "pks"
3396
+ },
3397
+ {
3398
+ "columns": ["id"],
3399
+ "nameExplicit": false,
3400
+ "name": "activity_deliveries_pkey",
3401
+ "schema": "public",
3402
+ "table": "activity_deliveries",
3403
+ "entityType": "pks"
3404
+ },
3405
+ {
3406
+ "columns": ["id"],
3407
+ "nameExplicit": false,
3408
+ "name": "activity_delivery_attempts_pkey",
3409
+ "schema": "public",
3410
+ "table": "activity_delivery_attempts",
3411
+ "entityType": "pks"
3412
+ },
3413
+ {
3414
+ "columns": ["id"],
3415
+ "nameExplicit": false,
3416
+ "name": "actors_pkey",
3417
+ "schema": "public",
3418
+ "table": "actors",
3419
+ "entityType": "pks"
3420
+ },
3421
+ {
3422
+ "columns": ["id"],
3423
+ "nameExplicit": false,
3424
+ "name": "addressing_pkey",
3425
+ "schema": "public",
3426
+ "table": "addressing",
3427
+ "entityType": "pks"
3428
+ },
3429
+ {
3430
+ "columns": ["id"],
3431
+ "nameExplicit": false,
3432
+ "name": "collections_pkey",
3433
+ "schema": "public",
3434
+ "table": "collections",
3435
+ "entityType": "pks"
3436
+ },
3437
+ {
3438
+ "columns": ["id"],
3439
+ "nameExplicit": false,
3440
+ "name": "instances_pkey",
3441
+ "schema": "public",
3442
+ "table": "instances",
3443
+ "entityType": "pks"
3444
+ },
3445
+ {
3446
+ "columns": ["id"],
3447
+ "nameExplicit": false,
3448
+ "name": "key_versions_pkey",
3449
+ "schema": "public",
3450
+ "table": "key_versions",
3451
+ "entityType": "pks"
3452
+ },
3453
+ {
3454
+ "columns": ["id"],
3455
+ "nameExplicit": false,
3456
+ "name": "keys_pkey",
3457
+ "schema": "public",
3458
+ "table": "keys",
3459
+ "entityType": "pks"
3460
+ },
3461
+ {
3462
+ "columns": ["id"],
3463
+ "nameExplicit": false,
3464
+ "name": "local_actors_pkey",
3465
+ "schema": "public",
3466
+ "table": "local_actors",
3467
+ "entityType": "pks"
3468
+ },
3469
+ {
3470
+ "columns": ["id"],
3471
+ "nameExplicit": false,
3472
+ "name": "local_instances_pkey",
3473
+ "schema": "public",
3474
+ "table": "local_instances",
3475
+ "entityType": "pks"
3476
+ },
3477
+ {
3478
+ "columns": ["id"],
3479
+ "nameExplicit": false,
3480
+ "name": "login_tokens_pkey",
3481
+ "schema": "public",
3482
+ "table": "login_challenges",
3483
+ "entityType": "pks"
3484
+ },
3485
+ {
3486
+ "columns": ["id"],
3487
+ "nameExplicit": false,
3488
+ "name": "objects_pkey",
3489
+ "schema": "public",
3490
+ "table": "objects",
3491
+ "entityType": "pks"
3492
+ },
3493
+ {
3494
+ "columns": ["id"],
3495
+ "nameExplicit": false,
3496
+ "name": "resources_pkey",
3497
+ "schema": "public",
3498
+ "table": "resources",
3499
+ "entityType": "pks"
3500
+ },
3501
+ {
3502
+ "columns": ["id"],
3503
+ "nameExplicit": false,
3504
+ "name": "sessions_pkey",
3505
+ "schema": "public",
3506
+ "table": "sessions",
3507
+ "entityType": "pks"
3508
+ },
3509
+ {
3510
+ "nameExplicit": true,
3511
+ "columns": ["source_id", "property", "position"],
3512
+ "nullsNotDistinct": false,
3513
+ "name": "addressing_source_property_position_key",
3514
+ "entityType": "uniques",
3515
+ "schema": "public",
3516
+ "table": "addressing"
3517
+ },
3518
+ {
3519
+ "nameExplicit": true,
3520
+ "columns": ["key_id", "fingerprint"],
3521
+ "nullsNotDistinct": false,
3522
+ "name": "key_versions_key_id_fingerprint_unique",
3523
+ "entityType": "uniques",
3524
+ "schema": "public",
3525
+ "table": "key_versions"
3526
+ },
3527
+ {
3528
+ "nameExplicit": true,
3529
+ "columns": ["activity_id"],
3530
+ "nullsNotDistinct": false,
3531
+ "name": "objects_activity_id_key",
3532
+ "entityType": "uniques",
3533
+ "schema": "public",
3534
+ "table": "objects"
3535
+ },
3536
+ {
3537
+ "nameExplicit": false,
3538
+ "columns": ["email"],
3539
+ "nullsNotDistinct": false,
3540
+ "name": "accounts_email_key",
3541
+ "schema": "public",
3542
+ "table": "accounts",
3543
+ "entityType": "uniques"
3544
+ },
3545
+ {
3546
+ "nameExplicit": false,
3547
+ "columns": ["local_id"],
3548
+ "nullsNotDistinct": false,
3549
+ "name": "actors_localId_key",
3550
+ "schema": "public",
3551
+ "table": "actors",
3552
+ "entityType": "uniques"
3553
+ },
3554
+ {
3555
+ "nameExplicit": false,
3556
+ "columns": ["host"],
3557
+ "nullsNotDistinct": false,
3558
+ "name": "instances_host_key",
3559
+ "schema": "public",
3560
+ "table": "instances",
3561
+ "entityType": "uniques"
3562
+ },
3563
+ {
3564
+ "nameExplicit": false,
3565
+ "columns": ["iri"],
3566
+ "nullsNotDistinct": false,
3567
+ "name": "keys_iri_key",
3568
+ "schema": "public",
3569
+ "table": "keys",
3570
+ "entityType": "uniques"
3571
+ },
3572
+ {
3573
+ "nameExplicit": false,
3574
+ "columns": ["slug"],
3575
+ "nullsNotDistinct": false,
3576
+ "name": "local_instances_slug_key",
3577
+ "schema": "public",
3578
+ "table": "local_instances",
3579
+ "entityType": "uniques"
3580
+ },
3581
+ {
3582
+ "nameExplicit": false,
3583
+ "columns": ["iri"],
3584
+ "nullsNotDistinct": false,
3585
+ "name": "resources_iri_key",
3586
+ "schema": "public",
3587
+ "table": "resources",
3588
+ "entityType": "uniques"
3589
+ },
3590
+ {
3591
+ "nameExplicit": false,
3592
+ "columns": ["token_hash"],
3593
+ "nullsNotDistinct": false,
3594
+ "name": "sessions_tokenHash_key",
3595
+ "schema": "public",
3596
+ "table": "sessions",
3597
+ "entityType": "uniques"
3598
+ },
3599
+ {
3600
+ "value": "\"email\" ~ '^[^@]+@[^@]+\\.[^@]+$'",
3601
+ "name": "accounts_email_check",
3602
+ "entityType": "checks",
3603
+ "schema": "public",
3604
+ "table": "accounts"
3605
+ },
3606
+ {
3607
+ "value": "\"max_instances\" >= 0",
3608
+ "name": "accounts_max_instances_check",
3609
+ "entityType": "checks",
3610
+ "schema": "public",
3611
+ "table": "accounts"
3612
+ },
3613
+ {
3614
+ "value": "trim(both from \"name\") <> ''",
3615
+ "name": "accounts_name_check",
3616
+ "entityType": "checks",
3617
+ "schema": "public",
3618
+ "table": "accounts"
3619
+ },
3620
+ {
3621
+ "value": "(\"direction\" = 'inbound' AND \"status\" IN ('received', 'acknowledged', 'unverified', 'rejected')) OR (\"direction\" = 'outbound' AND \"status\" IN ('queued', 'sent', 'failed', 'permanently_failed', 'abandoned'))",
3622
+ "name": "activity_deliveries_direction_status_check",
3623
+ "entityType": "checks",
3624
+ "schema": "public",
3625
+ "table": "activity_deliveries"
3626
+ },
3627
+ {
3628
+ "value": "(\"completed\" IS NULL) = (\"status\" = 'queued')",
3629
+ "name": "activity_deliveries_completed_check",
3630
+ "entityType": "checks",
3631
+ "schema": "public",
3632
+ "table": "activity_deliveries"
3633
+ },
3634
+ {
3635
+ "value": "\"status_code\" IS NULL OR \"status_code\" BETWEEN 100 AND 599",
3636
+ "name": "activity_deliveries_status_code_check",
3637
+ "entityType": "checks",
3638
+ "schema": "public",
3639
+ "table": "activity_deliveries"
3640
+ },
3641
+ {
3642
+ "value": "\"direction\" <> 'outbound' OR \"verification_key_id\" IS NULL",
3643
+ "name": "activity_deliveries_outbound_key_check",
3644
+ "entityType": "checks",
3645
+ "schema": "public",
3646
+ "table": "activity_deliveries"
3647
+ },
3648
+ {
3649
+ "value": "(\"direction\" = 'inbound') = (\"verification_result\" IS NOT NULL)",
3650
+ "name": "activity_deliveries_verification_result_check",
3651
+ "entityType": "checks",
3652
+ "schema": "public",
3653
+ "table": "activity_deliveries"
3654
+ },
3655
+ {
3656
+ "value": "\"verification_mechanism\" IS NULL OR (\"direction\" = 'inbound' AND \"verification_result\" NOT IN ('unattempted', 'unobserved'))",
3657
+ "name": "activity_deliveries_verification_mechanism_check",
3658
+ "entityType": "checks",
3659
+ "schema": "public",
3660
+ "table": "activity_deliveries"
3661
+ },
3662
+ {
3663
+ "value": "(\"direction\" = 'inbound') = (\"body\" IS NOT NULL)",
3664
+ "name": "activity_deliveries_body_check",
3665
+ "entityType": "checks",
3666
+ "schema": "public",
3667
+ "table": "activity_deliveries"
3668
+ },
3669
+ {
3670
+ "value": "\"activity_id\" IS NULL OR \"direction\" = 'outbound' OR (\"verification_result\" = 'verified' AND \"status\" IN ('received', 'acknowledged'))",
3671
+ "name": "activity_deliveries_activity_check",
3672
+ "entityType": "checks",
3673
+ "schema": "public",
3674
+ "table": "activity_deliveries"
3675
+ },
3676
+ {
3677
+ "value": "\"inbox_owner\" OR \"addressed\" OR \"sender\"",
3678
+ "name": "activity_delivery_actors_role_check",
3679
+ "entityType": "checks",
3680
+ "schema": "public",
3681
+ "table": "activity_delivery_actors"
3682
+ },
3683
+ {
3684
+ "value": "NOT \"addressed_directly\" OR \"addressed\"",
3685
+ "name": "activity_delivery_actors_addressed_directly_check",
3686
+ "entityType": "checks",
3687
+ "schema": "public",
3688
+ "table": "activity_delivery_actors"
3689
+ },
3690
+ {
3691
+ "value": "\"status_code\" IS NULL OR \"status_code\" BETWEEN 100 AND 599",
3692
+ "name": "activity_delivery_attempts_status_code_check",
3693
+ "entityType": "checks",
3694
+ "schema": "public",
3695
+ "table": "activity_delivery_attempts"
3696
+ },
3697
+ {
3698
+ "value": "\"succeeded\" = (\"error\" IS NULL)",
3699
+ "name": "activity_delivery_attempts_error_check",
3700
+ "entityType": "checks",
3701
+ "schema": "public",
3702
+ "table": "activity_delivery_attempts"
3703
+ },
3704
+ {
3705
+ "value": "\"local_id\" IS NULL OR \"username\" NOT LIKE '%@%'",
3706
+ "name": "actors_username_check",
3707
+ "entityType": "checks",
3708
+ "schema": "public",
3709
+ "table": "actors"
3710
+ },
3711
+ {
3712
+ "value": "\"local_id\" IS NULL OR \"username\" IS NOT NULL",
3713
+ "name": "actors_local_username_check",
3714
+ "entityType": "checks",
3715
+ "schema": "public",
3716
+ "table": "actors"
3717
+ },
3718
+ {
3719
+ "value": "\n \"suspended_until\" IS NULL OR (\n \"suspended\" IS NOT NULL AND\n \"suspended_until\" > \"suspended\"\n )\n ",
3720
+ "name": "actors_suspended_check",
3721
+ "entityType": "checks",
3722
+ "schema": "public",
3723
+ "table": "actors"
3724
+ },
3725
+ {
3726
+ "value": "\"last_seen\" >= \"first_seen\"",
3727
+ "name": "key_versions_seen_check",
3728
+ "entityType": "checks",
3729
+ "schema": "public",
3730
+ "table": "key_versions"
3731
+ },
3732
+ {
3733
+ "value": "NOT (\"public_key\" ?| array['d','p','q','dp','dq','qi','oth','k'])",
3734
+ "name": "key_versions_public_key_check",
3735
+ "entityType": "checks",
3736
+ "schema": "public",
3737
+ "table": "key_versions"
3738
+ },
3739
+ {
3740
+ "value": "jsonb_typeof(\"public_key\") = 'object' AND NOT (\"public_key\" ?| array['d','p','q','dp','dq','qi','oth','k'])",
3741
+ "name": "local_actor_keys_public_key_check",
3742
+ "entityType": "checks",
3743
+ "schema": "public",
3744
+ "table": "local_actor_keys"
3745
+ },
3746
+ {
3747
+ "value": "\"slug\" ~ '^[a-z0-9][a-z0-9-]{2,61}[a-z0-9]$'\n AND (\"slug\" !~ '^..--' OR \"slug\" ~ '^xn--')",
3748
+ "name": "local_instances_slug_check",
3749
+ "entityType": "checks",
3750
+ "schema": "public",
3751
+ "table": "local_instances"
3752
+ },
3753
+ {
3754
+ "value": "\"max_actors\" > 0",
3755
+ "name": "instances_max_actors_check",
3756
+ "entityType": "checks",
3757
+ "schema": "public",
3758
+ "table": "local_instances"
3759
+ },
3760
+ {
3761
+ "value": "trim(both from \"content_html\") <> ''",
3762
+ "name": "objects_content_html_check",
3763
+ "entityType": "checks",
3764
+ "schema": "public",
3765
+ "table": "objects"
3766
+ }
3767
+ ],
3768
+ "renames": []
3769
+ }