scriptorium 0.0.1 → 0.2.1

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 (102) hide show
  1. package/README.md +31 -8
  2. package/bin/scriptorium.js +1 -1
  3. package/build/client/assets/_layout-4p0zIumj.js +1 -0
  4. package/build/client/assets/_layout-CG4jvKXd.js +1 -0
  5. package/build/client/assets/_layout-DUvno75Q.js +1 -0
  6. package/build/client/assets/_layout-tj841ZFj.js +3 -0
  7. package/build/client/assets/auth-shell-CM4lzbUg.js +1 -0
  8. package/build/client/assets/breadcrumbs-CLMk50vh.js +1 -0
  9. package/build/client/assets/{chunk-EPOLDU6W-B-j6nV8T.js → chunk-EPOLDU6W-BT1NqV1s.js} +11 -11
  10. package/build/client/assets/confirm-passkey-sqNHrDN7.js +1 -0
  11. package/build/client/assets/document-title-CaFCBnQ-.js +1 -0
  12. package/build/client/assets/entry.client-B2qwDNf_.js +13 -0
  13. package/build/client/assets/events-BGAz2o24.js +39 -0
  14. package/build/client/assets/files-247Zppti.js +1 -0
  15. package/build/client/assets/files-COflIyot.js +1 -0
  16. package/build/client/assets/files-browser-DKxCza7c.js +1 -0
  17. package/build/client/assets/files.browse-BBMm6lgA.js +1 -0
  18. package/build/client/assets/files.browse-Dq0nnEAB.js +1 -0
  19. package/build/client/assets/index-BumTGMZF.js +1 -0
  20. package/build/client/assets/index-CLO24mr0.js +1 -0
  21. package/build/client/assets/index-D-coH8u1.js +34 -0
  22. package/build/client/assets/index-DxuBmPz-.js +1 -0
  23. package/build/client/assets/jsx-runtime-u17CrQMm.js +1 -0
  24. package/build/client/assets/login-SMI1sC8T.js +1 -0
  25. package/build/client/assets/manifest-27a6038b.js +1 -0
  26. package/build/client/assets/passkeys-Cg-Qx1Gj.js +1 -0
  27. package/build/client/assets/project-events-provider-Cz1h_7Z0.js +1 -0
  28. package/build/client/assets/project-route-Cqnw3iG7.js +1 -0
  29. package/build/client/assets/projects-CcOVpbnV.js +1 -0
  30. package/build/client/assets/projects._projectId.proxy._-l0sNRNKZ.js +1 -0
  31. package/build/client/assets/projects.new-BIAajDmU.js +1 -0
  32. package/build/client/assets/register-CwUWzMvC.js +1 -0
  33. package/build/client/assets/review-browser-CkLIZsiU.js +1 -0
  34. package/build/client/assets/review._mode-CjiM88Yw.js +1 -0
  35. package/build/client/assets/review.uncommitted-DnCOhh-l.js +1 -0
  36. package/build/client/assets/root-DtlaHd7Y.js +1 -0
  37. package/build/client/assets/root-h1ZnuAzH.css +1 -0
  38. package/build/client/assets/{scroll-indicator-CFaTM_rb.js → scroll-indicator-DxagqbkL.js} +8 -8
  39. package/build/client/assets/scrollable-layout-CR2OL0dM.js +1 -0
  40. package/build/client/assets/session-route-Cd_9l4G7.js +1 -0
  41. package/build/client/assets/sessions-provider-xySz_P7U.js +1 -0
  42. package/build/client/assets/settings-CYavUXKt.js +1 -0
  43. package/build/client/assets/sidebar-BpDMNa9u.js +1 -0
  44. package/build/client/assets/use-double-check-BJPDnzvf.js +1 -0
  45. package/build/runtime/app/lib/runtime-config/cache.server.js +15 -0
  46. package/build/runtime/app/lib/runtime-config/cli.server.js +79 -0
  47. package/build/runtime/app/lib/runtime-config/docs.server.js +170 -0
  48. package/build/runtime/app/lib/runtime-config/loader.server.js +69 -0
  49. package/build/runtime/app/lib/runtime-config/schema.server.js +128 -0
  50. package/build/runtime/server/index.js +176 -0
  51. package/build/server/index.js +8989 -4661
  52. package/docs/config.md +12 -8
  53. package/drizzle/20260324172031_curved_junta/migration.sql +20 -0
  54. package/drizzle/20260324172031_curved_junta/snapshot.json +684 -0
  55. package/drizzle/20260327233106_model_usage/migration.sql +15 -0
  56. package/drizzle/20260327233106_model_usage/snapshot.json +830 -0
  57. package/drizzle/20260331000000_projects_and_model_usages/migration.sql +41 -0
  58. package/package.json +18 -5
  59. package/build/client/assets/_layout-D-bxuQBW.js +0 -1
  60. package/build/client/assets/_layout-D2eOWFrG.js +0 -1
  61. package/build/client/assets/_layout-D4m0RbUC.js +0 -1
  62. package/build/client/assets/_layout-DggtTDZp.js +0 -1
  63. package/build/client/assets/auth-shell-FEL5QDuP.js +0 -1
  64. package/build/client/assets/confirm-passkey-ntLsS7_k.js +0 -1
  65. package/build/client/assets/entry.client-BkscxSA6.js +0 -5
  66. package/build/client/assets/file-list-DBDZbrBp.js +0 -1
  67. package/build/client/assets/files-Bzkr7-i7.js +0 -1
  68. package/build/client/assets/files-browser-KNurSsen.js +0 -1
  69. package/build/client/assets/files-cnv1kfgp.js +0 -1
  70. package/build/client/assets/files.browse-9p4xl9MV.js +0 -1
  71. package/build/client/assets/git-CjSY0eSC.js +0 -1
  72. package/build/client/assets/git-T0lLjMNd.js +0 -1
  73. package/build/client/assets/git-browser-DwSOY6QN.js +0 -1
  74. package/build/client/assets/iconify-BDcX0yw8.js +0 -1
  75. package/build/client/assets/index-8zQ7Fizv.js +0 -9
  76. package/build/client/assets/index-BUN6tnpl.js +0 -1
  77. package/build/client/assets/index-BlNoCKAt.js +0 -1
  78. package/build/client/assets/index-g2QB9BbT.js +0 -1
  79. package/build/client/assets/instance-events-provider-DTYnvumj.js +0 -39
  80. package/build/client/assets/instance-route-C25LRYYo.js +0 -1
  81. package/build/client/assets/instances-CzjXhR3c.js +0 -1
  82. package/build/client/assets/instances._instanceId.sessions._sessionId.test-COZIMxji.js +0 -208
  83. package/build/client/assets/instances.new-BZi5xwEV.js +0 -1
  84. package/build/client/assets/login-Bwt79t7_.js +0 -1
  85. package/build/client/assets/magic-string.es-DjU5CGuV.js +0 -10
  86. package/build/client/assets/manifest-3c01c628.js +0 -1
  87. package/build/client/assets/message-card-DJ5C3WNp.js +0 -34
  88. package/build/client/assets/passkeys-DpNQs4bn.js +0 -1
  89. package/build/client/assets/register-DXPj5RLZ.js +0 -1
  90. package/build/client/assets/root-DxD-Skic.css +0 -1
  91. package/build/client/assets/root-DxyfhNRI.js +0 -1
  92. package/build/client/assets/scrollable-layout-CS-vPTNM.js +0 -1
  93. package/build/client/assets/session-route-oxi4s_Qg.js +0 -1
  94. package/build/client/assets/sessions-provider-D1t07kir.js +0 -1
  95. package/build/client/assets/settings-CameSNIM.js +0 -1
  96. package/build/client/assets/sidebar-DRhB33rT.js +0 -1
  97. package/build/client/assets/use-double-check-CbbarqDt.js +0 -1
  98. package/build/runtime/app/lib/runtime-config.server.js +0 -422
  99. package/build/runtime/cli/scriptorium.js +0 -21
  100. package/build/runtime/cli/serve.js +0 -101
  101. /package/build/client/assets/{message-card-BclR_JqA.css → index-BclR_JqA.css} +0 -0
  102. /package/build/client/assets/{instances._instanceId.proxy._-l0sNRNKZ.js → projects._projectId.file-references.resolve-l0sNRNKZ.js} +0 -0
@@ -0,0 +1,830 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "id": "52a279ad-055a-4060-bad2-10cc1eff5794",
5
+ "prevIds": [
6
+ "e48c878d-e828-475d-9ea7-a7ae2e555f42"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "name": "activation_codes",
11
+ "entityType": "tables"
12
+ },
13
+ {
14
+ "name": "authentication_challenges",
15
+ "entityType": "tables"
16
+ },
17
+ {
18
+ "name": "instances",
19
+ "entityType": "tables"
20
+ },
21
+ {
22
+ "name": "model_usages",
23
+ "entityType": "tables"
24
+ },
25
+ {
26
+ "name": "passkeys",
27
+ "entityType": "tables"
28
+ },
29
+ {
30
+ "name": "registration_challenges",
31
+ "entityType": "tables"
32
+ },
33
+ {
34
+ "name": "session_read_statuses",
35
+ "entityType": "tables"
36
+ },
37
+ {
38
+ "name": "sessions",
39
+ "entityType": "tables"
40
+ },
41
+ {
42
+ "type": "text",
43
+ "notNull": false,
44
+ "autoincrement": false,
45
+ "default": null,
46
+ "generated": null,
47
+ "name": "id",
48
+ "entityType": "columns",
49
+ "table": "activation_codes"
50
+ },
51
+ {
52
+ "type": "text",
53
+ "notNull": true,
54
+ "autoincrement": false,
55
+ "default": null,
56
+ "generated": null,
57
+ "name": "passkey_id",
58
+ "entityType": "columns",
59
+ "table": "activation_codes"
60
+ },
61
+ {
62
+ "type": "text",
63
+ "notNull": true,
64
+ "autoincrement": false,
65
+ "default": null,
66
+ "generated": null,
67
+ "name": "code_hash",
68
+ "entityType": "columns",
69
+ "table": "activation_codes"
70
+ },
71
+ {
72
+ "type": "text",
73
+ "notNull": true,
74
+ "autoincrement": false,
75
+ "default": null,
76
+ "generated": null,
77
+ "name": "expires_at",
78
+ "entityType": "columns",
79
+ "table": "activation_codes"
80
+ },
81
+ {
82
+ "type": "text",
83
+ "notNull": true,
84
+ "autoincrement": false,
85
+ "default": null,
86
+ "generated": null,
87
+ "name": "created_at",
88
+ "entityType": "columns",
89
+ "table": "activation_codes"
90
+ },
91
+ {
92
+ "type": "text",
93
+ "notNull": false,
94
+ "autoincrement": false,
95
+ "default": null,
96
+ "generated": null,
97
+ "name": "consumed_at",
98
+ "entityType": "columns",
99
+ "table": "activation_codes"
100
+ },
101
+ {
102
+ "type": "integer",
103
+ "notNull": true,
104
+ "autoincrement": false,
105
+ "default": "0",
106
+ "generated": null,
107
+ "name": "attempts",
108
+ "entityType": "columns",
109
+ "table": "activation_codes"
110
+ },
111
+ {
112
+ "type": "text",
113
+ "notNull": false,
114
+ "autoincrement": false,
115
+ "default": null,
116
+ "generated": null,
117
+ "name": "id",
118
+ "entityType": "columns",
119
+ "table": "authentication_challenges"
120
+ },
121
+ {
122
+ "type": "text",
123
+ "notNull": true,
124
+ "autoincrement": false,
125
+ "default": null,
126
+ "generated": null,
127
+ "name": "challenge",
128
+ "entityType": "columns",
129
+ "table": "authentication_challenges"
130
+ },
131
+ {
132
+ "type": "text",
133
+ "notNull": true,
134
+ "autoincrement": false,
135
+ "default": null,
136
+ "generated": null,
137
+ "name": "expires_at",
138
+ "entityType": "columns",
139
+ "table": "authentication_challenges"
140
+ },
141
+ {
142
+ "type": "text",
143
+ "notNull": true,
144
+ "autoincrement": false,
145
+ "default": null,
146
+ "generated": null,
147
+ "name": "created_at",
148
+ "entityType": "columns",
149
+ "table": "authentication_challenges"
150
+ },
151
+ {
152
+ "type": "text",
153
+ "notNull": false,
154
+ "autoincrement": false,
155
+ "default": null,
156
+ "generated": null,
157
+ "name": "id",
158
+ "entityType": "columns",
159
+ "table": "instances"
160
+ },
161
+ {
162
+ "type": "text",
163
+ "notNull": true,
164
+ "autoincrement": false,
165
+ "default": null,
166
+ "generated": null,
167
+ "name": "name",
168
+ "entityType": "columns",
169
+ "table": "instances"
170
+ },
171
+ {
172
+ "type": "text",
173
+ "notNull": true,
174
+ "autoincrement": false,
175
+ "default": null,
176
+ "generated": null,
177
+ "name": "directory",
178
+ "entityType": "columns",
179
+ "table": "instances"
180
+ },
181
+ {
182
+ "type": "integer",
183
+ "notNull": true,
184
+ "autoincrement": false,
185
+ "default": null,
186
+ "generated": null,
187
+ "name": "port",
188
+ "entityType": "columns",
189
+ "table": "instances"
190
+ },
191
+ {
192
+ "type": "text",
193
+ "notNull": true,
194
+ "autoincrement": false,
195
+ "default": null,
196
+ "generated": null,
197
+ "name": "status",
198
+ "entityType": "columns",
199
+ "table": "instances"
200
+ },
201
+ {
202
+ "type": "text",
203
+ "notNull": true,
204
+ "autoincrement": false,
205
+ "default": null,
206
+ "generated": null,
207
+ "name": "created_at",
208
+ "entityType": "columns",
209
+ "table": "instances"
210
+ },
211
+ {
212
+ "type": "text",
213
+ "notNull": true,
214
+ "autoincrement": false,
215
+ "default": null,
216
+ "generated": null,
217
+ "name": "updated_at",
218
+ "entityType": "columns",
219
+ "table": "instances"
220
+ },
221
+ {
222
+ "type": "text",
223
+ "notNull": false,
224
+ "autoincrement": false,
225
+ "default": null,
226
+ "generated": null,
227
+ "name": "last_started_at",
228
+ "entityType": "columns",
229
+ "table": "instances"
230
+ },
231
+ {
232
+ "type": "text",
233
+ "notNull": false,
234
+ "autoincrement": false,
235
+ "default": null,
236
+ "generated": null,
237
+ "name": "last_exit_at",
238
+ "entityType": "columns",
239
+ "table": "instances"
240
+ },
241
+ {
242
+ "type": "text",
243
+ "notNull": false,
244
+ "autoincrement": false,
245
+ "default": null,
246
+ "generated": null,
247
+ "name": "last_error",
248
+ "entityType": "columns",
249
+ "table": "instances"
250
+ },
251
+ {
252
+ "type": "text",
253
+ "notNull": true,
254
+ "autoincrement": false,
255
+ "default": null,
256
+ "generated": null,
257
+ "name": "instance_id",
258
+ "entityType": "columns",
259
+ "table": "model_usages"
260
+ },
261
+ {
262
+ "type": "text",
263
+ "notNull": true,
264
+ "autoincrement": false,
265
+ "default": null,
266
+ "generated": null,
267
+ "name": "session_id",
268
+ "entityType": "columns",
269
+ "table": "model_usages"
270
+ },
271
+ {
272
+ "type": "text",
273
+ "notNull": true,
274
+ "autoincrement": false,
275
+ "default": null,
276
+ "generated": null,
277
+ "name": "provider_id",
278
+ "entityType": "columns",
279
+ "table": "model_usages"
280
+ },
281
+ {
282
+ "type": "text",
283
+ "notNull": true,
284
+ "autoincrement": false,
285
+ "default": null,
286
+ "generated": null,
287
+ "name": "model_id",
288
+ "entityType": "columns",
289
+ "table": "model_usages"
290
+ },
291
+ {
292
+ "type": "text",
293
+ "notNull": false,
294
+ "autoincrement": false,
295
+ "default": null,
296
+ "generated": null,
297
+ "name": "variant",
298
+ "entityType": "columns",
299
+ "table": "model_usages"
300
+ },
301
+ {
302
+ "type": "text",
303
+ "notNull": true,
304
+ "autoincrement": false,
305
+ "default": null,
306
+ "generated": null,
307
+ "name": "used_at",
308
+ "entityType": "columns",
309
+ "table": "model_usages"
310
+ },
311
+ {
312
+ "type": "text",
313
+ "notNull": true,
314
+ "autoincrement": false,
315
+ "default": null,
316
+ "generated": null,
317
+ "name": "created_at",
318
+ "entityType": "columns",
319
+ "table": "model_usages"
320
+ },
321
+ {
322
+ "type": "text",
323
+ "notNull": true,
324
+ "autoincrement": false,
325
+ "default": null,
326
+ "generated": null,
327
+ "name": "updated_at",
328
+ "entityType": "columns",
329
+ "table": "model_usages"
330
+ },
331
+ {
332
+ "type": "text",
333
+ "notNull": false,
334
+ "autoincrement": false,
335
+ "default": null,
336
+ "generated": null,
337
+ "name": "id",
338
+ "entityType": "columns",
339
+ "table": "passkeys"
340
+ },
341
+ {
342
+ "type": "text",
343
+ "notNull": true,
344
+ "autoincrement": false,
345
+ "default": null,
346
+ "generated": null,
347
+ "name": "webauthn_user_id",
348
+ "entityType": "columns",
349
+ "table": "passkeys"
350
+ },
351
+ {
352
+ "type": "blob",
353
+ "notNull": true,
354
+ "autoincrement": false,
355
+ "default": null,
356
+ "generated": null,
357
+ "name": "public_key",
358
+ "entityType": "columns",
359
+ "table": "passkeys"
360
+ },
361
+ {
362
+ "type": "integer",
363
+ "notNull": true,
364
+ "autoincrement": false,
365
+ "default": null,
366
+ "generated": null,
367
+ "name": "counter",
368
+ "entityType": "columns",
369
+ "table": "passkeys"
370
+ },
371
+ {
372
+ "type": "text",
373
+ "notNull": true,
374
+ "autoincrement": false,
375
+ "default": null,
376
+ "generated": null,
377
+ "name": "device_type",
378
+ "entityType": "columns",
379
+ "table": "passkeys"
380
+ },
381
+ {
382
+ "type": "integer",
383
+ "notNull": true,
384
+ "autoincrement": false,
385
+ "default": null,
386
+ "generated": null,
387
+ "name": "backed_up",
388
+ "entityType": "columns",
389
+ "table": "passkeys"
390
+ },
391
+ {
392
+ "type": "text",
393
+ "notNull": true,
394
+ "autoincrement": false,
395
+ "default": null,
396
+ "generated": null,
397
+ "name": "transports_json",
398
+ "entityType": "columns",
399
+ "table": "passkeys"
400
+ },
401
+ {
402
+ "type": "text",
403
+ "notNull": true,
404
+ "autoincrement": false,
405
+ "default": null,
406
+ "generated": null,
407
+ "name": "label",
408
+ "entityType": "columns",
409
+ "table": "passkeys"
410
+ },
411
+ {
412
+ "type": "text",
413
+ "notNull": true,
414
+ "autoincrement": false,
415
+ "default": null,
416
+ "generated": null,
417
+ "name": "status",
418
+ "entityType": "columns",
419
+ "table": "passkeys"
420
+ },
421
+ {
422
+ "type": "text",
423
+ "notNull": true,
424
+ "autoincrement": false,
425
+ "default": null,
426
+ "generated": null,
427
+ "name": "created_at",
428
+ "entityType": "columns",
429
+ "table": "passkeys"
430
+ },
431
+ {
432
+ "type": "text",
433
+ "notNull": false,
434
+ "autoincrement": false,
435
+ "default": null,
436
+ "generated": null,
437
+ "name": "activated_at",
438
+ "entityType": "columns",
439
+ "table": "passkeys"
440
+ },
441
+ {
442
+ "type": "text",
443
+ "notNull": false,
444
+ "autoincrement": false,
445
+ "default": null,
446
+ "generated": null,
447
+ "name": "revoked_at",
448
+ "entityType": "columns",
449
+ "table": "passkeys"
450
+ },
451
+ {
452
+ "type": "text",
453
+ "notNull": false,
454
+ "autoincrement": false,
455
+ "default": null,
456
+ "generated": null,
457
+ "name": "id",
458
+ "entityType": "columns",
459
+ "table": "registration_challenges"
460
+ },
461
+ {
462
+ "type": "text",
463
+ "notNull": true,
464
+ "autoincrement": false,
465
+ "default": null,
466
+ "generated": null,
467
+ "name": "challenge",
468
+ "entityType": "columns",
469
+ "table": "registration_challenges"
470
+ },
471
+ {
472
+ "type": "text",
473
+ "notNull": true,
474
+ "autoincrement": false,
475
+ "default": null,
476
+ "generated": null,
477
+ "name": "label",
478
+ "entityType": "columns",
479
+ "table": "registration_challenges"
480
+ },
481
+ {
482
+ "type": "text",
483
+ "notNull": true,
484
+ "autoincrement": false,
485
+ "default": null,
486
+ "generated": null,
487
+ "name": "expires_at",
488
+ "entityType": "columns",
489
+ "table": "registration_challenges"
490
+ },
491
+ {
492
+ "type": "text",
493
+ "notNull": true,
494
+ "autoincrement": false,
495
+ "default": null,
496
+ "generated": null,
497
+ "name": "created_at",
498
+ "entityType": "columns",
499
+ "table": "registration_challenges"
500
+ },
501
+ {
502
+ "type": "text",
503
+ "notNull": true,
504
+ "autoincrement": false,
505
+ "default": null,
506
+ "generated": null,
507
+ "name": "session_id",
508
+ "entityType": "columns",
509
+ "table": "session_read_statuses"
510
+ },
511
+ {
512
+ "type": "text",
513
+ "notNull": true,
514
+ "autoincrement": false,
515
+ "default": null,
516
+ "generated": null,
517
+ "name": "last_read_at",
518
+ "entityType": "columns",
519
+ "table": "session_read_statuses"
520
+ },
521
+ {
522
+ "type": "text",
523
+ "notNull": true,
524
+ "autoincrement": false,
525
+ "default": null,
526
+ "generated": null,
527
+ "name": "created_at",
528
+ "entityType": "columns",
529
+ "table": "session_read_statuses"
530
+ },
531
+ {
532
+ "type": "text",
533
+ "notNull": true,
534
+ "autoincrement": false,
535
+ "default": null,
536
+ "generated": null,
537
+ "name": "updated_at",
538
+ "entityType": "columns",
539
+ "table": "session_read_statuses"
540
+ },
541
+ {
542
+ "type": "text",
543
+ "notNull": false,
544
+ "autoincrement": false,
545
+ "default": null,
546
+ "generated": null,
547
+ "name": "id",
548
+ "entityType": "columns",
549
+ "table": "sessions"
550
+ },
551
+ {
552
+ "type": "text",
553
+ "notNull": true,
554
+ "autoincrement": false,
555
+ "default": null,
556
+ "generated": null,
557
+ "name": "passkey_id",
558
+ "entityType": "columns",
559
+ "table": "sessions"
560
+ },
561
+ {
562
+ "type": "text",
563
+ "notNull": true,
564
+ "autoincrement": false,
565
+ "default": null,
566
+ "generated": null,
567
+ "name": "created_at",
568
+ "entityType": "columns",
569
+ "table": "sessions"
570
+ },
571
+ {
572
+ "type": "text",
573
+ "notNull": true,
574
+ "autoincrement": false,
575
+ "default": null,
576
+ "generated": null,
577
+ "name": "expires_at",
578
+ "entityType": "columns",
579
+ "table": "sessions"
580
+ },
581
+ {
582
+ "type": "text",
583
+ "notNull": true,
584
+ "autoincrement": false,
585
+ "default": null,
586
+ "generated": null,
587
+ "name": "last_seen_at",
588
+ "entityType": "columns",
589
+ "table": "sessions"
590
+ },
591
+ {
592
+ "columns": [
593
+ "passkey_id"
594
+ ],
595
+ "tableTo": "passkeys",
596
+ "columnsTo": [
597
+ "id"
598
+ ],
599
+ "onUpdate": "NO ACTION",
600
+ "onDelete": "CASCADE",
601
+ "nameExplicit": false,
602
+ "name": "activation_codes_passkey_id_passkeys_id_fk",
603
+ "entityType": "fks",
604
+ "table": "activation_codes"
605
+ },
606
+ {
607
+ "columns": [
608
+ "passkey_id"
609
+ ],
610
+ "tableTo": "passkeys",
611
+ "columnsTo": [
612
+ "id"
613
+ ],
614
+ "onUpdate": "NO ACTION",
615
+ "onDelete": "CASCADE",
616
+ "nameExplicit": false,
617
+ "name": "sessions_passkey_id_passkeys_id_fk",
618
+ "entityType": "fks",
619
+ "table": "sessions"
620
+ },
621
+ {
622
+ "columns": [
623
+ "instance_id",
624
+ "session_id",
625
+ "provider_id",
626
+ "model_id"
627
+ ],
628
+ "nameExplicit": false,
629
+ "name": "model_usages_pk",
630
+ "entityType": "pks",
631
+ "table": "model_usages"
632
+ },
633
+ {
634
+ "columns": [
635
+ "session_id"
636
+ ],
637
+ "nameExplicit": false,
638
+ "name": "session_read_statuses_pk",
639
+ "entityType": "pks",
640
+ "table": "session_read_statuses"
641
+ },
642
+ {
643
+ "columns": [
644
+ "id"
645
+ ],
646
+ "nameExplicit": false,
647
+ "name": "activation_codes_pk",
648
+ "table": "activation_codes",
649
+ "entityType": "pks"
650
+ },
651
+ {
652
+ "columns": [
653
+ "id"
654
+ ],
655
+ "nameExplicit": false,
656
+ "name": "authentication_challenges_pk",
657
+ "table": "authentication_challenges",
658
+ "entityType": "pks"
659
+ },
660
+ {
661
+ "columns": [
662
+ "id"
663
+ ],
664
+ "nameExplicit": false,
665
+ "name": "instances_pk",
666
+ "table": "instances",
667
+ "entityType": "pks"
668
+ },
669
+ {
670
+ "columns": [
671
+ "id"
672
+ ],
673
+ "nameExplicit": false,
674
+ "name": "passkeys_pk",
675
+ "table": "passkeys",
676
+ "entityType": "pks"
677
+ },
678
+ {
679
+ "columns": [
680
+ "id"
681
+ ],
682
+ "nameExplicit": false,
683
+ "name": "registration_challenges_pk",
684
+ "table": "registration_challenges",
685
+ "entityType": "pks"
686
+ },
687
+ {
688
+ "columns": [
689
+ "id"
690
+ ],
691
+ "nameExplicit": false,
692
+ "name": "sessions_pk",
693
+ "table": "sessions",
694
+ "entityType": "pks"
695
+ },
696
+ {
697
+ "columns": [
698
+ {
699
+ "value": "passkey_id",
700
+ "isExpression": false
701
+ }
702
+ ],
703
+ "isUnique": false,
704
+ "where": null,
705
+ "origin": "manual",
706
+ "name": "idx_activation_codes_passkey_id",
707
+ "entityType": "indexes",
708
+ "table": "activation_codes"
709
+ },
710
+ {
711
+ "columns": [
712
+ {
713
+ "value": "status",
714
+ "isExpression": false
715
+ }
716
+ ],
717
+ "isUnique": false,
718
+ "where": null,
719
+ "origin": "manual",
720
+ "name": "idx_instances_status",
721
+ "entityType": "indexes",
722
+ "table": "instances"
723
+ },
724
+ {
725
+ "columns": [
726
+ {
727
+ "value": "instance_id",
728
+ "isExpression": false
729
+ },
730
+ {
731
+ "value": "used_at",
732
+ "isExpression": false
733
+ }
734
+ ],
735
+ "isUnique": false,
736
+ "where": null,
737
+ "origin": "manual",
738
+ "name": "idx_model_usages_instance_used_at",
739
+ "entityType": "indexes",
740
+ "table": "model_usages"
741
+ },
742
+ {
743
+ "columns": [
744
+ {
745
+ "value": "instance_id",
746
+ "isExpression": false
747
+ },
748
+ {
749
+ "value": "session_id",
750
+ "isExpression": false
751
+ }
752
+ ],
753
+ "isUnique": false,
754
+ "where": null,
755
+ "origin": "manual",
756
+ "name": "idx_model_usages_session",
757
+ "entityType": "indexes",
758
+ "table": "model_usages"
759
+ },
760
+ {
761
+ "columns": [
762
+ {
763
+ "value": "used_at",
764
+ "isExpression": false
765
+ }
766
+ ],
767
+ "isUnique": false,
768
+ "where": null,
769
+ "origin": "manual",
770
+ "name": "idx_model_usages_used_at",
771
+ "entityType": "indexes",
772
+ "table": "model_usages"
773
+ },
774
+ {
775
+ "columns": [
776
+ {
777
+ "value": "status",
778
+ "isExpression": false
779
+ }
780
+ ],
781
+ "isUnique": false,
782
+ "where": null,
783
+ "origin": "manual",
784
+ "name": "idx_passkeys_status",
785
+ "entityType": "indexes",
786
+ "table": "passkeys"
787
+ },
788
+ {
789
+ "columns": [
790
+ {
791
+ "value": "updated_at",
792
+ "isExpression": false
793
+ }
794
+ ],
795
+ "isUnique": false,
796
+ "where": null,
797
+ "origin": "manual",
798
+ "name": "idx_session_read_statuses_updated_at",
799
+ "entityType": "indexes",
800
+ "table": "session_read_statuses"
801
+ },
802
+ {
803
+ "columns": [
804
+ {
805
+ "value": "expires_at",
806
+ "isExpression": false
807
+ }
808
+ ],
809
+ "isUnique": false,
810
+ "where": null,
811
+ "origin": "manual",
812
+ "name": "idx_sessions_expires_at",
813
+ "entityType": "indexes",
814
+ "table": "sessions"
815
+ },
816
+ {
817
+ "value": "\"status\" in ('starting', 'running', 'stopped', 'error')",
818
+ "name": "instances_status_check",
819
+ "entityType": "checks",
820
+ "table": "instances"
821
+ },
822
+ {
823
+ "value": "\"status\" in ('pending', 'active', 'revoked')",
824
+ "name": "passkeys_status_check",
825
+ "entityType": "checks",
826
+ "table": "passkeys"
827
+ }
828
+ ],
829
+ "renames": []
830
+ }