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

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 +193 -3
@@ -0,0 +1,768 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "08f1dfcb-1110-4550-9777-36d017ecfb10",
5
+ "prevIds": ["d11b25cc-8a54-4c9f-95c5-1891ce2a133a"],
6
+ "ddl": [
7
+ {
8
+ "values": ["Local", "Remote"],
9
+ "name": "location",
10
+ "entityType": "enums",
11
+ "schema": "public"
12
+ },
13
+ {
14
+ "isRlsEnabled": false,
15
+ "name": "accounts",
16
+ "entityType": "tables",
17
+ "schema": "public"
18
+ },
19
+ {
20
+ "isRlsEnabled": false,
21
+ "name": "instance_members",
22
+ "entityType": "tables",
23
+ "schema": "public"
24
+ },
25
+ {
26
+ "isRlsEnabled": false,
27
+ "name": "instances",
28
+ "entityType": "tables",
29
+ "schema": "public"
30
+ },
31
+ {
32
+ "isRlsEnabled": false,
33
+ "name": "local_instances",
34
+ "entityType": "tables",
35
+ "schema": "public"
36
+ },
37
+ {
38
+ "isRlsEnabled": false,
39
+ "name": "login_tokens",
40
+ "entityType": "tables",
41
+ "schema": "public"
42
+ },
43
+ {
44
+ "isRlsEnabled": false,
45
+ "name": "remote_instances",
46
+ "entityType": "tables",
47
+ "schema": "public"
48
+ },
49
+ {
50
+ "isRlsEnabled": false,
51
+ "name": "sessions",
52
+ "entityType": "tables",
53
+ "schema": "public"
54
+ },
55
+ {
56
+ "type": "uuid",
57
+ "typeSchema": null,
58
+ "notNull": true,
59
+ "dimensions": 0,
60
+ "default": null,
61
+ "generated": null,
62
+ "identity": null,
63
+ "name": "id",
64
+ "entityType": "columns",
65
+ "schema": "public",
66
+ "table": "accounts"
67
+ },
68
+ {
69
+ "type": "varchar(255)",
70
+ "typeSchema": null,
71
+ "notNull": true,
72
+ "dimensions": 0,
73
+ "default": null,
74
+ "generated": null,
75
+ "identity": null,
76
+ "name": "email",
77
+ "entityType": "columns",
78
+ "schema": "public",
79
+ "table": "accounts"
80
+ },
81
+ {
82
+ "type": "varchar(100)",
83
+ "typeSchema": null,
84
+ "notNull": true,
85
+ "dimensions": 0,
86
+ "default": null,
87
+ "generated": null,
88
+ "identity": null,
89
+ "name": "name",
90
+ "entityType": "columns",
91
+ "schema": "public",
92
+ "table": "accounts"
93
+ },
94
+ {
95
+ "type": "integer",
96
+ "typeSchema": null,
97
+ "notNull": true,
98
+ "dimensions": 0,
99
+ "default": "10",
100
+ "generated": null,
101
+ "identity": null,
102
+ "name": "max_instances",
103
+ "entityType": "columns",
104
+ "schema": "public",
105
+ "table": "accounts"
106
+ },
107
+ {
108
+ "type": "boolean",
109
+ "typeSchema": null,
110
+ "notNull": true,
111
+ "dimensions": 0,
112
+ "default": "false",
113
+ "generated": null,
114
+ "identity": null,
115
+ "name": "admin",
116
+ "entityType": "columns",
117
+ "schema": "public",
118
+ "table": "accounts"
119
+ },
120
+ {
121
+ "type": "timestamp with time zone",
122
+ "typeSchema": null,
123
+ "notNull": true,
124
+ "dimensions": 0,
125
+ "default": "CURRENT_TIMESTAMP",
126
+ "generated": null,
127
+ "identity": null,
128
+ "name": "created",
129
+ "entityType": "columns",
130
+ "schema": "public",
131
+ "table": "accounts"
132
+ },
133
+ {
134
+ "type": "uuid",
135
+ "typeSchema": null,
136
+ "notNull": true,
137
+ "dimensions": 0,
138
+ "default": null,
139
+ "generated": null,
140
+ "identity": null,
141
+ "name": "accountId",
142
+ "entityType": "columns",
143
+ "schema": "public",
144
+ "table": "instance_members"
145
+ },
146
+ {
147
+ "type": "uuid",
148
+ "typeSchema": null,
149
+ "notNull": true,
150
+ "dimensions": 0,
151
+ "default": null,
152
+ "generated": null,
153
+ "identity": null,
154
+ "name": "instanceId",
155
+ "entityType": "columns",
156
+ "schema": "public",
157
+ "table": "instance_members"
158
+ },
159
+ {
160
+ "type": "boolean",
161
+ "typeSchema": null,
162
+ "notNull": true,
163
+ "dimensions": 0,
164
+ "default": "false",
165
+ "generated": null,
166
+ "identity": null,
167
+ "name": "admin",
168
+ "entityType": "columns",
169
+ "schema": "public",
170
+ "table": "instance_members"
171
+ },
172
+ {
173
+ "type": "timestamp with time zone",
174
+ "typeSchema": null,
175
+ "notNull": false,
176
+ "dimensions": 0,
177
+ "default": null,
178
+ "generated": null,
179
+ "identity": null,
180
+ "name": "accepted",
181
+ "entityType": "columns",
182
+ "schema": "public",
183
+ "table": "instance_members"
184
+ },
185
+ {
186
+ "type": "timestamp with time zone",
187
+ "typeSchema": null,
188
+ "notNull": true,
189
+ "dimensions": 0,
190
+ "default": "CURRENT_TIMESTAMP",
191
+ "generated": null,
192
+ "identity": null,
193
+ "name": "created",
194
+ "entityType": "columns",
195
+ "schema": "public",
196
+ "table": "instance_members"
197
+ },
198
+ {
199
+ "type": "uuid",
200
+ "typeSchema": null,
201
+ "notNull": true,
202
+ "dimensions": 0,
203
+ "default": null,
204
+ "generated": null,
205
+ "identity": null,
206
+ "name": "id",
207
+ "entityType": "columns",
208
+ "schema": "public",
209
+ "table": "instances"
210
+ },
211
+ {
212
+ "type": "location",
213
+ "typeSchema": "public",
214
+ "notNull": true,
215
+ "dimensions": 0,
216
+ "default": null,
217
+ "generated": null,
218
+ "identity": null,
219
+ "name": "location",
220
+ "entityType": "columns",
221
+ "schema": "public",
222
+ "table": "instances"
223
+ },
224
+ {
225
+ "type": "timestamp with time zone",
226
+ "typeSchema": null,
227
+ "notNull": true,
228
+ "dimensions": 0,
229
+ "default": "CURRENT_TIMESTAMP",
230
+ "generated": null,
231
+ "identity": null,
232
+ "name": "created",
233
+ "entityType": "columns",
234
+ "schema": "public",
235
+ "table": "instances"
236
+ },
237
+ {
238
+ "type": "uuid",
239
+ "typeSchema": null,
240
+ "notNull": true,
241
+ "dimensions": 0,
242
+ "default": null,
243
+ "generated": null,
244
+ "identity": null,
245
+ "name": "id",
246
+ "entityType": "columns",
247
+ "schema": "public",
248
+ "table": "local_instances"
249
+ },
250
+ {
251
+ "type": "varchar(63)",
252
+ "typeSchema": null,
253
+ "notNull": true,
254
+ "dimensions": 0,
255
+ "default": null,
256
+ "generated": null,
257
+ "identity": null,
258
+ "name": "slug",
259
+ "entityType": "columns",
260
+ "schema": "public",
261
+ "table": "local_instances"
262
+ },
263
+ {
264
+ "type": "timestamp with time zone",
265
+ "typeSchema": null,
266
+ "notNull": true,
267
+ "dimensions": 0,
268
+ "default": null,
269
+ "generated": null,
270
+ "identity": null,
271
+ "name": "expires",
272
+ "entityType": "columns",
273
+ "schema": "public",
274
+ "table": "local_instances"
275
+ },
276
+ {
277
+ "type": "integer",
278
+ "typeSchema": null,
279
+ "notNull": true,
280
+ "dimensions": 0,
281
+ "default": "10",
282
+ "generated": null,
283
+ "identity": null,
284
+ "name": "maxActors",
285
+ "entityType": "columns",
286
+ "schema": "public",
287
+ "table": "local_instances"
288
+ },
289
+ {
290
+ "type": "uuid",
291
+ "typeSchema": null,
292
+ "notNull": true,
293
+ "dimensions": 0,
294
+ "default": null,
295
+ "generated": null,
296
+ "identity": null,
297
+ "name": "id",
298
+ "entityType": "columns",
299
+ "schema": "public",
300
+ "table": "login_tokens"
301
+ },
302
+ {
303
+ "type": "uuid",
304
+ "typeSchema": null,
305
+ "notNull": true,
306
+ "dimensions": 0,
307
+ "default": null,
308
+ "generated": null,
309
+ "identity": null,
310
+ "name": "accountId",
311
+ "entityType": "columns",
312
+ "schema": "public",
313
+ "table": "login_tokens"
314
+ },
315
+ {
316
+ "type": "varchar(64)",
317
+ "typeSchema": null,
318
+ "notNull": true,
319
+ "dimensions": 0,
320
+ "default": null,
321
+ "generated": null,
322
+ "identity": null,
323
+ "name": "tokenHash",
324
+ "entityType": "columns",
325
+ "schema": "public",
326
+ "table": "login_tokens"
327
+ },
328
+ {
329
+ "type": "varchar(64)",
330
+ "typeSchema": null,
331
+ "notNull": true,
332
+ "dimensions": 0,
333
+ "default": null,
334
+ "generated": null,
335
+ "identity": null,
336
+ "name": "codeHash",
337
+ "entityType": "columns",
338
+ "schema": "public",
339
+ "table": "login_tokens"
340
+ },
341
+ {
342
+ "type": "timestamp with time zone",
343
+ "typeSchema": null,
344
+ "notNull": true,
345
+ "dimensions": 0,
346
+ "default": "CURRENT_TIMESTAMP",
347
+ "generated": null,
348
+ "identity": null,
349
+ "name": "created",
350
+ "entityType": "columns",
351
+ "schema": "public",
352
+ "table": "login_tokens"
353
+ },
354
+ {
355
+ "type": "timestamp with time zone",
356
+ "typeSchema": null,
357
+ "notNull": true,
358
+ "dimensions": 0,
359
+ "default": "CURRENT_TIMESTAMP + INTERVAL '15 minutes'",
360
+ "generated": null,
361
+ "identity": null,
362
+ "name": "expires",
363
+ "entityType": "columns",
364
+ "schema": "public",
365
+ "table": "login_tokens"
366
+ },
367
+ {
368
+ "type": "timestamp with time zone",
369
+ "typeSchema": null,
370
+ "notNull": false,
371
+ "dimensions": 0,
372
+ "default": null,
373
+ "generated": null,
374
+ "identity": null,
375
+ "name": "consumed",
376
+ "entityType": "columns",
377
+ "schema": "public",
378
+ "table": "login_tokens"
379
+ },
380
+ {
381
+ "type": "uuid",
382
+ "typeSchema": null,
383
+ "notNull": true,
384
+ "dimensions": 0,
385
+ "default": null,
386
+ "generated": null,
387
+ "identity": null,
388
+ "name": "id",
389
+ "entityType": "columns",
390
+ "schema": "public",
391
+ "table": "remote_instances"
392
+ },
393
+ {
394
+ "type": "varchar(100)",
395
+ "typeSchema": null,
396
+ "notNull": true,
397
+ "dimensions": 0,
398
+ "default": null,
399
+ "generated": null,
400
+ "identity": null,
401
+ "name": "host",
402
+ "entityType": "columns",
403
+ "schema": "public",
404
+ "table": "remote_instances"
405
+ },
406
+ {
407
+ "type": "text",
408
+ "typeSchema": null,
409
+ "notNull": false,
410
+ "dimensions": 0,
411
+ "default": null,
412
+ "generated": null,
413
+ "identity": null,
414
+ "name": "nodeInfoUrl",
415
+ "entityType": "columns",
416
+ "schema": "public",
417
+ "table": "remote_instances"
418
+ },
419
+ {
420
+ "type": "text",
421
+ "typeSchema": null,
422
+ "notNull": false,
423
+ "dimensions": 0,
424
+ "default": null,
425
+ "generated": null,
426
+ "identity": null,
427
+ "name": "software",
428
+ "entityType": "columns",
429
+ "schema": "public",
430
+ "table": "remote_instances"
431
+ },
432
+ {
433
+ "type": "text",
434
+ "typeSchema": null,
435
+ "notNull": false,
436
+ "dimensions": 0,
437
+ "default": null,
438
+ "generated": null,
439
+ "identity": null,
440
+ "name": "softwareVersion",
441
+ "entityType": "columns",
442
+ "schema": "public",
443
+ "table": "remote_instances"
444
+ },
445
+ {
446
+ "type": "uuid",
447
+ "typeSchema": null,
448
+ "notNull": true,
449
+ "dimensions": 0,
450
+ "default": null,
451
+ "generated": null,
452
+ "identity": null,
453
+ "name": "id",
454
+ "entityType": "columns",
455
+ "schema": "public",
456
+ "table": "sessions"
457
+ },
458
+ {
459
+ "type": "uuid",
460
+ "typeSchema": null,
461
+ "notNull": true,
462
+ "dimensions": 0,
463
+ "default": null,
464
+ "generated": null,
465
+ "identity": null,
466
+ "name": "accountId",
467
+ "entityType": "columns",
468
+ "schema": "public",
469
+ "table": "sessions"
470
+ },
471
+ {
472
+ "type": "varchar(64)",
473
+ "typeSchema": null,
474
+ "notNull": true,
475
+ "dimensions": 0,
476
+ "default": null,
477
+ "generated": null,
478
+ "identity": null,
479
+ "name": "tokenHash",
480
+ "entityType": "columns",
481
+ "schema": "public",
482
+ "table": "sessions"
483
+ },
484
+ {
485
+ "type": "timestamp with time zone",
486
+ "typeSchema": null,
487
+ "notNull": true,
488
+ "dimensions": 0,
489
+ "default": "CURRENT_TIMESTAMP",
490
+ "generated": null,
491
+ "identity": null,
492
+ "name": "created",
493
+ "entityType": "columns",
494
+ "schema": "public",
495
+ "table": "sessions"
496
+ },
497
+ {
498
+ "type": "timestamp with time zone",
499
+ "typeSchema": null,
500
+ "notNull": true,
501
+ "dimensions": 0,
502
+ "default": "CURRENT_TIMESTAMP + INTERVAL '1 month'",
503
+ "generated": null,
504
+ "identity": null,
505
+ "name": "expires",
506
+ "entityType": "columns",
507
+ "schema": "public",
508
+ "table": "sessions"
509
+ },
510
+ {
511
+ "nameExplicit": false,
512
+ "columns": [
513
+ {
514
+ "value": "accountId",
515
+ "isExpression": false,
516
+ "asc": true,
517
+ "nullsFirst": false,
518
+ "opclass": null
519
+ }
520
+ ],
521
+ "isUnique": false,
522
+ "where": "\"accepted\" IS NOT NULL",
523
+ "with": "",
524
+ "method": "btree",
525
+ "concurrently": false,
526
+ "name": "instance_members_accountId_index",
527
+ "entityType": "indexes",
528
+ "schema": "public",
529
+ "table": "instance_members"
530
+ },
531
+ {
532
+ "nameExplicit": false,
533
+ "columns": [
534
+ {
535
+ "value": "instanceId",
536
+ "isExpression": false,
537
+ "asc": true,
538
+ "nullsFirst": false,
539
+ "opclass": null
540
+ }
541
+ ],
542
+ "isUnique": false,
543
+ "where": "\"accepted\" IS NOT NULL",
544
+ "with": "",
545
+ "method": "btree",
546
+ "concurrently": false,
547
+ "name": "instance_members_instanceId_index",
548
+ "entityType": "indexes",
549
+ "schema": "public",
550
+ "table": "instance_members"
551
+ },
552
+ {
553
+ "nameExplicit": false,
554
+ "columns": ["accountId"],
555
+ "schemaTo": "public",
556
+ "tableTo": "accounts",
557
+ "columnsTo": ["id"],
558
+ "onUpdate": "NO ACTION",
559
+ "onDelete": "NO ACTION",
560
+ "name": "instance_members_accountId_accounts_id_fkey",
561
+ "entityType": "fks",
562
+ "schema": "public",
563
+ "table": "instance_members"
564
+ },
565
+ {
566
+ "nameExplicit": false,
567
+ "columns": ["instanceId"],
568
+ "schemaTo": "public",
569
+ "tableTo": "instances",
570
+ "columnsTo": ["id"],
571
+ "onUpdate": "NO ACTION",
572
+ "onDelete": "NO ACTION",
573
+ "name": "instance_members_instanceId_instances_id_fkey",
574
+ "entityType": "fks",
575
+ "schema": "public",
576
+ "table": "instance_members"
577
+ },
578
+ {
579
+ "nameExplicit": false,
580
+ "columns": ["id"],
581
+ "schemaTo": "public",
582
+ "tableTo": "instances",
583
+ "columnsTo": ["id"],
584
+ "onUpdate": "NO ACTION",
585
+ "onDelete": "CASCADE",
586
+ "name": "local_instances_id_instances_id_fkey",
587
+ "entityType": "fks",
588
+ "schema": "public",
589
+ "table": "local_instances"
590
+ },
591
+ {
592
+ "nameExplicit": false,
593
+ "columns": ["accountId"],
594
+ "schemaTo": "public",
595
+ "tableTo": "accounts",
596
+ "columnsTo": ["id"],
597
+ "onUpdate": "NO ACTION",
598
+ "onDelete": "CASCADE",
599
+ "name": "login_tokens_accountId_accounts_id_fkey",
600
+ "entityType": "fks",
601
+ "schema": "public",
602
+ "table": "login_tokens"
603
+ },
604
+ {
605
+ "nameExplicit": false,
606
+ "columns": ["id"],
607
+ "schemaTo": "public",
608
+ "tableTo": "instances",
609
+ "columnsTo": ["id"],
610
+ "onUpdate": "NO ACTION",
611
+ "onDelete": "CASCADE",
612
+ "name": "remote_instances_id_instances_id_fkey",
613
+ "entityType": "fks",
614
+ "schema": "public",
615
+ "table": "remote_instances"
616
+ },
617
+ {
618
+ "nameExplicit": false,
619
+ "columns": ["accountId"],
620
+ "schemaTo": "public",
621
+ "tableTo": "accounts",
622
+ "columnsTo": ["id"],
623
+ "onUpdate": "NO ACTION",
624
+ "onDelete": "CASCADE",
625
+ "name": "sessions_accountId_accounts_id_fkey",
626
+ "entityType": "fks",
627
+ "schema": "public",
628
+ "table": "sessions"
629
+ },
630
+ {
631
+ "columns": ["instanceId", "accountId"],
632
+ "nameExplicit": false,
633
+ "name": "instance_members_pkey",
634
+ "entityType": "pks",
635
+ "schema": "public",
636
+ "table": "instance_members"
637
+ },
638
+ {
639
+ "columns": ["id"],
640
+ "nameExplicit": false,
641
+ "name": "accounts_pkey",
642
+ "schema": "public",
643
+ "table": "accounts",
644
+ "entityType": "pks"
645
+ },
646
+ {
647
+ "columns": ["id"],
648
+ "nameExplicit": false,
649
+ "name": "instances_pkey",
650
+ "schema": "public",
651
+ "table": "instances",
652
+ "entityType": "pks"
653
+ },
654
+ {
655
+ "columns": ["id"],
656
+ "nameExplicit": false,
657
+ "name": "local_instances_pkey",
658
+ "schema": "public",
659
+ "table": "local_instances",
660
+ "entityType": "pks"
661
+ },
662
+ {
663
+ "columns": ["id"],
664
+ "nameExplicit": false,
665
+ "name": "login_tokens_pkey",
666
+ "schema": "public",
667
+ "table": "login_tokens",
668
+ "entityType": "pks"
669
+ },
670
+ {
671
+ "columns": ["id"],
672
+ "nameExplicit": false,
673
+ "name": "remote_instances_pkey",
674
+ "schema": "public",
675
+ "table": "remote_instances",
676
+ "entityType": "pks"
677
+ },
678
+ {
679
+ "columns": ["id"],
680
+ "nameExplicit": false,
681
+ "name": "sessions_pkey",
682
+ "schema": "public",
683
+ "table": "sessions",
684
+ "entityType": "pks"
685
+ },
686
+ {
687
+ "nameExplicit": false,
688
+ "columns": ["email"],
689
+ "nullsNotDistinct": false,
690
+ "name": "accounts_email_key",
691
+ "schema": "public",
692
+ "table": "accounts",
693
+ "entityType": "uniques"
694
+ },
695
+ {
696
+ "nameExplicit": false,
697
+ "columns": ["slug"],
698
+ "nullsNotDistinct": false,
699
+ "name": "local_instances_slug_key",
700
+ "schema": "public",
701
+ "table": "local_instances",
702
+ "entityType": "uniques"
703
+ },
704
+ {
705
+ "nameExplicit": false,
706
+ "columns": ["tokenHash"],
707
+ "nullsNotDistinct": false,
708
+ "name": "login_tokens_tokenHash_key",
709
+ "schema": "public",
710
+ "table": "login_tokens",
711
+ "entityType": "uniques"
712
+ },
713
+ {
714
+ "nameExplicit": false,
715
+ "columns": ["host"],
716
+ "nullsNotDistinct": false,
717
+ "name": "remote_instances_host_key",
718
+ "schema": "public",
719
+ "table": "remote_instances",
720
+ "entityType": "uniques"
721
+ },
722
+ {
723
+ "nameExplicit": false,
724
+ "columns": ["tokenHash"],
725
+ "nullsNotDistinct": false,
726
+ "name": "sessions_tokenHash_key",
727
+ "schema": "public",
728
+ "table": "sessions",
729
+ "entityType": "uniques"
730
+ },
731
+ {
732
+ "value": "\"email\" ~ '^[^@]+@[^@]+\\.[^@]+$'",
733
+ "name": "accounts_email_check",
734
+ "entityType": "checks",
735
+ "schema": "public",
736
+ "table": "accounts"
737
+ },
738
+ {
739
+ "value": "\"max_instances\" >= 0",
740
+ "name": "accounts_max_instances_check",
741
+ "entityType": "checks",
742
+ "schema": "public",
743
+ "table": "accounts"
744
+ },
745
+ {
746
+ "value": "trim(both from \"name\") <> ''",
747
+ "name": "accounts_name_check",
748
+ "entityType": "checks",
749
+ "schema": "public",
750
+ "table": "accounts"
751
+ },
752
+ {
753
+ "value": "\"slug\" ~ '^[a-z0-9-]{4,63}$'",
754
+ "name": "instances_slug_check",
755
+ "entityType": "checks",
756
+ "schema": "public",
757
+ "table": "local_instances"
758
+ },
759
+ {
760
+ "value": "\"maxActors\" > 0",
761
+ "name": "instances_max_actors_check",
762
+ "entityType": "checks",
763
+ "schema": "public",
764
+ "table": "local_instances"
765
+ }
766
+ ],
767
+ "renames": []
768
+ }