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