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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +230 -2
  3. package/dist/activity-delivery.d.mts +111 -0
  4. package/dist/activity-delivery.d.mts.map +1 -0
  5. package/dist/activity-delivery.mjs +240 -0
  6. package/dist/activity-delivery.mjs.map +1 -0
  7. package/dist/db-DtcLuISw.d.mts +3098 -0
  8. package/dist/db-DtcLuISw.d.mts.map +1 -0
  9. package/dist/db.d.mts +2 -0
  10. package/dist/db.mjs +3 -0
  11. package/dist/email.d.mts +39 -0
  12. package/dist/email.d.mts.map +1 -0
  13. package/dist/email.mjs +12 -0
  14. package/dist/email.mjs.map +1 -0
  15. package/dist/index.d.mts +14 -0
  16. package/dist/index.mjs +18 -0
  17. package/dist/instance.d.mts +11 -0
  18. package/dist/instance.d.mts.map +1 -0
  19. package/dist/instance.mjs +21 -0
  20. package/dist/instance.mjs.map +1 -0
  21. package/dist/key.d.mts +2 -0
  22. package/dist/key.mjs +86 -0
  23. package/dist/key.mjs.map +1 -0
  24. package/dist/login.d.mts +49 -0
  25. package/dist/login.d.mts.map +1 -0
  26. package/dist/login.mjs +71 -0
  27. package/dist/login.mjs.map +1 -0
  28. package/dist/migrate.d.mts +46 -0
  29. package/dist/migrate.d.mts.map +1 -0
  30. package/dist/migrate.mjs +58 -0
  31. package/dist/migrate.mjs.map +1 -0
  32. package/dist/migration-manifest.d.mts +39 -0
  33. package/dist/migration-manifest.d.mts.map +1 -0
  34. package/dist/migration-manifest.mjs +77 -0
  35. package/dist/migration-manifest.mjs.map +1 -0
  36. package/dist/migration-session-B4xHeU_a.d.mts +56 -0
  37. package/dist/migration-session-B4xHeU_a.d.mts.map +1 -0
  38. package/dist/migration-session.d.mts +2 -0
  39. package/dist/migration-session.mjs +204 -0
  40. package/dist/migration-session.mjs.map +1 -0
  41. package/dist/migration-snapshot-OM5jQN1-.mjs +69 -0
  42. package/dist/migration-snapshot-OM5jQN1-.mjs.map +1 -0
  43. package/dist/migration-state.d.mts +41 -0
  44. package/dist/migration-state.d.mts.map +1 -0
  45. package/dist/migration-state.mjs +155 -0
  46. package/dist/migration-state.mjs.map +1 -0
  47. package/dist/migrations-manifest.json +109 -0
  48. package/dist/pglite-preparation.d.mts +23 -0
  49. package/dist/pglite-preparation.d.mts.map +1 -0
  50. package/dist/pglite-preparation.mjs +77 -0
  51. package/dist/pglite-preparation.mjs.map +1 -0
  52. package/dist/pglite-store.d.mts +29 -0
  53. package/dist/pglite-store.d.mts.map +1 -0
  54. package/dist/pglite-store.mjs +117 -0
  55. package/dist/pglite-store.mjs.map +1 -0
  56. package/dist/relations.d.mts +2 -0
  57. package/dist/relations.mjs +307 -0
  58. package/dist/relations.mjs.map +1 -0
  59. package/dist/resource.d.mts +50 -0
  60. package/dist/resource.d.mts.map +1 -0
  61. package/dist/resource.mjs +123 -0
  62. package/dist/resource.mjs.map +1 -0
  63. package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
  64. package/dist/schema.d.mts +2 -0
  65. package/dist/schema.mjs +495 -0
  66. package/dist/schema.mjs.map +1 -0
  67. package/dist/slug.d.mts +28 -0
  68. package/dist/slug.d.mts.map +1 -0
  69. package/dist/slug.mjs +55 -0
  70. package/dist/slug.mjs.map +1 -0
  71. package/dist/text.d.mts +10 -0
  72. package/dist/text.d.mts.map +1 -0
  73. package/dist/text.mjs +11 -0
  74. package/dist/text.mjs.map +1 -0
  75. package/dist/uuid-CKMzlIND.d.mts +26 -0
  76. package/dist/uuid-CKMzlIND.d.mts.map +1 -0
  77. package/dist/uuid.d.mts +2 -0
  78. package/dist/uuid.mjs +28 -0
  79. package/dist/uuid.mjs.map +1 -0
  80. package/drizzle/20260622021748_init/migration.sql +25 -0
  81. package/drizzle/20260622021748_init/snapshot.json +246 -0
  82. package/drizzle/20260623162238_dear_felicia_hardy/migration.sql +5 -0
  83. package/drizzle/20260623162238_dear_felicia_hardy/snapshot.json +321 -0
  84. package/drizzle/20260624094817_lethal_sinister_six/migration.sql +2 -0
  85. package/drizzle/20260624094817_lethal_sinister_six/snapshot.json +347 -0
  86. package/drizzle/20260716000333_email_auth/migration.sql +20 -0
  87. package/drizzle/20260716000333_email_auth/snapshot.json +575 -0
  88. package/drizzle/20260723065002_chief_colleen_wing/migration.sql +2 -0
  89. package/drizzle/20260723065002_chief_colleen_wing/snapshot.json +595 -0
  90. package/drizzle/20260802205417_separate-instance-local-remote/migration.sql +26 -0
  91. package/drizzle/20260802205417_separate-instance-local-remote/snapshot.json +768 -0
  92. package/drizzle/20260804061119_instances-local-remote-constraint/migration.sql +7 -0
  93. package/drizzle/20260804061119_instances-local-remote-constraint/snapshot.json +843 -0
  94. package/drizzle/20260818080259_dark_night_thrasher/migration.sql +15 -0
  95. package/drizzle/20260818080259_dark_night_thrasher/snapshot.json +722 -0
  96. package/drizzle/20260821072150_merge_remote_actors/migration.sql +54 -0
  97. package/drizzle/20260821072150_merge_remote_actors/snapshot.json +1312 -0
  98. package/drizzle/20260906052949_rename_followees_to_following/migration.sql +2 -0
  99. package/drizzle/20260906052949_rename_followees_to_following/snapshot.json +1315 -0
  100. package/drizzle/20260908062446_rename_login_tokens_to_login_challenges/migration.sql +1 -0
  101. package/drizzle/20260908062446_rename_login_tokens_to_login_challenges/snapshot.json +1312 -0
  102. package/drizzle/20260908065945_simplify_login_challenges/migration.sql +7 -0
  103. package/drizzle/20260908065945_simplify_login_challenges/snapshot.json +1290 -0
  104. package/drizzle/20260915061356_tighten_slug_constraint/migration.sql +12 -0
  105. package/drizzle/20260915061356_tighten_slug_constraint/snapshot.json +1290 -0
  106. package/drizzle/20260915063339_widen_instance_host/migration.sql +1 -0
  107. package/drizzle/20260915063339_widen_instance_host/snapshot.json +1290 -0
  108. package/drizzle/20260916085902_add_objects_activities_and_resources/migration.sql +110 -0
  109. package/drizzle/20260916085902_add_objects_activities_and_resources/snapshot.json +2263 -0
  110. package/drizzle/20260917163517_order_local_outbox_items/migration.sql +22 -0
  111. package/drizzle/20260917163517_order_local_outbox_items/snapshot.json +2263 -0
  112. package/drizzle/20260918071839_add_activity_object_index/migration.sql +1 -0
  113. package/drizzle/20260918071839_add_activity_object_index/snapshot.json +2298 -0
  114. package/drizzle/20261006061745_add_activity_deliveries_and_keys/migration.sql +106 -0
  115. package/drizzle/20261006061745_add_activity_deliveries_and_keys/snapshot.json +3538 -0
  116. package/drizzle/20261006085045_snake_case_columns/migration.sql +42 -0
  117. package/drizzle/20261006085045_snake_case_columns/snapshot.json +3570 -0
  118. package/drizzle/20261006122653_local_actor_keys/migration.sql +11 -0
  119. package/drizzle/20261006122653_local_actor_keys/snapshot.json +3627 -0
  120. package/drizzle/20261010044954_link_activity_deliveries_to_activities/migration.sql +8 -0
  121. package/drizzle/20261010044954_link_activity_deliveries_to_activities/snapshot.json +3714 -0
  122. package/drizzle/20261010073134_check_inbound_activity_link/migration.sql +1 -0
  123. package/drizzle/20261010073134_check_inbound_activity_link/snapshot.json +3721 -0
  124. package/drizzle/20261010104304_record_object_activity/migration.sql +3 -0
  125. package/drizzle/20261010104304_record_object_activity/snapshot.json +3756 -0
  126. package/drizzle/20261010111648_record_delivery_snapshot/migration.sql +29 -0
  127. package/drizzle/20261010111648_record_delivery_snapshot/snapshot.json +3769 -0
  128. package/drizzle/20261011144453_record_object_snapshot/migration.sql +10 -0
  129. package/drizzle/20261011144453_record_object_snapshot/snapshot.json +3808 -0
  130. package/drizzle/20261011192718_record_actor_followers/migration.sql +1 -0
  131. package/drizzle/20261011192718_record_actor_followers/snapshot.json +3821 -0
  132. package/package.json +181 -3
@@ -0,0 +1,2263 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "a9c7a317-96db-4a3a-80fa-db8cee5609fe",
5
+ "prevIds": ["3d7bb672-489b-4d1e-8efb-e602d21f6e98"],
6
+ "ddl": [
7
+ {
8
+ "values": ["Create"],
9
+ "name": "activity_type",
10
+ "entityType": "enums",
11
+ "schema": "public"
12
+ },
13
+ {
14
+ "values": ["Application", "Group", "Organization", "Person", "Service"],
15
+ "name": "actor_type",
16
+ "entityType": "enums",
17
+ "schema": "public"
18
+ },
19
+ {
20
+ "values": ["to", "cc", "bto", "bcc", "audience"],
21
+ "name": "addressing_property",
22
+ "entityType": "enums",
23
+ "schema": "public"
24
+ },
25
+ {
26
+ "values": ["followers", "following", "featured", "outbox"],
27
+ "name": "collection_role",
28
+ "entityType": "enums",
29
+ "schema": "public"
30
+ },
31
+ {
32
+ "values": ["Collection", "OrderedCollection"],
33
+ "name": "collection_type",
34
+ "entityType": "enums",
35
+ "schema": "public"
36
+ },
37
+ {
38
+ "values": ["Article", "Note"],
39
+ "name": "object_type",
40
+ "entityType": "enums",
41
+ "schema": "public"
42
+ },
43
+ {
44
+ "values": ["actor", "object", "activity", "collection", "unknown"],
45
+ "name": "resource_kind",
46
+ "entityType": "enums",
47
+ "schema": "public"
48
+ },
49
+ {
50
+ "isRlsEnabled": false,
51
+ "name": "accounts",
52
+ "entityType": "tables",
53
+ "schema": "public"
54
+ },
55
+ {
56
+ "isRlsEnabled": false,
57
+ "name": "activities",
58
+ "entityType": "tables",
59
+ "schema": "public"
60
+ },
61
+ {
62
+ "isRlsEnabled": false,
63
+ "name": "actor_collection_references",
64
+ "entityType": "tables",
65
+ "schema": "public"
66
+ },
67
+ {
68
+ "isRlsEnabled": false,
69
+ "name": "actors",
70
+ "entityType": "tables",
71
+ "schema": "public"
72
+ },
73
+ {
74
+ "isRlsEnabled": false,
75
+ "name": "addressing",
76
+ "entityType": "tables",
77
+ "schema": "public"
78
+ },
79
+ {
80
+ "isRlsEnabled": false,
81
+ "name": "collection_items",
82
+ "entityType": "tables",
83
+ "schema": "public"
84
+ },
85
+ {
86
+ "isRlsEnabled": false,
87
+ "name": "collections",
88
+ "entityType": "tables",
89
+ "schema": "public"
90
+ },
91
+ {
92
+ "isRlsEnabled": false,
93
+ "name": "instance_members",
94
+ "entityType": "tables",
95
+ "schema": "public"
96
+ },
97
+ {
98
+ "isRlsEnabled": false,
99
+ "name": "instances",
100
+ "entityType": "tables",
101
+ "schema": "public"
102
+ },
103
+ {
104
+ "isRlsEnabled": false,
105
+ "name": "local_actors",
106
+ "entityType": "tables",
107
+ "schema": "public"
108
+ },
109
+ {
110
+ "isRlsEnabled": false,
111
+ "name": "local_instances",
112
+ "entityType": "tables",
113
+ "schema": "public"
114
+ },
115
+ {
116
+ "isRlsEnabled": false,
117
+ "name": "login_challenges",
118
+ "entityType": "tables",
119
+ "schema": "public"
120
+ },
121
+ {
122
+ "isRlsEnabled": false,
123
+ "name": "objects",
124
+ "entityType": "tables",
125
+ "schema": "public"
126
+ },
127
+ {
128
+ "isRlsEnabled": false,
129
+ "name": "resources",
130
+ "entityType": "tables",
131
+ "schema": "public"
132
+ },
133
+ {
134
+ "isRlsEnabled": false,
135
+ "name": "sessions",
136
+ "entityType": "tables",
137
+ "schema": "public"
138
+ },
139
+ {
140
+ "type": "uuid",
141
+ "typeSchema": null,
142
+ "notNull": true,
143
+ "dimensions": 0,
144
+ "default": null,
145
+ "generated": null,
146
+ "identity": null,
147
+ "name": "id",
148
+ "entityType": "columns",
149
+ "schema": "public",
150
+ "table": "accounts"
151
+ },
152
+ {
153
+ "type": "varchar(255)",
154
+ "typeSchema": null,
155
+ "notNull": true,
156
+ "dimensions": 0,
157
+ "default": null,
158
+ "generated": null,
159
+ "identity": null,
160
+ "name": "email",
161
+ "entityType": "columns",
162
+ "schema": "public",
163
+ "table": "accounts"
164
+ },
165
+ {
166
+ "type": "varchar(100)",
167
+ "typeSchema": null,
168
+ "notNull": true,
169
+ "dimensions": 0,
170
+ "default": null,
171
+ "generated": null,
172
+ "identity": null,
173
+ "name": "name",
174
+ "entityType": "columns",
175
+ "schema": "public",
176
+ "table": "accounts"
177
+ },
178
+ {
179
+ "type": "integer",
180
+ "typeSchema": null,
181
+ "notNull": true,
182
+ "dimensions": 0,
183
+ "default": "10",
184
+ "generated": null,
185
+ "identity": null,
186
+ "name": "max_instances",
187
+ "entityType": "columns",
188
+ "schema": "public",
189
+ "table": "accounts"
190
+ },
191
+ {
192
+ "type": "boolean",
193
+ "typeSchema": null,
194
+ "notNull": true,
195
+ "dimensions": 0,
196
+ "default": "false",
197
+ "generated": null,
198
+ "identity": null,
199
+ "name": "admin",
200
+ "entityType": "columns",
201
+ "schema": "public",
202
+ "table": "accounts"
203
+ },
204
+ {
205
+ "type": "timestamp with time zone",
206
+ "typeSchema": null,
207
+ "notNull": true,
208
+ "dimensions": 0,
209
+ "default": "CURRENT_TIMESTAMP",
210
+ "generated": null,
211
+ "identity": null,
212
+ "name": "created",
213
+ "entityType": "columns",
214
+ "schema": "public",
215
+ "table": "accounts"
216
+ },
217
+ {
218
+ "type": "uuid",
219
+ "typeSchema": null,
220
+ "notNull": true,
221
+ "dimensions": 0,
222
+ "default": null,
223
+ "generated": null,
224
+ "identity": null,
225
+ "name": "id",
226
+ "entityType": "columns",
227
+ "schema": "public",
228
+ "table": "activities"
229
+ },
230
+ {
231
+ "type": "activity_type",
232
+ "typeSchema": "public",
233
+ "notNull": true,
234
+ "dimensions": 0,
235
+ "default": null,
236
+ "generated": null,
237
+ "identity": null,
238
+ "name": "type",
239
+ "entityType": "columns",
240
+ "schema": "public",
241
+ "table": "activities"
242
+ },
243
+ {
244
+ "type": "uuid",
245
+ "typeSchema": null,
246
+ "notNull": true,
247
+ "dimensions": 0,
248
+ "default": null,
249
+ "generated": null,
250
+ "identity": null,
251
+ "name": "actorId",
252
+ "entityType": "columns",
253
+ "schema": "public",
254
+ "table": "activities"
255
+ },
256
+ {
257
+ "type": "uuid",
258
+ "typeSchema": null,
259
+ "notNull": false,
260
+ "dimensions": 0,
261
+ "default": null,
262
+ "generated": null,
263
+ "identity": null,
264
+ "name": "objectId",
265
+ "entityType": "columns",
266
+ "schema": "public",
267
+ "table": "activities"
268
+ },
269
+ {
270
+ "type": "timestamp with time zone",
271
+ "typeSchema": null,
272
+ "notNull": true,
273
+ "dimensions": 0,
274
+ "default": null,
275
+ "generated": null,
276
+ "identity": null,
277
+ "name": "published",
278
+ "entityType": "columns",
279
+ "schema": "public",
280
+ "table": "activities"
281
+ },
282
+ {
283
+ "type": "json",
284
+ "typeSchema": null,
285
+ "notNull": false,
286
+ "dimensions": 0,
287
+ "default": null,
288
+ "generated": null,
289
+ "identity": null,
290
+ "name": "document",
291
+ "entityType": "columns",
292
+ "schema": "public",
293
+ "table": "activities"
294
+ },
295
+ {
296
+ "type": "timestamp with time zone",
297
+ "typeSchema": null,
298
+ "notNull": true,
299
+ "dimensions": 0,
300
+ "default": "CURRENT_TIMESTAMP",
301
+ "generated": null,
302
+ "identity": null,
303
+ "name": "created",
304
+ "entityType": "columns",
305
+ "schema": "public",
306
+ "table": "activities"
307
+ },
308
+ {
309
+ "type": "uuid",
310
+ "typeSchema": null,
311
+ "notNull": true,
312
+ "dimensions": 0,
313
+ "default": null,
314
+ "generated": null,
315
+ "identity": null,
316
+ "name": "actorId",
317
+ "entityType": "columns",
318
+ "schema": "public",
319
+ "table": "actor_collection_references"
320
+ },
321
+ {
322
+ "type": "collection_role",
323
+ "typeSchema": "public",
324
+ "notNull": true,
325
+ "dimensions": 0,
326
+ "default": null,
327
+ "generated": null,
328
+ "identity": null,
329
+ "name": "role",
330
+ "entityType": "columns",
331
+ "schema": "public",
332
+ "table": "actor_collection_references"
333
+ },
334
+ {
335
+ "type": "uuid",
336
+ "typeSchema": null,
337
+ "notNull": true,
338
+ "dimensions": 0,
339
+ "default": null,
340
+ "generated": null,
341
+ "identity": null,
342
+ "name": "collectionId",
343
+ "entityType": "columns",
344
+ "schema": "public",
345
+ "table": "actor_collection_references"
346
+ },
347
+ {
348
+ "type": "uuid",
349
+ "typeSchema": null,
350
+ "notNull": true,
351
+ "dimensions": 0,
352
+ "default": null,
353
+ "generated": null,
354
+ "identity": null,
355
+ "name": "id",
356
+ "entityType": "columns",
357
+ "schema": "public",
358
+ "table": "actors"
359
+ },
360
+ {
361
+ "type": "uuid",
362
+ "typeSchema": null,
363
+ "notNull": false,
364
+ "dimensions": 0,
365
+ "default": null,
366
+ "generated": null,
367
+ "identity": null,
368
+ "name": "localId",
369
+ "entityType": "columns",
370
+ "schema": "public",
371
+ "table": "actors"
372
+ },
373
+ {
374
+ "type": "actor_type",
375
+ "typeSchema": "public",
376
+ "notNull": true,
377
+ "dimensions": 0,
378
+ "default": null,
379
+ "generated": null,
380
+ "identity": null,
381
+ "name": "type",
382
+ "entityType": "columns",
383
+ "schema": "public",
384
+ "table": "actors"
385
+ },
386
+ {
387
+ "type": "text",
388
+ "typeSchema": null,
389
+ "notNull": true,
390
+ "dimensions": 0,
391
+ "default": null,
392
+ "generated": null,
393
+ "identity": null,
394
+ "name": "username",
395
+ "entityType": "columns",
396
+ "schema": "public",
397
+ "table": "actors"
398
+ },
399
+ {
400
+ "type": "uuid",
401
+ "typeSchema": null,
402
+ "notNull": true,
403
+ "dimensions": 0,
404
+ "default": null,
405
+ "generated": null,
406
+ "identity": null,
407
+ "name": "instanceId",
408
+ "entityType": "columns",
409
+ "schema": "public",
410
+ "table": "actors"
411
+ },
412
+ {
413
+ "type": "json",
414
+ "typeSchema": null,
415
+ "notNull": false,
416
+ "dimensions": 0,
417
+ "default": null,
418
+ "generated": null,
419
+ "identity": null,
420
+ "name": "document",
421
+ "entityType": "columns",
422
+ "schema": "public",
423
+ "table": "actors"
424
+ },
425
+ {
426
+ "type": "text",
427
+ "typeSchema": null,
428
+ "notNull": true,
429
+ "dimensions": 0,
430
+ "default": null,
431
+ "generated": null,
432
+ "identity": null,
433
+ "name": "inboxUrl",
434
+ "entityType": "columns",
435
+ "schema": "public",
436
+ "table": "actors"
437
+ },
438
+ {
439
+ "type": "text",
440
+ "typeSchema": null,
441
+ "notNull": false,
442
+ "dimensions": 0,
443
+ "default": null,
444
+ "generated": null,
445
+ "identity": null,
446
+ "name": "profileUrl",
447
+ "entityType": "columns",
448
+ "schema": "public",
449
+ "table": "actors"
450
+ },
451
+ {
452
+ "type": "text",
453
+ "typeSchema": null,
454
+ "notNull": false,
455
+ "dimensions": 0,
456
+ "default": null,
457
+ "generated": null,
458
+ "identity": null,
459
+ "name": "avatarUrl",
460
+ "entityType": "columns",
461
+ "schema": "public",
462
+ "table": "actors"
463
+ },
464
+ {
465
+ "type": "text",
466
+ "typeSchema": null,
467
+ "notNull": false,
468
+ "dimensions": 0,
469
+ "default": null,
470
+ "generated": null,
471
+ "identity": null,
472
+ "name": "headerUrl",
473
+ "entityType": "columns",
474
+ "schema": "public",
475
+ "table": "actors"
476
+ },
477
+ {
478
+ "type": "text",
479
+ "typeSchema": null,
480
+ "notNull": false,
481
+ "dimensions": 0,
482
+ "default": null,
483
+ "generated": null,
484
+ "identity": null,
485
+ "name": "name",
486
+ "entityType": "columns",
487
+ "schema": "public",
488
+ "table": "actors"
489
+ },
490
+ {
491
+ "type": "text",
492
+ "typeSchema": null,
493
+ "notNull": false,
494
+ "dimensions": 0,
495
+ "default": null,
496
+ "generated": null,
497
+ "identity": null,
498
+ "name": "bioHtml",
499
+ "entityType": "columns",
500
+ "schema": "public",
501
+ "table": "actors"
502
+ },
503
+ {
504
+ "type": "boolean",
505
+ "typeSchema": null,
506
+ "notNull": true,
507
+ "dimensions": 0,
508
+ "default": "false",
509
+ "generated": null,
510
+ "identity": null,
511
+ "name": "automaticallyApprovesFollowers",
512
+ "entityType": "columns",
513
+ "schema": "public",
514
+ "table": "actors"
515
+ },
516
+ {
517
+ "type": "jsonb",
518
+ "typeSchema": null,
519
+ "notNull": true,
520
+ "dimensions": 0,
521
+ "default": "'{}'",
522
+ "generated": null,
523
+ "identity": null,
524
+ "name": "fieldHtmls",
525
+ "entityType": "columns",
526
+ "schema": "public",
527
+ "table": "actors"
528
+ },
529
+ {
530
+ "type": "jsonb",
531
+ "typeSchema": null,
532
+ "notNull": true,
533
+ "dimensions": 0,
534
+ "default": "'{}'",
535
+ "generated": null,
536
+ "identity": null,
537
+ "name": "emojis",
538
+ "entityType": "columns",
539
+ "schema": "public",
540
+ "table": "actors"
541
+ },
542
+ {
543
+ "type": "jsonb",
544
+ "typeSchema": null,
545
+ "notNull": true,
546
+ "dimensions": 0,
547
+ "default": "'{}'",
548
+ "generated": null,
549
+ "identity": null,
550
+ "name": "tags",
551
+ "entityType": "columns",
552
+ "schema": "public",
553
+ "table": "actors"
554
+ },
555
+ {
556
+ "type": "boolean",
557
+ "typeSchema": null,
558
+ "notNull": true,
559
+ "dimensions": 0,
560
+ "default": "false",
561
+ "generated": null,
562
+ "identity": null,
563
+ "name": "sensitive",
564
+ "entityType": "columns",
565
+ "schema": "public",
566
+ "table": "actors"
567
+ },
568
+ {
569
+ "type": "timestamp with time zone",
570
+ "typeSchema": null,
571
+ "notNull": false,
572
+ "dimensions": 0,
573
+ "default": null,
574
+ "generated": null,
575
+ "identity": null,
576
+ "name": "suspended",
577
+ "entityType": "columns",
578
+ "schema": "public",
579
+ "table": "actors"
580
+ },
581
+ {
582
+ "type": "timestamp with time zone",
583
+ "typeSchema": null,
584
+ "notNull": false,
585
+ "dimensions": 0,
586
+ "default": null,
587
+ "generated": null,
588
+ "identity": null,
589
+ "name": "suspendedUntil",
590
+ "entityType": "columns",
591
+ "schema": "public",
592
+ "table": "actors"
593
+ },
594
+ {
595
+ "type": "uuid",
596
+ "typeSchema": null,
597
+ "notNull": false,
598
+ "dimensions": 0,
599
+ "default": null,
600
+ "generated": null,
601
+ "identity": null,
602
+ "name": "successorId",
603
+ "entityType": "columns",
604
+ "schema": "public",
605
+ "table": "actors"
606
+ },
607
+ {
608
+ "type": "text",
609
+ "typeSchema": null,
610
+ "notNull": true,
611
+ "dimensions": 1,
612
+ "default": "(ARRAY[]::text[])",
613
+ "generated": null,
614
+ "identity": null,
615
+ "name": "aliases",
616
+ "entityType": "columns",
617
+ "schema": "public",
618
+ "table": "actors"
619
+ },
620
+ {
621
+ "type": "integer",
622
+ "typeSchema": null,
623
+ "notNull": true,
624
+ "dimensions": 0,
625
+ "default": "0",
626
+ "generated": null,
627
+ "identity": null,
628
+ "name": "followingCount",
629
+ "entityType": "columns",
630
+ "schema": "public",
631
+ "table": "actors"
632
+ },
633
+ {
634
+ "type": "integer",
635
+ "typeSchema": null,
636
+ "notNull": true,
637
+ "dimensions": 0,
638
+ "default": "0",
639
+ "generated": null,
640
+ "identity": null,
641
+ "name": "followersCount",
642
+ "entityType": "columns",
643
+ "schema": "public",
644
+ "table": "actors"
645
+ },
646
+ {
647
+ "type": "timestamp with time zone",
648
+ "typeSchema": null,
649
+ "notNull": true,
650
+ "dimensions": 0,
651
+ "default": "CURRENT_TIMESTAMP",
652
+ "generated": null,
653
+ "identity": null,
654
+ "name": "updated",
655
+ "entityType": "columns",
656
+ "schema": "public",
657
+ "table": "actors"
658
+ },
659
+ {
660
+ "type": "timestamp with time zone",
661
+ "typeSchema": null,
662
+ "notNull": false,
663
+ "dimensions": 0,
664
+ "default": null,
665
+ "generated": null,
666
+ "identity": null,
667
+ "name": "published",
668
+ "entityType": "columns",
669
+ "schema": "public",
670
+ "table": "actors"
671
+ },
672
+ {
673
+ "type": "timestamp with time zone",
674
+ "typeSchema": null,
675
+ "notNull": true,
676
+ "dimensions": 0,
677
+ "default": "CURRENT_TIMESTAMP",
678
+ "generated": null,
679
+ "identity": null,
680
+ "name": "created",
681
+ "entityType": "columns",
682
+ "schema": "public",
683
+ "table": "actors"
684
+ },
685
+ {
686
+ "type": "timestamp with time zone",
687
+ "typeSchema": null,
688
+ "notNull": false,
689
+ "dimensions": 0,
690
+ "default": null,
691
+ "generated": null,
692
+ "identity": null,
693
+ "name": "deleted",
694
+ "entityType": "columns",
695
+ "schema": "public",
696
+ "table": "actors"
697
+ },
698
+ {
699
+ "type": "uuid",
700
+ "typeSchema": null,
701
+ "notNull": true,
702
+ "dimensions": 0,
703
+ "default": null,
704
+ "generated": null,
705
+ "identity": null,
706
+ "name": "id",
707
+ "entityType": "columns",
708
+ "schema": "public",
709
+ "table": "addressing"
710
+ },
711
+ {
712
+ "type": "uuid",
713
+ "typeSchema": null,
714
+ "notNull": true,
715
+ "dimensions": 0,
716
+ "default": null,
717
+ "generated": null,
718
+ "identity": null,
719
+ "name": "sourceId",
720
+ "entityType": "columns",
721
+ "schema": "public",
722
+ "table": "addressing"
723
+ },
724
+ {
725
+ "type": "addressing_property",
726
+ "typeSchema": "public",
727
+ "notNull": true,
728
+ "dimensions": 0,
729
+ "default": null,
730
+ "generated": null,
731
+ "identity": null,
732
+ "name": "property",
733
+ "entityType": "columns",
734
+ "schema": "public",
735
+ "table": "addressing"
736
+ },
737
+ {
738
+ "type": "integer",
739
+ "typeSchema": null,
740
+ "notNull": true,
741
+ "dimensions": 0,
742
+ "default": null,
743
+ "generated": null,
744
+ "identity": null,
745
+ "name": "position",
746
+ "entityType": "columns",
747
+ "schema": "public",
748
+ "table": "addressing"
749
+ },
750
+ {
751
+ "type": "uuid",
752
+ "typeSchema": null,
753
+ "notNull": true,
754
+ "dimensions": 0,
755
+ "default": null,
756
+ "generated": null,
757
+ "identity": null,
758
+ "name": "targetId",
759
+ "entityType": "columns",
760
+ "schema": "public",
761
+ "table": "addressing"
762
+ },
763
+ {
764
+ "type": "uuid",
765
+ "typeSchema": null,
766
+ "notNull": true,
767
+ "dimensions": 0,
768
+ "default": null,
769
+ "generated": null,
770
+ "identity": null,
771
+ "name": "collectionId",
772
+ "entityType": "columns",
773
+ "schema": "public",
774
+ "table": "collection_items"
775
+ },
776
+ {
777
+ "type": "uuid",
778
+ "typeSchema": null,
779
+ "notNull": true,
780
+ "dimensions": 0,
781
+ "default": null,
782
+ "generated": null,
783
+ "identity": null,
784
+ "name": "itemId",
785
+ "entityType": "columns",
786
+ "schema": "public",
787
+ "table": "collection_items"
788
+ },
789
+ {
790
+ "type": "integer",
791
+ "typeSchema": null,
792
+ "notNull": false,
793
+ "dimensions": 0,
794
+ "default": null,
795
+ "generated": null,
796
+ "identity": null,
797
+ "name": "position",
798
+ "entityType": "columns",
799
+ "schema": "public",
800
+ "table": "collection_items"
801
+ },
802
+ {
803
+ "type": "timestamp with time zone",
804
+ "typeSchema": null,
805
+ "notNull": true,
806
+ "dimensions": 0,
807
+ "default": "CURRENT_TIMESTAMP",
808
+ "generated": null,
809
+ "identity": null,
810
+ "name": "observed",
811
+ "entityType": "columns",
812
+ "schema": "public",
813
+ "table": "collection_items"
814
+ },
815
+ {
816
+ "type": "uuid",
817
+ "typeSchema": null,
818
+ "notNull": true,
819
+ "dimensions": 0,
820
+ "default": null,
821
+ "generated": null,
822
+ "identity": null,
823
+ "name": "id",
824
+ "entityType": "columns",
825
+ "schema": "public",
826
+ "table": "collections"
827
+ },
828
+ {
829
+ "type": "collection_type",
830
+ "typeSchema": "public",
831
+ "notNull": true,
832
+ "dimensions": 0,
833
+ "default": null,
834
+ "generated": null,
835
+ "identity": null,
836
+ "name": "type",
837
+ "entityType": "columns",
838
+ "schema": "public",
839
+ "table": "collections"
840
+ },
841
+ {
842
+ "type": "uuid",
843
+ "typeSchema": null,
844
+ "notNull": false,
845
+ "dimensions": 0,
846
+ "default": null,
847
+ "generated": null,
848
+ "identity": null,
849
+ "name": "ownerActorId",
850
+ "entityType": "columns",
851
+ "schema": "public",
852
+ "table": "collections"
853
+ },
854
+ {
855
+ "type": "integer",
856
+ "typeSchema": null,
857
+ "notNull": false,
858
+ "dimensions": 0,
859
+ "default": null,
860
+ "generated": null,
861
+ "identity": null,
862
+ "name": "totalItems",
863
+ "entityType": "columns",
864
+ "schema": "public",
865
+ "table": "collections"
866
+ },
867
+ {
868
+ "type": "json",
869
+ "typeSchema": null,
870
+ "notNull": false,
871
+ "dimensions": 0,
872
+ "default": null,
873
+ "generated": null,
874
+ "identity": null,
875
+ "name": "document",
876
+ "entityType": "columns",
877
+ "schema": "public",
878
+ "table": "collections"
879
+ },
880
+ {
881
+ "type": "timestamp with time zone",
882
+ "typeSchema": null,
883
+ "notNull": true,
884
+ "dimensions": 0,
885
+ "default": "CURRENT_TIMESTAMP",
886
+ "generated": null,
887
+ "identity": null,
888
+ "name": "updated",
889
+ "entityType": "columns",
890
+ "schema": "public",
891
+ "table": "collections"
892
+ },
893
+ {
894
+ "type": "uuid",
895
+ "typeSchema": null,
896
+ "notNull": true,
897
+ "dimensions": 0,
898
+ "default": null,
899
+ "generated": null,
900
+ "identity": null,
901
+ "name": "accountId",
902
+ "entityType": "columns",
903
+ "schema": "public",
904
+ "table": "instance_members"
905
+ },
906
+ {
907
+ "type": "uuid",
908
+ "typeSchema": null,
909
+ "notNull": true,
910
+ "dimensions": 0,
911
+ "default": null,
912
+ "generated": null,
913
+ "identity": null,
914
+ "name": "instanceId",
915
+ "entityType": "columns",
916
+ "schema": "public",
917
+ "table": "instance_members"
918
+ },
919
+ {
920
+ "type": "boolean",
921
+ "typeSchema": null,
922
+ "notNull": true,
923
+ "dimensions": 0,
924
+ "default": "false",
925
+ "generated": null,
926
+ "identity": null,
927
+ "name": "admin",
928
+ "entityType": "columns",
929
+ "schema": "public",
930
+ "table": "instance_members"
931
+ },
932
+ {
933
+ "type": "timestamp with time zone",
934
+ "typeSchema": null,
935
+ "notNull": false,
936
+ "dimensions": 0,
937
+ "default": null,
938
+ "generated": null,
939
+ "identity": null,
940
+ "name": "accepted",
941
+ "entityType": "columns",
942
+ "schema": "public",
943
+ "table": "instance_members"
944
+ },
945
+ {
946
+ "type": "timestamp with time zone",
947
+ "typeSchema": null,
948
+ "notNull": true,
949
+ "dimensions": 0,
950
+ "default": "CURRENT_TIMESTAMP",
951
+ "generated": null,
952
+ "identity": null,
953
+ "name": "created",
954
+ "entityType": "columns",
955
+ "schema": "public",
956
+ "table": "instance_members"
957
+ },
958
+ {
959
+ "type": "uuid",
960
+ "typeSchema": null,
961
+ "notNull": true,
962
+ "dimensions": 0,
963
+ "default": null,
964
+ "generated": null,
965
+ "identity": null,
966
+ "name": "id",
967
+ "entityType": "columns",
968
+ "schema": "public",
969
+ "table": "instances"
970
+ },
971
+ {
972
+ "type": "uuid",
973
+ "typeSchema": null,
974
+ "notNull": false,
975
+ "dimensions": 0,
976
+ "default": null,
977
+ "generated": null,
978
+ "identity": null,
979
+ "name": "localId",
980
+ "entityType": "columns",
981
+ "schema": "public",
982
+ "table": "instances"
983
+ },
984
+ {
985
+ "type": "timestamp with time zone",
986
+ "typeSchema": null,
987
+ "notNull": true,
988
+ "dimensions": 0,
989
+ "default": "CURRENT_TIMESTAMP",
990
+ "generated": null,
991
+ "identity": null,
992
+ "name": "created",
993
+ "entityType": "columns",
994
+ "schema": "public",
995
+ "table": "instances"
996
+ },
997
+ {
998
+ "type": "varchar(100)",
999
+ "typeSchema": null,
1000
+ "notNull": true,
1001
+ "dimensions": 0,
1002
+ "default": null,
1003
+ "generated": null,
1004
+ "identity": null,
1005
+ "name": "host",
1006
+ "entityType": "columns",
1007
+ "schema": "public",
1008
+ "table": "instances"
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "typeSchema": null,
1013
+ "notNull": false,
1014
+ "dimensions": 0,
1015
+ "default": null,
1016
+ "generated": null,
1017
+ "identity": null,
1018
+ "name": "nodeInfoUrl",
1019
+ "entityType": "columns",
1020
+ "schema": "public",
1021
+ "table": "instances"
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "typeSchema": null,
1026
+ "notNull": false,
1027
+ "dimensions": 0,
1028
+ "default": null,
1029
+ "generated": null,
1030
+ "identity": null,
1031
+ "name": "software",
1032
+ "entityType": "columns",
1033
+ "schema": "public",
1034
+ "table": "instances"
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "typeSchema": null,
1039
+ "notNull": false,
1040
+ "dimensions": 0,
1041
+ "default": null,
1042
+ "generated": null,
1043
+ "identity": null,
1044
+ "name": "softwareVersion",
1045
+ "entityType": "columns",
1046
+ "schema": "public",
1047
+ "table": "instances"
1048
+ },
1049
+ {
1050
+ "type": "uuid",
1051
+ "typeSchema": null,
1052
+ "notNull": true,
1053
+ "dimensions": 0,
1054
+ "default": null,
1055
+ "generated": null,
1056
+ "identity": null,
1057
+ "name": "id",
1058
+ "entityType": "columns",
1059
+ "schema": "public",
1060
+ "table": "local_actors"
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "typeSchema": null,
1065
+ "notNull": false,
1066
+ "dimensions": 0,
1067
+ "default": null,
1068
+ "generated": null,
1069
+ "identity": null,
1070
+ "name": "avatar",
1071
+ "entityType": "columns",
1072
+ "schema": "public",
1073
+ "table": "local_actors"
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "typeSchema": null,
1078
+ "notNull": false,
1079
+ "dimensions": 0,
1080
+ "default": null,
1081
+ "generated": null,
1082
+ "identity": null,
1083
+ "name": "header",
1084
+ "entityType": "columns",
1085
+ "schema": "public",
1086
+ "table": "local_actors"
1087
+ },
1088
+ {
1089
+ "type": "uuid",
1090
+ "typeSchema": null,
1091
+ "notNull": true,
1092
+ "dimensions": 0,
1093
+ "default": null,
1094
+ "generated": null,
1095
+ "identity": null,
1096
+ "name": "id",
1097
+ "entityType": "columns",
1098
+ "schema": "public",
1099
+ "table": "local_instances"
1100
+ },
1101
+ {
1102
+ "type": "varchar(63)",
1103
+ "typeSchema": null,
1104
+ "notNull": true,
1105
+ "dimensions": 0,
1106
+ "default": null,
1107
+ "generated": null,
1108
+ "identity": null,
1109
+ "name": "slug",
1110
+ "entityType": "columns",
1111
+ "schema": "public",
1112
+ "table": "local_instances"
1113
+ },
1114
+ {
1115
+ "type": "timestamp with time zone",
1116
+ "typeSchema": null,
1117
+ "notNull": true,
1118
+ "dimensions": 0,
1119
+ "default": null,
1120
+ "generated": null,
1121
+ "identity": null,
1122
+ "name": "expires",
1123
+ "entityType": "columns",
1124
+ "schema": "public",
1125
+ "table": "local_instances"
1126
+ },
1127
+ {
1128
+ "type": "integer",
1129
+ "typeSchema": null,
1130
+ "notNull": true,
1131
+ "dimensions": 0,
1132
+ "default": "10",
1133
+ "generated": null,
1134
+ "identity": null,
1135
+ "name": "maxActors",
1136
+ "entityType": "columns",
1137
+ "schema": "public",
1138
+ "table": "local_instances"
1139
+ },
1140
+ {
1141
+ "type": "uuid",
1142
+ "typeSchema": null,
1143
+ "notNull": true,
1144
+ "dimensions": 0,
1145
+ "default": null,
1146
+ "generated": null,
1147
+ "identity": null,
1148
+ "name": "id",
1149
+ "entityType": "columns",
1150
+ "schema": "public",
1151
+ "table": "login_challenges"
1152
+ },
1153
+ {
1154
+ "type": "uuid",
1155
+ "typeSchema": null,
1156
+ "notNull": true,
1157
+ "dimensions": 0,
1158
+ "default": null,
1159
+ "generated": null,
1160
+ "identity": null,
1161
+ "name": "accountId",
1162
+ "entityType": "columns",
1163
+ "schema": "public",
1164
+ "table": "login_challenges"
1165
+ },
1166
+ {
1167
+ "type": "char(6)",
1168
+ "typeSchema": null,
1169
+ "notNull": true,
1170
+ "dimensions": 0,
1171
+ "default": null,
1172
+ "generated": null,
1173
+ "identity": null,
1174
+ "name": "code",
1175
+ "entityType": "columns",
1176
+ "schema": "public",
1177
+ "table": "login_challenges"
1178
+ },
1179
+ {
1180
+ "type": "timestamp with time zone",
1181
+ "typeSchema": null,
1182
+ "notNull": true,
1183
+ "dimensions": 0,
1184
+ "default": "CURRENT_TIMESTAMP",
1185
+ "generated": null,
1186
+ "identity": null,
1187
+ "name": "created",
1188
+ "entityType": "columns",
1189
+ "schema": "public",
1190
+ "table": "login_challenges"
1191
+ },
1192
+ {
1193
+ "type": "timestamp with time zone",
1194
+ "typeSchema": null,
1195
+ "notNull": true,
1196
+ "dimensions": 0,
1197
+ "default": "CURRENT_TIMESTAMP + INTERVAL '15 minutes'",
1198
+ "generated": null,
1199
+ "identity": null,
1200
+ "name": "expires",
1201
+ "entityType": "columns",
1202
+ "schema": "public",
1203
+ "table": "login_challenges"
1204
+ },
1205
+ {
1206
+ "type": "timestamp with time zone",
1207
+ "typeSchema": null,
1208
+ "notNull": false,
1209
+ "dimensions": 0,
1210
+ "default": null,
1211
+ "generated": null,
1212
+ "identity": null,
1213
+ "name": "consumed",
1214
+ "entityType": "columns",
1215
+ "schema": "public",
1216
+ "table": "login_challenges"
1217
+ },
1218
+ {
1219
+ "type": "uuid",
1220
+ "typeSchema": null,
1221
+ "notNull": true,
1222
+ "dimensions": 0,
1223
+ "default": null,
1224
+ "generated": null,
1225
+ "identity": null,
1226
+ "name": "id",
1227
+ "entityType": "columns",
1228
+ "schema": "public",
1229
+ "table": "objects"
1230
+ },
1231
+ {
1232
+ "type": "uuid",
1233
+ "typeSchema": null,
1234
+ "notNull": true,
1235
+ "dimensions": 0,
1236
+ "default": null,
1237
+ "generated": null,
1238
+ "identity": null,
1239
+ "name": "actorId",
1240
+ "entityType": "columns",
1241
+ "schema": "public",
1242
+ "table": "objects"
1243
+ },
1244
+ {
1245
+ "type": "object_type",
1246
+ "typeSchema": "public",
1247
+ "notNull": true,
1248
+ "dimensions": 0,
1249
+ "default": null,
1250
+ "generated": null,
1251
+ "identity": null,
1252
+ "name": "type",
1253
+ "entityType": "columns",
1254
+ "schema": "public",
1255
+ "table": "objects"
1256
+ },
1257
+ {
1258
+ "type": "json",
1259
+ "typeSchema": null,
1260
+ "notNull": false,
1261
+ "dimensions": 0,
1262
+ "default": null,
1263
+ "generated": null,
1264
+ "identity": null,
1265
+ "name": "document",
1266
+ "entityType": "columns",
1267
+ "schema": "public",
1268
+ "table": "objects"
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "typeSchema": null,
1273
+ "notNull": false,
1274
+ "dimensions": 0,
1275
+ "default": null,
1276
+ "generated": null,
1277
+ "identity": null,
1278
+ "name": "url",
1279
+ "entityType": "columns",
1280
+ "schema": "public",
1281
+ "table": "objects"
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "typeSchema": null,
1286
+ "notNull": false,
1287
+ "dimensions": 0,
1288
+ "default": null,
1289
+ "generated": null,
1290
+ "identity": null,
1291
+ "name": "name",
1292
+ "entityType": "columns",
1293
+ "schema": "public",
1294
+ "table": "objects"
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "typeSchema": null,
1299
+ "notNull": false,
1300
+ "dimensions": 0,
1301
+ "default": null,
1302
+ "generated": null,
1303
+ "identity": null,
1304
+ "name": "summary",
1305
+ "entityType": "columns",
1306
+ "schema": "public",
1307
+ "table": "objects"
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "typeSchema": null,
1312
+ "notNull": true,
1313
+ "dimensions": 0,
1314
+ "default": null,
1315
+ "generated": null,
1316
+ "identity": null,
1317
+ "name": "contentHtml",
1318
+ "entityType": "columns",
1319
+ "schema": "public",
1320
+ "table": "objects"
1321
+ },
1322
+ {
1323
+ "type": "varchar(35)",
1324
+ "typeSchema": null,
1325
+ "notNull": false,
1326
+ "dimensions": 0,
1327
+ "default": null,
1328
+ "generated": null,
1329
+ "identity": null,
1330
+ "name": "language",
1331
+ "entityType": "columns",
1332
+ "schema": "public",
1333
+ "table": "objects"
1334
+ },
1335
+ {
1336
+ "type": "boolean",
1337
+ "typeSchema": null,
1338
+ "notNull": true,
1339
+ "dimensions": 0,
1340
+ "default": "false",
1341
+ "generated": null,
1342
+ "identity": null,
1343
+ "name": "sensitive",
1344
+ "entityType": "columns",
1345
+ "schema": "public",
1346
+ "table": "objects"
1347
+ },
1348
+ {
1349
+ "type": "timestamp with time zone",
1350
+ "typeSchema": null,
1351
+ "notNull": true,
1352
+ "dimensions": 0,
1353
+ "default": "CURRENT_TIMESTAMP",
1354
+ "generated": null,
1355
+ "identity": null,
1356
+ "name": "published",
1357
+ "entityType": "columns",
1358
+ "schema": "public",
1359
+ "table": "objects"
1360
+ },
1361
+ {
1362
+ "type": "timestamp with time zone",
1363
+ "typeSchema": null,
1364
+ "notNull": true,
1365
+ "dimensions": 0,
1366
+ "default": "CURRENT_TIMESTAMP",
1367
+ "generated": null,
1368
+ "identity": null,
1369
+ "name": "updated",
1370
+ "entityType": "columns",
1371
+ "schema": "public",
1372
+ "table": "objects"
1373
+ },
1374
+ {
1375
+ "type": "timestamp with time zone",
1376
+ "typeSchema": null,
1377
+ "notNull": true,
1378
+ "dimensions": 0,
1379
+ "default": "CURRENT_TIMESTAMP",
1380
+ "generated": null,
1381
+ "identity": null,
1382
+ "name": "created",
1383
+ "entityType": "columns",
1384
+ "schema": "public",
1385
+ "table": "objects"
1386
+ },
1387
+ {
1388
+ "type": "timestamp with time zone",
1389
+ "typeSchema": null,
1390
+ "notNull": false,
1391
+ "dimensions": 0,
1392
+ "default": null,
1393
+ "generated": null,
1394
+ "identity": null,
1395
+ "name": "deleted",
1396
+ "entityType": "columns",
1397
+ "schema": "public",
1398
+ "table": "objects"
1399
+ },
1400
+ {
1401
+ "type": "uuid",
1402
+ "typeSchema": null,
1403
+ "notNull": true,
1404
+ "dimensions": 0,
1405
+ "default": null,
1406
+ "generated": null,
1407
+ "identity": null,
1408
+ "name": "id",
1409
+ "entityType": "columns",
1410
+ "schema": "public",
1411
+ "table": "resources"
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "typeSchema": null,
1416
+ "notNull": true,
1417
+ "dimensions": 0,
1418
+ "default": null,
1419
+ "generated": null,
1420
+ "identity": null,
1421
+ "name": "iri",
1422
+ "entityType": "columns",
1423
+ "schema": "public",
1424
+ "table": "resources"
1425
+ },
1426
+ {
1427
+ "type": "resource_kind",
1428
+ "typeSchema": "public",
1429
+ "notNull": true,
1430
+ "dimensions": 0,
1431
+ "default": null,
1432
+ "generated": null,
1433
+ "identity": null,
1434
+ "name": "kind",
1435
+ "entityType": "columns",
1436
+ "schema": "public",
1437
+ "table": "resources"
1438
+ },
1439
+ {
1440
+ "type": "timestamp with time zone",
1441
+ "typeSchema": null,
1442
+ "notNull": true,
1443
+ "dimensions": 0,
1444
+ "default": "CURRENT_TIMESTAMP",
1445
+ "generated": null,
1446
+ "identity": null,
1447
+ "name": "created",
1448
+ "entityType": "columns",
1449
+ "schema": "public",
1450
+ "table": "resources"
1451
+ },
1452
+ {
1453
+ "type": "uuid",
1454
+ "typeSchema": null,
1455
+ "notNull": true,
1456
+ "dimensions": 0,
1457
+ "default": null,
1458
+ "generated": null,
1459
+ "identity": null,
1460
+ "name": "id",
1461
+ "entityType": "columns",
1462
+ "schema": "public",
1463
+ "table": "sessions"
1464
+ },
1465
+ {
1466
+ "type": "uuid",
1467
+ "typeSchema": null,
1468
+ "notNull": true,
1469
+ "dimensions": 0,
1470
+ "default": null,
1471
+ "generated": null,
1472
+ "identity": null,
1473
+ "name": "accountId",
1474
+ "entityType": "columns",
1475
+ "schema": "public",
1476
+ "table": "sessions"
1477
+ },
1478
+ {
1479
+ "type": "varchar(64)",
1480
+ "typeSchema": null,
1481
+ "notNull": true,
1482
+ "dimensions": 0,
1483
+ "default": null,
1484
+ "generated": null,
1485
+ "identity": null,
1486
+ "name": "tokenHash",
1487
+ "entityType": "columns",
1488
+ "schema": "public",
1489
+ "table": "sessions"
1490
+ },
1491
+ {
1492
+ "type": "timestamp with time zone",
1493
+ "typeSchema": null,
1494
+ "notNull": true,
1495
+ "dimensions": 0,
1496
+ "default": "CURRENT_TIMESTAMP",
1497
+ "generated": null,
1498
+ "identity": null,
1499
+ "name": "created",
1500
+ "entityType": "columns",
1501
+ "schema": "public",
1502
+ "table": "sessions"
1503
+ },
1504
+ {
1505
+ "type": "timestamp with time zone",
1506
+ "typeSchema": null,
1507
+ "notNull": true,
1508
+ "dimensions": 0,
1509
+ "default": "CURRENT_TIMESTAMP + INTERVAL '1 month'",
1510
+ "generated": null,
1511
+ "identity": null,
1512
+ "name": "expires",
1513
+ "entityType": "columns",
1514
+ "schema": "public",
1515
+ "table": "sessions"
1516
+ },
1517
+ {
1518
+ "nameExplicit": true,
1519
+ "columns": [
1520
+ {
1521
+ "value": "actorId",
1522
+ "isExpression": false,
1523
+ "asc": true,
1524
+ "nullsFirst": false,
1525
+ "opclass": null
1526
+ },
1527
+ {
1528
+ "value": "\"published\" desc",
1529
+ "isExpression": true,
1530
+ "asc": true,
1531
+ "nullsFirst": false,
1532
+ "opclass": null
1533
+ },
1534
+ {
1535
+ "value": "\"id\" desc",
1536
+ "isExpression": true,
1537
+ "asc": true,
1538
+ "nullsFirst": false,
1539
+ "opclass": null
1540
+ }
1541
+ ],
1542
+ "isUnique": false,
1543
+ "where": null,
1544
+ "with": "",
1545
+ "method": "btree",
1546
+ "concurrently": false,
1547
+ "name": "activity_actor_published_index",
1548
+ "entityType": "indexes",
1549
+ "schema": "public",
1550
+ "table": "activities"
1551
+ },
1552
+ {
1553
+ "nameExplicit": true,
1554
+ "columns": [
1555
+ {
1556
+ "value": "collectionId",
1557
+ "isExpression": false,
1558
+ "asc": true,
1559
+ "nullsFirst": false,
1560
+ "opclass": null
1561
+ }
1562
+ ],
1563
+ "isUnique": false,
1564
+ "where": null,
1565
+ "with": "",
1566
+ "method": "btree",
1567
+ "concurrently": false,
1568
+ "name": "actor_collection_reference_collection_index",
1569
+ "entityType": "indexes",
1570
+ "schema": "public",
1571
+ "table": "actor_collection_references"
1572
+ },
1573
+ {
1574
+ "nameExplicit": true,
1575
+ "columns": [
1576
+ {
1577
+ "value": "instanceId",
1578
+ "isExpression": false,
1579
+ "asc": true,
1580
+ "nullsFirst": false,
1581
+ "opclass": null
1582
+ }
1583
+ ],
1584
+ "isUnique": false,
1585
+ "where": null,
1586
+ "with": "",
1587
+ "method": "btree",
1588
+ "concurrently": false,
1589
+ "name": "actor_instance_index",
1590
+ "entityType": "indexes",
1591
+ "schema": "public",
1592
+ "table": "actors"
1593
+ },
1594
+ {
1595
+ "nameExplicit": true,
1596
+ "columns": [
1597
+ {
1598
+ "value": "targetId",
1599
+ "isExpression": false,
1600
+ "asc": true,
1601
+ "nullsFirst": false,
1602
+ "opclass": null
1603
+ },
1604
+ {
1605
+ "value": "property",
1606
+ "isExpression": false,
1607
+ "asc": true,
1608
+ "nullsFirst": false,
1609
+ "opclass": null
1610
+ }
1611
+ ],
1612
+ "isUnique": false,
1613
+ "where": null,
1614
+ "with": "",
1615
+ "method": "btree",
1616
+ "concurrently": false,
1617
+ "name": "addressing_target_property_index",
1618
+ "entityType": "indexes",
1619
+ "schema": "public",
1620
+ "table": "addressing"
1621
+ },
1622
+ {
1623
+ "nameExplicit": true,
1624
+ "columns": [
1625
+ {
1626
+ "value": "collectionId",
1627
+ "isExpression": false,
1628
+ "asc": true,
1629
+ "nullsFirst": false,
1630
+ "opclass": null
1631
+ },
1632
+ {
1633
+ "value": "position",
1634
+ "isExpression": false,
1635
+ "asc": true,
1636
+ "nullsFirst": false,
1637
+ "opclass": null
1638
+ }
1639
+ ],
1640
+ "isUnique": false,
1641
+ "where": null,
1642
+ "with": "",
1643
+ "method": "btree",
1644
+ "concurrently": false,
1645
+ "name": "collection_item_position_index",
1646
+ "entityType": "indexes",
1647
+ "schema": "public",
1648
+ "table": "collection_items"
1649
+ },
1650
+ {
1651
+ "nameExplicit": false,
1652
+ "columns": [
1653
+ {
1654
+ "value": "accountId",
1655
+ "isExpression": false,
1656
+ "asc": true,
1657
+ "nullsFirst": false,
1658
+ "opclass": null
1659
+ }
1660
+ ],
1661
+ "isUnique": false,
1662
+ "where": "\"accepted\" IS NOT NULL",
1663
+ "with": "",
1664
+ "method": "btree",
1665
+ "concurrently": false,
1666
+ "name": "instance_members_accountId_index",
1667
+ "entityType": "indexes",
1668
+ "schema": "public",
1669
+ "table": "instance_members"
1670
+ },
1671
+ {
1672
+ "nameExplicit": false,
1673
+ "columns": [
1674
+ {
1675
+ "value": "instanceId",
1676
+ "isExpression": false,
1677
+ "asc": true,
1678
+ "nullsFirst": false,
1679
+ "opclass": null
1680
+ }
1681
+ ],
1682
+ "isUnique": false,
1683
+ "where": "\"accepted\" IS NOT NULL",
1684
+ "with": "",
1685
+ "method": "btree",
1686
+ "concurrently": false,
1687
+ "name": "instance_members_instanceId_index",
1688
+ "entityType": "indexes",
1689
+ "schema": "public",
1690
+ "table": "instance_members"
1691
+ },
1692
+ {
1693
+ "nameExplicit": true,
1694
+ "columns": [
1695
+ {
1696
+ "value": "actorId",
1697
+ "isExpression": false,
1698
+ "asc": true,
1699
+ "nullsFirst": false,
1700
+ "opclass": null
1701
+ },
1702
+ {
1703
+ "value": "\"published\" desc",
1704
+ "isExpression": true,
1705
+ "asc": true,
1706
+ "nullsFirst": false,
1707
+ "opclass": null
1708
+ },
1709
+ {
1710
+ "value": "\"id\" desc",
1711
+ "isExpression": true,
1712
+ "asc": true,
1713
+ "nullsFirst": false,
1714
+ "opclass": null
1715
+ }
1716
+ ],
1717
+ "isUnique": false,
1718
+ "where": null,
1719
+ "with": "",
1720
+ "method": "btree",
1721
+ "concurrently": false,
1722
+ "name": "object_actor_published_index",
1723
+ "entityType": "indexes",
1724
+ "schema": "public",
1725
+ "table": "objects"
1726
+ },
1727
+ {
1728
+ "nameExplicit": false,
1729
+ "columns": ["id"],
1730
+ "schemaTo": "public",
1731
+ "tableTo": "resources",
1732
+ "columnsTo": ["id"],
1733
+ "onUpdate": "NO ACTION",
1734
+ "onDelete": "CASCADE",
1735
+ "name": "activities_id_resources_id_fkey",
1736
+ "entityType": "fks",
1737
+ "schema": "public",
1738
+ "table": "activities"
1739
+ },
1740
+ {
1741
+ "nameExplicit": false,
1742
+ "columns": ["actorId"],
1743
+ "schemaTo": "public",
1744
+ "tableTo": "actors",
1745
+ "columnsTo": ["id"],
1746
+ "onUpdate": "NO ACTION",
1747
+ "onDelete": "CASCADE",
1748
+ "name": "activities_actorId_actors_id_fkey",
1749
+ "entityType": "fks",
1750
+ "schema": "public",
1751
+ "table": "activities"
1752
+ },
1753
+ {
1754
+ "nameExplicit": false,
1755
+ "columns": ["objectId"],
1756
+ "schemaTo": "public",
1757
+ "tableTo": "resources",
1758
+ "columnsTo": ["id"],
1759
+ "onUpdate": "NO ACTION",
1760
+ "onDelete": "CASCADE",
1761
+ "name": "activities_objectId_resources_id_fkey",
1762
+ "entityType": "fks",
1763
+ "schema": "public",
1764
+ "table": "activities"
1765
+ },
1766
+ {
1767
+ "nameExplicit": false,
1768
+ "columns": ["actorId"],
1769
+ "schemaTo": "public",
1770
+ "tableTo": "actors",
1771
+ "columnsTo": ["id"],
1772
+ "onUpdate": "NO ACTION",
1773
+ "onDelete": "CASCADE",
1774
+ "name": "actor_collection_references_actorId_actors_id_fkey",
1775
+ "entityType": "fks",
1776
+ "schema": "public",
1777
+ "table": "actor_collection_references"
1778
+ },
1779
+ {
1780
+ "nameExplicit": false,
1781
+ "columns": ["collectionId"],
1782
+ "schemaTo": "public",
1783
+ "tableTo": "collections",
1784
+ "columnsTo": ["id"],
1785
+ "onUpdate": "NO ACTION",
1786
+ "onDelete": "CASCADE",
1787
+ "name": "actor_collection_references_collectionId_collections_id_fkey",
1788
+ "entityType": "fks",
1789
+ "schema": "public",
1790
+ "table": "actor_collection_references"
1791
+ },
1792
+ {
1793
+ "nameExplicit": false,
1794
+ "columns": ["id"],
1795
+ "schemaTo": "public",
1796
+ "tableTo": "resources",
1797
+ "columnsTo": ["id"],
1798
+ "onUpdate": "NO ACTION",
1799
+ "onDelete": "CASCADE",
1800
+ "name": "actors_id_resources_id_fkey",
1801
+ "entityType": "fks",
1802
+ "schema": "public",
1803
+ "table": "actors"
1804
+ },
1805
+ {
1806
+ "nameExplicit": false,
1807
+ "columns": ["localId"],
1808
+ "schemaTo": "public",
1809
+ "tableTo": "local_actors",
1810
+ "columnsTo": ["id"],
1811
+ "onUpdate": "NO ACTION",
1812
+ "onDelete": "CASCADE",
1813
+ "name": "actors_localId_local_actors_id_fkey",
1814
+ "entityType": "fks",
1815
+ "schema": "public",
1816
+ "table": "actors"
1817
+ },
1818
+ {
1819
+ "nameExplicit": false,
1820
+ "columns": ["instanceId"],
1821
+ "schemaTo": "public",
1822
+ "tableTo": "instances",
1823
+ "columnsTo": ["id"],
1824
+ "onUpdate": "NO ACTION",
1825
+ "onDelete": "CASCADE",
1826
+ "name": "actors_instanceId_instances_id_fkey",
1827
+ "entityType": "fks",
1828
+ "schema": "public",
1829
+ "table": "actors"
1830
+ },
1831
+ {
1832
+ "nameExplicit": false,
1833
+ "columns": ["successorId"],
1834
+ "schemaTo": "public",
1835
+ "tableTo": "actors",
1836
+ "columnsTo": ["id"],
1837
+ "onUpdate": "NO ACTION",
1838
+ "onDelete": "SET NULL",
1839
+ "name": "actors_successorId_actors_id_fkey",
1840
+ "entityType": "fks",
1841
+ "schema": "public",
1842
+ "table": "actors"
1843
+ },
1844
+ {
1845
+ "nameExplicit": false,
1846
+ "columns": ["sourceId"],
1847
+ "schemaTo": "public",
1848
+ "tableTo": "resources",
1849
+ "columnsTo": ["id"],
1850
+ "onUpdate": "NO ACTION",
1851
+ "onDelete": "CASCADE",
1852
+ "name": "addressing_sourceId_resources_id_fkey",
1853
+ "entityType": "fks",
1854
+ "schema": "public",
1855
+ "table": "addressing"
1856
+ },
1857
+ {
1858
+ "nameExplicit": false,
1859
+ "columns": ["targetId"],
1860
+ "schemaTo": "public",
1861
+ "tableTo": "resources",
1862
+ "columnsTo": ["id"],
1863
+ "onUpdate": "NO ACTION",
1864
+ "onDelete": "RESTRICT",
1865
+ "name": "addressing_targetId_resources_id_fkey",
1866
+ "entityType": "fks",
1867
+ "schema": "public",
1868
+ "table": "addressing"
1869
+ },
1870
+ {
1871
+ "nameExplicit": false,
1872
+ "columns": ["collectionId"],
1873
+ "schemaTo": "public",
1874
+ "tableTo": "collections",
1875
+ "columnsTo": ["id"],
1876
+ "onUpdate": "NO ACTION",
1877
+ "onDelete": "CASCADE",
1878
+ "name": "collection_items_collectionId_collections_id_fkey",
1879
+ "entityType": "fks",
1880
+ "schema": "public",
1881
+ "table": "collection_items"
1882
+ },
1883
+ {
1884
+ "nameExplicit": false,
1885
+ "columns": ["itemId"],
1886
+ "schemaTo": "public",
1887
+ "tableTo": "resources",
1888
+ "columnsTo": ["id"],
1889
+ "onUpdate": "NO ACTION",
1890
+ "onDelete": "CASCADE",
1891
+ "name": "collection_items_itemId_resources_id_fkey",
1892
+ "entityType": "fks",
1893
+ "schema": "public",
1894
+ "table": "collection_items"
1895
+ },
1896
+ {
1897
+ "nameExplicit": false,
1898
+ "columns": ["id"],
1899
+ "schemaTo": "public",
1900
+ "tableTo": "resources",
1901
+ "columnsTo": ["id"],
1902
+ "onUpdate": "NO ACTION",
1903
+ "onDelete": "CASCADE",
1904
+ "name": "collections_id_resources_id_fkey",
1905
+ "entityType": "fks",
1906
+ "schema": "public",
1907
+ "table": "collections"
1908
+ },
1909
+ {
1910
+ "nameExplicit": false,
1911
+ "columns": ["ownerActorId"],
1912
+ "schemaTo": "public",
1913
+ "tableTo": "actors",
1914
+ "columnsTo": ["id"],
1915
+ "onUpdate": "NO ACTION",
1916
+ "onDelete": "CASCADE",
1917
+ "name": "collections_ownerActorId_actors_id_fkey",
1918
+ "entityType": "fks",
1919
+ "schema": "public",
1920
+ "table": "collections"
1921
+ },
1922
+ {
1923
+ "nameExplicit": false,
1924
+ "columns": ["accountId"],
1925
+ "schemaTo": "public",
1926
+ "tableTo": "accounts",
1927
+ "columnsTo": ["id"],
1928
+ "onUpdate": "NO ACTION",
1929
+ "onDelete": "NO ACTION",
1930
+ "name": "instance_members_accountId_accounts_id_fkey",
1931
+ "entityType": "fks",
1932
+ "schema": "public",
1933
+ "table": "instance_members"
1934
+ },
1935
+ {
1936
+ "nameExplicit": false,
1937
+ "columns": ["instanceId"],
1938
+ "schemaTo": "public",
1939
+ "tableTo": "instances",
1940
+ "columnsTo": ["id"],
1941
+ "onUpdate": "NO ACTION",
1942
+ "onDelete": "NO ACTION",
1943
+ "name": "instance_members_instanceId_instances_id_fkey",
1944
+ "entityType": "fks",
1945
+ "schema": "public",
1946
+ "table": "instance_members"
1947
+ },
1948
+ {
1949
+ "nameExplicit": false,
1950
+ "columns": ["localId"],
1951
+ "schemaTo": "public",
1952
+ "tableTo": "local_instances",
1953
+ "columnsTo": ["id"],
1954
+ "onUpdate": "NO ACTION",
1955
+ "onDelete": "CASCADE",
1956
+ "name": "instances_localId_local_instances_id_fkey",
1957
+ "entityType": "fks",
1958
+ "schema": "public",
1959
+ "table": "instances"
1960
+ },
1961
+ {
1962
+ "nameExplicit": false,
1963
+ "columns": ["accountId"],
1964
+ "schemaTo": "public",
1965
+ "tableTo": "accounts",
1966
+ "columnsTo": ["id"],
1967
+ "onUpdate": "NO ACTION",
1968
+ "onDelete": "CASCADE",
1969
+ "name": "login_tokens_accountId_accounts_id_fkey",
1970
+ "entityType": "fks",
1971
+ "schema": "public",
1972
+ "table": "login_challenges"
1973
+ },
1974
+ {
1975
+ "nameExplicit": false,
1976
+ "columns": ["id"],
1977
+ "schemaTo": "public",
1978
+ "tableTo": "resources",
1979
+ "columnsTo": ["id"],
1980
+ "onUpdate": "NO ACTION",
1981
+ "onDelete": "CASCADE",
1982
+ "name": "objects_id_resources_id_fkey",
1983
+ "entityType": "fks",
1984
+ "schema": "public",
1985
+ "table": "objects"
1986
+ },
1987
+ {
1988
+ "nameExplicit": false,
1989
+ "columns": ["actorId"],
1990
+ "schemaTo": "public",
1991
+ "tableTo": "actors",
1992
+ "columnsTo": ["id"],
1993
+ "onUpdate": "NO ACTION",
1994
+ "onDelete": "CASCADE",
1995
+ "name": "objects_actorId_actors_id_fkey",
1996
+ "entityType": "fks",
1997
+ "schema": "public",
1998
+ "table": "objects"
1999
+ },
2000
+ {
2001
+ "nameExplicit": false,
2002
+ "columns": ["accountId"],
2003
+ "schemaTo": "public",
2004
+ "tableTo": "accounts",
2005
+ "columnsTo": ["id"],
2006
+ "onUpdate": "NO ACTION",
2007
+ "onDelete": "CASCADE",
2008
+ "name": "sessions_accountId_accounts_id_fkey",
2009
+ "entityType": "fks",
2010
+ "schema": "public",
2011
+ "table": "sessions"
2012
+ },
2013
+ {
2014
+ "columns": ["actorId", "role"],
2015
+ "nameExplicit": false,
2016
+ "name": "actor_collection_references_pkey",
2017
+ "entityType": "pks",
2018
+ "schema": "public",
2019
+ "table": "actor_collection_references"
2020
+ },
2021
+ {
2022
+ "columns": ["collectionId", "itemId"],
2023
+ "nameExplicit": false,
2024
+ "name": "collection_items_pkey",
2025
+ "entityType": "pks",
2026
+ "schema": "public",
2027
+ "table": "collection_items"
2028
+ },
2029
+ {
2030
+ "columns": ["instanceId", "accountId"],
2031
+ "nameExplicit": false,
2032
+ "name": "instance_members_pkey",
2033
+ "entityType": "pks",
2034
+ "schema": "public",
2035
+ "table": "instance_members"
2036
+ },
2037
+ {
2038
+ "columns": ["id"],
2039
+ "nameExplicit": false,
2040
+ "name": "accounts_pkey",
2041
+ "schema": "public",
2042
+ "table": "accounts",
2043
+ "entityType": "pks"
2044
+ },
2045
+ {
2046
+ "columns": ["id"],
2047
+ "nameExplicit": false,
2048
+ "name": "activities_pkey",
2049
+ "schema": "public",
2050
+ "table": "activities",
2051
+ "entityType": "pks"
2052
+ },
2053
+ {
2054
+ "columns": ["id"],
2055
+ "nameExplicit": false,
2056
+ "name": "actors_pkey",
2057
+ "schema": "public",
2058
+ "table": "actors",
2059
+ "entityType": "pks"
2060
+ },
2061
+ {
2062
+ "columns": ["id"],
2063
+ "nameExplicit": false,
2064
+ "name": "addressing_pkey",
2065
+ "schema": "public",
2066
+ "table": "addressing",
2067
+ "entityType": "pks"
2068
+ },
2069
+ {
2070
+ "columns": ["id"],
2071
+ "nameExplicit": false,
2072
+ "name": "collections_pkey",
2073
+ "schema": "public",
2074
+ "table": "collections",
2075
+ "entityType": "pks"
2076
+ },
2077
+ {
2078
+ "columns": ["id"],
2079
+ "nameExplicit": false,
2080
+ "name": "instances_pkey",
2081
+ "schema": "public",
2082
+ "table": "instances",
2083
+ "entityType": "pks"
2084
+ },
2085
+ {
2086
+ "columns": ["id"],
2087
+ "nameExplicit": false,
2088
+ "name": "local_actors_pkey",
2089
+ "schema": "public",
2090
+ "table": "local_actors",
2091
+ "entityType": "pks"
2092
+ },
2093
+ {
2094
+ "columns": ["id"],
2095
+ "nameExplicit": false,
2096
+ "name": "local_instances_pkey",
2097
+ "schema": "public",
2098
+ "table": "local_instances",
2099
+ "entityType": "pks"
2100
+ },
2101
+ {
2102
+ "columns": ["id"],
2103
+ "nameExplicit": false,
2104
+ "name": "login_tokens_pkey",
2105
+ "schema": "public",
2106
+ "table": "login_challenges",
2107
+ "entityType": "pks"
2108
+ },
2109
+ {
2110
+ "columns": ["id"],
2111
+ "nameExplicit": false,
2112
+ "name": "objects_pkey",
2113
+ "schema": "public",
2114
+ "table": "objects",
2115
+ "entityType": "pks"
2116
+ },
2117
+ {
2118
+ "columns": ["id"],
2119
+ "nameExplicit": false,
2120
+ "name": "resources_pkey",
2121
+ "schema": "public",
2122
+ "table": "resources",
2123
+ "entityType": "pks"
2124
+ },
2125
+ {
2126
+ "columns": ["id"],
2127
+ "nameExplicit": false,
2128
+ "name": "sessions_pkey",
2129
+ "schema": "public",
2130
+ "table": "sessions",
2131
+ "entityType": "pks"
2132
+ },
2133
+ {
2134
+ "nameExplicit": true,
2135
+ "columns": ["username", "instanceId"],
2136
+ "nullsNotDistinct": false,
2137
+ "name": "username_key",
2138
+ "entityType": "uniques",
2139
+ "schema": "public",
2140
+ "table": "actors"
2141
+ },
2142
+ {
2143
+ "nameExplicit": true,
2144
+ "columns": ["sourceId", "property", "position"],
2145
+ "nullsNotDistinct": false,
2146
+ "name": "addressing_source_property_position_key",
2147
+ "entityType": "uniques",
2148
+ "schema": "public",
2149
+ "table": "addressing"
2150
+ },
2151
+ {
2152
+ "nameExplicit": false,
2153
+ "columns": ["email"],
2154
+ "nullsNotDistinct": false,
2155
+ "name": "accounts_email_key",
2156
+ "schema": "public",
2157
+ "table": "accounts",
2158
+ "entityType": "uniques"
2159
+ },
2160
+ {
2161
+ "nameExplicit": false,
2162
+ "columns": ["localId"],
2163
+ "nullsNotDistinct": false,
2164
+ "name": "actors_localId_key",
2165
+ "schema": "public",
2166
+ "table": "actors",
2167
+ "entityType": "uniques"
2168
+ },
2169
+ {
2170
+ "nameExplicit": false,
2171
+ "columns": ["host"],
2172
+ "nullsNotDistinct": false,
2173
+ "name": "instances_host_key",
2174
+ "schema": "public",
2175
+ "table": "instances",
2176
+ "entityType": "uniques"
2177
+ },
2178
+ {
2179
+ "nameExplicit": false,
2180
+ "columns": ["slug"],
2181
+ "nullsNotDistinct": false,
2182
+ "name": "local_instances_slug_key",
2183
+ "schema": "public",
2184
+ "table": "local_instances",
2185
+ "entityType": "uniques"
2186
+ },
2187
+ {
2188
+ "nameExplicit": false,
2189
+ "columns": ["iri"],
2190
+ "nullsNotDistinct": false,
2191
+ "name": "resources_iri_key",
2192
+ "schema": "public",
2193
+ "table": "resources",
2194
+ "entityType": "uniques"
2195
+ },
2196
+ {
2197
+ "nameExplicit": false,
2198
+ "columns": ["tokenHash"],
2199
+ "nullsNotDistinct": false,
2200
+ "name": "sessions_tokenHash_key",
2201
+ "schema": "public",
2202
+ "table": "sessions",
2203
+ "entityType": "uniques"
2204
+ },
2205
+ {
2206
+ "value": "\"email\" ~ '^[^@]+@[^@]+\\.[^@]+$'",
2207
+ "name": "accounts_email_check",
2208
+ "entityType": "checks",
2209
+ "schema": "public",
2210
+ "table": "accounts"
2211
+ },
2212
+ {
2213
+ "value": "\"max_instances\" >= 0",
2214
+ "name": "accounts_max_instances_check",
2215
+ "entityType": "checks",
2216
+ "schema": "public",
2217
+ "table": "accounts"
2218
+ },
2219
+ {
2220
+ "value": "trim(both from \"name\") <> ''",
2221
+ "name": "accounts_name_check",
2222
+ "entityType": "checks",
2223
+ "schema": "public",
2224
+ "table": "accounts"
2225
+ },
2226
+ {
2227
+ "value": "\"username\" NOT LIKE '%@%'",
2228
+ "name": "actors_username_check",
2229
+ "entityType": "checks",
2230
+ "schema": "public",
2231
+ "table": "actors"
2232
+ },
2233
+ {
2234
+ "value": "\n \"suspendedUntil\" IS NULL OR (\n \"suspended\" IS NOT NULL AND\n \"suspendedUntil\" > \"suspended\"\n )\n ",
2235
+ "name": "actors_suspended_check",
2236
+ "entityType": "checks",
2237
+ "schema": "public",
2238
+ "table": "actors"
2239
+ },
2240
+ {
2241
+ "value": "\"slug\" ~ '^[a-z0-9-]{4,63}$'",
2242
+ "name": "instances_slug_check",
2243
+ "entityType": "checks",
2244
+ "schema": "public",
2245
+ "table": "local_instances"
2246
+ },
2247
+ {
2248
+ "value": "\"maxActors\" > 0",
2249
+ "name": "instances_max_actors_check",
2250
+ "entityType": "checks",
2251
+ "schema": "public",
2252
+ "table": "local_instances"
2253
+ },
2254
+ {
2255
+ "value": "trim(both from \"contentHtml\") <> ''",
2256
+ "name": "objects_content_html_check",
2257
+ "entityType": "checks",
2258
+ "schema": "public",
2259
+ "table": "objects"
2260
+ }
2261
+ ],
2262
+ "renames": []
2263
+ }