@drfed/models 0.2.0-dev.714 → 0.2.0-dev.716

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 (37) hide show
  1. package/dist/activity-delivery.d.mts +1 -1
  2. package/dist/{db-BBw4F4HU.d.mts → db-CcbUSnp2.d.mts} +84 -3
  3. package/dist/{db-BBw4F4HU.d.mts.map → db-CcbUSnp2.d.mts.map} +1 -1
  4. package/dist/db.d.mts +1 -1
  5. package/dist/document.d.mts +10 -0
  6. package/dist/document.d.mts.map +1 -1
  7. package/dist/document.mjs +6 -1
  8. package/dist/document.mjs.map +1 -1
  9. package/dist/index.d.mts +4 -4
  10. package/dist/index.mjs +3 -3
  11. package/dist/instance.d.mts +1 -1
  12. package/dist/key.d.mts +1 -1
  13. package/dist/login.d.mts +8 -2
  14. package/dist/login.d.mts.map +1 -1
  15. package/dist/login.mjs +8 -1
  16. package/dist/login.mjs.map +1 -1
  17. package/dist/migrations-manifest.json +8 -0
  18. package/dist/relations.d.mts +1 -1
  19. package/dist/relations.mjs +19 -2
  20. package/dist/relations.mjs.map +1 -1
  21. package/dist/{resource-revision-iQ8HZ699.mjs → resource-revision-bTQyJ7aw.mjs} +28 -3
  22. package/dist/resource-revision-bTQyJ7aw.mjs.map +1 -0
  23. package/dist/{resource-revision-BauDwFIn.d.mts → resource-revision-rDmHhNCj.d.mts} +19 -3
  24. package/dist/resource-revision-rDmHhNCj.d.mts.map +1 -0
  25. package/dist/resource-revision.d.mts +2 -2
  26. package/dist/resource-revision.mjs +1 -1
  27. package/dist/resource.d.mts +1 -1
  28. package/dist/schema.d.mts +2 -2
  29. package/dist/schema.mjs +27 -1
  30. package/dist/schema.mjs.map +1 -1
  31. package/drizzle/20261113080536_revision_embeddings/migration.sql +14 -0
  32. package/drizzle/20261113080536_revision_embeddings/snapshot.json +4634 -0
  33. package/drizzle/20261113080537_guard_revision_embeddings/migration.sql +42 -0
  34. package/drizzle/20261113080537_guard_revision_embeddings/snapshot.json +4634 -0
  35. package/package.json +6 -6
  36. package/dist/resource-revision-BauDwFIn.d.mts.map +0 -1
  37. package/dist/resource-revision-iQ8HZ699.mjs.map +0 -1
@@ -0,0 +1,4634 @@
1
+ {
2
+ "id": "cca19e71-9298-4ce6-91cd-a43b4753442f",
3
+ "prevIds": ["f867ba22-2861-4e0b-a6c6-4c560fc4682e"],
4
+ "version": "8",
5
+ "dialect": "postgres",
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
+ "values": ["local", "received", "embedded", "fetched"],
98
+ "name": "resource_revision_capture",
99
+ "entityType": "enums",
100
+ "schema": "public"
101
+ },
102
+ {
103
+ "values": ["snapshot", "unavailable", "whiteout"],
104
+ "name": "resource_revision_kind",
105
+ "entityType": "enums",
106
+ "schema": "public"
107
+ },
108
+ {
109
+ "values": ["partial", "complete"],
110
+ "name": "resource_revision_projection",
111
+ "entityType": "enums",
112
+ "schema": "public"
113
+ },
114
+ {
115
+ "values": ["snapshot", "derived"],
116
+ "name": "revision_embedding_relation",
117
+ "entityType": "enums",
118
+ "schema": "public"
119
+ },
120
+ {
121
+ "values": ["activity", "object"],
122
+ "name": "revision_receipt_role",
123
+ "entityType": "enums",
124
+ "schema": "public"
125
+ },
126
+ {
127
+ "values": ["reference", "embedded", "link"],
128
+ "name": "revision_relation_representation",
129
+ "entityType": "enums",
130
+ "schema": "public"
131
+ },
132
+ {
133
+ "isRlsEnabled": false,
134
+ "name": "accounts",
135
+ "entityType": "tables",
136
+ "schema": "public"
137
+ },
138
+ {
139
+ "isRlsEnabled": false,
140
+ "name": "activities",
141
+ "entityType": "tables",
142
+ "schema": "public"
143
+ },
144
+ {
145
+ "isRlsEnabled": false,
146
+ "name": "activity_deliveries",
147
+ "entityType": "tables",
148
+ "schema": "public"
149
+ },
150
+ {
151
+ "isRlsEnabled": false,
152
+ "name": "activity_delivery_actor_collections",
153
+ "entityType": "tables",
154
+ "schema": "public"
155
+ },
156
+ {
157
+ "isRlsEnabled": false,
158
+ "name": "activity_delivery_actors",
159
+ "entityType": "tables",
160
+ "schema": "public"
161
+ },
162
+ {
163
+ "isRlsEnabled": false,
164
+ "name": "activity_delivery_attempts",
165
+ "entityType": "tables",
166
+ "schema": "public"
167
+ },
168
+ {
169
+ "isRlsEnabled": false,
170
+ "name": "actor_collection_references",
171
+ "entityType": "tables",
172
+ "schema": "public"
173
+ },
174
+ {
175
+ "isRlsEnabled": false,
176
+ "name": "actors",
177
+ "entityType": "tables",
178
+ "schema": "public"
179
+ },
180
+ {
181
+ "isRlsEnabled": false,
182
+ "name": "addressing",
183
+ "entityType": "tables",
184
+ "schema": "public"
185
+ },
186
+ {
187
+ "isRlsEnabled": false,
188
+ "name": "collection_items",
189
+ "entityType": "tables",
190
+ "schema": "public"
191
+ },
192
+ {
193
+ "isRlsEnabled": false,
194
+ "name": "collections",
195
+ "entityType": "tables",
196
+ "schema": "public"
197
+ },
198
+ {
199
+ "isRlsEnabled": false,
200
+ "name": "instance_members",
201
+ "entityType": "tables",
202
+ "schema": "public"
203
+ },
204
+ {
205
+ "isRlsEnabled": false,
206
+ "name": "instances",
207
+ "entityType": "tables",
208
+ "schema": "public"
209
+ },
210
+ {
211
+ "isRlsEnabled": false,
212
+ "name": "key_versions",
213
+ "entityType": "tables",
214
+ "schema": "public"
215
+ },
216
+ {
217
+ "isRlsEnabled": false,
218
+ "name": "keys",
219
+ "entityType": "tables",
220
+ "schema": "public"
221
+ },
222
+ {
223
+ "isRlsEnabled": false,
224
+ "name": "local_actor_keys",
225
+ "entityType": "tables",
226
+ "schema": "public"
227
+ },
228
+ {
229
+ "isRlsEnabled": false,
230
+ "name": "local_actors",
231
+ "entityType": "tables",
232
+ "schema": "public"
233
+ },
234
+ {
235
+ "isRlsEnabled": false,
236
+ "name": "local_instances",
237
+ "entityType": "tables",
238
+ "schema": "public"
239
+ },
240
+ {
241
+ "isRlsEnabled": false,
242
+ "name": "login_challenges",
243
+ "entityType": "tables",
244
+ "schema": "public"
245
+ },
246
+ {
247
+ "isRlsEnabled": false,
248
+ "name": "objects",
249
+ "entityType": "tables",
250
+ "schema": "public"
251
+ },
252
+ {
253
+ "isRlsEnabled": false,
254
+ "name": "resource_heads",
255
+ "entityType": "tables",
256
+ "schema": "public"
257
+ },
258
+ {
259
+ "isRlsEnabled": false,
260
+ "name": "resource_revisions",
261
+ "entityType": "tables",
262
+ "schema": "public"
263
+ },
264
+ {
265
+ "isRlsEnabled": false,
266
+ "name": "resources",
267
+ "entityType": "tables",
268
+ "schema": "public"
269
+ },
270
+ {
271
+ "isRlsEnabled": false,
272
+ "name": "revision_addressing",
273
+ "entityType": "tables",
274
+ "schema": "public"
275
+ },
276
+ {
277
+ "isRlsEnabled": false,
278
+ "name": "revision_embeddings",
279
+ "entityType": "tables",
280
+ "schema": "public"
281
+ },
282
+ {
283
+ "isRlsEnabled": false,
284
+ "name": "revision_receipts",
285
+ "entityType": "tables",
286
+ "schema": "public"
287
+ },
288
+ {
289
+ "isRlsEnabled": false,
290
+ "name": "revision_relations",
291
+ "entityType": "tables",
292
+ "schema": "public"
293
+ },
294
+ {
295
+ "isRlsEnabled": false,
296
+ "name": "sessions",
297
+ "entityType": "tables",
298
+ "schema": "public"
299
+ },
300
+ {
301
+ "type": "uuid",
302
+ "typeSchema": null,
303
+ "notNull": true,
304
+ "dimensions": 0,
305
+ "default": null,
306
+ "generated": null,
307
+ "identity": null,
308
+ "name": "id",
309
+ "entityType": "columns",
310
+ "schema": "public",
311
+ "table": "accounts"
312
+ },
313
+ {
314
+ "type": "varchar(255)",
315
+ "typeSchema": null,
316
+ "notNull": true,
317
+ "dimensions": 0,
318
+ "default": null,
319
+ "generated": null,
320
+ "identity": null,
321
+ "name": "email",
322
+ "entityType": "columns",
323
+ "schema": "public",
324
+ "table": "accounts"
325
+ },
326
+ {
327
+ "type": "varchar(100)",
328
+ "typeSchema": null,
329
+ "notNull": true,
330
+ "dimensions": 0,
331
+ "default": null,
332
+ "generated": null,
333
+ "identity": null,
334
+ "name": "name",
335
+ "entityType": "columns",
336
+ "schema": "public",
337
+ "table": "accounts"
338
+ },
339
+ {
340
+ "type": "integer",
341
+ "typeSchema": null,
342
+ "notNull": true,
343
+ "dimensions": 0,
344
+ "default": "10",
345
+ "generated": null,
346
+ "identity": null,
347
+ "name": "max_instances",
348
+ "entityType": "columns",
349
+ "schema": "public",
350
+ "table": "accounts"
351
+ },
352
+ {
353
+ "type": "boolean",
354
+ "typeSchema": null,
355
+ "notNull": true,
356
+ "dimensions": 0,
357
+ "default": "false",
358
+ "generated": null,
359
+ "identity": null,
360
+ "name": "admin",
361
+ "entityType": "columns",
362
+ "schema": "public",
363
+ "table": "accounts"
364
+ },
365
+ {
366
+ "type": "timestamp with time zone",
367
+ "typeSchema": null,
368
+ "notNull": true,
369
+ "dimensions": 0,
370
+ "default": "CURRENT_TIMESTAMP",
371
+ "generated": null,
372
+ "identity": null,
373
+ "name": "created",
374
+ "entityType": "columns",
375
+ "schema": "public",
376
+ "table": "accounts"
377
+ },
378
+ {
379
+ "type": "uuid",
380
+ "typeSchema": null,
381
+ "notNull": true,
382
+ "dimensions": 0,
383
+ "default": null,
384
+ "generated": null,
385
+ "identity": null,
386
+ "name": "id",
387
+ "entityType": "columns",
388
+ "schema": "public",
389
+ "table": "activities"
390
+ },
391
+ {
392
+ "type": "activity_type",
393
+ "typeSchema": "public",
394
+ "notNull": true,
395
+ "dimensions": 0,
396
+ "default": null,
397
+ "generated": null,
398
+ "identity": null,
399
+ "name": "type",
400
+ "entityType": "columns",
401
+ "schema": "public",
402
+ "table": "activities"
403
+ },
404
+ {
405
+ "type": "uuid",
406
+ "typeSchema": null,
407
+ "notNull": true,
408
+ "dimensions": 0,
409
+ "default": null,
410
+ "generated": null,
411
+ "identity": null,
412
+ "name": "actor_id",
413
+ "entityType": "columns",
414
+ "schema": "public",
415
+ "table": "activities"
416
+ },
417
+ {
418
+ "type": "uuid",
419
+ "typeSchema": null,
420
+ "notNull": false,
421
+ "dimensions": 0,
422
+ "default": null,
423
+ "generated": null,
424
+ "identity": null,
425
+ "name": "object_id",
426
+ "entityType": "columns",
427
+ "schema": "public",
428
+ "table": "activities"
429
+ },
430
+ {
431
+ "type": "timestamp with time zone",
432
+ "typeSchema": null,
433
+ "notNull": true,
434
+ "dimensions": 0,
435
+ "default": null,
436
+ "generated": null,
437
+ "identity": null,
438
+ "name": "published",
439
+ "entityType": "columns",
440
+ "schema": "public",
441
+ "table": "activities"
442
+ },
443
+ {
444
+ "type": "json",
445
+ "typeSchema": null,
446
+ "notNull": false,
447
+ "dimensions": 0,
448
+ "default": null,
449
+ "generated": null,
450
+ "identity": null,
451
+ "name": "document",
452
+ "entityType": "columns",
453
+ "schema": "public",
454
+ "table": "activities"
455
+ },
456
+ {
457
+ "type": "timestamp with time zone",
458
+ "typeSchema": null,
459
+ "notNull": true,
460
+ "dimensions": 0,
461
+ "default": "CURRENT_TIMESTAMP",
462
+ "generated": null,
463
+ "identity": null,
464
+ "name": "created",
465
+ "entityType": "columns",
466
+ "schema": "public",
467
+ "table": "activities"
468
+ },
469
+ {
470
+ "type": "uuid",
471
+ "typeSchema": null,
472
+ "notNull": true,
473
+ "dimensions": 0,
474
+ "default": null,
475
+ "generated": null,
476
+ "identity": null,
477
+ "name": "id",
478
+ "entityType": "columns",
479
+ "schema": "public",
480
+ "table": "activity_deliveries"
481
+ },
482
+ {
483
+ "type": "uuid",
484
+ "typeSchema": null,
485
+ "notNull": true,
486
+ "dimensions": 0,
487
+ "default": null,
488
+ "generated": null,
489
+ "identity": null,
490
+ "name": "instance_id",
491
+ "entityType": "columns",
492
+ "schema": "public",
493
+ "table": "activity_deliveries"
494
+ },
495
+ {
496
+ "type": "uuid",
497
+ "typeSchema": null,
498
+ "notNull": false,
499
+ "dimensions": 0,
500
+ "default": null,
501
+ "generated": null,
502
+ "identity": null,
503
+ "name": "actor_id",
504
+ "entityType": "columns",
505
+ "schema": "public",
506
+ "table": "activity_deliveries"
507
+ },
508
+ {
509
+ "type": "activity_delivery_direction",
510
+ "typeSchema": "public",
511
+ "notNull": true,
512
+ "dimensions": 0,
513
+ "default": null,
514
+ "generated": null,
515
+ "identity": null,
516
+ "name": "direction",
517
+ "entityType": "columns",
518
+ "schema": "public",
519
+ "table": "activity_deliveries"
520
+ },
521
+ {
522
+ "type": "activity_delivery_status",
523
+ "typeSchema": "public",
524
+ "notNull": true,
525
+ "dimensions": 0,
526
+ "default": null,
527
+ "generated": null,
528
+ "identity": null,
529
+ "name": "status",
530
+ "entityType": "columns",
531
+ "schema": "public",
532
+ "table": "activity_deliveries"
533
+ },
534
+ {
535
+ "type": "activity_delivery_verification_mechanism",
536
+ "typeSchema": "public",
537
+ "notNull": false,
538
+ "dimensions": 0,
539
+ "default": null,
540
+ "generated": null,
541
+ "identity": null,
542
+ "name": "verification_mechanism",
543
+ "entityType": "columns",
544
+ "schema": "public",
545
+ "table": "activity_deliveries"
546
+ },
547
+ {
548
+ "type": "activity_delivery_verification_result",
549
+ "typeSchema": "public",
550
+ "notNull": false,
551
+ "dimensions": 0,
552
+ "default": null,
553
+ "generated": null,
554
+ "identity": null,
555
+ "name": "verification_result",
556
+ "entityType": "columns",
557
+ "schema": "public",
558
+ "table": "activity_deliveries"
559
+ },
560
+ {
561
+ "type": "text",
562
+ "typeSchema": null,
563
+ "notNull": false,
564
+ "dimensions": 0,
565
+ "default": null,
566
+ "generated": null,
567
+ "identity": null,
568
+ "name": "type",
569
+ "entityType": "columns",
570
+ "schema": "public",
571
+ "table": "activity_deliveries"
572
+ },
573
+ {
574
+ "type": "text",
575
+ "typeSchema": null,
576
+ "notNull": true,
577
+ "dimensions": 1,
578
+ "default": "'{}'",
579
+ "generated": null,
580
+ "identity": null,
581
+ "name": "types",
582
+ "entityType": "columns",
583
+ "schema": "public",
584
+ "table": "activity_deliveries"
585
+ },
586
+ {
587
+ "type": "text",
588
+ "typeSchema": null,
589
+ "notNull": false,
590
+ "dimensions": 0,
591
+ "default": null,
592
+ "generated": null,
593
+ "identity": null,
594
+ "name": "activity_iri",
595
+ "entityType": "columns",
596
+ "schema": "public",
597
+ "table": "activity_deliveries"
598
+ },
599
+ {
600
+ "type": "uuid",
601
+ "typeSchema": null,
602
+ "notNull": false,
603
+ "dimensions": 0,
604
+ "default": null,
605
+ "generated": null,
606
+ "identity": null,
607
+ "name": "activity_id",
608
+ "entityType": "columns",
609
+ "schema": "public",
610
+ "table": "activity_deliveries"
611
+ },
612
+ {
613
+ "type": "boolean",
614
+ "typeSchema": null,
615
+ "notNull": true,
616
+ "dimensions": 0,
617
+ "default": "false",
618
+ "generated": null,
619
+ "identity": null,
620
+ "name": "carried_snapshot",
621
+ "entityType": "columns",
622
+ "schema": "public",
623
+ "table": "activity_deliveries"
624
+ },
625
+ {
626
+ "type": "jsonb",
627
+ "typeSchema": null,
628
+ "notNull": false,
629
+ "dimensions": 0,
630
+ "default": null,
631
+ "generated": null,
632
+ "identity": null,
633
+ "name": "fetched_object",
634
+ "entityType": "columns",
635
+ "schema": "public",
636
+ "table": "activity_deliveries"
637
+ },
638
+ {
639
+ "type": "boolean",
640
+ "typeSchema": null,
641
+ "notNull": true,
642
+ "dimensions": 0,
643
+ "default": "false",
644
+ "generated": null,
645
+ "identity": null,
646
+ "name": "carried_object_snapshot",
647
+ "entityType": "columns",
648
+ "schema": "public",
649
+ "table": "activity_deliveries"
650
+ },
651
+ {
652
+ "type": "text",
653
+ "typeSchema": null,
654
+ "notNull": false,
655
+ "dimensions": 0,
656
+ "default": null,
657
+ "generated": null,
658
+ "identity": null,
659
+ "name": "object_type",
660
+ "entityType": "columns",
661
+ "schema": "public",
662
+ "table": "activity_deliveries"
663
+ },
664
+ {
665
+ "type": "text",
666
+ "typeSchema": null,
667
+ "notNull": false,
668
+ "dimensions": 0,
669
+ "default": null,
670
+ "generated": null,
671
+ "identity": null,
672
+ "name": "object_iri",
673
+ "entityType": "columns",
674
+ "schema": "public",
675
+ "table": "activity_deliveries"
676
+ },
677
+ {
678
+ "type": "text",
679
+ "typeSchema": null,
680
+ "notNull": false,
681
+ "dimensions": 0,
682
+ "default": null,
683
+ "generated": null,
684
+ "identity": null,
685
+ "name": "signed_key_iri",
686
+ "entityType": "columns",
687
+ "schema": "public",
688
+ "table": "activity_deliveries"
689
+ },
690
+ {
691
+ "type": "uuid",
692
+ "typeSchema": null,
693
+ "notNull": false,
694
+ "dimensions": 0,
695
+ "default": null,
696
+ "generated": null,
697
+ "identity": null,
698
+ "name": "verification_key_id",
699
+ "entityType": "columns",
700
+ "schema": "public",
701
+ "table": "activity_deliveries"
702
+ },
703
+ {
704
+ "type": "text",
705
+ "typeSchema": null,
706
+ "notNull": false,
707
+ "dimensions": 0,
708
+ "default": null,
709
+ "generated": null,
710
+ "identity": null,
711
+ "name": "remote_actor_iri",
712
+ "entityType": "columns",
713
+ "schema": "public",
714
+ "table": "activity_deliveries"
715
+ },
716
+ {
717
+ "type": "text",
718
+ "typeSchema": null,
719
+ "notNull": false,
720
+ "dimensions": 0,
721
+ "default": null,
722
+ "generated": null,
723
+ "identity": null,
724
+ "name": "remote_host",
725
+ "entityType": "columns",
726
+ "schema": "public",
727
+ "table": "activity_deliveries"
728
+ },
729
+ {
730
+ "type": "text",
731
+ "typeSchema": null,
732
+ "notNull": true,
733
+ "dimensions": 0,
734
+ "default": null,
735
+ "generated": null,
736
+ "identity": null,
737
+ "name": "inbox_url",
738
+ "entityType": "columns",
739
+ "schema": "public",
740
+ "table": "activity_deliveries"
741
+ },
742
+ {
743
+ "type": "text",
744
+ "typeSchema": null,
745
+ "notNull": false,
746
+ "dimensions": 0,
747
+ "default": null,
748
+ "generated": null,
749
+ "identity": null,
750
+ "name": "request_url",
751
+ "entityType": "columns",
752
+ "schema": "public",
753
+ "table": "activity_deliveries"
754
+ },
755
+ {
756
+ "type": "jsonb",
757
+ "typeSchema": null,
758
+ "notNull": false,
759
+ "dimensions": 0,
760
+ "default": null,
761
+ "generated": null,
762
+ "identity": null,
763
+ "name": "headers",
764
+ "entityType": "columns",
765
+ "schema": "public",
766
+ "table": "activity_deliveries"
767
+ },
768
+ {
769
+ "type": "bytea",
770
+ "typeSchema": null,
771
+ "notNull": false,
772
+ "dimensions": 0,
773
+ "default": null,
774
+ "generated": null,
775
+ "identity": null,
776
+ "name": "body",
777
+ "entityType": "columns",
778
+ "schema": "public",
779
+ "table": "activity_deliveries"
780
+ },
781
+ {
782
+ "type": "integer",
783
+ "typeSchema": null,
784
+ "notNull": false,
785
+ "dimensions": 0,
786
+ "default": null,
787
+ "generated": null,
788
+ "identity": null,
789
+ "name": "status_code",
790
+ "entityType": "columns",
791
+ "schema": "public",
792
+ "table": "activity_deliveries"
793
+ },
794
+ {
795
+ "type": "text",
796
+ "typeSchema": null,
797
+ "notNull": false,
798
+ "dimensions": 0,
799
+ "default": null,
800
+ "generated": null,
801
+ "identity": null,
802
+ "name": "response_body",
803
+ "entityType": "columns",
804
+ "schema": "public",
805
+ "table": "activity_deliveries"
806
+ },
807
+ {
808
+ "type": "text",
809
+ "typeSchema": null,
810
+ "notNull": false,
811
+ "dimensions": 0,
812
+ "default": null,
813
+ "generated": null,
814
+ "identity": null,
815
+ "name": "error",
816
+ "entityType": "columns",
817
+ "schema": "public",
818
+ "table": "activity_deliveries"
819
+ },
820
+ {
821
+ "type": "jsonb",
822
+ "typeSchema": null,
823
+ "notNull": false,
824
+ "dimensions": 0,
825
+ "default": null,
826
+ "generated": null,
827
+ "identity": null,
828
+ "name": "payload",
829
+ "entityType": "columns",
830
+ "schema": "public",
831
+ "table": "activity_deliveries"
832
+ },
833
+ {
834
+ "type": "text",
835
+ "typeSchema": null,
836
+ "notNull": true,
837
+ "dimensions": 1,
838
+ "default": "'{}'",
839
+ "generated": null,
840
+ "identity": null,
841
+ "name": "recipient_iris",
842
+ "entityType": "columns",
843
+ "schema": "public",
844
+ "table": "activity_deliveries"
845
+ },
846
+ {
847
+ "type": "timestamp with time zone",
848
+ "typeSchema": null,
849
+ "notNull": true,
850
+ "dimensions": 0,
851
+ "default": "CURRENT_TIMESTAMP",
852
+ "generated": null,
853
+ "identity": null,
854
+ "name": "created",
855
+ "entityType": "columns",
856
+ "schema": "public",
857
+ "table": "activity_deliveries"
858
+ },
859
+ {
860
+ "type": "timestamp with time zone",
861
+ "typeSchema": null,
862
+ "notNull": false,
863
+ "dimensions": 0,
864
+ "default": null,
865
+ "generated": null,
866
+ "identity": null,
867
+ "name": "completed",
868
+ "entityType": "columns",
869
+ "schema": "public",
870
+ "table": "activity_deliveries"
871
+ },
872
+ {
873
+ "type": "uuid",
874
+ "typeSchema": null,
875
+ "notNull": true,
876
+ "dimensions": 0,
877
+ "default": null,
878
+ "generated": null,
879
+ "identity": null,
880
+ "name": "delivery_id",
881
+ "entityType": "columns",
882
+ "schema": "public",
883
+ "table": "activity_delivery_actor_collections"
884
+ },
885
+ {
886
+ "type": "uuid",
887
+ "typeSchema": null,
888
+ "notNull": true,
889
+ "dimensions": 0,
890
+ "default": null,
891
+ "generated": null,
892
+ "identity": null,
893
+ "name": "actor_id",
894
+ "entityType": "columns",
895
+ "schema": "public",
896
+ "table": "activity_delivery_actor_collections"
897
+ },
898
+ {
899
+ "type": "text",
900
+ "typeSchema": null,
901
+ "notNull": true,
902
+ "dimensions": 0,
903
+ "default": null,
904
+ "generated": null,
905
+ "identity": null,
906
+ "name": "collection_iri",
907
+ "entityType": "columns",
908
+ "schema": "public",
909
+ "table": "activity_delivery_actor_collections"
910
+ },
911
+ {
912
+ "type": "uuid",
913
+ "typeSchema": null,
914
+ "notNull": true,
915
+ "dimensions": 0,
916
+ "default": null,
917
+ "generated": null,
918
+ "identity": null,
919
+ "name": "delivery_id",
920
+ "entityType": "columns",
921
+ "schema": "public",
922
+ "table": "activity_delivery_actors"
923
+ },
924
+ {
925
+ "type": "uuid",
926
+ "typeSchema": null,
927
+ "notNull": true,
928
+ "dimensions": 0,
929
+ "default": null,
930
+ "generated": null,
931
+ "identity": null,
932
+ "name": "actor_id",
933
+ "entityType": "columns",
934
+ "schema": "public",
935
+ "table": "activity_delivery_actors"
936
+ },
937
+ {
938
+ "type": "boolean",
939
+ "typeSchema": null,
940
+ "notNull": true,
941
+ "dimensions": 0,
942
+ "default": "false",
943
+ "generated": null,
944
+ "identity": null,
945
+ "name": "inbox_owner",
946
+ "entityType": "columns",
947
+ "schema": "public",
948
+ "table": "activity_delivery_actors"
949
+ },
950
+ {
951
+ "type": "boolean",
952
+ "typeSchema": null,
953
+ "notNull": true,
954
+ "dimensions": 0,
955
+ "default": "false",
956
+ "generated": null,
957
+ "identity": null,
958
+ "name": "addressed",
959
+ "entityType": "columns",
960
+ "schema": "public",
961
+ "table": "activity_delivery_actors"
962
+ },
963
+ {
964
+ "type": "boolean",
965
+ "typeSchema": null,
966
+ "notNull": true,
967
+ "dimensions": 0,
968
+ "default": "false",
969
+ "generated": null,
970
+ "identity": null,
971
+ "name": "addressed_directly",
972
+ "entityType": "columns",
973
+ "schema": "public",
974
+ "table": "activity_delivery_actors"
975
+ },
976
+ {
977
+ "type": "boolean",
978
+ "typeSchema": null,
979
+ "notNull": true,
980
+ "dimensions": 0,
981
+ "default": "false",
982
+ "generated": null,
983
+ "identity": null,
984
+ "name": "sender",
985
+ "entityType": "columns",
986
+ "schema": "public",
987
+ "table": "activity_delivery_actors"
988
+ },
989
+ {
990
+ "type": "timestamp with time zone",
991
+ "typeSchema": null,
992
+ "notNull": true,
993
+ "dimensions": 0,
994
+ "default": null,
995
+ "generated": null,
996
+ "identity": null,
997
+ "name": "created",
998
+ "entityType": "columns",
999
+ "schema": "public",
1000
+ "table": "activity_delivery_actors"
1001
+ },
1002
+ {
1003
+ "type": "uuid",
1004
+ "typeSchema": null,
1005
+ "notNull": true,
1006
+ "dimensions": 0,
1007
+ "default": null,
1008
+ "generated": null,
1009
+ "identity": null,
1010
+ "name": "id",
1011
+ "entityType": "columns",
1012
+ "schema": "public",
1013
+ "table": "activity_delivery_attempts"
1014
+ },
1015
+ {
1016
+ "type": "uuid",
1017
+ "typeSchema": null,
1018
+ "notNull": true,
1019
+ "dimensions": 0,
1020
+ "default": null,
1021
+ "generated": null,
1022
+ "identity": null,
1023
+ "name": "delivery_id",
1024
+ "entityType": "columns",
1025
+ "schema": "public",
1026
+ "table": "activity_delivery_attempts"
1027
+ },
1028
+ {
1029
+ "type": "boolean",
1030
+ "typeSchema": null,
1031
+ "notNull": true,
1032
+ "dimensions": 0,
1033
+ "default": null,
1034
+ "generated": null,
1035
+ "identity": null,
1036
+ "name": "succeeded",
1037
+ "entityType": "columns",
1038
+ "schema": "public",
1039
+ "table": "activity_delivery_attempts"
1040
+ },
1041
+ {
1042
+ "type": "integer",
1043
+ "typeSchema": null,
1044
+ "notNull": false,
1045
+ "dimensions": 0,
1046
+ "default": null,
1047
+ "generated": null,
1048
+ "identity": null,
1049
+ "name": "status_code",
1050
+ "entityType": "columns",
1051
+ "schema": "public",
1052
+ "table": "activity_delivery_attempts"
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "typeSchema": null,
1057
+ "notNull": false,
1058
+ "dimensions": 0,
1059
+ "default": null,
1060
+ "generated": null,
1061
+ "identity": null,
1062
+ "name": "response_body",
1063
+ "entityType": "columns",
1064
+ "schema": "public",
1065
+ "table": "activity_delivery_attempts"
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "typeSchema": null,
1070
+ "notNull": false,
1071
+ "dimensions": 0,
1072
+ "default": null,
1073
+ "generated": null,
1074
+ "identity": null,
1075
+ "name": "error",
1076
+ "entityType": "columns",
1077
+ "schema": "public",
1078
+ "table": "activity_delivery_attempts"
1079
+ },
1080
+ {
1081
+ "type": "timestamp with time zone",
1082
+ "typeSchema": null,
1083
+ "notNull": true,
1084
+ "dimensions": 0,
1085
+ "default": "CURRENT_TIMESTAMP",
1086
+ "generated": null,
1087
+ "identity": null,
1088
+ "name": "created",
1089
+ "entityType": "columns",
1090
+ "schema": "public",
1091
+ "table": "activity_delivery_attempts"
1092
+ },
1093
+ {
1094
+ "type": "uuid",
1095
+ "typeSchema": null,
1096
+ "notNull": true,
1097
+ "dimensions": 0,
1098
+ "default": null,
1099
+ "generated": null,
1100
+ "identity": null,
1101
+ "name": "actor_id",
1102
+ "entityType": "columns",
1103
+ "schema": "public",
1104
+ "table": "actor_collection_references"
1105
+ },
1106
+ {
1107
+ "type": "collection_role",
1108
+ "typeSchema": "public",
1109
+ "notNull": true,
1110
+ "dimensions": 0,
1111
+ "default": null,
1112
+ "generated": null,
1113
+ "identity": null,
1114
+ "name": "role",
1115
+ "entityType": "columns",
1116
+ "schema": "public",
1117
+ "table": "actor_collection_references"
1118
+ },
1119
+ {
1120
+ "type": "uuid",
1121
+ "typeSchema": null,
1122
+ "notNull": true,
1123
+ "dimensions": 0,
1124
+ "default": null,
1125
+ "generated": null,
1126
+ "identity": null,
1127
+ "name": "collection_id",
1128
+ "entityType": "columns",
1129
+ "schema": "public",
1130
+ "table": "actor_collection_references"
1131
+ },
1132
+ {
1133
+ "type": "uuid",
1134
+ "typeSchema": null,
1135
+ "notNull": true,
1136
+ "dimensions": 0,
1137
+ "default": null,
1138
+ "generated": null,
1139
+ "identity": null,
1140
+ "name": "id",
1141
+ "entityType": "columns",
1142
+ "schema": "public",
1143
+ "table": "actors"
1144
+ },
1145
+ {
1146
+ "type": "uuid",
1147
+ "typeSchema": null,
1148
+ "notNull": false,
1149
+ "dimensions": 0,
1150
+ "default": null,
1151
+ "generated": null,
1152
+ "identity": null,
1153
+ "name": "local_id",
1154
+ "entityType": "columns",
1155
+ "schema": "public",
1156
+ "table": "actors"
1157
+ },
1158
+ {
1159
+ "type": "actor_type",
1160
+ "typeSchema": "public",
1161
+ "notNull": true,
1162
+ "dimensions": 0,
1163
+ "default": null,
1164
+ "generated": null,
1165
+ "identity": null,
1166
+ "name": "type",
1167
+ "entityType": "columns",
1168
+ "schema": "public",
1169
+ "table": "actors"
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "typeSchema": null,
1174
+ "notNull": false,
1175
+ "dimensions": 0,
1176
+ "default": null,
1177
+ "generated": null,
1178
+ "identity": null,
1179
+ "name": "username",
1180
+ "entityType": "columns",
1181
+ "schema": "public",
1182
+ "table": "actors"
1183
+ },
1184
+ {
1185
+ "type": "uuid",
1186
+ "typeSchema": null,
1187
+ "notNull": true,
1188
+ "dimensions": 0,
1189
+ "default": null,
1190
+ "generated": null,
1191
+ "identity": null,
1192
+ "name": "instance_id",
1193
+ "entityType": "columns",
1194
+ "schema": "public",
1195
+ "table": "actors"
1196
+ },
1197
+ {
1198
+ "type": "json",
1199
+ "typeSchema": null,
1200
+ "notNull": false,
1201
+ "dimensions": 0,
1202
+ "default": null,
1203
+ "generated": null,
1204
+ "identity": null,
1205
+ "name": "document",
1206
+ "entityType": "columns",
1207
+ "schema": "public",
1208
+ "table": "actors"
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "typeSchema": null,
1213
+ "notNull": true,
1214
+ "dimensions": 0,
1215
+ "default": null,
1216
+ "generated": null,
1217
+ "identity": null,
1218
+ "name": "inbox_url",
1219
+ "entityType": "columns",
1220
+ "schema": "public",
1221
+ "table": "actors"
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "typeSchema": null,
1226
+ "notNull": false,
1227
+ "dimensions": 0,
1228
+ "default": null,
1229
+ "generated": null,
1230
+ "identity": null,
1231
+ "name": "followers_url",
1232
+ "entityType": "columns",
1233
+ "schema": "public",
1234
+ "table": "actors"
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "typeSchema": null,
1239
+ "notNull": false,
1240
+ "dimensions": 0,
1241
+ "default": null,
1242
+ "generated": null,
1243
+ "identity": null,
1244
+ "name": "profile_url",
1245
+ "entityType": "columns",
1246
+ "schema": "public",
1247
+ "table": "actors"
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "typeSchema": null,
1252
+ "notNull": false,
1253
+ "dimensions": 0,
1254
+ "default": null,
1255
+ "generated": null,
1256
+ "identity": null,
1257
+ "name": "avatar_url",
1258
+ "entityType": "columns",
1259
+ "schema": "public",
1260
+ "table": "actors"
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "typeSchema": null,
1265
+ "notNull": false,
1266
+ "dimensions": 0,
1267
+ "default": null,
1268
+ "generated": null,
1269
+ "identity": null,
1270
+ "name": "header_url",
1271
+ "entityType": "columns",
1272
+ "schema": "public",
1273
+ "table": "actors"
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "typeSchema": null,
1278
+ "notNull": false,
1279
+ "dimensions": 0,
1280
+ "default": null,
1281
+ "generated": null,
1282
+ "identity": null,
1283
+ "name": "name",
1284
+ "entityType": "columns",
1285
+ "schema": "public",
1286
+ "table": "actors"
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "typeSchema": null,
1291
+ "notNull": false,
1292
+ "dimensions": 0,
1293
+ "default": null,
1294
+ "generated": null,
1295
+ "identity": null,
1296
+ "name": "bio_html",
1297
+ "entityType": "columns",
1298
+ "schema": "public",
1299
+ "table": "actors"
1300
+ },
1301
+ {
1302
+ "type": "boolean",
1303
+ "typeSchema": null,
1304
+ "notNull": true,
1305
+ "dimensions": 0,
1306
+ "default": "false",
1307
+ "generated": null,
1308
+ "identity": null,
1309
+ "name": "automatically_approves_followers",
1310
+ "entityType": "columns",
1311
+ "schema": "public",
1312
+ "table": "actors"
1313
+ },
1314
+ {
1315
+ "type": "jsonb",
1316
+ "typeSchema": null,
1317
+ "notNull": true,
1318
+ "dimensions": 0,
1319
+ "default": "'{}'",
1320
+ "generated": null,
1321
+ "identity": null,
1322
+ "name": "field_htmls",
1323
+ "entityType": "columns",
1324
+ "schema": "public",
1325
+ "table": "actors"
1326
+ },
1327
+ {
1328
+ "type": "jsonb",
1329
+ "typeSchema": null,
1330
+ "notNull": true,
1331
+ "dimensions": 0,
1332
+ "default": "'{}'",
1333
+ "generated": null,
1334
+ "identity": null,
1335
+ "name": "emojis",
1336
+ "entityType": "columns",
1337
+ "schema": "public",
1338
+ "table": "actors"
1339
+ },
1340
+ {
1341
+ "type": "jsonb",
1342
+ "typeSchema": null,
1343
+ "notNull": true,
1344
+ "dimensions": 0,
1345
+ "default": "'{}'",
1346
+ "generated": null,
1347
+ "identity": null,
1348
+ "name": "tags",
1349
+ "entityType": "columns",
1350
+ "schema": "public",
1351
+ "table": "actors"
1352
+ },
1353
+ {
1354
+ "type": "boolean",
1355
+ "typeSchema": null,
1356
+ "notNull": true,
1357
+ "dimensions": 0,
1358
+ "default": "false",
1359
+ "generated": null,
1360
+ "identity": null,
1361
+ "name": "sensitive",
1362
+ "entityType": "columns",
1363
+ "schema": "public",
1364
+ "table": "actors"
1365
+ },
1366
+ {
1367
+ "type": "timestamp with time zone",
1368
+ "typeSchema": null,
1369
+ "notNull": false,
1370
+ "dimensions": 0,
1371
+ "default": null,
1372
+ "generated": null,
1373
+ "identity": null,
1374
+ "name": "suspended",
1375
+ "entityType": "columns",
1376
+ "schema": "public",
1377
+ "table": "actors"
1378
+ },
1379
+ {
1380
+ "type": "timestamp with time zone",
1381
+ "typeSchema": null,
1382
+ "notNull": false,
1383
+ "dimensions": 0,
1384
+ "default": null,
1385
+ "generated": null,
1386
+ "identity": null,
1387
+ "name": "suspended_until",
1388
+ "entityType": "columns",
1389
+ "schema": "public",
1390
+ "table": "actors"
1391
+ },
1392
+ {
1393
+ "type": "uuid",
1394
+ "typeSchema": null,
1395
+ "notNull": false,
1396
+ "dimensions": 0,
1397
+ "default": null,
1398
+ "generated": null,
1399
+ "identity": null,
1400
+ "name": "successor_id",
1401
+ "entityType": "columns",
1402
+ "schema": "public",
1403
+ "table": "actors"
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "typeSchema": null,
1408
+ "notNull": true,
1409
+ "dimensions": 1,
1410
+ "default": "(ARRAY[]::text[])",
1411
+ "generated": null,
1412
+ "identity": null,
1413
+ "name": "aliases",
1414
+ "entityType": "columns",
1415
+ "schema": "public",
1416
+ "table": "actors"
1417
+ },
1418
+ {
1419
+ "type": "integer",
1420
+ "typeSchema": null,
1421
+ "notNull": true,
1422
+ "dimensions": 0,
1423
+ "default": "0",
1424
+ "generated": null,
1425
+ "identity": null,
1426
+ "name": "following_count",
1427
+ "entityType": "columns",
1428
+ "schema": "public",
1429
+ "table": "actors"
1430
+ },
1431
+ {
1432
+ "type": "integer",
1433
+ "typeSchema": null,
1434
+ "notNull": true,
1435
+ "dimensions": 0,
1436
+ "default": "0",
1437
+ "generated": null,
1438
+ "identity": null,
1439
+ "name": "followers_count",
1440
+ "entityType": "columns",
1441
+ "schema": "public",
1442
+ "table": "actors"
1443
+ },
1444
+ {
1445
+ "type": "timestamp with time zone",
1446
+ "typeSchema": null,
1447
+ "notNull": true,
1448
+ "dimensions": 0,
1449
+ "default": "CURRENT_TIMESTAMP",
1450
+ "generated": null,
1451
+ "identity": null,
1452
+ "name": "updated",
1453
+ "entityType": "columns",
1454
+ "schema": "public",
1455
+ "table": "actors"
1456
+ },
1457
+ {
1458
+ "type": "timestamp with time zone",
1459
+ "typeSchema": null,
1460
+ "notNull": false,
1461
+ "dimensions": 0,
1462
+ "default": null,
1463
+ "generated": null,
1464
+ "identity": null,
1465
+ "name": "published",
1466
+ "entityType": "columns",
1467
+ "schema": "public",
1468
+ "table": "actors"
1469
+ },
1470
+ {
1471
+ "type": "timestamp with time zone",
1472
+ "typeSchema": null,
1473
+ "notNull": true,
1474
+ "dimensions": 0,
1475
+ "default": "CURRENT_TIMESTAMP",
1476
+ "generated": null,
1477
+ "identity": null,
1478
+ "name": "created",
1479
+ "entityType": "columns",
1480
+ "schema": "public",
1481
+ "table": "actors"
1482
+ },
1483
+ {
1484
+ "type": "timestamp with time zone",
1485
+ "typeSchema": null,
1486
+ "notNull": false,
1487
+ "dimensions": 0,
1488
+ "default": null,
1489
+ "generated": null,
1490
+ "identity": null,
1491
+ "name": "deleted",
1492
+ "entityType": "columns",
1493
+ "schema": "public",
1494
+ "table": "actors"
1495
+ },
1496
+ {
1497
+ "type": "uuid",
1498
+ "typeSchema": null,
1499
+ "notNull": true,
1500
+ "dimensions": 0,
1501
+ "default": null,
1502
+ "generated": null,
1503
+ "identity": null,
1504
+ "name": "id",
1505
+ "entityType": "columns",
1506
+ "schema": "public",
1507
+ "table": "addressing"
1508
+ },
1509
+ {
1510
+ "type": "uuid",
1511
+ "typeSchema": null,
1512
+ "notNull": true,
1513
+ "dimensions": 0,
1514
+ "default": null,
1515
+ "generated": null,
1516
+ "identity": null,
1517
+ "name": "source_id",
1518
+ "entityType": "columns",
1519
+ "schema": "public",
1520
+ "table": "addressing"
1521
+ },
1522
+ {
1523
+ "type": "addressing_property",
1524
+ "typeSchema": "public",
1525
+ "notNull": true,
1526
+ "dimensions": 0,
1527
+ "default": null,
1528
+ "generated": null,
1529
+ "identity": null,
1530
+ "name": "property",
1531
+ "entityType": "columns",
1532
+ "schema": "public",
1533
+ "table": "addressing"
1534
+ },
1535
+ {
1536
+ "type": "integer",
1537
+ "typeSchema": null,
1538
+ "notNull": true,
1539
+ "dimensions": 0,
1540
+ "default": null,
1541
+ "generated": null,
1542
+ "identity": null,
1543
+ "name": "position",
1544
+ "entityType": "columns",
1545
+ "schema": "public",
1546
+ "table": "addressing"
1547
+ },
1548
+ {
1549
+ "type": "uuid",
1550
+ "typeSchema": null,
1551
+ "notNull": true,
1552
+ "dimensions": 0,
1553
+ "default": null,
1554
+ "generated": null,
1555
+ "identity": null,
1556
+ "name": "target_id",
1557
+ "entityType": "columns",
1558
+ "schema": "public",
1559
+ "table": "addressing"
1560
+ },
1561
+ {
1562
+ "type": "uuid",
1563
+ "typeSchema": null,
1564
+ "notNull": true,
1565
+ "dimensions": 0,
1566
+ "default": null,
1567
+ "generated": null,
1568
+ "identity": null,
1569
+ "name": "collection_id",
1570
+ "entityType": "columns",
1571
+ "schema": "public",
1572
+ "table": "collection_items"
1573
+ },
1574
+ {
1575
+ "type": "uuid",
1576
+ "typeSchema": null,
1577
+ "notNull": true,
1578
+ "dimensions": 0,
1579
+ "default": null,
1580
+ "generated": null,
1581
+ "identity": null,
1582
+ "name": "item_id",
1583
+ "entityType": "columns",
1584
+ "schema": "public",
1585
+ "table": "collection_items"
1586
+ },
1587
+ {
1588
+ "type": "integer",
1589
+ "typeSchema": null,
1590
+ "notNull": false,
1591
+ "dimensions": 0,
1592
+ "default": null,
1593
+ "generated": null,
1594
+ "identity": null,
1595
+ "name": "position",
1596
+ "entityType": "columns",
1597
+ "schema": "public",
1598
+ "table": "collection_items"
1599
+ },
1600
+ {
1601
+ "type": "timestamp with time zone",
1602
+ "typeSchema": null,
1603
+ "notNull": true,
1604
+ "dimensions": 0,
1605
+ "default": "CURRENT_TIMESTAMP",
1606
+ "generated": null,
1607
+ "identity": null,
1608
+ "name": "observed",
1609
+ "entityType": "columns",
1610
+ "schema": "public",
1611
+ "table": "collection_items"
1612
+ },
1613
+ {
1614
+ "type": "uuid",
1615
+ "typeSchema": null,
1616
+ "notNull": true,
1617
+ "dimensions": 0,
1618
+ "default": null,
1619
+ "generated": null,
1620
+ "identity": null,
1621
+ "name": "id",
1622
+ "entityType": "columns",
1623
+ "schema": "public",
1624
+ "table": "collections"
1625
+ },
1626
+ {
1627
+ "type": "collection_type",
1628
+ "typeSchema": "public",
1629
+ "notNull": true,
1630
+ "dimensions": 0,
1631
+ "default": null,
1632
+ "generated": null,
1633
+ "identity": null,
1634
+ "name": "type",
1635
+ "entityType": "columns",
1636
+ "schema": "public",
1637
+ "table": "collections"
1638
+ },
1639
+ {
1640
+ "type": "uuid",
1641
+ "typeSchema": null,
1642
+ "notNull": false,
1643
+ "dimensions": 0,
1644
+ "default": null,
1645
+ "generated": null,
1646
+ "identity": null,
1647
+ "name": "owner_actor_id",
1648
+ "entityType": "columns",
1649
+ "schema": "public",
1650
+ "table": "collections"
1651
+ },
1652
+ {
1653
+ "type": "integer",
1654
+ "typeSchema": null,
1655
+ "notNull": false,
1656
+ "dimensions": 0,
1657
+ "default": null,
1658
+ "generated": null,
1659
+ "identity": null,
1660
+ "name": "total_items",
1661
+ "entityType": "columns",
1662
+ "schema": "public",
1663
+ "table": "collections"
1664
+ },
1665
+ {
1666
+ "type": "json",
1667
+ "typeSchema": null,
1668
+ "notNull": false,
1669
+ "dimensions": 0,
1670
+ "default": null,
1671
+ "generated": null,
1672
+ "identity": null,
1673
+ "name": "document",
1674
+ "entityType": "columns",
1675
+ "schema": "public",
1676
+ "table": "collections"
1677
+ },
1678
+ {
1679
+ "type": "timestamp with time zone",
1680
+ "typeSchema": null,
1681
+ "notNull": true,
1682
+ "dimensions": 0,
1683
+ "default": "CURRENT_TIMESTAMP",
1684
+ "generated": null,
1685
+ "identity": null,
1686
+ "name": "updated",
1687
+ "entityType": "columns",
1688
+ "schema": "public",
1689
+ "table": "collections"
1690
+ },
1691
+ {
1692
+ "type": "uuid",
1693
+ "typeSchema": null,
1694
+ "notNull": true,
1695
+ "dimensions": 0,
1696
+ "default": null,
1697
+ "generated": null,
1698
+ "identity": null,
1699
+ "name": "account_id",
1700
+ "entityType": "columns",
1701
+ "schema": "public",
1702
+ "table": "instance_members"
1703
+ },
1704
+ {
1705
+ "type": "uuid",
1706
+ "typeSchema": null,
1707
+ "notNull": true,
1708
+ "dimensions": 0,
1709
+ "default": null,
1710
+ "generated": null,
1711
+ "identity": null,
1712
+ "name": "instance_id",
1713
+ "entityType": "columns",
1714
+ "schema": "public",
1715
+ "table": "instance_members"
1716
+ },
1717
+ {
1718
+ "type": "boolean",
1719
+ "typeSchema": null,
1720
+ "notNull": true,
1721
+ "dimensions": 0,
1722
+ "default": "false",
1723
+ "generated": null,
1724
+ "identity": null,
1725
+ "name": "admin",
1726
+ "entityType": "columns",
1727
+ "schema": "public",
1728
+ "table": "instance_members"
1729
+ },
1730
+ {
1731
+ "type": "timestamp with time zone",
1732
+ "typeSchema": null,
1733
+ "notNull": false,
1734
+ "dimensions": 0,
1735
+ "default": null,
1736
+ "generated": null,
1737
+ "identity": null,
1738
+ "name": "accepted",
1739
+ "entityType": "columns",
1740
+ "schema": "public",
1741
+ "table": "instance_members"
1742
+ },
1743
+ {
1744
+ "type": "timestamp with time zone",
1745
+ "typeSchema": null,
1746
+ "notNull": true,
1747
+ "dimensions": 0,
1748
+ "default": "CURRENT_TIMESTAMP",
1749
+ "generated": null,
1750
+ "identity": null,
1751
+ "name": "created",
1752
+ "entityType": "columns",
1753
+ "schema": "public",
1754
+ "table": "instance_members"
1755
+ },
1756
+ {
1757
+ "type": "uuid",
1758
+ "typeSchema": null,
1759
+ "notNull": true,
1760
+ "dimensions": 0,
1761
+ "default": null,
1762
+ "generated": null,
1763
+ "identity": null,
1764
+ "name": "id",
1765
+ "entityType": "columns",
1766
+ "schema": "public",
1767
+ "table": "instances"
1768
+ },
1769
+ {
1770
+ "type": "uuid",
1771
+ "typeSchema": null,
1772
+ "notNull": false,
1773
+ "dimensions": 0,
1774
+ "default": null,
1775
+ "generated": null,
1776
+ "identity": null,
1777
+ "name": "local_id",
1778
+ "entityType": "columns",
1779
+ "schema": "public",
1780
+ "table": "instances"
1781
+ },
1782
+ {
1783
+ "type": "timestamp with time zone",
1784
+ "typeSchema": null,
1785
+ "notNull": true,
1786
+ "dimensions": 0,
1787
+ "default": "CURRENT_TIMESTAMP",
1788
+ "generated": null,
1789
+ "identity": null,
1790
+ "name": "created",
1791
+ "entityType": "columns",
1792
+ "schema": "public",
1793
+ "table": "instances"
1794
+ },
1795
+ {
1796
+ "type": "varchar(259)",
1797
+ "typeSchema": null,
1798
+ "notNull": true,
1799
+ "dimensions": 0,
1800
+ "default": null,
1801
+ "generated": null,
1802
+ "identity": null,
1803
+ "name": "host",
1804
+ "entityType": "columns",
1805
+ "schema": "public",
1806
+ "table": "instances"
1807
+ },
1808
+ {
1809
+ "type": "text",
1810
+ "typeSchema": null,
1811
+ "notNull": false,
1812
+ "dimensions": 0,
1813
+ "default": null,
1814
+ "generated": null,
1815
+ "identity": null,
1816
+ "name": "node_info_url",
1817
+ "entityType": "columns",
1818
+ "schema": "public",
1819
+ "table": "instances"
1820
+ },
1821
+ {
1822
+ "type": "text",
1823
+ "typeSchema": null,
1824
+ "notNull": false,
1825
+ "dimensions": 0,
1826
+ "default": null,
1827
+ "generated": null,
1828
+ "identity": null,
1829
+ "name": "software",
1830
+ "entityType": "columns",
1831
+ "schema": "public",
1832
+ "table": "instances"
1833
+ },
1834
+ {
1835
+ "type": "text",
1836
+ "typeSchema": null,
1837
+ "notNull": false,
1838
+ "dimensions": 0,
1839
+ "default": null,
1840
+ "generated": null,
1841
+ "identity": null,
1842
+ "name": "software_version",
1843
+ "entityType": "columns",
1844
+ "schema": "public",
1845
+ "table": "instances"
1846
+ },
1847
+ {
1848
+ "type": "uuid",
1849
+ "typeSchema": null,
1850
+ "notNull": true,
1851
+ "dimensions": 0,
1852
+ "default": null,
1853
+ "generated": null,
1854
+ "identity": null,
1855
+ "name": "id",
1856
+ "entityType": "columns",
1857
+ "schema": "public",
1858
+ "table": "key_versions"
1859
+ },
1860
+ {
1861
+ "type": "uuid",
1862
+ "typeSchema": null,
1863
+ "notNull": true,
1864
+ "dimensions": 0,
1865
+ "default": null,
1866
+ "generated": null,
1867
+ "identity": null,
1868
+ "name": "key_id",
1869
+ "entityType": "columns",
1870
+ "schema": "public",
1871
+ "table": "key_versions"
1872
+ },
1873
+ {
1874
+ "type": "jsonb",
1875
+ "typeSchema": null,
1876
+ "notNull": true,
1877
+ "dimensions": 0,
1878
+ "default": null,
1879
+ "generated": null,
1880
+ "identity": null,
1881
+ "name": "public_key",
1882
+ "entityType": "columns",
1883
+ "schema": "public",
1884
+ "table": "key_versions"
1885
+ },
1886
+ {
1887
+ "type": "text",
1888
+ "typeSchema": null,
1889
+ "notNull": true,
1890
+ "dimensions": 0,
1891
+ "default": null,
1892
+ "generated": null,
1893
+ "identity": null,
1894
+ "name": "fingerprint",
1895
+ "entityType": "columns",
1896
+ "schema": "public",
1897
+ "table": "key_versions"
1898
+ },
1899
+ {
1900
+ "type": "timestamp with time zone",
1901
+ "typeSchema": null,
1902
+ "notNull": true,
1903
+ "dimensions": 0,
1904
+ "default": null,
1905
+ "generated": null,
1906
+ "identity": null,
1907
+ "name": "first_seen",
1908
+ "entityType": "columns",
1909
+ "schema": "public",
1910
+ "table": "key_versions"
1911
+ },
1912
+ {
1913
+ "type": "timestamp with time zone",
1914
+ "typeSchema": null,
1915
+ "notNull": true,
1916
+ "dimensions": 0,
1917
+ "default": null,
1918
+ "generated": null,
1919
+ "identity": null,
1920
+ "name": "last_seen",
1921
+ "entityType": "columns",
1922
+ "schema": "public",
1923
+ "table": "key_versions"
1924
+ },
1925
+ {
1926
+ "type": "uuid",
1927
+ "typeSchema": null,
1928
+ "notNull": true,
1929
+ "dimensions": 0,
1930
+ "default": null,
1931
+ "generated": null,
1932
+ "identity": null,
1933
+ "name": "id",
1934
+ "entityType": "columns",
1935
+ "schema": "public",
1936
+ "table": "keys"
1937
+ },
1938
+ {
1939
+ "type": "text",
1940
+ "typeSchema": null,
1941
+ "notNull": true,
1942
+ "dimensions": 0,
1943
+ "default": null,
1944
+ "generated": null,
1945
+ "identity": null,
1946
+ "name": "iri",
1947
+ "entityType": "columns",
1948
+ "schema": "public",
1949
+ "table": "keys"
1950
+ },
1951
+ {
1952
+ "type": "timestamp with time zone",
1953
+ "typeSchema": null,
1954
+ "notNull": true,
1955
+ "dimensions": 0,
1956
+ "default": "CURRENT_TIMESTAMP",
1957
+ "generated": null,
1958
+ "identity": null,
1959
+ "name": "created",
1960
+ "entityType": "columns",
1961
+ "schema": "public",
1962
+ "table": "keys"
1963
+ },
1964
+ {
1965
+ "type": "uuid",
1966
+ "typeSchema": null,
1967
+ "notNull": true,
1968
+ "dimensions": 0,
1969
+ "default": null,
1970
+ "generated": null,
1971
+ "identity": null,
1972
+ "name": "local_actor_id",
1973
+ "entityType": "columns",
1974
+ "schema": "public",
1975
+ "table": "local_actor_keys"
1976
+ },
1977
+ {
1978
+ "type": "local_actor_key_type",
1979
+ "typeSchema": "public",
1980
+ "notNull": true,
1981
+ "dimensions": 0,
1982
+ "default": null,
1983
+ "generated": null,
1984
+ "identity": null,
1985
+ "name": "type",
1986
+ "entityType": "columns",
1987
+ "schema": "public",
1988
+ "table": "local_actor_keys"
1989
+ },
1990
+ {
1991
+ "type": "jsonb",
1992
+ "typeSchema": null,
1993
+ "notNull": true,
1994
+ "dimensions": 0,
1995
+ "default": null,
1996
+ "generated": null,
1997
+ "identity": null,
1998
+ "name": "public_key",
1999
+ "entityType": "columns",
2000
+ "schema": "public",
2001
+ "table": "local_actor_keys"
2002
+ },
2003
+ {
2004
+ "type": "jsonb",
2005
+ "typeSchema": null,
2006
+ "notNull": true,
2007
+ "dimensions": 0,
2008
+ "default": null,
2009
+ "generated": null,
2010
+ "identity": null,
2011
+ "name": "private_key",
2012
+ "entityType": "columns",
2013
+ "schema": "public",
2014
+ "table": "local_actor_keys"
2015
+ },
2016
+ {
2017
+ "type": "uuid",
2018
+ "typeSchema": null,
2019
+ "notNull": true,
2020
+ "dimensions": 0,
2021
+ "default": null,
2022
+ "generated": null,
2023
+ "identity": null,
2024
+ "name": "id",
2025
+ "entityType": "columns",
2026
+ "schema": "public",
2027
+ "table": "local_actors"
2028
+ },
2029
+ {
2030
+ "type": "text",
2031
+ "typeSchema": null,
2032
+ "notNull": false,
2033
+ "dimensions": 0,
2034
+ "default": null,
2035
+ "generated": null,
2036
+ "identity": null,
2037
+ "name": "avatar",
2038
+ "entityType": "columns",
2039
+ "schema": "public",
2040
+ "table": "local_actors"
2041
+ },
2042
+ {
2043
+ "type": "text",
2044
+ "typeSchema": null,
2045
+ "notNull": false,
2046
+ "dimensions": 0,
2047
+ "default": null,
2048
+ "generated": null,
2049
+ "identity": null,
2050
+ "name": "header",
2051
+ "entityType": "columns",
2052
+ "schema": "public",
2053
+ "table": "local_actors"
2054
+ },
2055
+ {
2056
+ "type": "uuid",
2057
+ "typeSchema": null,
2058
+ "notNull": true,
2059
+ "dimensions": 0,
2060
+ "default": null,
2061
+ "generated": null,
2062
+ "identity": null,
2063
+ "name": "id",
2064
+ "entityType": "columns",
2065
+ "schema": "public",
2066
+ "table": "local_instances"
2067
+ },
2068
+ {
2069
+ "type": "varchar(63)",
2070
+ "typeSchema": null,
2071
+ "notNull": true,
2072
+ "dimensions": 0,
2073
+ "default": null,
2074
+ "generated": null,
2075
+ "identity": null,
2076
+ "name": "slug",
2077
+ "entityType": "columns",
2078
+ "schema": "public",
2079
+ "table": "local_instances"
2080
+ },
2081
+ {
2082
+ "type": "timestamp with time zone",
2083
+ "typeSchema": null,
2084
+ "notNull": true,
2085
+ "dimensions": 0,
2086
+ "default": null,
2087
+ "generated": null,
2088
+ "identity": null,
2089
+ "name": "expires",
2090
+ "entityType": "columns",
2091
+ "schema": "public",
2092
+ "table": "local_instances"
2093
+ },
2094
+ {
2095
+ "type": "integer",
2096
+ "typeSchema": null,
2097
+ "notNull": true,
2098
+ "dimensions": 0,
2099
+ "default": "10",
2100
+ "generated": null,
2101
+ "identity": null,
2102
+ "name": "max_actors",
2103
+ "entityType": "columns",
2104
+ "schema": "public",
2105
+ "table": "local_instances"
2106
+ },
2107
+ {
2108
+ "type": "uuid",
2109
+ "typeSchema": null,
2110
+ "notNull": true,
2111
+ "dimensions": 0,
2112
+ "default": null,
2113
+ "generated": null,
2114
+ "identity": null,
2115
+ "name": "id",
2116
+ "entityType": "columns",
2117
+ "schema": "public",
2118
+ "table": "login_challenges"
2119
+ },
2120
+ {
2121
+ "type": "uuid",
2122
+ "typeSchema": null,
2123
+ "notNull": true,
2124
+ "dimensions": 0,
2125
+ "default": null,
2126
+ "generated": null,
2127
+ "identity": null,
2128
+ "name": "account_id",
2129
+ "entityType": "columns",
2130
+ "schema": "public",
2131
+ "table": "login_challenges"
2132
+ },
2133
+ {
2134
+ "type": "char(6)",
2135
+ "typeSchema": null,
2136
+ "notNull": true,
2137
+ "dimensions": 0,
2138
+ "default": null,
2139
+ "generated": null,
2140
+ "identity": null,
2141
+ "name": "code",
2142
+ "entityType": "columns",
2143
+ "schema": "public",
2144
+ "table": "login_challenges"
2145
+ },
2146
+ {
2147
+ "type": "timestamp with time zone",
2148
+ "typeSchema": null,
2149
+ "notNull": true,
2150
+ "dimensions": 0,
2151
+ "default": "CURRENT_TIMESTAMP",
2152
+ "generated": null,
2153
+ "identity": null,
2154
+ "name": "created",
2155
+ "entityType": "columns",
2156
+ "schema": "public",
2157
+ "table": "login_challenges"
2158
+ },
2159
+ {
2160
+ "type": "timestamp with time zone",
2161
+ "typeSchema": null,
2162
+ "notNull": true,
2163
+ "dimensions": 0,
2164
+ "default": "CURRENT_TIMESTAMP + INTERVAL '15 minutes'",
2165
+ "generated": null,
2166
+ "identity": null,
2167
+ "name": "expires",
2168
+ "entityType": "columns",
2169
+ "schema": "public",
2170
+ "table": "login_challenges"
2171
+ },
2172
+ {
2173
+ "type": "timestamp with time zone",
2174
+ "typeSchema": null,
2175
+ "notNull": false,
2176
+ "dimensions": 0,
2177
+ "default": null,
2178
+ "generated": null,
2179
+ "identity": null,
2180
+ "name": "consumed",
2181
+ "entityType": "columns",
2182
+ "schema": "public",
2183
+ "table": "login_challenges"
2184
+ },
2185
+ {
2186
+ "type": "uuid",
2187
+ "typeSchema": null,
2188
+ "notNull": true,
2189
+ "dimensions": 0,
2190
+ "default": null,
2191
+ "generated": null,
2192
+ "identity": null,
2193
+ "name": "id",
2194
+ "entityType": "columns",
2195
+ "schema": "public",
2196
+ "table": "objects"
2197
+ },
2198
+ {
2199
+ "type": "uuid",
2200
+ "typeSchema": null,
2201
+ "notNull": true,
2202
+ "dimensions": 0,
2203
+ "default": null,
2204
+ "generated": null,
2205
+ "identity": null,
2206
+ "name": "actor_id",
2207
+ "entityType": "columns",
2208
+ "schema": "public",
2209
+ "table": "objects"
2210
+ },
2211
+ {
2212
+ "type": "uuid",
2213
+ "typeSchema": null,
2214
+ "notNull": false,
2215
+ "dimensions": 0,
2216
+ "default": null,
2217
+ "generated": null,
2218
+ "identity": null,
2219
+ "name": "activity_id",
2220
+ "entityType": "columns",
2221
+ "schema": "public",
2222
+ "table": "objects"
2223
+ },
2224
+ {
2225
+ "type": "boolean",
2226
+ "typeSchema": null,
2227
+ "notNull": true,
2228
+ "dimensions": 0,
2229
+ "default": "false",
2230
+ "generated": null,
2231
+ "identity": null,
2232
+ "name": "fetched",
2233
+ "entityType": "columns",
2234
+ "schema": "public",
2235
+ "table": "objects"
2236
+ },
2237
+ {
2238
+ "type": "object_type",
2239
+ "typeSchema": "public",
2240
+ "notNull": true,
2241
+ "dimensions": 0,
2242
+ "default": null,
2243
+ "generated": null,
2244
+ "identity": null,
2245
+ "name": "type",
2246
+ "entityType": "columns",
2247
+ "schema": "public",
2248
+ "table": "objects"
2249
+ },
2250
+ {
2251
+ "type": "json",
2252
+ "typeSchema": null,
2253
+ "notNull": false,
2254
+ "dimensions": 0,
2255
+ "default": null,
2256
+ "generated": null,
2257
+ "identity": null,
2258
+ "name": "document",
2259
+ "entityType": "columns",
2260
+ "schema": "public",
2261
+ "table": "objects"
2262
+ },
2263
+ {
2264
+ "type": "text",
2265
+ "typeSchema": null,
2266
+ "notNull": false,
2267
+ "dimensions": 0,
2268
+ "default": null,
2269
+ "generated": null,
2270
+ "identity": null,
2271
+ "name": "url",
2272
+ "entityType": "columns",
2273
+ "schema": "public",
2274
+ "table": "objects"
2275
+ },
2276
+ {
2277
+ "type": "text",
2278
+ "typeSchema": null,
2279
+ "notNull": false,
2280
+ "dimensions": 0,
2281
+ "default": null,
2282
+ "generated": null,
2283
+ "identity": null,
2284
+ "name": "name",
2285
+ "entityType": "columns",
2286
+ "schema": "public",
2287
+ "table": "objects"
2288
+ },
2289
+ {
2290
+ "type": "text",
2291
+ "typeSchema": null,
2292
+ "notNull": false,
2293
+ "dimensions": 0,
2294
+ "default": null,
2295
+ "generated": null,
2296
+ "identity": null,
2297
+ "name": "summary",
2298
+ "entityType": "columns",
2299
+ "schema": "public",
2300
+ "table": "objects"
2301
+ },
2302
+ {
2303
+ "type": "text",
2304
+ "typeSchema": null,
2305
+ "notNull": true,
2306
+ "dimensions": 0,
2307
+ "default": null,
2308
+ "generated": null,
2309
+ "identity": null,
2310
+ "name": "content_html",
2311
+ "entityType": "columns",
2312
+ "schema": "public",
2313
+ "table": "objects"
2314
+ },
2315
+ {
2316
+ "type": "varchar(35)",
2317
+ "typeSchema": null,
2318
+ "notNull": false,
2319
+ "dimensions": 0,
2320
+ "default": null,
2321
+ "generated": null,
2322
+ "identity": null,
2323
+ "name": "language",
2324
+ "entityType": "columns",
2325
+ "schema": "public",
2326
+ "table": "objects"
2327
+ },
2328
+ {
2329
+ "type": "boolean",
2330
+ "typeSchema": null,
2331
+ "notNull": true,
2332
+ "dimensions": 0,
2333
+ "default": "false",
2334
+ "generated": null,
2335
+ "identity": null,
2336
+ "name": "sensitive",
2337
+ "entityType": "columns",
2338
+ "schema": "public",
2339
+ "table": "objects"
2340
+ },
2341
+ {
2342
+ "type": "timestamp with time zone",
2343
+ "typeSchema": null,
2344
+ "notNull": true,
2345
+ "dimensions": 0,
2346
+ "default": "CURRENT_TIMESTAMP",
2347
+ "generated": null,
2348
+ "identity": null,
2349
+ "name": "published",
2350
+ "entityType": "columns",
2351
+ "schema": "public",
2352
+ "table": "objects"
2353
+ },
2354
+ {
2355
+ "type": "timestamp with time zone",
2356
+ "typeSchema": null,
2357
+ "notNull": true,
2358
+ "dimensions": 0,
2359
+ "default": "CURRENT_TIMESTAMP",
2360
+ "generated": null,
2361
+ "identity": null,
2362
+ "name": "updated",
2363
+ "entityType": "columns",
2364
+ "schema": "public",
2365
+ "table": "objects"
2366
+ },
2367
+ {
2368
+ "type": "timestamp with time zone",
2369
+ "typeSchema": null,
2370
+ "notNull": true,
2371
+ "dimensions": 0,
2372
+ "default": "CURRENT_TIMESTAMP",
2373
+ "generated": null,
2374
+ "identity": null,
2375
+ "name": "created",
2376
+ "entityType": "columns",
2377
+ "schema": "public",
2378
+ "table": "objects"
2379
+ },
2380
+ {
2381
+ "type": "timestamp with time zone",
2382
+ "typeSchema": null,
2383
+ "notNull": false,
2384
+ "dimensions": 0,
2385
+ "default": null,
2386
+ "generated": null,
2387
+ "identity": null,
2388
+ "name": "deleted",
2389
+ "entityType": "columns",
2390
+ "schema": "public",
2391
+ "table": "objects"
2392
+ },
2393
+ {
2394
+ "type": "uuid",
2395
+ "typeSchema": null,
2396
+ "notNull": true,
2397
+ "dimensions": 0,
2398
+ "default": null,
2399
+ "generated": null,
2400
+ "identity": null,
2401
+ "name": "resource_id",
2402
+ "entityType": "columns",
2403
+ "schema": "public",
2404
+ "table": "resource_heads"
2405
+ },
2406
+ {
2407
+ "type": "uuid",
2408
+ "typeSchema": null,
2409
+ "notNull": true,
2410
+ "dimensions": 0,
2411
+ "default": null,
2412
+ "generated": null,
2413
+ "identity": null,
2414
+ "name": "revision_id",
2415
+ "entityType": "columns",
2416
+ "schema": "public",
2417
+ "table": "resource_heads"
2418
+ },
2419
+ {
2420
+ "type": "uuid",
2421
+ "typeSchema": null,
2422
+ "notNull": true,
2423
+ "dimensions": 0,
2424
+ "default": "gen_random_uuid()",
2425
+ "generated": null,
2426
+ "identity": null,
2427
+ "name": "id",
2428
+ "entityType": "columns",
2429
+ "schema": "public",
2430
+ "table": "resource_revisions"
2431
+ },
2432
+ {
2433
+ "type": "uuid",
2434
+ "typeSchema": null,
2435
+ "notNull": true,
2436
+ "dimensions": 0,
2437
+ "default": null,
2438
+ "generated": null,
2439
+ "identity": null,
2440
+ "name": "resource_id",
2441
+ "entityType": "columns",
2442
+ "schema": "public",
2443
+ "table": "resource_revisions"
2444
+ },
2445
+ {
2446
+ "type": "integer",
2447
+ "typeSchema": null,
2448
+ "notNull": true,
2449
+ "dimensions": 0,
2450
+ "default": null,
2451
+ "generated": null,
2452
+ "identity": null,
2453
+ "name": "sequence",
2454
+ "entityType": "columns",
2455
+ "schema": "public",
2456
+ "table": "resource_revisions"
2457
+ },
2458
+ {
2459
+ "type": "resource_revision_kind",
2460
+ "typeSchema": "public",
2461
+ "notNull": true,
2462
+ "dimensions": 0,
2463
+ "default": null,
2464
+ "generated": null,
2465
+ "identity": null,
2466
+ "name": "kind",
2467
+ "entityType": "columns",
2468
+ "schema": "public",
2469
+ "table": "resource_revisions"
2470
+ },
2471
+ {
2472
+ "type": "resource_revision_capture",
2473
+ "typeSchema": "public",
2474
+ "notNull": true,
2475
+ "dimensions": 0,
2476
+ "default": null,
2477
+ "generated": null,
2478
+ "identity": null,
2479
+ "name": "capture",
2480
+ "entityType": "columns",
2481
+ "schema": "public",
2482
+ "table": "resource_revisions"
2483
+ },
2484
+ {
2485
+ "type": "boolean",
2486
+ "typeSchema": null,
2487
+ "notNull": true,
2488
+ "dimensions": 0,
2489
+ "default": "false",
2490
+ "generated": null,
2491
+ "identity": null,
2492
+ "name": "backfilled",
2493
+ "entityType": "columns",
2494
+ "schema": "public",
2495
+ "table": "resource_revisions"
2496
+ },
2497
+ {
2498
+ "type": "json",
2499
+ "typeSchema": null,
2500
+ "notNull": false,
2501
+ "dimensions": 0,
2502
+ "default": null,
2503
+ "generated": null,
2504
+ "identity": null,
2505
+ "name": "document",
2506
+ "entityType": "columns",
2507
+ "schema": "public",
2508
+ "table": "resource_revisions"
2509
+ },
2510
+ {
2511
+ "type": "text",
2512
+ "typeSchema": null,
2513
+ "notNull": false,
2514
+ "dimensions": 1,
2515
+ "default": null,
2516
+ "generated": null,
2517
+ "identity": null,
2518
+ "name": "former_types",
2519
+ "entityType": "columns",
2520
+ "schema": "public",
2521
+ "table": "resource_revisions"
2522
+ },
2523
+ {
2524
+ "type": "timestamp with time zone",
2525
+ "typeSchema": null,
2526
+ "notNull": false,
2527
+ "dimensions": 0,
2528
+ "default": null,
2529
+ "generated": null,
2530
+ "identity": null,
2531
+ "name": "deleted",
2532
+ "entityType": "columns",
2533
+ "schema": "public",
2534
+ "table": "resource_revisions"
2535
+ },
2536
+ {
2537
+ "type": "resource_revision_projection",
2538
+ "typeSchema": "public",
2539
+ "notNull": true,
2540
+ "dimensions": 0,
2541
+ "default": "'partial'",
2542
+ "generated": null,
2543
+ "identity": null,
2544
+ "name": "projection",
2545
+ "entityType": "columns",
2546
+ "schema": "public",
2547
+ "table": "resource_revisions"
2548
+ },
2549
+ {
2550
+ "type": "timestamp with time zone",
2551
+ "typeSchema": null,
2552
+ "notNull": true,
2553
+ "dimensions": 0,
2554
+ "default": "CURRENT_TIMESTAMP",
2555
+ "generated": null,
2556
+ "identity": null,
2557
+ "name": "created",
2558
+ "entityType": "columns",
2559
+ "schema": "public",
2560
+ "table": "resource_revisions"
2561
+ },
2562
+ {
2563
+ "type": "uuid",
2564
+ "typeSchema": null,
2565
+ "notNull": true,
2566
+ "dimensions": 0,
2567
+ "default": null,
2568
+ "generated": null,
2569
+ "identity": null,
2570
+ "name": "id",
2571
+ "entityType": "columns",
2572
+ "schema": "public",
2573
+ "table": "resources"
2574
+ },
2575
+ {
2576
+ "type": "text",
2577
+ "typeSchema": null,
2578
+ "notNull": true,
2579
+ "dimensions": 0,
2580
+ "default": null,
2581
+ "generated": null,
2582
+ "identity": null,
2583
+ "name": "iri",
2584
+ "entityType": "columns",
2585
+ "schema": "public",
2586
+ "table": "resources"
2587
+ },
2588
+ {
2589
+ "type": "resource_kind",
2590
+ "typeSchema": "public",
2591
+ "notNull": true,
2592
+ "dimensions": 0,
2593
+ "default": null,
2594
+ "generated": null,
2595
+ "identity": null,
2596
+ "name": "kind",
2597
+ "entityType": "columns",
2598
+ "schema": "public",
2599
+ "table": "resources"
2600
+ },
2601
+ {
2602
+ "type": "timestamp with time zone",
2603
+ "typeSchema": null,
2604
+ "notNull": true,
2605
+ "dimensions": 0,
2606
+ "default": "CURRENT_TIMESTAMP",
2607
+ "generated": null,
2608
+ "identity": null,
2609
+ "name": "created",
2610
+ "entityType": "columns",
2611
+ "schema": "public",
2612
+ "table": "resources"
2613
+ },
2614
+ {
2615
+ "type": "uuid",
2616
+ "typeSchema": null,
2617
+ "notNull": true,
2618
+ "dimensions": 0,
2619
+ "default": null,
2620
+ "generated": null,
2621
+ "identity": null,
2622
+ "name": "revision_id",
2623
+ "entityType": "columns",
2624
+ "schema": "public",
2625
+ "table": "revision_addressing"
2626
+ },
2627
+ {
2628
+ "type": "addressing_property",
2629
+ "typeSchema": "public",
2630
+ "notNull": true,
2631
+ "dimensions": 0,
2632
+ "default": null,
2633
+ "generated": null,
2634
+ "identity": null,
2635
+ "name": "property",
2636
+ "entityType": "columns",
2637
+ "schema": "public",
2638
+ "table": "revision_addressing"
2639
+ },
2640
+ {
2641
+ "type": "integer",
2642
+ "typeSchema": null,
2643
+ "notNull": true,
2644
+ "dimensions": 0,
2645
+ "default": null,
2646
+ "generated": null,
2647
+ "identity": null,
2648
+ "name": "position",
2649
+ "entityType": "columns",
2650
+ "schema": "public",
2651
+ "table": "revision_addressing"
2652
+ },
2653
+ {
2654
+ "type": "text",
2655
+ "typeSchema": null,
2656
+ "notNull": true,
2657
+ "dimensions": 0,
2658
+ "default": null,
2659
+ "generated": null,
2660
+ "identity": null,
2661
+ "name": "iri",
2662
+ "entityType": "columns",
2663
+ "schema": "public",
2664
+ "table": "revision_addressing"
2665
+ },
2666
+ {
2667
+ "type": "uuid",
2668
+ "typeSchema": null,
2669
+ "notNull": true,
2670
+ "dimensions": 0,
2671
+ "default": null,
2672
+ "generated": null,
2673
+ "identity": null,
2674
+ "name": "revision_id",
2675
+ "entityType": "columns",
2676
+ "schema": "public",
2677
+ "table": "revision_embeddings"
2678
+ },
2679
+ {
2680
+ "type": "jsonb",
2681
+ "typeSchema": null,
2682
+ "notNull": true,
2683
+ "dimensions": 0,
2684
+ "default": null,
2685
+ "generated": null,
2686
+ "identity": null,
2687
+ "name": "path",
2688
+ "entityType": "columns",
2689
+ "schema": "public",
2690
+ "table": "revision_embeddings"
2691
+ },
2692
+ {
2693
+ "type": "uuid",
2694
+ "typeSchema": null,
2695
+ "notNull": true,
2696
+ "dimensions": 0,
2697
+ "default": null,
2698
+ "generated": null,
2699
+ "identity": null,
2700
+ "name": "source_revision_id",
2701
+ "entityType": "columns",
2702
+ "schema": "public",
2703
+ "table": "revision_embeddings"
2704
+ },
2705
+ {
2706
+ "type": "revision_embedding_relation",
2707
+ "typeSchema": "public",
2708
+ "notNull": true,
2709
+ "dimensions": 0,
2710
+ "default": null,
2711
+ "generated": null,
2712
+ "identity": null,
2713
+ "name": "relation",
2714
+ "entityType": "columns",
2715
+ "schema": "public",
2716
+ "table": "revision_embeddings"
2717
+ },
2718
+ {
2719
+ "type": "uuid",
2720
+ "typeSchema": null,
2721
+ "notNull": true,
2722
+ "dimensions": 0,
2723
+ "default": null,
2724
+ "generated": null,
2725
+ "identity": null,
2726
+ "name": "delivery_id",
2727
+ "entityType": "columns",
2728
+ "schema": "public",
2729
+ "table": "revision_receipts"
2730
+ },
2731
+ {
2732
+ "type": "uuid",
2733
+ "typeSchema": null,
2734
+ "notNull": true,
2735
+ "dimensions": 0,
2736
+ "default": null,
2737
+ "generated": null,
2738
+ "identity": null,
2739
+ "name": "revision_id",
2740
+ "entityType": "columns",
2741
+ "schema": "public",
2742
+ "table": "revision_receipts"
2743
+ },
2744
+ {
2745
+ "type": "revision_receipt_role",
2746
+ "typeSchema": "public",
2747
+ "notNull": true,
2748
+ "dimensions": 0,
2749
+ "default": null,
2750
+ "generated": null,
2751
+ "identity": null,
2752
+ "name": "role",
2753
+ "entityType": "columns",
2754
+ "schema": "public",
2755
+ "table": "revision_receipts"
2756
+ },
2757
+ {
2758
+ "type": "uuid",
2759
+ "typeSchema": null,
2760
+ "notNull": true,
2761
+ "dimensions": 0,
2762
+ "default": null,
2763
+ "generated": null,
2764
+ "identity": null,
2765
+ "name": "revision_id",
2766
+ "entityType": "columns",
2767
+ "schema": "public",
2768
+ "table": "revision_relations"
2769
+ },
2770
+ {
2771
+ "type": "integer",
2772
+ "typeSchema": null,
2773
+ "notNull": true,
2774
+ "dimensions": 0,
2775
+ "default": null,
2776
+ "generated": null,
2777
+ "identity": null,
2778
+ "name": "occurrence",
2779
+ "entityType": "columns",
2780
+ "schema": "public",
2781
+ "table": "revision_relations"
2782
+ },
2783
+ {
2784
+ "type": "text",
2785
+ "typeSchema": null,
2786
+ "notNull": true,
2787
+ "dimensions": 0,
2788
+ "default": null,
2789
+ "generated": null,
2790
+ "identity": null,
2791
+ "name": "property",
2792
+ "entityType": "columns",
2793
+ "schema": "public",
2794
+ "table": "revision_relations"
2795
+ },
2796
+ {
2797
+ "type": "json",
2798
+ "typeSchema": null,
2799
+ "notNull": false,
2800
+ "dimensions": 0,
2801
+ "default": null,
2802
+ "generated": null,
2803
+ "identity": null,
2804
+ "name": "path",
2805
+ "entityType": "columns",
2806
+ "schema": "public",
2807
+ "table": "revision_relations"
2808
+ },
2809
+ {
2810
+ "type": "revision_relation_representation",
2811
+ "typeSchema": "public",
2812
+ "notNull": true,
2813
+ "dimensions": 0,
2814
+ "default": null,
2815
+ "generated": null,
2816
+ "identity": null,
2817
+ "name": "representation",
2818
+ "entityType": "columns",
2819
+ "schema": "public",
2820
+ "table": "revision_relations"
2821
+ },
2822
+ {
2823
+ "type": "text",
2824
+ "typeSchema": null,
2825
+ "notNull": false,
2826
+ "dimensions": 0,
2827
+ "default": null,
2828
+ "generated": null,
2829
+ "identity": null,
2830
+ "name": "target_iri",
2831
+ "entityType": "columns",
2832
+ "schema": "public",
2833
+ "table": "revision_relations"
2834
+ },
2835
+ {
2836
+ "type": "uuid",
2837
+ "typeSchema": null,
2838
+ "notNull": true,
2839
+ "dimensions": 0,
2840
+ "default": null,
2841
+ "generated": null,
2842
+ "identity": null,
2843
+ "name": "id",
2844
+ "entityType": "columns",
2845
+ "schema": "public",
2846
+ "table": "sessions"
2847
+ },
2848
+ {
2849
+ "type": "uuid",
2850
+ "typeSchema": null,
2851
+ "notNull": true,
2852
+ "dimensions": 0,
2853
+ "default": null,
2854
+ "generated": null,
2855
+ "identity": null,
2856
+ "name": "account_id",
2857
+ "entityType": "columns",
2858
+ "schema": "public",
2859
+ "table": "sessions"
2860
+ },
2861
+ {
2862
+ "type": "varchar(64)",
2863
+ "typeSchema": null,
2864
+ "notNull": true,
2865
+ "dimensions": 0,
2866
+ "default": null,
2867
+ "generated": null,
2868
+ "identity": null,
2869
+ "name": "token_hash",
2870
+ "entityType": "columns",
2871
+ "schema": "public",
2872
+ "table": "sessions"
2873
+ },
2874
+ {
2875
+ "type": "timestamp with time zone",
2876
+ "typeSchema": null,
2877
+ "notNull": true,
2878
+ "dimensions": 0,
2879
+ "default": "CURRENT_TIMESTAMP",
2880
+ "generated": null,
2881
+ "identity": null,
2882
+ "name": "created",
2883
+ "entityType": "columns",
2884
+ "schema": "public",
2885
+ "table": "sessions"
2886
+ },
2887
+ {
2888
+ "type": "timestamp with time zone",
2889
+ "typeSchema": null,
2890
+ "notNull": true,
2891
+ "dimensions": 0,
2892
+ "default": "CURRENT_TIMESTAMP + INTERVAL '1 month'",
2893
+ "generated": null,
2894
+ "identity": null,
2895
+ "name": "expires",
2896
+ "entityType": "columns",
2897
+ "schema": "public",
2898
+ "table": "sessions"
2899
+ },
2900
+ {
2901
+ "nameExplicit": true,
2902
+ "columns": [
2903
+ {
2904
+ "value": "actor_id",
2905
+ "isExpression": false,
2906
+ "asc": true,
2907
+ "nullsFirst": false,
2908
+ "opclass": null
2909
+ },
2910
+ {
2911
+ "value": "\"published\" desc",
2912
+ "isExpression": true,
2913
+ "asc": true,
2914
+ "nullsFirst": false,
2915
+ "opclass": null
2916
+ },
2917
+ {
2918
+ "value": "\"id\" desc",
2919
+ "isExpression": true,
2920
+ "asc": true,
2921
+ "nullsFirst": false,
2922
+ "opclass": null
2923
+ }
2924
+ ],
2925
+ "isUnique": false,
2926
+ "where": null,
2927
+ "with": "",
2928
+ "method": "btree",
2929
+ "concurrently": false,
2930
+ "name": "activity_actor_published_index",
2931
+ "entityType": "indexes",
2932
+ "schema": "public",
2933
+ "table": "activities"
2934
+ },
2935
+ {
2936
+ "nameExplicit": true,
2937
+ "columns": [
2938
+ {
2939
+ "value": "object_id",
2940
+ "isExpression": false,
2941
+ "asc": true,
2942
+ "nullsFirst": false,
2943
+ "opclass": null
2944
+ },
2945
+ {
2946
+ "value": "published",
2947
+ "isExpression": false,
2948
+ "asc": true,
2949
+ "nullsFirst": false,
2950
+ "opclass": null
2951
+ },
2952
+ {
2953
+ "value": "id",
2954
+ "isExpression": false,
2955
+ "asc": true,
2956
+ "nullsFirst": false,
2957
+ "opclass": null
2958
+ }
2959
+ ],
2960
+ "isUnique": false,
2961
+ "where": null,
2962
+ "with": "",
2963
+ "method": "btree",
2964
+ "concurrently": false,
2965
+ "name": "activity_object_published_index",
2966
+ "entityType": "indexes",
2967
+ "schema": "public",
2968
+ "table": "activities"
2969
+ },
2970
+ {
2971
+ "nameExplicit": true,
2972
+ "columns": [
2973
+ {
2974
+ "value": "instance_id",
2975
+ "isExpression": false,
2976
+ "asc": true,
2977
+ "nullsFirst": false,
2978
+ "opclass": null
2979
+ },
2980
+ {
2981
+ "value": "\"created\" desc",
2982
+ "isExpression": true,
2983
+ "asc": true,
2984
+ "nullsFirst": false,
2985
+ "opclass": null
2986
+ },
2987
+ {
2988
+ "value": "\"id\" desc",
2989
+ "isExpression": true,
2990
+ "asc": true,
2991
+ "nullsFirst": false,
2992
+ "opclass": null
2993
+ }
2994
+ ],
2995
+ "isUnique": false,
2996
+ "where": null,
2997
+ "with": "",
2998
+ "method": "btree",
2999
+ "concurrently": false,
3000
+ "name": "activity_delivery_instance_created_index",
3001
+ "entityType": "indexes",
3002
+ "schema": "public",
3003
+ "table": "activity_deliveries"
3004
+ },
3005
+ {
3006
+ "nameExplicit": true,
3007
+ "columns": [
3008
+ {
3009
+ "value": "actor_id",
3010
+ "isExpression": false,
3011
+ "asc": true,
3012
+ "nullsFirst": false,
3013
+ "opclass": null
3014
+ }
3015
+ ],
3016
+ "isUnique": false,
3017
+ "where": null,
3018
+ "with": "",
3019
+ "method": "btree",
3020
+ "concurrently": false,
3021
+ "name": "activity_delivery_actor_index",
3022
+ "entityType": "indexes",
3023
+ "schema": "public",
3024
+ "table": "activity_deliveries"
3025
+ },
3026
+ {
3027
+ "nameExplicit": true,
3028
+ "columns": [
3029
+ {
3030
+ "value": "activity_id",
3031
+ "isExpression": false,
3032
+ "asc": true,
3033
+ "nullsFirst": false,
3034
+ "opclass": null
3035
+ },
3036
+ {
3037
+ "value": "\"created\" desc",
3038
+ "isExpression": true,
3039
+ "asc": true,
3040
+ "nullsFirst": false,
3041
+ "opclass": null
3042
+ },
3043
+ {
3044
+ "value": "\"id\" desc",
3045
+ "isExpression": true,
3046
+ "asc": true,
3047
+ "nullsFirst": false,
3048
+ "opclass": null
3049
+ }
3050
+ ],
3051
+ "isUnique": false,
3052
+ "where": null,
3053
+ "with": "",
3054
+ "method": "btree",
3055
+ "concurrently": false,
3056
+ "name": "activity_delivery_activity_created_index",
3057
+ "entityType": "indexes",
3058
+ "schema": "public",
3059
+ "table": "activity_deliveries"
3060
+ },
3061
+ {
3062
+ "nameExplicit": true,
3063
+ "columns": [
3064
+ {
3065
+ "value": "verification_key_id",
3066
+ "isExpression": false,
3067
+ "asc": true,
3068
+ "nullsFirst": false,
3069
+ "opclass": null
3070
+ }
3071
+ ],
3072
+ "isUnique": false,
3073
+ "where": null,
3074
+ "with": "",
3075
+ "method": "btree",
3076
+ "concurrently": false,
3077
+ "name": "activity_delivery_verification_key_index",
3078
+ "entityType": "indexes",
3079
+ "schema": "public",
3080
+ "table": "activity_deliveries"
3081
+ },
3082
+ {
3083
+ "nameExplicit": true,
3084
+ "columns": [
3085
+ {
3086
+ "value": "activity_iri",
3087
+ "isExpression": false,
3088
+ "asc": true,
3089
+ "nullsFirst": false,
3090
+ "opclass": null
3091
+ },
3092
+ {
3093
+ "value": "inbox_url",
3094
+ "isExpression": false,
3095
+ "asc": true,
3096
+ "nullsFirst": false,
3097
+ "opclass": null
3098
+ }
3099
+ ],
3100
+ "isUnique": false,
3101
+ "where": "\"direction\" = 'outbound'",
3102
+ "with": "",
3103
+ "method": "btree",
3104
+ "concurrently": false,
3105
+ "name": "activity_delivery_outbound_index",
3106
+ "entityType": "indexes",
3107
+ "schema": "public",
3108
+ "table": "activity_deliveries"
3109
+ },
3110
+ {
3111
+ "nameExplicit": true,
3112
+ "columns": [
3113
+ {
3114
+ "value": "actor_id",
3115
+ "isExpression": false,
3116
+ "asc": true,
3117
+ "nullsFirst": false,
3118
+ "opclass": null
3119
+ },
3120
+ {
3121
+ "value": "\"created\" desc",
3122
+ "isExpression": true,
3123
+ "asc": true,
3124
+ "nullsFirst": false,
3125
+ "opclass": null
3126
+ },
3127
+ {
3128
+ "value": "\"delivery_id\" desc",
3129
+ "isExpression": true,
3130
+ "asc": true,
3131
+ "nullsFirst": false,
3132
+ "opclass": null
3133
+ }
3134
+ ],
3135
+ "isUnique": false,
3136
+ "where": null,
3137
+ "with": "",
3138
+ "method": "btree",
3139
+ "concurrently": false,
3140
+ "name": "activity_delivery_actor_created_index",
3141
+ "entityType": "indexes",
3142
+ "schema": "public",
3143
+ "table": "activity_delivery_actors"
3144
+ },
3145
+ {
3146
+ "nameExplicit": true,
3147
+ "columns": [
3148
+ {
3149
+ "value": "delivery_id",
3150
+ "isExpression": false,
3151
+ "asc": true,
3152
+ "nullsFirst": false,
3153
+ "opclass": null
3154
+ },
3155
+ {
3156
+ "value": "created",
3157
+ "isExpression": false,
3158
+ "asc": true,
3159
+ "nullsFirst": false,
3160
+ "opclass": null
3161
+ },
3162
+ {
3163
+ "value": "id",
3164
+ "isExpression": false,
3165
+ "asc": true,
3166
+ "nullsFirst": false,
3167
+ "opclass": null
3168
+ }
3169
+ ],
3170
+ "isUnique": false,
3171
+ "where": null,
3172
+ "with": "",
3173
+ "method": "btree",
3174
+ "concurrently": false,
3175
+ "name": "activity_delivery_attempt_delivery_index",
3176
+ "entityType": "indexes",
3177
+ "schema": "public",
3178
+ "table": "activity_delivery_attempts"
3179
+ },
3180
+ {
3181
+ "nameExplicit": true,
3182
+ "columns": [
3183
+ {
3184
+ "value": "collection_id",
3185
+ "isExpression": false,
3186
+ "asc": true,
3187
+ "nullsFirst": false,
3188
+ "opclass": null
3189
+ }
3190
+ ],
3191
+ "isUnique": false,
3192
+ "where": null,
3193
+ "with": "",
3194
+ "method": "btree",
3195
+ "concurrently": false,
3196
+ "name": "actor_collection_reference_collection_index",
3197
+ "entityType": "indexes",
3198
+ "schema": "public",
3199
+ "table": "actor_collection_references"
3200
+ },
3201
+ {
3202
+ "nameExplicit": true,
3203
+ "columns": [
3204
+ {
3205
+ "value": "username",
3206
+ "isExpression": false,
3207
+ "asc": true,
3208
+ "nullsFirst": false,
3209
+ "opclass": null
3210
+ },
3211
+ {
3212
+ "value": "instance_id",
3213
+ "isExpression": false,
3214
+ "asc": true,
3215
+ "nullsFirst": false,
3216
+ "opclass": null
3217
+ }
3218
+ ],
3219
+ "isUnique": true,
3220
+ "where": "\"local_id\" IS NOT NULL",
3221
+ "with": "",
3222
+ "method": "btree",
3223
+ "concurrently": false,
3224
+ "name": "username_key",
3225
+ "entityType": "indexes",
3226
+ "schema": "public",
3227
+ "table": "actors"
3228
+ },
3229
+ {
3230
+ "nameExplicit": true,
3231
+ "columns": [
3232
+ {
3233
+ "value": "instance_id",
3234
+ "isExpression": false,
3235
+ "asc": true,
3236
+ "nullsFirst": false,
3237
+ "opclass": null
3238
+ }
3239
+ ],
3240
+ "isUnique": false,
3241
+ "where": null,
3242
+ "with": "",
3243
+ "method": "btree",
3244
+ "concurrently": false,
3245
+ "name": "actor_instance_index",
3246
+ "entityType": "indexes",
3247
+ "schema": "public",
3248
+ "table": "actors"
3249
+ },
3250
+ {
3251
+ "nameExplicit": true,
3252
+ "columns": [
3253
+ {
3254
+ "value": "target_id",
3255
+ "isExpression": false,
3256
+ "asc": true,
3257
+ "nullsFirst": false,
3258
+ "opclass": null
3259
+ },
3260
+ {
3261
+ "value": "property",
3262
+ "isExpression": false,
3263
+ "asc": true,
3264
+ "nullsFirst": false,
3265
+ "opclass": null
3266
+ }
3267
+ ],
3268
+ "isUnique": false,
3269
+ "where": null,
3270
+ "with": "",
3271
+ "method": "btree",
3272
+ "concurrently": false,
3273
+ "name": "addressing_target_property_index",
3274
+ "entityType": "indexes",
3275
+ "schema": "public",
3276
+ "table": "addressing"
3277
+ },
3278
+ {
3279
+ "nameExplicit": true,
3280
+ "columns": [
3281
+ {
3282
+ "value": "collection_id",
3283
+ "isExpression": false,
3284
+ "asc": true,
3285
+ "nullsFirst": false,
3286
+ "opclass": null
3287
+ },
3288
+ {
3289
+ "value": "position",
3290
+ "isExpression": false,
3291
+ "asc": true,
3292
+ "nullsFirst": false,
3293
+ "opclass": null
3294
+ }
3295
+ ],
3296
+ "isUnique": false,
3297
+ "where": null,
3298
+ "with": "",
3299
+ "method": "btree",
3300
+ "concurrently": false,
3301
+ "name": "collection_item_position_index",
3302
+ "entityType": "indexes",
3303
+ "schema": "public",
3304
+ "table": "collection_items"
3305
+ },
3306
+ {
3307
+ "nameExplicit": false,
3308
+ "columns": [
3309
+ {
3310
+ "value": "account_id",
3311
+ "isExpression": false,
3312
+ "asc": true,
3313
+ "nullsFirst": false,
3314
+ "opclass": null
3315
+ }
3316
+ ],
3317
+ "isUnique": false,
3318
+ "where": "\"accepted\" IS NOT NULL",
3319
+ "with": "",
3320
+ "method": "btree",
3321
+ "concurrently": false,
3322
+ "name": "instance_members_accountId_index",
3323
+ "entityType": "indexes",
3324
+ "schema": "public",
3325
+ "table": "instance_members"
3326
+ },
3327
+ {
3328
+ "nameExplicit": false,
3329
+ "columns": [
3330
+ {
3331
+ "value": "instance_id",
3332
+ "isExpression": false,
3333
+ "asc": true,
3334
+ "nullsFirst": false,
3335
+ "opclass": null
3336
+ }
3337
+ ],
3338
+ "isUnique": false,
3339
+ "where": "\"accepted\" IS NOT NULL",
3340
+ "with": "",
3341
+ "method": "btree",
3342
+ "concurrently": false,
3343
+ "name": "instance_members_instanceId_index",
3344
+ "entityType": "indexes",
3345
+ "schema": "public",
3346
+ "table": "instance_members"
3347
+ },
3348
+ {
3349
+ "nameExplicit": true,
3350
+ "columns": [
3351
+ {
3352
+ "value": "key_id",
3353
+ "isExpression": false,
3354
+ "asc": true,
3355
+ "nullsFirst": false,
3356
+ "opclass": null
3357
+ },
3358
+ {
3359
+ "value": "first_seen",
3360
+ "isExpression": false,
3361
+ "asc": true,
3362
+ "nullsFirst": false,
3363
+ "opclass": null
3364
+ },
3365
+ {
3366
+ "value": "id",
3367
+ "isExpression": false,
3368
+ "asc": true,
3369
+ "nullsFirst": false,
3370
+ "opclass": null
3371
+ }
3372
+ ],
3373
+ "isUnique": false,
3374
+ "where": null,
3375
+ "with": "",
3376
+ "method": "btree",
3377
+ "concurrently": false,
3378
+ "name": "key_version_key_first_seen_index",
3379
+ "entityType": "indexes",
3380
+ "schema": "public",
3381
+ "table": "key_versions"
3382
+ },
3383
+ {
3384
+ "nameExplicit": true,
3385
+ "columns": [
3386
+ {
3387
+ "value": "actor_id",
3388
+ "isExpression": false,
3389
+ "asc": true,
3390
+ "nullsFirst": false,
3391
+ "opclass": null
3392
+ },
3393
+ {
3394
+ "value": "\"published\" desc",
3395
+ "isExpression": true,
3396
+ "asc": true,
3397
+ "nullsFirst": false,
3398
+ "opclass": null
3399
+ },
3400
+ {
3401
+ "value": "\"id\" desc",
3402
+ "isExpression": true,
3403
+ "asc": true,
3404
+ "nullsFirst": false,
3405
+ "opclass": null
3406
+ }
3407
+ ],
3408
+ "isUnique": false,
3409
+ "where": null,
3410
+ "with": "",
3411
+ "method": "btree",
3412
+ "concurrently": false,
3413
+ "name": "object_actor_published_index",
3414
+ "entityType": "indexes",
3415
+ "schema": "public",
3416
+ "table": "objects"
3417
+ },
3418
+ {
3419
+ "nameExplicit": true,
3420
+ "columns": [
3421
+ {
3422
+ "value": "iri",
3423
+ "isExpression": false,
3424
+ "asc": true,
3425
+ "nullsFirst": false,
3426
+ "opclass": null
3427
+ },
3428
+ {
3429
+ "value": "property",
3430
+ "isExpression": false,
3431
+ "asc": true,
3432
+ "nullsFirst": false,
3433
+ "opclass": null
3434
+ }
3435
+ ],
3436
+ "isUnique": false,
3437
+ "where": null,
3438
+ "with": "",
3439
+ "method": "btree",
3440
+ "concurrently": false,
3441
+ "name": "revision_addressing_iri_property_index",
3442
+ "entityType": "indexes",
3443
+ "schema": "public",
3444
+ "table": "revision_addressing"
3445
+ },
3446
+ {
3447
+ "nameExplicit": true,
3448
+ "columns": [
3449
+ {
3450
+ "value": "source_revision_id",
3451
+ "isExpression": false,
3452
+ "asc": true,
3453
+ "nullsFirst": false,
3454
+ "opclass": null
3455
+ }
3456
+ ],
3457
+ "isUnique": false,
3458
+ "where": null,
3459
+ "with": "",
3460
+ "method": "btree",
3461
+ "concurrently": false,
3462
+ "name": "revision_embeddings_source_index",
3463
+ "entityType": "indexes",
3464
+ "schema": "public",
3465
+ "table": "revision_embeddings"
3466
+ },
3467
+ {
3468
+ "nameExplicit": true,
3469
+ "columns": [
3470
+ {
3471
+ "value": "revision_id",
3472
+ "isExpression": false,
3473
+ "asc": true,
3474
+ "nullsFirst": false,
3475
+ "opclass": null
3476
+ }
3477
+ ],
3478
+ "isUnique": false,
3479
+ "where": null,
3480
+ "with": "",
3481
+ "method": "btree",
3482
+ "concurrently": false,
3483
+ "name": "revision_receipts_revision_index",
3484
+ "entityType": "indexes",
3485
+ "schema": "public",
3486
+ "table": "revision_receipts"
3487
+ },
3488
+ {
3489
+ "nameExplicit": true,
3490
+ "columns": [
3491
+ {
3492
+ "value": "property",
3493
+ "isExpression": false,
3494
+ "asc": true,
3495
+ "nullsFirst": false,
3496
+ "opclass": null
3497
+ },
3498
+ {
3499
+ "value": "target_iri",
3500
+ "isExpression": false,
3501
+ "asc": true,
3502
+ "nullsFirst": false,
3503
+ "opclass": null
3504
+ },
3505
+ {
3506
+ "value": "revision_id",
3507
+ "isExpression": false,
3508
+ "asc": true,
3509
+ "nullsFirst": false,
3510
+ "opclass": null
3511
+ }
3512
+ ],
3513
+ "isUnique": false,
3514
+ "where": null,
3515
+ "with": "",
3516
+ "method": "btree",
3517
+ "concurrently": false,
3518
+ "name": "revision_relations_property_target_index",
3519
+ "entityType": "indexes",
3520
+ "schema": "public",
3521
+ "table": "revision_relations"
3522
+ },
3523
+ {
3524
+ "nameExplicit": false,
3525
+ "columns": ["id"],
3526
+ "schemaTo": "public",
3527
+ "tableTo": "resources",
3528
+ "columnsTo": ["id"],
3529
+ "onUpdate": "NO ACTION",
3530
+ "onDelete": "CASCADE",
3531
+ "name": "activities_id_resources_id_fkey",
3532
+ "entityType": "fks",
3533
+ "schema": "public",
3534
+ "table": "activities"
3535
+ },
3536
+ {
3537
+ "nameExplicit": false,
3538
+ "columns": ["actor_id"],
3539
+ "schemaTo": "public",
3540
+ "tableTo": "actors",
3541
+ "columnsTo": ["id"],
3542
+ "onUpdate": "NO ACTION",
3543
+ "onDelete": "CASCADE",
3544
+ "name": "activities_actorId_actors_id_fkey",
3545
+ "entityType": "fks",
3546
+ "schema": "public",
3547
+ "table": "activities"
3548
+ },
3549
+ {
3550
+ "nameExplicit": false,
3551
+ "columns": ["object_id"],
3552
+ "schemaTo": "public",
3553
+ "tableTo": "resources",
3554
+ "columnsTo": ["id"],
3555
+ "onUpdate": "NO ACTION",
3556
+ "onDelete": "SET NULL",
3557
+ "name": "activities_object_id_resources_id_fkey",
3558
+ "entityType": "fks",
3559
+ "schema": "public",
3560
+ "table": "activities"
3561
+ },
3562
+ {
3563
+ "nameExplicit": false,
3564
+ "columns": ["instance_id"],
3565
+ "schemaTo": "public",
3566
+ "tableTo": "instances",
3567
+ "columnsTo": ["id"],
3568
+ "onUpdate": "NO ACTION",
3569
+ "onDelete": "CASCADE",
3570
+ "name": "activity_deliveries_instance_id_instances_id_fkey",
3571
+ "entityType": "fks",
3572
+ "schema": "public",
3573
+ "table": "activity_deliveries"
3574
+ },
3575
+ {
3576
+ "nameExplicit": false,
3577
+ "columns": ["actor_id"],
3578
+ "schemaTo": "public",
3579
+ "tableTo": "actors",
3580
+ "columnsTo": ["id"],
3581
+ "onUpdate": "NO ACTION",
3582
+ "onDelete": "SET NULL",
3583
+ "name": "activity_deliveries_actor_id_actors_id_fkey",
3584
+ "entityType": "fks",
3585
+ "schema": "public",
3586
+ "table": "activity_deliveries"
3587
+ },
3588
+ {
3589
+ "nameExplicit": false,
3590
+ "columns": ["activity_id"],
3591
+ "schemaTo": "public",
3592
+ "tableTo": "activities",
3593
+ "columnsTo": ["id"],
3594
+ "onUpdate": "NO ACTION",
3595
+ "onDelete": "SET NULL",
3596
+ "name": "activity_deliveries_activity_id_activities_id_fkey",
3597
+ "entityType": "fks",
3598
+ "schema": "public",
3599
+ "table": "activity_deliveries"
3600
+ },
3601
+ {
3602
+ "nameExplicit": false,
3603
+ "columns": ["verification_key_id"],
3604
+ "schemaTo": "public",
3605
+ "tableTo": "key_versions",
3606
+ "columnsTo": ["id"],
3607
+ "onUpdate": "NO ACTION",
3608
+ "onDelete": "RESTRICT",
3609
+ "name": "activity_deliveries_verification_key_id_key_versions_id_fkey",
3610
+ "entityType": "fks",
3611
+ "schema": "public",
3612
+ "table": "activity_deliveries"
3613
+ },
3614
+ {
3615
+ "nameExplicit": true,
3616
+ "columns": ["delivery_id", "actor_id"],
3617
+ "schemaTo": "public",
3618
+ "tableTo": "activity_delivery_actors",
3619
+ "columnsTo": ["delivery_id", "actor_id"],
3620
+ "onUpdate": "NO ACTION",
3621
+ "onDelete": "CASCADE",
3622
+ "name": "activity_delivery_actor_collections_link_fkey",
3623
+ "entityType": "fks",
3624
+ "schema": "public",
3625
+ "table": "activity_delivery_actor_collections"
3626
+ },
3627
+ {
3628
+ "nameExplicit": false,
3629
+ "columns": ["delivery_id"],
3630
+ "schemaTo": "public",
3631
+ "tableTo": "activity_deliveries",
3632
+ "columnsTo": ["id"],
3633
+ "onUpdate": "NO ACTION",
3634
+ "onDelete": "CASCADE",
3635
+ "name": "activity_delivery_actors_eZEmaeqml3qX_fkey",
3636
+ "entityType": "fks",
3637
+ "schema": "public",
3638
+ "table": "activity_delivery_actors"
3639
+ },
3640
+ {
3641
+ "nameExplicit": false,
3642
+ "columns": ["actor_id"],
3643
+ "schemaTo": "public",
3644
+ "tableTo": "actors",
3645
+ "columnsTo": ["id"],
3646
+ "onUpdate": "NO ACTION",
3647
+ "onDelete": "CASCADE",
3648
+ "name": "activity_delivery_actors_actor_id_actors_id_fkey",
3649
+ "entityType": "fks",
3650
+ "schema": "public",
3651
+ "table": "activity_delivery_actors"
3652
+ },
3653
+ {
3654
+ "nameExplicit": false,
3655
+ "columns": ["delivery_id"],
3656
+ "schemaTo": "public",
3657
+ "tableTo": "activity_deliveries",
3658
+ "columnsTo": ["id"],
3659
+ "onUpdate": "NO ACTION",
3660
+ "onDelete": "CASCADE",
3661
+ "name": "activity_delivery_attempts_BJqYxUSnVaXX_fkey",
3662
+ "entityType": "fks",
3663
+ "schema": "public",
3664
+ "table": "activity_delivery_attempts"
3665
+ },
3666
+ {
3667
+ "nameExplicit": false,
3668
+ "columns": ["actor_id"],
3669
+ "schemaTo": "public",
3670
+ "tableTo": "actors",
3671
+ "columnsTo": ["id"],
3672
+ "onUpdate": "NO ACTION",
3673
+ "onDelete": "CASCADE",
3674
+ "name": "actor_collection_references_actorId_actors_id_fkey",
3675
+ "entityType": "fks",
3676
+ "schema": "public",
3677
+ "table": "actor_collection_references"
3678
+ },
3679
+ {
3680
+ "nameExplicit": false,
3681
+ "columns": ["collection_id"],
3682
+ "schemaTo": "public",
3683
+ "tableTo": "collections",
3684
+ "columnsTo": ["id"],
3685
+ "onUpdate": "NO ACTION",
3686
+ "onDelete": "CASCADE",
3687
+ "name": "actor_collection_references_collectionId_collections_id_fkey",
3688
+ "entityType": "fks",
3689
+ "schema": "public",
3690
+ "table": "actor_collection_references"
3691
+ },
3692
+ {
3693
+ "nameExplicit": false,
3694
+ "columns": ["id"],
3695
+ "schemaTo": "public",
3696
+ "tableTo": "resources",
3697
+ "columnsTo": ["id"],
3698
+ "onUpdate": "NO ACTION",
3699
+ "onDelete": "CASCADE",
3700
+ "name": "actors_id_resources_id_fkey",
3701
+ "entityType": "fks",
3702
+ "schema": "public",
3703
+ "table": "actors"
3704
+ },
3705
+ {
3706
+ "nameExplicit": false,
3707
+ "columns": ["local_id"],
3708
+ "schemaTo": "public",
3709
+ "tableTo": "local_actors",
3710
+ "columnsTo": ["id"],
3711
+ "onUpdate": "NO ACTION",
3712
+ "onDelete": "CASCADE",
3713
+ "name": "actors_localId_local_actors_id_fkey",
3714
+ "entityType": "fks",
3715
+ "schema": "public",
3716
+ "table": "actors"
3717
+ },
3718
+ {
3719
+ "nameExplicit": false,
3720
+ "columns": ["instance_id"],
3721
+ "schemaTo": "public",
3722
+ "tableTo": "instances",
3723
+ "columnsTo": ["id"],
3724
+ "onUpdate": "NO ACTION",
3725
+ "onDelete": "CASCADE",
3726
+ "name": "actors_instanceId_instances_id_fkey",
3727
+ "entityType": "fks",
3728
+ "schema": "public",
3729
+ "table": "actors"
3730
+ },
3731
+ {
3732
+ "nameExplicit": false,
3733
+ "columns": ["successor_id"],
3734
+ "schemaTo": "public",
3735
+ "tableTo": "actors",
3736
+ "columnsTo": ["id"],
3737
+ "onUpdate": "NO ACTION",
3738
+ "onDelete": "SET NULL",
3739
+ "name": "actors_successorId_actors_id_fkey",
3740
+ "entityType": "fks",
3741
+ "schema": "public",
3742
+ "table": "actors"
3743
+ },
3744
+ {
3745
+ "nameExplicit": false,
3746
+ "columns": ["source_id"],
3747
+ "schemaTo": "public",
3748
+ "tableTo": "resources",
3749
+ "columnsTo": ["id"],
3750
+ "onUpdate": "NO ACTION",
3751
+ "onDelete": "CASCADE",
3752
+ "name": "addressing_sourceId_resources_id_fkey",
3753
+ "entityType": "fks",
3754
+ "schema": "public",
3755
+ "table": "addressing"
3756
+ },
3757
+ {
3758
+ "nameExplicit": false,
3759
+ "columns": ["target_id"],
3760
+ "schemaTo": "public",
3761
+ "tableTo": "resources",
3762
+ "columnsTo": ["id"],
3763
+ "onUpdate": "NO ACTION",
3764
+ "onDelete": "RESTRICT",
3765
+ "name": "addressing_targetId_resources_id_fkey",
3766
+ "entityType": "fks",
3767
+ "schema": "public",
3768
+ "table": "addressing"
3769
+ },
3770
+ {
3771
+ "nameExplicit": false,
3772
+ "columns": ["collection_id"],
3773
+ "schemaTo": "public",
3774
+ "tableTo": "collections",
3775
+ "columnsTo": ["id"],
3776
+ "onUpdate": "NO ACTION",
3777
+ "onDelete": "CASCADE",
3778
+ "name": "collection_items_collectionId_collections_id_fkey",
3779
+ "entityType": "fks",
3780
+ "schema": "public",
3781
+ "table": "collection_items"
3782
+ },
3783
+ {
3784
+ "nameExplicit": false,
3785
+ "columns": ["item_id"],
3786
+ "schemaTo": "public",
3787
+ "tableTo": "resources",
3788
+ "columnsTo": ["id"],
3789
+ "onUpdate": "NO ACTION",
3790
+ "onDelete": "CASCADE",
3791
+ "name": "collection_items_itemId_resources_id_fkey",
3792
+ "entityType": "fks",
3793
+ "schema": "public",
3794
+ "table": "collection_items"
3795
+ },
3796
+ {
3797
+ "nameExplicit": false,
3798
+ "columns": ["id"],
3799
+ "schemaTo": "public",
3800
+ "tableTo": "resources",
3801
+ "columnsTo": ["id"],
3802
+ "onUpdate": "NO ACTION",
3803
+ "onDelete": "CASCADE",
3804
+ "name": "collections_id_resources_id_fkey",
3805
+ "entityType": "fks",
3806
+ "schema": "public",
3807
+ "table": "collections"
3808
+ },
3809
+ {
3810
+ "nameExplicit": false,
3811
+ "columns": ["owner_actor_id"],
3812
+ "schemaTo": "public",
3813
+ "tableTo": "actors",
3814
+ "columnsTo": ["id"],
3815
+ "onUpdate": "NO ACTION",
3816
+ "onDelete": "CASCADE",
3817
+ "name": "collections_ownerActorId_actors_id_fkey",
3818
+ "entityType": "fks",
3819
+ "schema": "public",
3820
+ "table": "collections"
3821
+ },
3822
+ {
3823
+ "nameExplicit": false,
3824
+ "columns": ["account_id"],
3825
+ "schemaTo": "public",
3826
+ "tableTo": "accounts",
3827
+ "columnsTo": ["id"],
3828
+ "onUpdate": "NO ACTION",
3829
+ "onDelete": "NO ACTION",
3830
+ "name": "instance_members_accountId_accounts_id_fkey",
3831
+ "entityType": "fks",
3832
+ "schema": "public",
3833
+ "table": "instance_members"
3834
+ },
3835
+ {
3836
+ "nameExplicit": false,
3837
+ "columns": ["instance_id"],
3838
+ "schemaTo": "public",
3839
+ "tableTo": "instances",
3840
+ "columnsTo": ["id"],
3841
+ "onUpdate": "NO ACTION",
3842
+ "onDelete": "NO ACTION",
3843
+ "name": "instance_members_instanceId_instances_id_fkey",
3844
+ "entityType": "fks",
3845
+ "schema": "public",
3846
+ "table": "instance_members"
3847
+ },
3848
+ {
3849
+ "nameExplicit": false,
3850
+ "columns": ["local_id"],
3851
+ "schemaTo": "public",
3852
+ "tableTo": "local_instances",
3853
+ "columnsTo": ["id"],
3854
+ "onUpdate": "NO ACTION",
3855
+ "onDelete": "CASCADE",
3856
+ "name": "instances_localId_local_instances_id_fkey",
3857
+ "entityType": "fks",
3858
+ "schema": "public",
3859
+ "table": "instances"
3860
+ },
3861
+ {
3862
+ "nameExplicit": false,
3863
+ "columns": ["key_id"],
3864
+ "schemaTo": "public",
3865
+ "tableTo": "keys",
3866
+ "columnsTo": ["id"],
3867
+ "onUpdate": "NO ACTION",
3868
+ "onDelete": "RESTRICT",
3869
+ "name": "key_versions_key_id_keys_id_fkey",
3870
+ "entityType": "fks",
3871
+ "schema": "public",
3872
+ "table": "key_versions"
3873
+ },
3874
+ {
3875
+ "nameExplicit": false,
3876
+ "columns": ["local_actor_id"],
3877
+ "schemaTo": "public",
3878
+ "tableTo": "local_actors",
3879
+ "columnsTo": ["id"],
3880
+ "onUpdate": "NO ACTION",
3881
+ "onDelete": "CASCADE",
3882
+ "name": "local_actor_keys_local_actor_id_local_actors_id_fkey",
3883
+ "entityType": "fks",
3884
+ "schema": "public",
3885
+ "table": "local_actor_keys"
3886
+ },
3887
+ {
3888
+ "nameExplicit": false,
3889
+ "columns": ["account_id"],
3890
+ "schemaTo": "public",
3891
+ "tableTo": "accounts",
3892
+ "columnsTo": ["id"],
3893
+ "onUpdate": "NO ACTION",
3894
+ "onDelete": "CASCADE",
3895
+ "name": "login_tokens_accountId_accounts_id_fkey",
3896
+ "entityType": "fks",
3897
+ "schema": "public",
3898
+ "table": "login_challenges"
3899
+ },
3900
+ {
3901
+ "nameExplicit": false,
3902
+ "columns": ["id"],
3903
+ "schemaTo": "public",
3904
+ "tableTo": "resources",
3905
+ "columnsTo": ["id"],
3906
+ "onUpdate": "NO ACTION",
3907
+ "onDelete": "CASCADE",
3908
+ "name": "objects_id_resources_id_fkey",
3909
+ "entityType": "fks",
3910
+ "schema": "public",
3911
+ "table": "objects"
3912
+ },
3913
+ {
3914
+ "nameExplicit": false,
3915
+ "columns": ["actor_id"],
3916
+ "schemaTo": "public",
3917
+ "tableTo": "actors",
3918
+ "columnsTo": ["id"],
3919
+ "onUpdate": "NO ACTION",
3920
+ "onDelete": "CASCADE",
3921
+ "name": "objects_actorId_actors_id_fkey",
3922
+ "entityType": "fks",
3923
+ "schema": "public",
3924
+ "table": "objects"
3925
+ },
3926
+ {
3927
+ "nameExplicit": false,
3928
+ "columns": ["activity_id"],
3929
+ "schemaTo": "public",
3930
+ "tableTo": "resources",
3931
+ "columnsTo": ["id"],
3932
+ "onUpdate": "NO ACTION",
3933
+ "onDelete": "SET NULL",
3934
+ "name": "objects_activity_id_resources_id_fkey",
3935
+ "entityType": "fks",
3936
+ "schema": "public",
3937
+ "table": "objects"
3938
+ },
3939
+ {
3940
+ "nameExplicit": false,
3941
+ "columns": ["resource_id"],
3942
+ "schemaTo": "public",
3943
+ "tableTo": "resources",
3944
+ "columnsTo": ["id"],
3945
+ "onUpdate": "NO ACTION",
3946
+ "onDelete": "RESTRICT",
3947
+ "name": "resource_heads_resource_id_resources_id_fkey",
3948
+ "entityType": "fks",
3949
+ "schema": "public",
3950
+ "table": "resource_heads"
3951
+ },
3952
+ {
3953
+ "nameExplicit": true,
3954
+ "columns": ["resource_id", "revision_id"],
3955
+ "schemaTo": "public",
3956
+ "tableTo": "resource_revisions",
3957
+ "columnsTo": ["resource_id", "id"],
3958
+ "onUpdate": "NO ACTION",
3959
+ "onDelete": "RESTRICT",
3960
+ "name": "resource_heads_resource_revision_fkey",
3961
+ "entityType": "fks",
3962
+ "schema": "public",
3963
+ "table": "resource_heads"
3964
+ },
3965
+ {
3966
+ "nameExplicit": false,
3967
+ "columns": ["resource_id"],
3968
+ "schemaTo": "public",
3969
+ "tableTo": "resources",
3970
+ "columnsTo": ["id"],
3971
+ "onUpdate": "NO ACTION",
3972
+ "onDelete": "RESTRICT",
3973
+ "name": "resource_revisions_resource_id_resources_id_fkey",
3974
+ "entityType": "fks",
3975
+ "schema": "public",
3976
+ "table": "resource_revisions"
3977
+ },
3978
+ {
3979
+ "nameExplicit": false,
3980
+ "columns": ["revision_id"],
3981
+ "schemaTo": "public",
3982
+ "tableTo": "resource_revisions",
3983
+ "columnsTo": ["id"],
3984
+ "onUpdate": "NO ACTION",
3985
+ "onDelete": "RESTRICT",
3986
+ "name": "revision_addressing_revision_id_resource_revisions_id_fkey",
3987
+ "entityType": "fks",
3988
+ "schema": "public",
3989
+ "table": "revision_addressing"
3990
+ },
3991
+ {
3992
+ "nameExplicit": false,
3993
+ "columns": ["revision_id"],
3994
+ "schemaTo": "public",
3995
+ "tableTo": "resource_revisions",
3996
+ "columnsTo": ["id"],
3997
+ "onUpdate": "NO ACTION",
3998
+ "onDelete": "RESTRICT",
3999
+ "name": "revision_embeddings_revision_id_resource_revisions_id_fkey",
4000
+ "entityType": "fks",
4001
+ "schema": "public",
4002
+ "table": "revision_embeddings"
4003
+ },
4004
+ {
4005
+ "nameExplicit": true,
4006
+ "columns": ["source_revision_id"],
4007
+ "schemaTo": "public",
4008
+ "tableTo": "resource_revisions",
4009
+ "columnsTo": ["id"],
4010
+ "onUpdate": "NO ACTION",
4011
+ "onDelete": "RESTRICT",
4012
+ "name": "revision_embeddings_source_revision_fkey",
4013
+ "entityType": "fks",
4014
+ "schema": "public",
4015
+ "table": "revision_embeddings"
4016
+ },
4017
+ {
4018
+ "nameExplicit": false,
4019
+ "columns": ["delivery_id"],
4020
+ "schemaTo": "public",
4021
+ "tableTo": "activity_deliveries",
4022
+ "columnsTo": ["id"],
4023
+ "onUpdate": "NO ACTION",
4024
+ "onDelete": "CASCADE",
4025
+ "name": "revision_receipts_delivery_id_activity_deliveries_id_fkey",
4026
+ "entityType": "fks",
4027
+ "schema": "public",
4028
+ "table": "revision_receipts"
4029
+ },
4030
+ {
4031
+ "nameExplicit": false,
4032
+ "columns": ["revision_id"],
4033
+ "schemaTo": "public",
4034
+ "tableTo": "resource_revisions",
4035
+ "columnsTo": ["id"],
4036
+ "onUpdate": "NO ACTION",
4037
+ "onDelete": "RESTRICT",
4038
+ "name": "revision_receipts_revision_id_resource_revisions_id_fkey",
4039
+ "entityType": "fks",
4040
+ "schema": "public",
4041
+ "table": "revision_receipts"
4042
+ },
4043
+ {
4044
+ "nameExplicit": false,
4045
+ "columns": ["revision_id"],
4046
+ "schemaTo": "public",
4047
+ "tableTo": "resource_revisions",
4048
+ "columnsTo": ["id"],
4049
+ "onUpdate": "NO ACTION",
4050
+ "onDelete": "RESTRICT",
4051
+ "name": "revision_relations_revision_id_resource_revisions_id_fkey",
4052
+ "entityType": "fks",
4053
+ "schema": "public",
4054
+ "table": "revision_relations"
4055
+ },
4056
+ {
4057
+ "nameExplicit": false,
4058
+ "columns": ["account_id"],
4059
+ "schemaTo": "public",
4060
+ "tableTo": "accounts",
4061
+ "columnsTo": ["id"],
4062
+ "onUpdate": "NO ACTION",
4063
+ "onDelete": "CASCADE",
4064
+ "name": "sessions_accountId_accounts_id_fkey",
4065
+ "entityType": "fks",
4066
+ "schema": "public",
4067
+ "table": "sessions"
4068
+ },
4069
+ {
4070
+ "columns": ["delivery_id", "actor_id", "collection_iri"],
4071
+ "nameExplicit": false,
4072
+ "name": "activity_delivery_actor_collections_pkey",
4073
+ "entityType": "pks",
4074
+ "schema": "public",
4075
+ "table": "activity_delivery_actor_collections"
4076
+ },
4077
+ {
4078
+ "columns": ["delivery_id", "actor_id"],
4079
+ "nameExplicit": false,
4080
+ "name": "activity_delivery_actors_pkey",
4081
+ "entityType": "pks",
4082
+ "schema": "public",
4083
+ "table": "activity_delivery_actors"
4084
+ },
4085
+ {
4086
+ "columns": ["actor_id", "role"],
4087
+ "nameExplicit": false,
4088
+ "name": "actor_collection_references_pkey",
4089
+ "entityType": "pks",
4090
+ "schema": "public",
4091
+ "table": "actor_collection_references"
4092
+ },
4093
+ {
4094
+ "columns": ["collection_id", "item_id"],
4095
+ "nameExplicit": false,
4096
+ "name": "collection_items_pkey",
4097
+ "entityType": "pks",
4098
+ "schema": "public",
4099
+ "table": "collection_items"
4100
+ },
4101
+ {
4102
+ "columns": ["instance_id", "account_id"],
4103
+ "nameExplicit": false,
4104
+ "name": "instance_members_pkey",
4105
+ "entityType": "pks",
4106
+ "schema": "public",
4107
+ "table": "instance_members"
4108
+ },
4109
+ {
4110
+ "columns": ["local_actor_id", "type"],
4111
+ "nameExplicit": false,
4112
+ "name": "local_actor_keys_pkey",
4113
+ "entityType": "pks",
4114
+ "schema": "public",
4115
+ "table": "local_actor_keys"
4116
+ },
4117
+ {
4118
+ "columns": ["revision_id", "property", "position"],
4119
+ "nameExplicit": false,
4120
+ "name": "revision_addressing_pkey",
4121
+ "entityType": "pks",
4122
+ "schema": "public",
4123
+ "table": "revision_addressing"
4124
+ },
4125
+ {
4126
+ "columns": ["revision_id", "path"],
4127
+ "nameExplicit": false,
4128
+ "name": "revision_embeddings_pkey",
4129
+ "entityType": "pks",
4130
+ "schema": "public",
4131
+ "table": "revision_embeddings"
4132
+ },
4133
+ {
4134
+ "columns": ["delivery_id", "revision_id", "role"],
4135
+ "nameExplicit": false,
4136
+ "name": "revision_receipts_pkey",
4137
+ "entityType": "pks",
4138
+ "schema": "public",
4139
+ "table": "revision_receipts"
4140
+ },
4141
+ {
4142
+ "columns": ["revision_id", "occurrence"],
4143
+ "nameExplicit": false,
4144
+ "name": "revision_relations_pkey",
4145
+ "entityType": "pks",
4146
+ "schema": "public",
4147
+ "table": "revision_relations"
4148
+ },
4149
+ {
4150
+ "columns": ["id"],
4151
+ "nameExplicit": false,
4152
+ "name": "accounts_pkey",
4153
+ "schema": "public",
4154
+ "table": "accounts",
4155
+ "entityType": "pks"
4156
+ },
4157
+ {
4158
+ "columns": ["id"],
4159
+ "nameExplicit": false,
4160
+ "name": "activities_pkey",
4161
+ "schema": "public",
4162
+ "table": "activities",
4163
+ "entityType": "pks"
4164
+ },
4165
+ {
4166
+ "columns": ["id"],
4167
+ "nameExplicit": false,
4168
+ "name": "activity_deliveries_pkey",
4169
+ "schema": "public",
4170
+ "table": "activity_deliveries",
4171
+ "entityType": "pks"
4172
+ },
4173
+ {
4174
+ "columns": ["id"],
4175
+ "nameExplicit": false,
4176
+ "name": "activity_delivery_attempts_pkey",
4177
+ "schema": "public",
4178
+ "table": "activity_delivery_attempts",
4179
+ "entityType": "pks"
4180
+ },
4181
+ {
4182
+ "columns": ["id"],
4183
+ "nameExplicit": false,
4184
+ "name": "actors_pkey",
4185
+ "schema": "public",
4186
+ "table": "actors",
4187
+ "entityType": "pks"
4188
+ },
4189
+ {
4190
+ "columns": ["id"],
4191
+ "nameExplicit": false,
4192
+ "name": "addressing_pkey",
4193
+ "schema": "public",
4194
+ "table": "addressing",
4195
+ "entityType": "pks"
4196
+ },
4197
+ {
4198
+ "columns": ["id"],
4199
+ "nameExplicit": false,
4200
+ "name": "collections_pkey",
4201
+ "schema": "public",
4202
+ "table": "collections",
4203
+ "entityType": "pks"
4204
+ },
4205
+ {
4206
+ "columns": ["id"],
4207
+ "nameExplicit": false,
4208
+ "name": "instances_pkey",
4209
+ "schema": "public",
4210
+ "table": "instances",
4211
+ "entityType": "pks"
4212
+ },
4213
+ {
4214
+ "columns": ["id"],
4215
+ "nameExplicit": false,
4216
+ "name": "key_versions_pkey",
4217
+ "schema": "public",
4218
+ "table": "key_versions",
4219
+ "entityType": "pks"
4220
+ },
4221
+ {
4222
+ "columns": ["id"],
4223
+ "nameExplicit": false,
4224
+ "name": "keys_pkey",
4225
+ "schema": "public",
4226
+ "table": "keys",
4227
+ "entityType": "pks"
4228
+ },
4229
+ {
4230
+ "columns": ["id"],
4231
+ "nameExplicit": false,
4232
+ "name": "local_actors_pkey",
4233
+ "schema": "public",
4234
+ "table": "local_actors",
4235
+ "entityType": "pks"
4236
+ },
4237
+ {
4238
+ "columns": ["id"],
4239
+ "nameExplicit": false,
4240
+ "name": "local_instances_pkey",
4241
+ "schema": "public",
4242
+ "table": "local_instances",
4243
+ "entityType": "pks"
4244
+ },
4245
+ {
4246
+ "columns": ["id"],
4247
+ "nameExplicit": false,
4248
+ "name": "login_tokens_pkey",
4249
+ "schema": "public",
4250
+ "table": "login_challenges",
4251
+ "entityType": "pks"
4252
+ },
4253
+ {
4254
+ "columns": ["id"],
4255
+ "nameExplicit": false,
4256
+ "name": "objects_pkey",
4257
+ "schema": "public",
4258
+ "table": "objects",
4259
+ "entityType": "pks"
4260
+ },
4261
+ {
4262
+ "columns": ["resource_id"],
4263
+ "nameExplicit": false,
4264
+ "name": "resource_heads_pkey",
4265
+ "schema": "public",
4266
+ "table": "resource_heads",
4267
+ "entityType": "pks"
4268
+ },
4269
+ {
4270
+ "columns": ["id"],
4271
+ "nameExplicit": false,
4272
+ "name": "resource_revisions_pkey",
4273
+ "schema": "public",
4274
+ "table": "resource_revisions",
4275
+ "entityType": "pks"
4276
+ },
4277
+ {
4278
+ "columns": ["id"],
4279
+ "nameExplicit": false,
4280
+ "name": "resources_pkey",
4281
+ "schema": "public",
4282
+ "table": "resources",
4283
+ "entityType": "pks"
4284
+ },
4285
+ {
4286
+ "columns": ["id"],
4287
+ "nameExplicit": false,
4288
+ "name": "sessions_pkey",
4289
+ "schema": "public",
4290
+ "table": "sessions",
4291
+ "entityType": "pks"
4292
+ },
4293
+ {
4294
+ "nameExplicit": true,
4295
+ "columns": ["source_id", "property", "position"],
4296
+ "nullsNotDistinct": false,
4297
+ "name": "addressing_source_property_position_key",
4298
+ "entityType": "uniques",
4299
+ "schema": "public",
4300
+ "table": "addressing"
4301
+ },
4302
+ {
4303
+ "nameExplicit": true,
4304
+ "columns": ["key_id", "fingerprint"],
4305
+ "nullsNotDistinct": false,
4306
+ "name": "key_versions_key_id_fingerprint_unique",
4307
+ "entityType": "uniques",
4308
+ "schema": "public",
4309
+ "table": "key_versions"
4310
+ },
4311
+ {
4312
+ "nameExplicit": true,
4313
+ "columns": ["activity_id"],
4314
+ "nullsNotDistinct": false,
4315
+ "name": "objects_activity_id_key",
4316
+ "entityType": "uniques",
4317
+ "schema": "public",
4318
+ "table": "objects"
4319
+ },
4320
+ {
4321
+ "nameExplicit": true,
4322
+ "columns": ["resource_id", "sequence"],
4323
+ "nullsNotDistinct": false,
4324
+ "name": "resource_revisions_resource_sequence_key",
4325
+ "entityType": "uniques",
4326
+ "schema": "public",
4327
+ "table": "resource_revisions"
4328
+ },
4329
+ {
4330
+ "nameExplicit": true,
4331
+ "columns": ["resource_id", "id"],
4332
+ "nullsNotDistinct": false,
4333
+ "name": "resource_revisions_resource_id_key",
4334
+ "entityType": "uniques",
4335
+ "schema": "public",
4336
+ "table": "resource_revisions"
4337
+ },
4338
+ {
4339
+ "nameExplicit": false,
4340
+ "columns": ["email"],
4341
+ "nullsNotDistinct": false,
4342
+ "name": "accounts_email_key",
4343
+ "schema": "public",
4344
+ "table": "accounts",
4345
+ "entityType": "uniques"
4346
+ },
4347
+ {
4348
+ "nameExplicit": false,
4349
+ "columns": ["local_id"],
4350
+ "nullsNotDistinct": false,
4351
+ "name": "actors_localId_key",
4352
+ "schema": "public",
4353
+ "table": "actors",
4354
+ "entityType": "uniques"
4355
+ },
4356
+ {
4357
+ "nameExplicit": false,
4358
+ "columns": ["host"],
4359
+ "nullsNotDistinct": false,
4360
+ "name": "instances_host_key",
4361
+ "schema": "public",
4362
+ "table": "instances",
4363
+ "entityType": "uniques"
4364
+ },
4365
+ {
4366
+ "nameExplicit": false,
4367
+ "columns": ["iri"],
4368
+ "nullsNotDistinct": false,
4369
+ "name": "keys_iri_key",
4370
+ "schema": "public",
4371
+ "table": "keys",
4372
+ "entityType": "uniques"
4373
+ },
4374
+ {
4375
+ "nameExplicit": false,
4376
+ "columns": ["slug"],
4377
+ "nullsNotDistinct": false,
4378
+ "name": "local_instances_slug_key",
4379
+ "schema": "public",
4380
+ "table": "local_instances",
4381
+ "entityType": "uniques"
4382
+ },
4383
+ {
4384
+ "nameExplicit": false,
4385
+ "columns": ["iri"],
4386
+ "nullsNotDistinct": false,
4387
+ "name": "resources_iri_key",
4388
+ "schema": "public",
4389
+ "table": "resources",
4390
+ "entityType": "uniques"
4391
+ },
4392
+ {
4393
+ "nameExplicit": false,
4394
+ "columns": ["token_hash"],
4395
+ "nullsNotDistinct": false,
4396
+ "name": "sessions_tokenHash_key",
4397
+ "schema": "public",
4398
+ "table": "sessions",
4399
+ "entityType": "uniques"
4400
+ },
4401
+ {
4402
+ "value": "\"email\" ~ '^[^@]+@[^@]+\\.[^@]+$'",
4403
+ "name": "accounts_email_check",
4404
+ "entityType": "checks",
4405
+ "schema": "public",
4406
+ "table": "accounts"
4407
+ },
4408
+ {
4409
+ "value": "\"max_instances\" >= 0",
4410
+ "name": "accounts_max_instances_check",
4411
+ "entityType": "checks",
4412
+ "schema": "public",
4413
+ "table": "accounts"
4414
+ },
4415
+ {
4416
+ "value": "trim(both from \"name\") <> ''",
4417
+ "name": "accounts_name_check",
4418
+ "entityType": "checks",
4419
+ "schema": "public",
4420
+ "table": "accounts"
4421
+ },
4422
+ {
4423
+ "value": "(\"direction\" = 'inbound' AND \"status\" IN ('received', 'acknowledged', 'unverified', 'rejected')) OR (\"direction\" = 'outbound' AND \"status\" IN ('queued', 'sent', 'failed', 'permanently_failed', 'abandoned'))",
4424
+ "name": "activity_deliveries_direction_status_check",
4425
+ "entityType": "checks",
4426
+ "schema": "public",
4427
+ "table": "activity_deliveries"
4428
+ },
4429
+ {
4430
+ "value": "(\"completed\" IS NULL) = (\"status\" = 'queued')",
4431
+ "name": "activity_deliveries_completed_check",
4432
+ "entityType": "checks",
4433
+ "schema": "public",
4434
+ "table": "activity_deliveries"
4435
+ },
4436
+ {
4437
+ "value": "\"status_code\" IS NULL OR \"status_code\" BETWEEN 100 AND 599",
4438
+ "name": "activity_deliveries_status_code_check",
4439
+ "entityType": "checks",
4440
+ "schema": "public",
4441
+ "table": "activity_deliveries"
4442
+ },
4443
+ {
4444
+ "value": "\"direction\" <> 'outbound' OR \"verification_key_id\" IS NULL",
4445
+ "name": "activity_deliveries_outbound_key_check",
4446
+ "entityType": "checks",
4447
+ "schema": "public",
4448
+ "table": "activity_deliveries"
4449
+ },
4450
+ {
4451
+ "value": "(\"direction\" = 'inbound') = (\"verification_result\" IS NOT NULL)",
4452
+ "name": "activity_deliveries_verification_result_check",
4453
+ "entityType": "checks",
4454
+ "schema": "public",
4455
+ "table": "activity_deliveries"
4456
+ },
4457
+ {
4458
+ "value": "\"verification_mechanism\" IS NULL OR (\"direction\" = 'inbound' AND \"verification_result\" NOT IN ('unattempted', 'unobserved'))",
4459
+ "name": "activity_deliveries_verification_mechanism_check",
4460
+ "entityType": "checks",
4461
+ "schema": "public",
4462
+ "table": "activity_deliveries"
4463
+ },
4464
+ {
4465
+ "value": "(\"direction\" = 'inbound') = (\"body\" IS NOT NULL)",
4466
+ "name": "activity_deliveries_body_check",
4467
+ "entityType": "checks",
4468
+ "schema": "public",
4469
+ "table": "activity_deliveries"
4470
+ },
4471
+ {
4472
+ "value": "\"activity_id\" IS NULL OR \"direction\" = 'outbound' OR (\"verification_result\" = 'verified' AND \"status\" IN ('received', 'acknowledged'))",
4473
+ "name": "activity_deliveries_activity_check",
4474
+ "entityType": "checks",
4475
+ "schema": "public",
4476
+ "table": "activity_deliveries"
4477
+ },
4478
+ {
4479
+ "value": "\"inbox_owner\" OR \"addressed\" OR \"sender\"",
4480
+ "name": "activity_delivery_actors_role_check",
4481
+ "entityType": "checks",
4482
+ "schema": "public",
4483
+ "table": "activity_delivery_actors"
4484
+ },
4485
+ {
4486
+ "value": "NOT \"addressed_directly\" OR \"addressed\"",
4487
+ "name": "activity_delivery_actors_addressed_directly_check",
4488
+ "entityType": "checks",
4489
+ "schema": "public",
4490
+ "table": "activity_delivery_actors"
4491
+ },
4492
+ {
4493
+ "value": "\"status_code\" IS NULL OR \"status_code\" BETWEEN 100 AND 599",
4494
+ "name": "activity_delivery_attempts_status_code_check",
4495
+ "entityType": "checks",
4496
+ "schema": "public",
4497
+ "table": "activity_delivery_attempts"
4498
+ },
4499
+ {
4500
+ "value": "\"succeeded\" = (\"error\" IS NULL)",
4501
+ "name": "activity_delivery_attempts_error_check",
4502
+ "entityType": "checks",
4503
+ "schema": "public",
4504
+ "table": "activity_delivery_attempts"
4505
+ },
4506
+ {
4507
+ "value": "\"local_id\" IS NULL OR \"username\" NOT LIKE '%@%'",
4508
+ "name": "actors_username_check",
4509
+ "entityType": "checks",
4510
+ "schema": "public",
4511
+ "table": "actors"
4512
+ },
4513
+ {
4514
+ "value": "\"local_id\" IS NULL OR \"username\" IS NOT NULL",
4515
+ "name": "actors_local_username_check",
4516
+ "entityType": "checks",
4517
+ "schema": "public",
4518
+ "table": "actors"
4519
+ },
4520
+ {
4521
+ "value": "\n \"suspended_until\" IS NULL OR (\n \"suspended\" IS NOT NULL AND\n \"suspended_until\" > \"suspended\"\n )\n ",
4522
+ "name": "actors_suspended_check",
4523
+ "entityType": "checks",
4524
+ "schema": "public",
4525
+ "table": "actors"
4526
+ },
4527
+ {
4528
+ "value": "\"last_seen\" >= \"first_seen\"",
4529
+ "name": "key_versions_seen_check",
4530
+ "entityType": "checks",
4531
+ "schema": "public",
4532
+ "table": "key_versions"
4533
+ },
4534
+ {
4535
+ "value": "NOT (\"public_key\" ?| array['d','p','q','dp','dq','qi','oth','k'])",
4536
+ "name": "key_versions_public_key_check",
4537
+ "entityType": "checks",
4538
+ "schema": "public",
4539
+ "table": "key_versions"
4540
+ },
4541
+ {
4542
+ "value": "jsonb_typeof(\"public_key\") = 'object' AND NOT (\"public_key\" ?| array['d','p','q','dp','dq','qi','oth','k'])",
4543
+ "name": "local_actor_keys_public_key_check",
4544
+ "entityType": "checks",
4545
+ "schema": "public",
4546
+ "table": "local_actor_keys"
4547
+ },
4548
+ {
4549
+ "value": "\"slug\" ~ '^[a-z0-9][a-z0-9-]{2,61}[a-z0-9]$'\n AND (\"slug\" !~ '^..--' OR \"slug\" ~ '^xn--')",
4550
+ "name": "local_instances_slug_check",
4551
+ "entityType": "checks",
4552
+ "schema": "public",
4553
+ "table": "local_instances"
4554
+ },
4555
+ {
4556
+ "value": "\"max_actors\" > 0",
4557
+ "name": "instances_max_actors_check",
4558
+ "entityType": "checks",
4559
+ "schema": "public",
4560
+ "table": "local_instances"
4561
+ },
4562
+ {
4563
+ "value": "trim(both from \"content_html\") <> ''",
4564
+ "name": "objects_content_html_check",
4565
+ "entityType": "checks",
4566
+ "schema": "public",
4567
+ "table": "objects"
4568
+ },
4569
+ {
4570
+ "value": "\"sequence\" > 0",
4571
+ "name": "resource_revisions_sequence_check",
4572
+ "entityType": "checks",
4573
+ "schema": "public",
4574
+ "table": "resource_revisions"
4575
+ },
4576
+ {
4577
+ "value": "(\"kind\" = 'snapshot' AND \"document\" IS NOT NULL)\n OR (\"kind\" IN ('unavailable', 'whiteout') AND \"document\" IS NULL)",
4578
+ "name": "resource_revisions_document_check",
4579
+ "entityType": "checks",
4580
+ "schema": "public",
4581
+ "table": "resource_revisions"
4582
+ },
4583
+ {
4584
+ "value": "(\"kind\" = 'whiteout' AND \"deleted\" IS NOT NULL AND \"former_types\" IS NOT NULL)\n OR (\"kind\" <> 'whiteout' AND \"deleted\" IS NULL AND \"former_types\" IS NULL)",
4585
+ "name": "resource_revisions_deletion_check",
4586
+ "entityType": "checks",
4587
+ "schema": "public",
4588
+ "table": "resource_revisions"
4589
+ },
4590
+ {
4591
+ "value": "\"position\" >= 0",
4592
+ "name": "revision_addressing_position_check",
4593
+ "entityType": "checks",
4594
+ "schema": "public",
4595
+ "table": "revision_addressing"
4596
+ },
4597
+ {
4598
+ "value": "jsonb_typeof(\"path\") = 'array' AND jsonb_array_length(\"path\") > 0",
4599
+ "name": "revision_embeddings_path_check",
4600
+ "entityType": "checks",
4601
+ "schema": "public",
4602
+ "table": "revision_embeddings"
4603
+ },
4604
+ {
4605
+ "value": "\"source_revision_id\" <> \"revision_id\"",
4606
+ "name": "revision_embeddings_source_check",
4607
+ "entityType": "checks",
4608
+ "schema": "public",
4609
+ "table": "revision_embeddings"
4610
+ },
4611
+ {
4612
+ "value": "\"occurrence\" >= 0",
4613
+ "name": "revision_relations_occurrence_check",
4614
+ "entityType": "checks",
4615
+ "schema": "public",
4616
+ "table": "revision_relations"
4617
+ },
4618
+ {
4619
+ "value": "\"path\" IS NULL OR json_typeof(\"path\") = 'array'",
4620
+ "name": "revision_relations_path_check",
4621
+ "entityType": "checks",
4622
+ "schema": "public",
4623
+ "table": "revision_relations"
4624
+ },
4625
+ {
4626
+ "value": "\"representation\" <> 'reference' OR \"target_iri\" IS NOT NULL",
4627
+ "name": "revision_relations_reference_check",
4628
+ "entityType": "checks",
4629
+ "schema": "public",
4630
+ "table": "revision_relations"
4631
+ }
4632
+ ],
4633
+ "renames": []
4634
+ }