@okhay-p/mivra 0.1.3 → 0.1.4

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 (38) hide show
  1. package/dist/{chunk-3RMHLZ2Z.js → chunk-KUKQU7EQ.js} +24 -5
  2. package/dist/{chunk-3RMHLZ2Z.js.map → chunk-KUKQU7EQ.js.map} +2 -2
  3. package/dist/{chunk-EICBRY5M.js → chunk-ODFBAPPH.js} +113 -5
  4. package/dist/chunk-ODFBAPPH.js.map +7 -0
  5. package/dist/{chunk-FBDML53R.js → chunk-YACRW47X.js} +447 -177
  6. package/dist/chunk-YACRW47X.js.map +7 -0
  7. package/dist/cli.js +4 -4
  8. package/dist/cli.js.map +2 -2
  9. package/dist/{client-VU3KWV3U.js → client-5YDLS4KV.js} +2 -2
  10. package/dist/extract-child.js +1 -1
  11. package/dist/{start-3J3JSJEX.js → start-76LKE3DL.js} +3524 -517
  12. package/dist/start-76LKE3DL.js.map +7 -0
  13. package/drizzle/0013_next_dormammu.sql +1 -0
  14. package/drizzle/0014_furry_inertia.sql +1 -0
  15. package/drizzle/0015_spotty_warstar.sql +1 -0
  16. package/drizzle/0016_fresh_wiccan.sql +1 -0
  17. package/drizzle/0017_amusing_james_howlett.sql +28 -0
  18. package/drizzle/0018_happy_hairball.sql +43 -0
  19. package/drizzle/meta/0013_snapshot.json +1749 -0
  20. package/drizzle/meta/0014_snapshot.json +1756 -0
  21. package/drizzle/meta/0015_snapshot.json +1763 -0
  22. package/drizzle/meta/0016_snapshot.json +1770 -0
  23. package/drizzle/meta/0017_snapshot.json +1956 -0
  24. package/drizzle/meta/0018_snapshot.json +2280 -0
  25. package/drizzle/meta/_journal.json +42 -0
  26. package/package.json +2 -1
  27. package/web/assets/index-C_DsRKCc.css +1 -0
  28. package/web/assets/index-DbKDW1xS.js +413 -0
  29. package/web/assets/notes-graph.worker-DaVQvftJ.js +1 -0
  30. package/web/assets/render.worker-BAfybD27.js +416 -0
  31. package/web/index.html +2 -2
  32. package/dist/chunk-EICBRY5M.js.map +0 -7
  33. package/dist/chunk-FBDML53R.js.map +0 -7
  34. package/dist/start-3J3JSJEX.js.map +0 -7
  35. package/web/assets/index-BUYWW1Mc.js +0 -406
  36. package/web/assets/index-Cmq-m9fI.css +0 -1
  37. package/web/assets/render.worker-BEpv9w1x.js +0 -413
  38. /package/dist/{client-VU3KWV3U.js.map → client-5YDLS4KV.js.map} +0 -0
@@ -0,0 +1,1956 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "6ac1f129-da19-47be-8f4b-45ac4de60be9",
5
+ "prevId": "ba6225f4-072e-49ad-9e33-ac122616a25a",
6
+ "tables": {
7
+ "artifacts": {
8
+ "name": "artifacts",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "session_id": {
18
+ "name": "session_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "run_id": {
25
+ "name": "run_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "tool_call_id": {
32
+ "name": "tool_call_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "kind": {
39
+ "name": "kind",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "version": {
46
+ "name": "version",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "spec": {
53
+ "name": "spec",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "created_at": {
60
+ "name": "created_at",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ }
66
+ },
67
+ "indexes": {
68
+ "artifacts_session_idx": {
69
+ "name": "artifacts_session_idx",
70
+ "columns": [
71
+ "session_id",
72
+ "created_at"
73
+ ],
74
+ "isUnique": false
75
+ },
76
+ "artifacts_tool_call_idx": {
77
+ "name": "artifacts_tool_call_idx",
78
+ "columns": [
79
+ "run_id",
80
+ "tool_call_id"
81
+ ],
82
+ "isUnique": true
83
+ }
84
+ },
85
+ "foreignKeys": {
86
+ "artifacts_session_id_sessions_id_fk": {
87
+ "name": "artifacts_session_id_sessions_id_fk",
88
+ "tableFrom": "artifacts",
89
+ "tableTo": "sessions",
90
+ "columnsFrom": [
91
+ "session_id"
92
+ ],
93
+ "columnsTo": [
94
+ "id"
95
+ ],
96
+ "onDelete": "cascade",
97
+ "onUpdate": "no action"
98
+ },
99
+ "artifacts_run_id_runs_id_fk": {
100
+ "name": "artifacts_run_id_runs_id_fk",
101
+ "tableFrom": "artifacts",
102
+ "tableTo": "runs",
103
+ "columnsFrom": [
104
+ "run_id"
105
+ ],
106
+ "columnsTo": [
107
+ "id"
108
+ ],
109
+ "onDelete": "cascade",
110
+ "onUpdate": "no action"
111
+ }
112
+ },
113
+ "compositePrimaryKeys": {},
114
+ "uniqueConstraints": {},
115
+ "checkConstraints": {}
116
+ },
117
+ "attempts": {
118
+ "name": "attempts",
119
+ "columns": {
120
+ "id": {
121
+ "name": "id",
122
+ "type": "text",
123
+ "primaryKey": true,
124
+ "notNull": true,
125
+ "autoincrement": false
126
+ },
127
+ "artifact_id": {
128
+ "name": "artifact_id",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": true,
132
+ "autoincrement": false
133
+ },
134
+ "session_id": {
135
+ "name": "session_id",
136
+ "type": "text",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false
140
+ },
141
+ "answer": {
142
+ "name": "answer",
143
+ "type": "text",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "autoincrement": false
147
+ },
148
+ "grade": {
149
+ "name": "grade",
150
+ "type": "text",
151
+ "primaryKey": false,
152
+ "notNull": true,
153
+ "autoincrement": false
154
+ },
155
+ "correct": {
156
+ "name": "correct",
157
+ "type": "integer",
158
+ "primaryKey": false,
159
+ "notNull": true,
160
+ "autoincrement": false
161
+ },
162
+ "concept": {
163
+ "name": "concept",
164
+ "type": "text",
165
+ "primaryKey": false,
166
+ "notNull": false,
167
+ "autoincrement": false
168
+ },
169
+ "created_at": {
170
+ "name": "created_at",
171
+ "type": "integer",
172
+ "primaryKey": false,
173
+ "notNull": true,
174
+ "autoincrement": false
175
+ }
176
+ },
177
+ "indexes": {
178
+ "attempts_one_per_artifact_idx": {
179
+ "name": "attempts_one_per_artifact_idx",
180
+ "columns": [
181
+ "artifact_id"
182
+ ],
183
+ "isUnique": true
184
+ },
185
+ "attempts_session_idx": {
186
+ "name": "attempts_session_idx",
187
+ "columns": [
188
+ "session_id",
189
+ "created_at"
190
+ ],
191
+ "isUnique": false
192
+ },
193
+ "attempts_created_idx": {
194
+ "name": "attempts_created_idx",
195
+ "columns": [
196
+ "created_at"
197
+ ],
198
+ "isUnique": false
199
+ }
200
+ },
201
+ "foreignKeys": {
202
+ "attempts_artifact_id_artifacts_id_fk": {
203
+ "name": "attempts_artifact_id_artifacts_id_fk",
204
+ "tableFrom": "attempts",
205
+ "tableTo": "artifacts",
206
+ "columnsFrom": [
207
+ "artifact_id"
208
+ ],
209
+ "columnsTo": [
210
+ "id"
211
+ ],
212
+ "onDelete": "cascade",
213
+ "onUpdate": "no action"
214
+ },
215
+ "attempts_session_id_sessions_id_fk": {
216
+ "name": "attempts_session_id_sessions_id_fk",
217
+ "tableFrom": "attempts",
218
+ "tableTo": "sessions",
219
+ "columnsFrom": [
220
+ "session_id"
221
+ ],
222
+ "columnsTo": [
223
+ "id"
224
+ ],
225
+ "onDelete": "cascade",
226
+ "onUpdate": "no action"
227
+ }
228
+ },
229
+ "compositePrimaryKeys": {},
230
+ "uniqueConstraints": {},
231
+ "checkConstraints": {}
232
+ },
233
+ "courses": {
234
+ "name": "courses",
235
+ "columns": {
236
+ "id": {
237
+ "name": "id",
238
+ "type": "text",
239
+ "primaryKey": true,
240
+ "notNull": true,
241
+ "autoincrement": false
242
+ },
243
+ "session_id": {
244
+ "name": "session_id",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": true,
248
+ "autoincrement": false
249
+ },
250
+ "goal": {
251
+ "name": "goal",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true,
255
+ "autoincrement": false
256
+ },
257
+ "status": {
258
+ "name": "status",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "autoincrement": false
263
+ },
264
+ "icon": {
265
+ "name": "icon",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false,
269
+ "autoincrement": false
270
+ },
271
+ "created_at": {
272
+ "name": "created_at",
273
+ "type": "integer",
274
+ "primaryKey": false,
275
+ "notNull": true,
276
+ "autoincrement": false
277
+ },
278
+ "updated_at": {
279
+ "name": "updated_at",
280
+ "type": "integer",
281
+ "primaryKey": false,
282
+ "notNull": true,
283
+ "autoincrement": false
284
+ }
285
+ },
286
+ "indexes": {
287
+ "courses_session_idx": {
288
+ "name": "courses_session_idx",
289
+ "columns": [
290
+ "session_id"
291
+ ],
292
+ "isUnique": true
293
+ }
294
+ },
295
+ "foreignKeys": {
296
+ "courses_session_id_sessions_id_fk": {
297
+ "name": "courses_session_id_sessions_id_fk",
298
+ "tableFrom": "courses",
299
+ "tableTo": "sessions",
300
+ "columnsFrom": [
301
+ "session_id"
302
+ ],
303
+ "columnsTo": [
304
+ "id"
305
+ ],
306
+ "onDelete": "cascade",
307
+ "onUpdate": "no action"
308
+ }
309
+ },
310
+ "compositePrimaryKeys": {},
311
+ "uniqueConstraints": {},
312
+ "checkConstraints": {}
313
+ },
314
+ "document_chunks": {
315
+ "name": "document_chunks",
316
+ "columns": {
317
+ "id": {
318
+ "name": "id",
319
+ "type": "integer",
320
+ "primaryKey": true,
321
+ "notNull": true,
322
+ "autoincrement": true
323
+ },
324
+ "document_id": {
325
+ "name": "document_id",
326
+ "type": "text",
327
+ "primaryKey": false,
328
+ "notNull": true,
329
+ "autoincrement": false
330
+ },
331
+ "page": {
332
+ "name": "page",
333
+ "type": "integer",
334
+ "primaryKey": false,
335
+ "notNull": true,
336
+ "autoincrement": false
337
+ },
338
+ "seq": {
339
+ "name": "seq",
340
+ "type": "integer",
341
+ "primaryKey": false,
342
+ "notNull": true,
343
+ "autoincrement": false
344
+ },
345
+ "text": {
346
+ "name": "text",
347
+ "type": "text",
348
+ "primaryKey": false,
349
+ "notNull": true,
350
+ "autoincrement": false
351
+ }
352
+ },
353
+ "indexes": {
354
+ "document_chunks_document_seq_idx": {
355
+ "name": "document_chunks_document_seq_idx",
356
+ "columns": [
357
+ "document_id",
358
+ "seq"
359
+ ],
360
+ "isUnique": true
361
+ }
362
+ },
363
+ "foreignKeys": {
364
+ "document_chunks_document_id_documents_id_fk": {
365
+ "name": "document_chunks_document_id_documents_id_fk",
366
+ "tableFrom": "document_chunks",
367
+ "tableTo": "documents",
368
+ "columnsFrom": [
369
+ "document_id"
370
+ ],
371
+ "columnsTo": [
372
+ "id"
373
+ ],
374
+ "onDelete": "cascade",
375
+ "onUpdate": "no action"
376
+ }
377
+ },
378
+ "compositePrimaryKeys": {},
379
+ "uniqueConstraints": {},
380
+ "checkConstraints": {}
381
+ },
382
+ "documents": {
383
+ "name": "documents",
384
+ "columns": {
385
+ "id": {
386
+ "name": "id",
387
+ "type": "text",
388
+ "primaryKey": true,
389
+ "notNull": true,
390
+ "autoincrement": false
391
+ },
392
+ "session_id": {
393
+ "name": "session_id",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": true,
397
+ "autoincrement": false
398
+ },
399
+ "message_id": {
400
+ "name": "message_id",
401
+ "type": "text",
402
+ "primaryKey": false,
403
+ "notNull": false,
404
+ "autoincrement": false
405
+ },
406
+ "filename": {
407
+ "name": "filename",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": true,
411
+ "autoincrement": false
412
+ },
413
+ "kind": {
414
+ "name": "kind",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "autoincrement": false
419
+ },
420
+ "byte_size": {
421
+ "name": "byte_size",
422
+ "type": "integer",
423
+ "primaryKey": false,
424
+ "notNull": true,
425
+ "autoincrement": false
426
+ },
427
+ "text_chars": {
428
+ "name": "text_chars",
429
+ "type": "integer",
430
+ "primaryKey": false,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ },
434
+ "page_count": {
435
+ "name": "page_count",
436
+ "type": "integer",
437
+ "primaryKey": false,
438
+ "notNull": true,
439
+ "autoincrement": false
440
+ },
441
+ "pages_with_text": {
442
+ "name": "pages_with_text",
443
+ "type": "integer",
444
+ "primaryKey": false,
445
+ "notNull": true,
446
+ "autoincrement": false
447
+ },
448
+ "status": {
449
+ "name": "status",
450
+ "type": "text",
451
+ "primaryKey": false,
452
+ "notNull": true,
453
+ "autoincrement": false
454
+ },
455
+ "created_at": {
456
+ "name": "created_at",
457
+ "type": "integer",
458
+ "primaryKey": false,
459
+ "notNull": true,
460
+ "autoincrement": false
461
+ }
462
+ },
463
+ "indexes": {
464
+ "documents_session_idx": {
465
+ "name": "documents_session_idx",
466
+ "columns": [
467
+ "session_id",
468
+ "created_at"
469
+ ],
470
+ "isUnique": false
471
+ }
472
+ },
473
+ "foreignKeys": {
474
+ "documents_session_id_sessions_id_fk": {
475
+ "name": "documents_session_id_sessions_id_fk",
476
+ "tableFrom": "documents",
477
+ "tableTo": "sessions",
478
+ "columnsFrom": [
479
+ "session_id"
480
+ ],
481
+ "columnsTo": [
482
+ "id"
483
+ ],
484
+ "onDelete": "cascade",
485
+ "onUpdate": "no action"
486
+ },
487
+ "documents_message_id_messages_id_fk": {
488
+ "name": "documents_message_id_messages_id_fk",
489
+ "tableFrom": "documents",
490
+ "tableTo": "messages",
491
+ "columnsFrom": [
492
+ "message_id"
493
+ ],
494
+ "columnsTo": [
495
+ "id"
496
+ ],
497
+ "onDelete": "set null",
498
+ "onUpdate": "no action"
499
+ }
500
+ },
501
+ "compositePrimaryKeys": {},
502
+ "uniqueConstraints": {},
503
+ "checkConstraints": {}
504
+ },
505
+ "lesson_sections": {
506
+ "name": "lesson_sections",
507
+ "columns": {
508
+ "id": {
509
+ "name": "id",
510
+ "type": "text",
511
+ "primaryKey": true,
512
+ "notNull": true,
513
+ "autoincrement": false
514
+ },
515
+ "lesson_id": {
516
+ "name": "lesson_id",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": true,
520
+ "autoincrement": false
521
+ },
522
+ "kind": {
523
+ "name": "kind",
524
+ "type": "text",
525
+ "primaryKey": false,
526
+ "notNull": true,
527
+ "autoincrement": false
528
+ },
529
+ "title": {
530
+ "name": "title",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true,
534
+ "autoincrement": false
535
+ },
536
+ "markdown": {
537
+ "name": "markdown",
538
+ "type": "text",
539
+ "primaryKey": false,
540
+ "notNull": false,
541
+ "autoincrement": false
542
+ },
543
+ "artifact_id": {
544
+ "name": "artifact_id",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": false,
548
+ "autoincrement": false
549
+ },
550
+ "revisits": {
551
+ "name": "revisits",
552
+ "type": "text",
553
+ "primaryKey": false,
554
+ "notNull": true,
555
+ "autoincrement": false,
556
+ "default": "'[]'"
557
+ },
558
+ "created_at": {
559
+ "name": "created_at",
560
+ "type": "integer",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ }
565
+ },
566
+ "indexes": {
567
+ "lesson_sections_lesson_idx": {
568
+ "name": "lesson_sections_lesson_idx",
569
+ "columns": [
570
+ "lesson_id"
571
+ ],
572
+ "isUnique": false
573
+ },
574
+ "lesson_sections_artifact_idx": {
575
+ "name": "lesson_sections_artifact_idx",
576
+ "columns": [
577
+ "artifact_id"
578
+ ],
579
+ "isUnique": true
580
+ }
581
+ },
582
+ "foreignKeys": {
583
+ "lesson_sections_lesson_id_lessons_id_fk": {
584
+ "name": "lesson_sections_lesson_id_lessons_id_fk",
585
+ "tableFrom": "lesson_sections",
586
+ "tableTo": "lessons",
587
+ "columnsFrom": [
588
+ "lesson_id"
589
+ ],
590
+ "columnsTo": [
591
+ "id"
592
+ ],
593
+ "onDelete": "cascade",
594
+ "onUpdate": "no action"
595
+ },
596
+ "lesson_sections_artifact_id_artifacts_id_fk": {
597
+ "name": "lesson_sections_artifact_id_artifacts_id_fk",
598
+ "tableFrom": "lesson_sections",
599
+ "tableTo": "artifacts",
600
+ "columnsFrom": [
601
+ "artifact_id"
602
+ ],
603
+ "columnsTo": [
604
+ "id"
605
+ ],
606
+ "onDelete": "cascade",
607
+ "onUpdate": "no action"
608
+ }
609
+ },
610
+ "compositePrimaryKeys": {},
611
+ "uniqueConstraints": {},
612
+ "checkConstraints": {}
613
+ },
614
+ "lesson_versions": {
615
+ "name": "lesson_versions",
616
+ "columns": {
617
+ "id": {
618
+ "name": "id",
619
+ "type": "text",
620
+ "primaryKey": true,
621
+ "notNull": true,
622
+ "autoincrement": false
623
+ },
624
+ "lesson_id": {
625
+ "name": "lesson_id",
626
+ "type": "text",
627
+ "primaryKey": false,
628
+ "notNull": true,
629
+ "autoincrement": false
630
+ },
631
+ "version": {
632
+ "name": "version",
633
+ "type": "integer",
634
+ "primaryKey": false,
635
+ "notNull": true,
636
+ "autoincrement": false
637
+ },
638
+ "outline": {
639
+ "name": "outline",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": true,
643
+ "autoincrement": false
644
+ },
645
+ "section_ids": {
646
+ "name": "section_ids",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": true,
650
+ "autoincrement": false
651
+ },
652
+ "changed_section_ids": {
653
+ "name": "changed_section_ids",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": true,
657
+ "autoincrement": false,
658
+ "default": "'[]'"
659
+ },
660
+ "reason": {
661
+ "name": "reason",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": false,
665
+ "autoincrement": false
666
+ },
667
+ "created_at": {
668
+ "name": "created_at",
669
+ "type": "integer",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ }
674
+ },
675
+ "indexes": {
676
+ "lesson_versions_lesson_version_idx": {
677
+ "name": "lesson_versions_lesson_version_idx",
678
+ "columns": [
679
+ "lesson_id",
680
+ "version"
681
+ ],
682
+ "isUnique": true
683
+ }
684
+ },
685
+ "foreignKeys": {
686
+ "lesson_versions_lesson_id_lessons_id_fk": {
687
+ "name": "lesson_versions_lesson_id_lessons_id_fk",
688
+ "tableFrom": "lesson_versions",
689
+ "tableTo": "lessons",
690
+ "columnsFrom": [
691
+ "lesson_id"
692
+ ],
693
+ "columnsTo": [
694
+ "id"
695
+ ],
696
+ "onDelete": "cascade",
697
+ "onUpdate": "no action"
698
+ }
699
+ },
700
+ "compositePrimaryKeys": {},
701
+ "uniqueConstraints": {},
702
+ "checkConstraints": {}
703
+ },
704
+ "lessons": {
705
+ "name": "lessons",
706
+ "columns": {
707
+ "id": {
708
+ "name": "id",
709
+ "type": "text",
710
+ "primaryKey": true,
711
+ "notNull": true,
712
+ "autoincrement": false
713
+ },
714
+ "course_id": {
715
+ "name": "course_id",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": true,
719
+ "autoincrement": false
720
+ },
721
+ "topic_id": {
722
+ "name": "topic_id",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "autoincrement": false
727
+ },
728
+ "topic_title": {
729
+ "name": "topic_title",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": true,
733
+ "autoincrement": false
734
+ },
735
+ "position": {
736
+ "name": "position",
737
+ "type": "integer",
738
+ "primaryKey": false,
739
+ "notNull": true,
740
+ "autoincrement": false
741
+ },
742
+ "session_id": {
743
+ "name": "session_id",
744
+ "type": "text",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "autoincrement": false
748
+ },
749
+ "status": {
750
+ "name": "status",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": true,
754
+ "autoincrement": false
755
+ },
756
+ "error": {
757
+ "name": "error",
758
+ "type": "text",
759
+ "primaryKey": false,
760
+ "notNull": false,
761
+ "autoincrement": false
762
+ },
763
+ "error_action": {
764
+ "name": "error_action",
765
+ "type": "text",
766
+ "primaryKey": false,
767
+ "notNull": false,
768
+ "autoincrement": false
769
+ },
770
+ "created_at": {
771
+ "name": "created_at",
772
+ "type": "integer",
773
+ "primaryKey": false,
774
+ "notNull": true,
775
+ "autoincrement": false
776
+ },
777
+ "finished_at": {
778
+ "name": "finished_at",
779
+ "type": "integer",
780
+ "primaryKey": false,
781
+ "notNull": false,
782
+ "autoincrement": false
783
+ }
784
+ },
785
+ "indexes": {
786
+ "lessons_course_topic_idx": {
787
+ "name": "lessons_course_topic_idx",
788
+ "columns": [
789
+ "course_id",
790
+ "topic_id"
791
+ ],
792
+ "isUnique": true
793
+ },
794
+ "lessons_session_idx": {
795
+ "name": "lessons_session_idx",
796
+ "columns": [
797
+ "session_id"
798
+ ],
799
+ "isUnique": true
800
+ }
801
+ },
802
+ "foreignKeys": {
803
+ "lessons_course_id_courses_id_fk": {
804
+ "name": "lessons_course_id_courses_id_fk",
805
+ "tableFrom": "lessons",
806
+ "tableTo": "courses",
807
+ "columnsFrom": [
808
+ "course_id"
809
+ ],
810
+ "columnsTo": [
811
+ "id"
812
+ ],
813
+ "onDelete": "cascade",
814
+ "onUpdate": "no action"
815
+ },
816
+ "lessons_session_id_sessions_id_fk": {
817
+ "name": "lessons_session_id_sessions_id_fk",
818
+ "tableFrom": "lessons",
819
+ "tableTo": "sessions",
820
+ "columnsFrom": [
821
+ "session_id"
822
+ ],
823
+ "columnsTo": [
824
+ "id"
825
+ ],
826
+ "onDelete": "cascade",
827
+ "onUpdate": "no action"
828
+ }
829
+ },
830
+ "compositePrimaryKeys": {},
831
+ "uniqueConstraints": {},
832
+ "checkConstraints": {}
833
+ },
834
+ "memories": {
835
+ "name": "memories",
836
+ "columns": {
837
+ "id": {
838
+ "name": "id",
839
+ "type": "text",
840
+ "primaryKey": true,
841
+ "notNull": true,
842
+ "autoincrement": false
843
+ },
844
+ "kind": {
845
+ "name": "kind",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": true,
849
+ "autoincrement": false
850
+ },
851
+ "text": {
852
+ "name": "text",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true,
856
+ "autoincrement": false
857
+ },
858
+ "concept": {
859
+ "name": "concept",
860
+ "type": "text",
861
+ "primaryKey": false,
862
+ "notNull": false,
863
+ "autoincrement": false
864
+ },
865
+ "basis": {
866
+ "name": "basis",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": true,
870
+ "autoincrement": false
871
+ },
872
+ "attempt_id": {
873
+ "name": "attempt_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false,
877
+ "autoincrement": false
878
+ },
879
+ "session_id": {
880
+ "name": "session_id",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": false,
884
+ "autoincrement": false
885
+ },
886
+ "run_id": {
887
+ "name": "run_id",
888
+ "type": "text",
889
+ "primaryKey": false,
890
+ "notNull": false,
891
+ "autoincrement": false
892
+ },
893
+ "status": {
894
+ "name": "status",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": true,
898
+ "autoincrement": false
899
+ },
900
+ "replaces_id": {
901
+ "name": "replaces_id",
902
+ "type": "text",
903
+ "primaryKey": false,
904
+ "notNull": false,
905
+ "autoincrement": false
906
+ },
907
+ "created_at": {
908
+ "name": "created_at",
909
+ "type": "integer",
910
+ "primaryKey": false,
911
+ "notNull": true,
912
+ "autoincrement": false
913
+ },
914
+ "edited_at": {
915
+ "name": "edited_at",
916
+ "type": "integer",
917
+ "primaryKey": false,
918
+ "notNull": false,
919
+ "autoincrement": false
920
+ }
921
+ },
922
+ "indexes": {
923
+ "memories_status_idx": {
924
+ "name": "memories_status_idx",
925
+ "columns": [
926
+ "status",
927
+ "created_at"
928
+ ],
929
+ "isUnique": false
930
+ },
931
+ "memories_run_idx": {
932
+ "name": "memories_run_idx",
933
+ "columns": [
934
+ "run_id"
935
+ ],
936
+ "isUnique": false
937
+ }
938
+ },
939
+ "foreignKeys": {
940
+ "memories_attempt_id_attempts_id_fk": {
941
+ "name": "memories_attempt_id_attempts_id_fk",
942
+ "tableFrom": "memories",
943
+ "tableTo": "attempts",
944
+ "columnsFrom": [
945
+ "attempt_id"
946
+ ],
947
+ "columnsTo": [
948
+ "id"
949
+ ],
950
+ "onDelete": "set null",
951
+ "onUpdate": "no action"
952
+ },
953
+ "memories_session_id_sessions_id_fk": {
954
+ "name": "memories_session_id_sessions_id_fk",
955
+ "tableFrom": "memories",
956
+ "tableTo": "sessions",
957
+ "columnsFrom": [
958
+ "session_id"
959
+ ],
960
+ "columnsTo": [
961
+ "id"
962
+ ],
963
+ "onDelete": "set null",
964
+ "onUpdate": "no action"
965
+ },
966
+ "memories_run_id_runs_id_fk": {
967
+ "name": "memories_run_id_runs_id_fk",
968
+ "tableFrom": "memories",
969
+ "tableTo": "runs",
970
+ "columnsFrom": [
971
+ "run_id"
972
+ ],
973
+ "columnsTo": [
974
+ "id"
975
+ ],
976
+ "onDelete": "set null",
977
+ "onUpdate": "no action"
978
+ }
979
+ },
980
+ "compositePrimaryKeys": {},
981
+ "uniqueConstraints": {},
982
+ "checkConstraints": {}
983
+ },
984
+ "messages": {
985
+ "name": "messages",
986
+ "columns": {
987
+ "id": {
988
+ "name": "id",
989
+ "type": "text",
990
+ "primaryKey": true,
991
+ "notNull": true,
992
+ "autoincrement": false
993
+ },
994
+ "session_id": {
995
+ "name": "session_id",
996
+ "type": "text",
997
+ "primaryKey": false,
998
+ "notNull": true,
999
+ "autoincrement": false
1000
+ },
1001
+ "seq": {
1002
+ "name": "seq",
1003
+ "type": "integer",
1004
+ "primaryKey": false,
1005
+ "notNull": true,
1006
+ "autoincrement": false
1007
+ },
1008
+ "role": {
1009
+ "name": "role",
1010
+ "type": "text",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ },
1015
+ "parts": {
1016
+ "name": "parts",
1017
+ "type": "text",
1018
+ "primaryKey": false,
1019
+ "notNull": true,
1020
+ "autoincrement": false
1021
+ },
1022
+ "created_at": {
1023
+ "name": "created_at",
1024
+ "type": "integer",
1025
+ "primaryKey": false,
1026
+ "notNull": true,
1027
+ "autoincrement": false
1028
+ }
1029
+ },
1030
+ "indexes": {
1031
+ "messages_session_seq_idx": {
1032
+ "name": "messages_session_seq_idx",
1033
+ "columns": [
1034
+ "session_id",
1035
+ "seq"
1036
+ ],
1037
+ "isUnique": true
1038
+ }
1039
+ },
1040
+ "foreignKeys": {
1041
+ "messages_session_id_sessions_id_fk": {
1042
+ "name": "messages_session_id_sessions_id_fk",
1043
+ "tableFrom": "messages",
1044
+ "tableTo": "sessions",
1045
+ "columnsFrom": [
1046
+ "session_id"
1047
+ ],
1048
+ "columnsTo": [
1049
+ "id"
1050
+ ],
1051
+ "onDelete": "cascade",
1052
+ "onUpdate": "no action"
1053
+ }
1054
+ },
1055
+ "compositePrimaryKeys": {},
1056
+ "uniqueConstraints": {},
1057
+ "checkConstraints": {}
1058
+ },
1059
+ "note_chunks": {
1060
+ "name": "note_chunks",
1061
+ "columns": {
1062
+ "id": {
1063
+ "name": "id",
1064
+ "type": "integer",
1065
+ "primaryKey": true,
1066
+ "notNull": true,
1067
+ "autoincrement": true
1068
+ },
1069
+ "note_id": {
1070
+ "name": "note_id",
1071
+ "type": "text",
1072
+ "primaryKey": false,
1073
+ "notNull": true,
1074
+ "autoincrement": false
1075
+ },
1076
+ "seq": {
1077
+ "name": "seq",
1078
+ "type": "integer",
1079
+ "primaryKey": false,
1080
+ "notNull": true,
1081
+ "autoincrement": false
1082
+ },
1083
+ "heading": {
1084
+ "name": "heading",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": false,
1088
+ "autoincrement": false
1089
+ },
1090
+ "text": {
1091
+ "name": "text",
1092
+ "type": "text",
1093
+ "primaryKey": false,
1094
+ "notNull": true,
1095
+ "autoincrement": false
1096
+ }
1097
+ },
1098
+ "indexes": {
1099
+ "note_chunks_note_seq_idx": {
1100
+ "name": "note_chunks_note_seq_idx",
1101
+ "columns": [
1102
+ "note_id",
1103
+ "seq"
1104
+ ],
1105
+ "isUnique": true
1106
+ }
1107
+ },
1108
+ "foreignKeys": {
1109
+ "note_chunks_note_id_notes_id_fk": {
1110
+ "name": "note_chunks_note_id_notes_id_fk",
1111
+ "tableFrom": "note_chunks",
1112
+ "tableTo": "notes",
1113
+ "columnsFrom": [
1114
+ "note_id"
1115
+ ],
1116
+ "columnsTo": [
1117
+ "id"
1118
+ ],
1119
+ "onDelete": "cascade",
1120
+ "onUpdate": "no action"
1121
+ }
1122
+ },
1123
+ "compositePrimaryKeys": {},
1124
+ "uniqueConstraints": {},
1125
+ "checkConstraints": {}
1126
+ },
1127
+ "note_links": {
1128
+ "name": "note_links",
1129
+ "columns": {
1130
+ "note_id": {
1131
+ "name": "note_id",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": true,
1135
+ "autoincrement": false
1136
+ },
1137
+ "target": {
1138
+ "name": "target",
1139
+ "type": "text",
1140
+ "primaryKey": false,
1141
+ "notNull": true,
1142
+ "autoincrement": false
1143
+ },
1144
+ "kind": {
1145
+ "name": "kind",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": true,
1149
+ "autoincrement": false
1150
+ }
1151
+ },
1152
+ "indexes": {},
1153
+ "foreignKeys": {
1154
+ "note_links_note_id_notes_id_fk": {
1155
+ "name": "note_links_note_id_notes_id_fk",
1156
+ "tableFrom": "note_links",
1157
+ "tableTo": "notes",
1158
+ "columnsFrom": [
1159
+ "note_id"
1160
+ ],
1161
+ "columnsTo": [
1162
+ "id"
1163
+ ],
1164
+ "onDelete": "cascade",
1165
+ "onUpdate": "no action"
1166
+ }
1167
+ },
1168
+ "compositePrimaryKeys": {
1169
+ "note_links_note_id_target_kind_pk": {
1170
+ "columns": [
1171
+ "note_id",
1172
+ "target",
1173
+ "kind"
1174
+ ],
1175
+ "name": "note_links_note_id_target_kind_pk"
1176
+ }
1177
+ },
1178
+ "uniqueConstraints": {},
1179
+ "checkConstraints": {}
1180
+ },
1181
+ "note_tags": {
1182
+ "name": "note_tags",
1183
+ "columns": {
1184
+ "note_id": {
1185
+ "name": "note_id",
1186
+ "type": "text",
1187
+ "primaryKey": false,
1188
+ "notNull": true,
1189
+ "autoincrement": false
1190
+ },
1191
+ "tag": {
1192
+ "name": "tag",
1193
+ "type": "text",
1194
+ "primaryKey": false,
1195
+ "notNull": true,
1196
+ "autoincrement": false
1197
+ }
1198
+ },
1199
+ "indexes": {
1200
+ "note_tags_tag_idx": {
1201
+ "name": "note_tags_tag_idx",
1202
+ "columns": [
1203
+ "tag"
1204
+ ],
1205
+ "isUnique": false
1206
+ }
1207
+ },
1208
+ "foreignKeys": {
1209
+ "note_tags_note_id_notes_id_fk": {
1210
+ "name": "note_tags_note_id_notes_id_fk",
1211
+ "tableFrom": "note_tags",
1212
+ "tableTo": "notes",
1213
+ "columnsFrom": [
1214
+ "note_id"
1215
+ ],
1216
+ "columnsTo": [
1217
+ "id"
1218
+ ],
1219
+ "onDelete": "cascade",
1220
+ "onUpdate": "no action"
1221
+ }
1222
+ },
1223
+ "compositePrimaryKeys": {
1224
+ "note_tags_note_id_tag_pk": {
1225
+ "columns": [
1226
+ "note_id",
1227
+ "tag"
1228
+ ],
1229
+ "name": "note_tags_note_id_tag_pk"
1230
+ }
1231
+ },
1232
+ "uniqueConstraints": {},
1233
+ "checkConstraints": {}
1234
+ },
1235
+ "notes": {
1236
+ "name": "notes",
1237
+ "columns": {
1238
+ "id": {
1239
+ "name": "id",
1240
+ "type": "text",
1241
+ "primaryKey": true,
1242
+ "notNull": true,
1243
+ "autoincrement": false
1244
+ },
1245
+ "import_id": {
1246
+ "name": "import_id",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "autoincrement": false
1251
+ },
1252
+ "path": {
1253
+ "name": "path",
1254
+ "type": "text",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "autoincrement": false
1258
+ },
1259
+ "title": {
1260
+ "name": "title",
1261
+ "type": "text",
1262
+ "primaryKey": false,
1263
+ "notNull": true,
1264
+ "autoincrement": false
1265
+ },
1266
+ "title_key": {
1267
+ "name": "title_key",
1268
+ "type": "text",
1269
+ "primaryKey": false,
1270
+ "notNull": true,
1271
+ "autoincrement": false
1272
+ },
1273
+ "aliases": {
1274
+ "name": "aliases",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "autoincrement": false
1279
+ },
1280
+ "body": {
1281
+ "name": "body",
1282
+ "type": "text",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "autoincrement": false
1286
+ },
1287
+ "hash": {
1288
+ "name": "hash",
1289
+ "type": "text",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "autoincrement": false
1293
+ },
1294
+ "created_at": {
1295
+ "name": "created_at",
1296
+ "type": "integer",
1297
+ "primaryKey": false,
1298
+ "notNull": true,
1299
+ "autoincrement": false
1300
+ },
1301
+ "updated_at": {
1302
+ "name": "updated_at",
1303
+ "type": "integer",
1304
+ "primaryKey": false,
1305
+ "notNull": true,
1306
+ "autoincrement": false
1307
+ }
1308
+ },
1309
+ "indexes": {
1310
+ "notes_import_path_idx": {
1311
+ "name": "notes_import_path_idx",
1312
+ "columns": [
1313
+ "import_id",
1314
+ "path"
1315
+ ],
1316
+ "isUnique": true
1317
+ },
1318
+ "notes_import_title_idx": {
1319
+ "name": "notes_import_title_idx",
1320
+ "columns": [
1321
+ "import_id",
1322
+ "title_key"
1323
+ ],
1324
+ "isUnique": false
1325
+ }
1326
+ },
1327
+ "foreignKeys": {
1328
+ "notes_import_id_vault_imports_id_fk": {
1329
+ "name": "notes_import_id_vault_imports_id_fk",
1330
+ "tableFrom": "notes",
1331
+ "tableTo": "vault_imports",
1332
+ "columnsFrom": [
1333
+ "import_id"
1334
+ ],
1335
+ "columnsTo": [
1336
+ "id"
1337
+ ],
1338
+ "onDelete": "cascade",
1339
+ "onUpdate": "no action"
1340
+ }
1341
+ },
1342
+ "compositePrimaryKeys": {},
1343
+ "uniqueConstraints": {},
1344
+ "checkConstraints": {}
1345
+ },
1346
+ "runs": {
1347
+ "name": "runs",
1348
+ "columns": {
1349
+ "id": {
1350
+ "name": "id",
1351
+ "type": "text",
1352
+ "primaryKey": true,
1353
+ "notNull": true,
1354
+ "autoincrement": false
1355
+ },
1356
+ "session_id": {
1357
+ "name": "session_id",
1358
+ "type": "text",
1359
+ "primaryKey": false,
1360
+ "notNull": true,
1361
+ "autoincrement": false
1362
+ },
1363
+ "user_message_id": {
1364
+ "name": "user_message_id",
1365
+ "type": "text",
1366
+ "primaryKey": false,
1367
+ "notNull": true,
1368
+ "autoincrement": false
1369
+ },
1370
+ "continuation_of": {
1371
+ "name": "continuation_of",
1372
+ "type": "text",
1373
+ "primaryKey": false,
1374
+ "notNull": false,
1375
+ "autoincrement": false
1376
+ },
1377
+ "assistant_message_id": {
1378
+ "name": "assistant_message_id",
1379
+ "type": "text",
1380
+ "primaryKey": false,
1381
+ "notNull": false,
1382
+ "autoincrement": false
1383
+ },
1384
+ "status": {
1385
+ "name": "status",
1386
+ "type": "text",
1387
+ "primaryKey": false,
1388
+ "notNull": true,
1389
+ "autoincrement": false
1390
+ },
1391
+ "model": {
1392
+ "name": "model",
1393
+ "type": "text",
1394
+ "primaryKey": false,
1395
+ "notNull": false,
1396
+ "autoincrement": false
1397
+ },
1398
+ "effort": {
1399
+ "name": "effort",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": false,
1403
+ "autoincrement": false
1404
+ },
1405
+ "endpoint": {
1406
+ "name": "endpoint",
1407
+ "type": "text",
1408
+ "primaryKey": false,
1409
+ "notNull": false,
1410
+ "autoincrement": false
1411
+ },
1412
+ "error": {
1413
+ "name": "error",
1414
+ "type": "text",
1415
+ "primaryKey": false,
1416
+ "notNull": false,
1417
+ "autoincrement": false
1418
+ },
1419
+ "started_at": {
1420
+ "name": "started_at",
1421
+ "type": "integer",
1422
+ "primaryKey": false,
1423
+ "notNull": true,
1424
+ "autoincrement": false
1425
+ },
1426
+ "ended_at": {
1427
+ "name": "ended_at",
1428
+ "type": "integer",
1429
+ "primaryKey": false,
1430
+ "notNull": false,
1431
+ "autoincrement": false
1432
+ }
1433
+ },
1434
+ "indexes": {
1435
+ "runs_continuation_once_idx": {
1436
+ "name": "runs_continuation_once_idx",
1437
+ "columns": [
1438
+ "continuation_of"
1439
+ ],
1440
+ "isUnique": true
1441
+ },
1442
+ "runs_session_idx": {
1443
+ "name": "runs_session_idx",
1444
+ "columns": [
1445
+ "session_id",
1446
+ "started_at"
1447
+ ],
1448
+ "isUnique": false
1449
+ },
1450
+ "runs_one_running_per_session_idx": {
1451
+ "name": "runs_one_running_per_session_idx",
1452
+ "columns": [
1453
+ "session_id"
1454
+ ],
1455
+ "isUnique": true,
1456
+ "where": "\"runs\".\"status\" = 'running'"
1457
+ }
1458
+ },
1459
+ "foreignKeys": {
1460
+ "runs_session_id_sessions_id_fk": {
1461
+ "name": "runs_session_id_sessions_id_fk",
1462
+ "tableFrom": "runs",
1463
+ "tableTo": "sessions",
1464
+ "columnsFrom": [
1465
+ "session_id"
1466
+ ],
1467
+ "columnsTo": [
1468
+ "id"
1469
+ ],
1470
+ "onDelete": "cascade",
1471
+ "onUpdate": "no action"
1472
+ },
1473
+ "runs_user_message_id_messages_id_fk": {
1474
+ "name": "runs_user_message_id_messages_id_fk",
1475
+ "tableFrom": "runs",
1476
+ "tableTo": "messages",
1477
+ "columnsFrom": [
1478
+ "user_message_id"
1479
+ ],
1480
+ "columnsTo": [
1481
+ "id"
1482
+ ],
1483
+ "onDelete": "cascade",
1484
+ "onUpdate": "no action"
1485
+ },
1486
+ "runs_assistant_message_id_messages_id_fk": {
1487
+ "name": "runs_assistant_message_id_messages_id_fk",
1488
+ "tableFrom": "runs",
1489
+ "tableTo": "messages",
1490
+ "columnsFrom": [
1491
+ "assistant_message_id"
1492
+ ],
1493
+ "columnsTo": [
1494
+ "id"
1495
+ ],
1496
+ "onDelete": "set null",
1497
+ "onUpdate": "no action"
1498
+ }
1499
+ },
1500
+ "compositePrimaryKeys": {},
1501
+ "uniqueConstraints": {},
1502
+ "checkConstraints": {}
1503
+ },
1504
+ "sessions": {
1505
+ "name": "sessions",
1506
+ "columns": {
1507
+ "id": {
1508
+ "name": "id",
1509
+ "type": "text",
1510
+ "primaryKey": true,
1511
+ "notNull": true,
1512
+ "autoincrement": false
1513
+ },
1514
+ "title": {
1515
+ "name": "title",
1516
+ "type": "text",
1517
+ "primaryKey": false,
1518
+ "notNull": true,
1519
+ "autoincrement": false
1520
+ },
1521
+ "title_set_by_learner": {
1522
+ "name": "title_set_by_learner",
1523
+ "type": "integer",
1524
+ "primaryKey": false,
1525
+ "notNull": true,
1526
+ "autoincrement": false,
1527
+ "default": false
1528
+ },
1529
+ "created_at": {
1530
+ "name": "created_at",
1531
+ "type": "integer",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "autoincrement": false
1535
+ },
1536
+ "updated_at": {
1537
+ "name": "updated_at",
1538
+ "type": "integer",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "autoincrement": false
1542
+ }
1543
+ },
1544
+ "indexes": {},
1545
+ "foreignKeys": {},
1546
+ "compositePrimaryKeys": {},
1547
+ "uniqueConstraints": {},
1548
+ "checkConstraints": {}
1549
+ },
1550
+ "settings": {
1551
+ "name": "settings",
1552
+ "columns": {
1553
+ "key": {
1554
+ "name": "key",
1555
+ "type": "text",
1556
+ "primaryKey": true,
1557
+ "notNull": true,
1558
+ "autoincrement": false
1559
+ },
1560
+ "value": {
1561
+ "name": "value",
1562
+ "type": "text",
1563
+ "primaryKey": false,
1564
+ "notNull": true,
1565
+ "autoincrement": false
1566
+ },
1567
+ "updated_at": {
1568
+ "name": "updated_at",
1569
+ "type": "integer",
1570
+ "primaryKey": false,
1571
+ "notNull": true,
1572
+ "autoincrement": false
1573
+ }
1574
+ },
1575
+ "indexes": {},
1576
+ "foreignKeys": {},
1577
+ "compositePrimaryKeys": {},
1578
+ "uniqueConstraints": {},
1579
+ "checkConstraints": {}
1580
+ },
1581
+ "syllabus_versions": {
1582
+ "name": "syllabus_versions",
1583
+ "columns": {
1584
+ "id": {
1585
+ "name": "id",
1586
+ "type": "text",
1587
+ "primaryKey": true,
1588
+ "notNull": true,
1589
+ "autoincrement": false
1590
+ },
1591
+ "course_id": {
1592
+ "name": "course_id",
1593
+ "type": "text",
1594
+ "primaryKey": false,
1595
+ "notNull": true,
1596
+ "autoincrement": false
1597
+ },
1598
+ "version": {
1599
+ "name": "version",
1600
+ "type": "integer",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "autoincrement": false
1604
+ },
1605
+ "topics": {
1606
+ "name": "topics",
1607
+ "type": "text",
1608
+ "primaryKey": false,
1609
+ "notNull": true,
1610
+ "autoincrement": false
1611
+ },
1612
+ "known": {
1613
+ "name": "known",
1614
+ "type": "text",
1615
+ "primaryKey": false,
1616
+ "notNull": true,
1617
+ "autoincrement": false
1618
+ },
1619
+ "source": {
1620
+ "name": "source",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": true,
1624
+ "autoincrement": false,
1625
+ "default": "'interview'"
1626
+ },
1627
+ "trigger_lesson_id": {
1628
+ "name": "trigger_lesson_id",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": false,
1632
+ "autoincrement": false
1633
+ },
1634
+ "reason": {
1635
+ "name": "reason",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": false,
1639
+ "autoincrement": false
1640
+ },
1641
+ "changed_topic_ids": {
1642
+ "name": "changed_topic_ids",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "autoincrement": false,
1647
+ "default": "'[]'"
1648
+ },
1649
+ "run_id": {
1650
+ "name": "run_id",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": false,
1654
+ "autoincrement": false
1655
+ },
1656
+ "created_at": {
1657
+ "name": "created_at",
1658
+ "type": "integer",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false
1662
+ }
1663
+ },
1664
+ "indexes": {
1665
+ "syllabus_versions_course_version_idx": {
1666
+ "name": "syllabus_versions_course_version_idx",
1667
+ "columns": [
1668
+ "course_id",
1669
+ "version"
1670
+ ],
1671
+ "isUnique": true
1672
+ }
1673
+ },
1674
+ "foreignKeys": {
1675
+ "syllabus_versions_course_id_courses_id_fk": {
1676
+ "name": "syllabus_versions_course_id_courses_id_fk",
1677
+ "tableFrom": "syllabus_versions",
1678
+ "tableTo": "courses",
1679
+ "columnsFrom": [
1680
+ "course_id"
1681
+ ],
1682
+ "columnsTo": [
1683
+ "id"
1684
+ ],
1685
+ "onDelete": "cascade",
1686
+ "onUpdate": "no action"
1687
+ },
1688
+ "syllabus_versions_run_id_runs_id_fk": {
1689
+ "name": "syllabus_versions_run_id_runs_id_fk",
1690
+ "tableFrom": "syllabus_versions",
1691
+ "tableTo": "runs",
1692
+ "columnsFrom": [
1693
+ "run_id"
1694
+ ],
1695
+ "columnsTo": [
1696
+ "id"
1697
+ ],
1698
+ "onDelete": "set null",
1699
+ "onUpdate": "no action"
1700
+ }
1701
+ },
1702
+ "compositePrimaryKeys": {},
1703
+ "uniqueConstraints": {},
1704
+ "checkConstraints": {}
1705
+ },
1706
+ "usage_records": {
1707
+ "name": "usage_records",
1708
+ "columns": {
1709
+ "id": {
1710
+ "name": "id",
1711
+ "type": "text",
1712
+ "primaryKey": true,
1713
+ "notNull": true,
1714
+ "autoincrement": false
1715
+ },
1716
+ "kind": {
1717
+ "name": "kind",
1718
+ "type": "text",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false
1722
+ },
1723
+ "status": {
1724
+ "name": "status",
1725
+ "type": "text",
1726
+ "primaryKey": false,
1727
+ "notNull": true,
1728
+ "autoincrement": false
1729
+ },
1730
+ "session_id": {
1731
+ "name": "session_id",
1732
+ "type": "text",
1733
+ "primaryKey": false,
1734
+ "notNull": false,
1735
+ "autoincrement": false
1736
+ },
1737
+ "run_id": {
1738
+ "name": "run_id",
1739
+ "type": "text",
1740
+ "primaryKey": false,
1741
+ "notNull": false,
1742
+ "autoincrement": false
1743
+ },
1744
+ "seq": {
1745
+ "name": "seq",
1746
+ "type": "integer",
1747
+ "primaryKey": false,
1748
+ "notNull": true,
1749
+ "autoincrement": false
1750
+ },
1751
+ "provider": {
1752
+ "name": "provider",
1753
+ "type": "text",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "autoincrement": false
1757
+ },
1758
+ "provider_label": {
1759
+ "name": "provider_label",
1760
+ "type": "text",
1761
+ "primaryKey": false,
1762
+ "notNull": true,
1763
+ "autoincrement": false
1764
+ },
1765
+ "model": {
1766
+ "name": "model",
1767
+ "type": "text",
1768
+ "primaryKey": false,
1769
+ "notNull": true,
1770
+ "autoincrement": false
1771
+ },
1772
+ "model_label": {
1773
+ "name": "model_label",
1774
+ "type": "text",
1775
+ "primaryKey": false,
1776
+ "notNull": false,
1777
+ "autoincrement": false
1778
+ },
1779
+ "effort": {
1780
+ "name": "effort",
1781
+ "type": "text",
1782
+ "primaryKey": false,
1783
+ "notNull": false,
1784
+ "autoincrement": false
1785
+ },
1786
+ "billing": {
1787
+ "name": "billing",
1788
+ "type": "text",
1789
+ "primaryKey": false,
1790
+ "notNull": true,
1791
+ "autoincrement": false
1792
+ },
1793
+ "input_tokens": {
1794
+ "name": "input_tokens",
1795
+ "type": "integer",
1796
+ "primaryKey": false,
1797
+ "notNull": false,
1798
+ "autoincrement": false
1799
+ },
1800
+ "input_no_cache_tokens": {
1801
+ "name": "input_no_cache_tokens",
1802
+ "type": "integer",
1803
+ "primaryKey": false,
1804
+ "notNull": false,
1805
+ "autoincrement": false
1806
+ },
1807
+ "input_cache_read_tokens": {
1808
+ "name": "input_cache_read_tokens",
1809
+ "type": "integer",
1810
+ "primaryKey": false,
1811
+ "notNull": false,
1812
+ "autoincrement": false
1813
+ },
1814
+ "input_cache_write_tokens": {
1815
+ "name": "input_cache_write_tokens",
1816
+ "type": "integer",
1817
+ "primaryKey": false,
1818
+ "notNull": false,
1819
+ "autoincrement": false
1820
+ },
1821
+ "output_tokens": {
1822
+ "name": "output_tokens",
1823
+ "type": "integer",
1824
+ "primaryKey": false,
1825
+ "notNull": false,
1826
+ "autoincrement": false
1827
+ },
1828
+ "output_reasoning_tokens": {
1829
+ "name": "output_reasoning_tokens",
1830
+ "type": "integer",
1831
+ "primaryKey": false,
1832
+ "notNull": false,
1833
+ "autoincrement": false
1834
+ },
1835
+ "reported_cost": {
1836
+ "name": "reported_cost",
1837
+ "type": "real",
1838
+ "primaryKey": false,
1839
+ "notNull": false,
1840
+ "autoincrement": false
1841
+ },
1842
+ "price": {
1843
+ "name": "price",
1844
+ "type": "text",
1845
+ "primaryKey": false,
1846
+ "notNull": false,
1847
+ "autoincrement": false
1848
+ },
1849
+ "estimated_cost": {
1850
+ "name": "estimated_cost",
1851
+ "type": "real",
1852
+ "primaryKey": false,
1853
+ "notNull": false,
1854
+ "autoincrement": false
1855
+ },
1856
+ "started_at": {
1857
+ "name": "started_at",
1858
+ "type": "integer",
1859
+ "primaryKey": false,
1860
+ "notNull": true,
1861
+ "autoincrement": false
1862
+ },
1863
+ "ended_at": {
1864
+ "name": "ended_at",
1865
+ "type": "integer",
1866
+ "primaryKey": false,
1867
+ "notNull": true,
1868
+ "autoincrement": false
1869
+ }
1870
+ },
1871
+ "indexes": {
1872
+ "usage_records_started_idx": {
1873
+ "name": "usage_records_started_idx",
1874
+ "columns": [
1875
+ "started_at"
1876
+ ],
1877
+ "isUnique": false
1878
+ },
1879
+ "usage_records_run_idx": {
1880
+ "name": "usage_records_run_idx",
1881
+ "columns": [
1882
+ "run_id"
1883
+ ],
1884
+ "isUnique": false
1885
+ }
1886
+ },
1887
+ "foreignKeys": {},
1888
+ "compositePrimaryKeys": {},
1889
+ "uniqueConstraints": {},
1890
+ "checkConstraints": {}
1891
+ },
1892
+ "vault_imports": {
1893
+ "name": "vault_imports",
1894
+ "columns": {
1895
+ "id": {
1896
+ "name": "id",
1897
+ "type": "text",
1898
+ "primaryKey": true,
1899
+ "notNull": true,
1900
+ "autoincrement": false
1901
+ },
1902
+ "name": {
1903
+ "name": "name",
1904
+ "type": "text",
1905
+ "primaryKey": false,
1906
+ "notNull": true,
1907
+ "autoincrement": false
1908
+ },
1909
+ "source": {
1910
+ "name": "source",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": true,
1914
+ "autoincrement": false
1915
+ },
1916
+ "created_at": {
1917
+ "name": "created_at",
1918
+ "type": "integer",
1919
+ "primaryKey": false,
1920
+ "notNull": true,
1921
+ "autoincrement": false
1922
+ },
1923
+ "updated_at": {
1924
+ "name": "updated_at",
1925
+ "type": "integer",
1926
+ "primaryKey": false,
1927
+ "notNull": true,
1928
+ "autoincrement": false
1929
+ }
1930
+ },
1931
+ "indexes": {
1932
+ "vault_imports_name_idx": {
1933
+ "name": "vault_imports_name_idx",
1934
+ "columns": [
1935
+ "name"
1936
+ ],
1937
+ "isUnique": true
1938
+ }
1939
+ },
1940
+ "foreignKeys": {},
1941
+ "compositePrimaryKeys": {},
1942
+ "uniqueConstraints": {},
1943
+ "checkConstraints": {}
1944
+ }
1945
+ },
1946
+ "views": {},
1947
+ "enums": {},
1948
+ "_meta": {
1949
+ "schemas": {},
1950
+ "tables": {},
1951
+ "columns": {}
1952
+ },
1953
+ "internal": {
1954
+ "indexes": {}
1955
+ }
1956
+ }