@okhay-p/mivra 0.1.2 → 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 (48) hide show
  1. package/README.md +1 -0
  2. package/THIRD_PARTY_NOTICES.md +4 -0
  3. package/dist/chunk-KE5ZEREE.js +212 -0
  4. package/dist/chunk-KE5ZEREE.js.map +7 -0
  5. package/dist/chunk-KUKQU7EQ.js +755 -0
  6. package/dist/chunk-KUKQU7EQ.js.map +7 -0
  7. package/dist/chunk-ODFBAPPH.js +489 -0
  8. package/dist/chunk-ODFBAPPH.js.map +7 -0
  9. package/dist/chunk-PZ5AY32C.js +10 -0
  10. package/dist/chunk-PZ5AY32C.js.map +7 -0
  11. package/dist/chunk-TBAR47I6.js +32 -0
  12. package/dist/chunk-TBAR47I6.js.map +7 -0
  13. package/dist/chunk-YACRW47X.js +1203 -0
  14. package/dist/chunk-YACRW47X.js.map +7 -0
  15. package/dist/cli.js +256 -11188
  16. package/dist/cli.js.map +4 -4
  17. package/dist/client-5YDLS4KV.js +12 -0
  18. package/dist/client-5YDLS4KV.js.map +7 -0
  19. package/dist/extract-child.js +107 -173
  20. package/dist/extract-child.js.map +3 -3
  21. package/dist/key-check-WJ4CVZV5.js +8 -0
  22. package/dist/key-check-WJ4CVZV5.js.map +7 -0
  23. package/dist/start-76LKE3DL.js +13906 -0
  24. package/dist/start-76LKE3DL.js.map +7 -0
  25. package/drizzle/0012_overconfident_the_santerians.sql +66 -0
  26. package/drizzle/0013_next_dormammu.sql +1 -0
  27. package/drizzle/0014_furry_inertia.sql +1 -0
  28. package/drizzle/0015_spotty_warstar.sql +1 -0
  29. package/drizzle/0016_fresh_wiccan.sql +1 -0
  30. package/drizzle/0017_amusing_james_howlett.sql +28 -0
  31. package/drizzle/0018_happy_hairball.sql +43 -0
  32. package/drizzle/meta/0012_snapshot.json +1741 -0
  33. package/drizzle/meta/0013_snapshot.json +1749 -0
  34. package/drizzle/meta/0014_snapshot.json +1756 -0
  35. package/drizzle/meta/0015_snapshot.json +1763 -0
  36. package/drizzle/meta/0016_snapshot.json +1770 -0
  37. package/drizzle/meta/0017_snapshot.json +1956 -0
  38. package/drizzle/meta/0018_snapshot.json +2280 -0
  39. package/drizzle/meta/_journal.json +49 -0
  40. package/package.json +2 -1
  41. package/web/assets/index-C_DsRKCc.css +1 -0
  42. package/web/assets/index-DbKDW1xS.js +413 -0
  43. package/web/assets/notes-graph.worker-DaVQvftJ.js +1 -0
  44. package/web/assets/render.worker-BAfybD27.js +416 -0
  45. package/web/index.html +2 -2
  46. package/web/assets/index-BfT-sp3_.js +0 -406
  47. package/web/assets/index-FIC4B_yh.css +0 -1
  48. package/web/assets/render.worker-Bw6rO7Qu.js +0 -413
@@ -0,0 +1,1749 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "0b14f305-0f1b-4c31-a6ac-6b30eb2cc404",
5
+ "prevId": "5cca901b-c192-4625-8a4b-a4a780bef405",
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
+ "created_at": {
265
+ "name": "created_at",
266
+ "type": "integer",
267
+ "primaryKey": false,
268
+ "notNull": true,
269
+ "autoincrement": false
270
+ },
271
+ "updated_at": {
272
+ "name": "updated_at",
273
+ "type": "integer",
274
+ "primaryKey": false,
275
+ "notNull": true,
276
+ "autoincrement": false
277
+ }
278
+ },
279
+ "indexes": {
280
+ "courses_session_idx": {
281
+ "name": "courses_session_idx",
282
+ "columns": [
283
+ "session_id"
284
+ ],
285
+ "isUnique": true
286
+ }
287
+ },
288
+ "foreignKeys": {
289
+ "courses_session_id_sessions_id_fk": {
290
+ "name": "courses_session_id_sessions_id_fk",
291
+ "tableFrom": "courses",
292
+ "tableTo": "sessions",
293
+ "columnsFrom": [
294
+ "session_id"
295
+ ],
296
+ "columnsTo": [
297
+ "id"
298
+ ],
299
+ "onDelete": "cascade",
300
+ "onUpdate": "no action"
301
+ }
302
+ },
303
+ "compositePrimaryKeys": {},
304
+ "uniqueConstraints": {},
305
+ "checkConstraints": {}
306
+ },
307
+ "document_chunks": {
308
+ "name": "document_chunks",
309
+ "columns": {
310
+ "id": {
311
+ "name": "id",
312
+ "type": "integer",
313
+ "primaryKey": true,
314
+ "notNull": true,
315
+ "autoincrement": true
316
+ },
317
+ "document_id": {
318
+ "name": "document_id",
319
+ "type": "text",
320
+ "primaryKey": false,
321
+ "notNull": true,
322
+ "autoincrement": false
323
+ },
324
+ "page": {
325
+ "name": "page",
326
+ "type": "integer",
327
+ "primaryKey": false,
328
+ "notNull": true,
329
+ "autoincrement": false
330
+ },
331
+ "seq": {
332
+ "name": "seq",
333
+ "type": "integer",
334
+ "primaryKey": false,
335
+ "notNull": true,
336
+ "autoincrement": false
337
+ },
338
+ "text": {
339
+ "name": "text",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": true,
343
+ "autoincrement": false
344
+ }
345
+ },
346
+ "indexes": {
347
+ "document_chunks_document_seq_idx": {
348
+ "name": "document_chunks_document_seq_idx",
349
+ "columns": [
350
+ "document_id",
351
+ "seq"
352
+ ],
353
+ "isUnique": true
354
+ }
355
+ },
356
+ "foreignKeys": {
357
+ "document_chunks_document_id_documents_id_fk": {
358
+ "name": "document_chunks_document_id_documents_id_fk",
359
+ "tableFrom": "document_chunks",
360
+ "tableTo": "documents",
361
+ "columnsFrom": [
362
+ "document_id"
363
+ ],
364
+ "columnsTo": [
365
+ "id"
366
+ ],
367
+ "onDelete": "cascade",
368
+ "onUpdate": "no action"
369
+ }
370
+ },
371
+ "compositePrimaryKeys": {},
372
+ "uniqueConstraints": {},
373
+ "checkConstraints": {}
374
+ },
375
+ "documents": {
376
+ "name": "documents",
377
+ "columns": {
378
+ "id": {
379
+ "name": "id",
380
+ "type": "text",
381
+ "primaryKey": true,
382
+ "notNull": true,
383
+ "autoincrement": false
384
+ },
385
+ "session_id": {
386
+ "name": "session_id",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true,
390
+ "autoincrement": false
391
+ },
392
+ "message_id": {
393
+ "name": "message_id",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": false,
397
+ "autoincrement": false
398
+ },
399
+ "filename": {
400
+ "name": "filename",
401
+ "type": "text",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "autoincrement": false
405
+ },
406
+ "kind": {
407
+ "name": "kind",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": true,
411
+ "autoincrement": false
412
+ },
413
+ "byte_size": {
414
+ "name": "byte_size",
415
+ "type": "integer",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "autoincrement": false
419
+ },
420
+ "text_chars": {
421
+ "name": "text_chars",
422
+ "type": "integer",
423
+ "primaryKey": false,
424
+ "notNull": true,
425
+ "autoincrement": false
426
+ },
427
+ "page_count": {
428
+ "name": "page_count",
429
+ "type": "integer",
430
+ "primaryKey": false,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ },
434
+ "pages_with_text": {
435
+ "name": "pages_with_text",
436
+ "type": "integer",
437
+ "primaryKey": false,
438
+ "notNull": true,
439
+ "autoincrement": false
440
+ },
441
+ "status": {
442
+ "name": "status",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true,
446
+ "autoincrement": false
447
+ },
448
+ "created_at": {
449
+ "name": "created_at",
450
+ "type": "integer",
451
+ "primaryKey": false,
452
+ "notNull": true,
453
+ "autoincrement": false
454
+ }
455
+ },
456
+ "indexes": {
457
+ "documents_session_idx": {
458
+ "name": "documents_session_idx",
459
+ "columns": [
460
+ "session_id",
461
+ "created_at"
462
+ ],
463
+ "isUnique": false
464
+ }
465
+ },
466
+ "foreignKeys": {
467
+ "documents_session_id_sessions_id_fk": {
468
+ "name": "documents_session_id_sessions_id_fk",
469
+ "tableFrom": "documents",
470
+ "tableTo": "sessions",
471
+ "columnsFrom": [
472
+ "session_id"
473
+ ],
474
+ "columnsTo": [
475
+ "id"
476
+ ],
477
+ "onDelete": "cascade",
478
+ "onUpdate": "no action"
479
+ },
480
+ "documents_message_id_messages_id_fk": {
481
+ "name": "documents_message_id_messages_id_fk",
482
+ "tableFrom": "documents",
483
+ "tableTo": "messages",
484
+ "columnsFrom": [
485
+ "message_id"
486
+ ],
487
+ "columnsTo": [
488
+ "id"
489
+ ],
490
+ "onDelete": "set null",
491
+ "onUpdate": "no action"
492
+ }
493
+ },
494
+ "compositePrimaryKeys": {},
495
+ "uniqueConstraints": {},
496
+ "checkConstraints": {}
497
+ },
498
+ "lesson_sections": {
499
+ "name": "lesson_sections",
500
+ "columns": {
501
+ "id": {
502
+ "name": "id",
503
+ "type": "text",
504
+ "primaryKey": true,
505
+ "notNull": true,
506
+ "autoincrement": false
507
+ },
508
+ "lesson_id": {
509
+ "name": "lesson_id",
510
+ "type": "text",
511
+ "primaryKey": false,
512
+ "notNull": true,
513
+ "autoincrement": false
514
+ },
515
+ "kind": {
516
+ "name": "kind",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": true,
520
+ "autoincrement": false
521
+ },
522
+ "title": {
523
+ "name": "title",
524
+ "type": "text",
525
+ "primaryKey": false,
526
+ "notNull": true,
527
+ "autoincrement": false
528
+ },
529
+ "markdown": {
530
+ "name": "markdown",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": false,
534
+ "autoincrement": false
535
+ },
536
+ "artifact_id": {
537
+ "name": "artifact_id",
538
+ "type": "text",
539
+ "primaryKey": false,
540
+ "notNull": false,
541
+ "autoincrement": false
542
+ },
543
+ "revisits": {
544
+ "name": "revisits",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": true,
548
+ "autoincrement": false,
549
+ "default": "'[]'"
550
+ },
551
+ "created_at": {
552
+ "name": "created_at",
553
+ "type": "integer",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ }
558
+ },
559
+ "indexes": {
560
+ "lesson_sections_lesson_idx": {
561
+ "name": "lesson_sections_lesson_idx",
562
+ "columns": [
563
+ "lesson_id"
564
+ ],
565
+ "isUnique": false
566
+ },
567
+ "lesson_sections_artifact_idx": {
568
+ "name": "lesson_sections_artifact_idx",
569
+ "columns": [
570
+ "artifact_id"
571
+ ],
572
+ "isUnique": true
573
+ }
574
+ },
575
+ "foreignKeys": {
576
+ "lesson_sections_lesson_id_lessons_id_fk": {
577
+ "name": "lesson_sections_lesson_id_lessons_id_fk",
578
+ "tableFrom": "lesson_sections",
579
+ "tableTo": "lessons",
580
+ "columnsFrom": [
581
+ "lesson_id"
582
+ ],
583
+ "columnsTo": [
584
+ "id"
585
+ ],
586
+ "onDelete": "cascade",
587
+ "onUpdate": "no action"
588
+ },
589
+ "lesson_sections_artifact_id_artifacts_id_fk": {
590
+ "name": "lesson_sections_artifact_id_artifacts_id_fk",
591
+ "tableFrom": "lesson_sections",
592
+ "tableTo": "artifacts",
593
+ "columnsFrom": [
594
+ "artifact_id"
595
+ ],
596
+ "columnsTo": [
597
+ "id"
598
+ ],
599
+ "onDelete": "cascade",
600
+ "onUpdate": "no action"
601
+ }
602
+ },
603
+ "compositePrimaryKeys": {},
604
+ "uniqueConstraints": {},
605
+ "checkConstraints": {}
606
+ },
607
+ "lesson_versions": {
608
+ "name": "lesson_versions",
609
+ "columns": {
610
+ "id": {
611
+ "name": "id",
612
+ "type": "text",
613
+ "primaryKey": true,
614
+ "notNull": true,
615
+ "autoincrement": false
616
+ },
617
+ "lesson_id": {
618
+ "name": "lesson_id",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": true,
622
+ "autoincrement": false
623
+ },
624
+ "version": {
625
+ "name": "version",
626
+ "type": "integer",
627
+ "primaryKey": false,
628
+ "notNull": true,
629
+ "autoincrement": false
630
+ },
631
+ "outline": {
632
+ "name": "outline",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": true,
636
+ "autoincrement": false
637
+ },
638
+ "section_ids": {
639
+ "name": "section_ids",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": true,
643
+ "autoincrement": false
644
+ },
645
+ "changed_section_ids": {
646
+ "name": "changed_section_ids",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": true,
650
+ "autoincrement": false,
651
+ "default": "'[]'"
652
+ },
653
+ "reason": {
654
+ "name": "reason",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": false,
658
+ "autoincrement": false
659
+ },
660
+ "created_at": {
661
+ "name": "created_at",
662
+ "type": "integer",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "autoincrement": false
666
+ }
667
+ },
668
+ "indexes": {
669
+ "lesson_versions_lesson_version_idx": {
670
+ "name": "lesson_versions_lesson_version_idx",
671
+ "columns": [
672
+ "lesson_id",
673
+ "version"
674
+ ],
675
+ "isUnique": true
676
+ }
677
+ },
678
+ "foreignKeys": {
679
+ "lesson_versions_lesson_id_lessons_id_fk": {
680
+ "name": "lesson_versions_lesson_id_lessons_id_fk",
681
+ "tableFrom": "lesson_versions",
682
+ "tableTo": "lessons",
683
+ "columnsFrom": [
684
+ "lesson_id"
685
+ ],
686
+ "columnsTo": [
687
+ "id"
688
+ ],
689
+ "onDelete": "cascade",
690
+ "onUpdate": "no action"
691
+ }
692
+ },
693
+ "compositePrimaryKeys": {},
694
+ "uniqueConstraints": {},
695
+ "checkConstraints": {}
696
+ },
697
+ "lessons": {
698
+ "name": "lessons",
699
+ "columns": {
700
+ "id": {
701
+ "name": "id",
702
+ "type": "text",
703
+ "primaryKey": true,
704
+ "notNull": true,
705
+ "autoincrement": false
706
+ },
707
+ "course_id": {
708
+ "name": "course_id",
709
+ "type": "text",
710
+ "primaryKey": false,
711
+ "notNull": true,
712
+ "autoincrement": false
713
+ },
714
+ "topic_id": {
715
+ "name": "topic_id",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": true,
719
+ "autoincrement": false
720
+ },
721
+ "topic_title": {
722
+ "name": "topic_title",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "autoincrement": false
727
+ },
728
+ "position": {
729
+ "name": "position",
730
+ "type": "integer",
731
+ "primaryKey": false,
732
+ "notNull": true,
733
+ "autoincrement": false
734
+ },
735
+ "session_id": {
736
+ "name": "session_id",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true,
740
+ "autoincrement": false
741
+ },
742
+ "status": {
743
+ "name": "status",
744
+ "type": "text",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "autoincrement": false
748
+ },
749
+ "error": {
750
+ "name": "error",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": false,
754
+ "autoincrement": false
755
+ },
756
+ "created_at": {
757
+ "name": "created_at",
758
+ "type": "integer",
759
+ "primaryKey": false,
760
+ "notNull": true,
761
+ "autoincrement": false
762
+ },
763
+ "finished_at": {
764
+ "name": "finished_at",
765
+ "type": "integer",
766
+ "primaryKey": false,
767
+ "notNull": false,
768
+ "autoincrement": false
769
+ }
770
+ },
771
+ "indexes": {
772
+ "lessons_course_topic_idx": {
773
+ "name": "lessons_course_topic_idx",
774
+ "columns": [
775
+ "course_id",
776
+ "topic_id"
777
+ ],
778
+ "isUnique": true
779
+ },
780
+ "lessons_session_idx": {
781
+ "name": "lessons_session_idx",
782
+ "columns": [
783
+ "session_id"
784
+ ],
785
+ "isUnique": true
786
+ }
787
+ },
788
+ "foreignKeys": {
789
+ "lessons_course_id_courses_id_fk": {
790
+ "name": "lessons_course_id_courses_id_fk",
791
+ "tableFrom": "lessons",
792
+ "tableTo": "courses",
793
+ "columnsFrom": [
794
+ "course_id"
795
+ ],
796
+ "columnsTo": [
797
+ "id"
798
+ ],
799
+ "onDelete": "cascade",
800
+ "onUpdate": "no action"
801
+ },
802
+ "lessons_session_id_sessions_id_fk": {
803
+ "name": "lessons_session_id_sessions_id_fk",
804
+ "tableFrom": "lessons",
805
+ "tableTo": "sessions",
806
+ "columnsFrom": [
807
+ "session_id"
808
+ ],
809
+ "columnsTo": [
810
+ "id"
811
+ ],
812
+ "onDelete": "cascade",
813
+ "onUpdate": "no action"
814
+ }
815
+ },
816
+ "compositePrimaryKeys": {},
817
+ "uniqueConstraints": {},
818
+ "checkConstraints": {}
819
+ },
820
+ "memories": {
821
+ "name": "memories",
822
+ "columns": {
823
+ "id": {
824
+ "name": "id",
825
+ "type": "text",
826
+ "primaryKey": true,
827
+ "notNull": true,
828
+ "autoincrement": false
829
+ },
830
+ "kind": {
831
+ "name": "kind",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": true,
835
+ "autoincrement": false
836
+ },
837
+ "text": {
838
+ "name": "text",
839
+ "type": "text",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "autoincrement": false
843
+ },
844
+ "concept": {
845
+ "name": "concept",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": false,
849
+ "autoincrement": false
850
+ },
851
+ "basis": {
852
+ "name": "basis",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true,
856
+ "autoincrement": false
857
+ },
858
+ "attempt_id": {
859
+ "name": "attempt_id",
860
+ "type": "text",
861
+ "primaryKey": false,
862
+ "notNull": false,
863
+ "autoincrement": false
864
+ },
865
+ "session_id": {
866
+ "name": "session_id",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": false,
870
+ "autoincrement": false
871
+ },
872
+ "run_id": {
873
+ "name": "run_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false,
877
+ "autoincrement": false
878
+ },
879
+ "status": {
880
+ "name": "status",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": true,
884
+ "autoincrement": false
885
+ },
886
+ "replaces_id": {
887
+ "name": "replaces_id",
888
+ "type": "text",
889
+ "primaryKey": false,
890
+ "notNull": false,
891
+ "autoincrement": false
892
+ },
893
+ "created_at": {
894
+ "name": "created_at",
895
+ "type": "integer",
896
+ "primaryKey": false,
897
+ "notNull": true,
898
+ "autoincrement": false
899
+ },
900
+ "edited_at": {
901
+ "name": "edited_at",
902
+ "type": "integer",
903
+ "primaryKey": false,
904
+ "notNull": false,
905
+ "autoincrement": false
906
+ }
907
+ },
908
+ "indexes": {
909
+ "memories_status_idx": {
910
+ "name": "memories_status_idx",
911
+ "columns": [
912
+ "status",
913
+ "created_at"
914
+ ],
915
+ "isUnique": false
916
+ },
917
+ "memories_run_idx": {
918
+ "name": "memories_run_idx",
919
+ "columns": [
920
+ "run_id"
921
+ ],
922
+ "isUnique": false
923
+ }
924
+ },
925
+ "foreignKeys": {
926
+ "memories_attempt_id_attempts_id_fk": {
927
+ "name": "memories_attempt_id_attempts_id_fk",
928
+ "tableFrom": "memories",
929
+ "tableTo": "attempts",
930
+ "columnsFrom": [
931
+ "attempt_id"
932
+ ],
933
+ "columnsTo": [
934
+ "id"
935
+ ],
936
+ "onDelete": "set null",
937
+ "onUpdate": "no action"
938
+ },
939
+ "memories_session_id_sessions_id_fk": {
940
+ "name": "memories_session_id_sessions_id_fk",
941
+ "tableFrom": "memories",
942
+ "tableTo": "sessions",
943
+ "columnsFrom": [
944
+ "session_id"
945
+ ],
946
+ "columnsTo": [
947
+ "id"
948
+ ],
949
+ "onDelete": "set null",
950
+ "onUpdate": "no action"
951
+ },
952
+ "memories_run_id_runs_id_fk": {
953
+ "name": "memories_run_id_runs_id_fk",
954
+ "tableFrom": "memories",
955
+ "tableTo": "runs",
956
+ "columnsFrom": [
957
+ "run_id"
958
+ ],
959
+ "columnsTo": [
960
+ "id"
961
+ ],
962
+ "onDelete": "set null",
963
+ "onUpdate": "no action"
964
+ }
965
+ },
966
+ "compositePrimaryKeys": {},
967
+ "uniqueConstraints": {},
968
+ "checkConstraints": {}
969
+ },
970
+ "messages": {
971
+ "name": "messages",
972
+ "columns": {
973
+ "id": {
974
+ "name": "id",
975
+ "type": "text",
976
+ "primaryKey": true,
977
+ "notNull": true,
978
+ "autoincrement": false
979
+ },
980
+ "session_id": {
981
+ "name": "session_id",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": true,
985
+ "autoincrement": false
986
+ },
987
+ "seq": {
988
+ "name": "seq",
989
+ "type": "integer",
990
+ "primaryKey": false,
991
+ "notNull": true,
992
+ "autoincrement": false
993
+ },
994
+ "role": {
995
+ "name": "role",
996
+ "type": "text",
997
+ "primaryKey": false,
998
+ "notNull": true,
999
+ "autoincrement": false
1000
+ },
1001
+ "parts": {
1002
+ "name": "parts",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": true,
1006
+ "autoincrement": false
1007
+ },
1008
+ "created_at": {
1009
+ "name": "created_at",
1010
+ "type": "integer",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ }
1015
+ },
1016
+ "indexes": {
1017
+ "messages_session_seq_idx": {
1018
+ "name": "messages_session_seq_idx",
1019
+ "columns": [
1020
+ "session_id",
1021
+ "seq"
1022
+ ],
1023
+ "isUnique": true
1024
+ }
1025
+ },
1026
+ "foreignKeys": {
1027
+ "messages_session_id_sessions_id_fk": {
1028
+ "name": "messages_session_id_sessions_id_fk",
1029
+ "tableFrom": "messages",
1030
+ "tableTo": "sessions",
1031
+ "columnsFrom": [
1032
+ "session_id"
1033
+ ],
1034
+ "columnsTo": [
1035
+ "id"
1036
+ ],
1037
+ "onDelete": "cascade",
1038
+ "onUpdate": "no action"
1039
+ }
1040
+ },
1041
+ "compositePrimaryKeys": {},
1042
+ "uniqueConstraints": {},
1043
+ "checkConstraints": {}
1044
+ },
1045
+ "note_chunks": {
1046
+ "name": "note_chunks",
1047
+ "columns": {
1048
+ "id": {
1049
+ "name": "id",
1050
+ "type": "integer",
1051
+ "primaryKey": true,
1052
+ "notNull": true,
1053
+ "autoincrement": true
1054
+ },
1055
+ "note_id": {
1056
+ "name": "note_id",
1057
+ "type": "text",
1058
+ "primaryKey": false,
1059
+ "notNull": true,
1060
+ "autoincrement": false
1061
+ },
1062
+ "seq": {
1063
+ "name": "seq",
1064
+ "type": "integer",
1065
+ "primaryKey": false,
1066
+ "notNull": true,
1067
+ "autoincrement": false
1068
+ },
1069
+ "heading": {
1070
+ "name": "heading",
1071
+ "type": "text",
1072
+ "primaryKey": false,
1073
+ "notNull": false,
1074
+ "autoincrement": false
1075
+ },
1076
+ "text": {
1077
+ "name": "text",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": true,
1081
+ "autoincrement": false
1082
+ }
1083
+ },
1084
+ "indexes": {
1085
+ "note_chunks_note_seq_idx": {
1086
+ "name": "note_chunks_note_seq_idx",
1087
+ "columns": [
1088
+ "note_id",
1089
+ "seq"
1090
+ ],
1091
+ "isUnique": true
1092
+ }
1093
+ },
1094
+ "foreignKeys": {
1095
+ "note_chunks_note_id_notes_id_fk": {
1096
+ "name": "note_chunks_note_id_notes_id_fk",
1097
+ "tableFrom": "note_chunks",
1098
+ "tableTo": "notes",
1099
+ "columnsFrom": [
1100
+ "note_id"
1101
+ ],
1102
+ "columnsTo": [
1103
+ "id"
1104
+ ],
1105
+ "onDelete": "cascade",
1106
+ "onUpdate": "no action"
1107
+ }
1108
+ },
1109
+ "compositePrimaryKeys": {},
1110
+ "uniqueConstraints": {},
1111
+ "checkConstraints": {}
1112
+ },
1113
+ "note_links": {
1114
+ "name": "note_links",
1115
+ "columns": {
1116
+ "note_id": {
1117
+ "name": "note_id",
1118
+ "type": "text",
1119
+ "primaryKey": false,
1120
+ "notNull": true,
1121
+ "autoincrement": false
1122
+ },
1123
+ "target": {
1124
+ "name": "target",
1125
+ "type": "text",
1126
+ "primaryKey": false,
1127
+ "notNull": true,
1128
+ "autoincrement": false
1129
+ },
1130
+ "kind": {
1131
+ "name": "kind",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": true,
1135
+ "autoincrement": false
1136
+ }
1137
+ },
1138
+ "indexes": {},
1139
+ "foreignKeys": {
1140
+ "note_links_note_id_notes_id_fk": {
1141
+ "name": "note_links_note_id_notes_id_fk",
1142
+ "tableFrom": "note_links",
1143
+ "tableTo": "notes",
1144
+ "columnsFrom": [
1145
+ "note_id"
1146
+ ],
1147
+ "columnsTo": [
1148
+ "id"
1149
+ ],
1150
+ "onDelete": "cascade",
1151
+ "onUpdate": "no action"
1152
+ }
1153
+ },
1154
+ "compositePrimaryKeys": {
1155
+ "note_links_note_id_target_kind_pk": {
1156
+ "columns": [
1157
+ "note_id",
1158
+ "target",
1159
+ "kind"
1160
+ ],
1161
+ "name": "note_links_note_id_target_kind_pk"
1162
+ }
1163
+ },
1164
+ "uniqueConstraints": {},
1165
+ "checkConstraints": {}
1166
+ },
1167
+ "note_tags": {
1168
+ "name": "note_tags",
1169
+ "columns": {
1170
+ "note_id": {
1171
+ "name": "note_id",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": true,
1175
+ "autoincrement": false
1176
+ },
1177
+ "tag": {
1178
+ "name": "tag",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": true,
1182
+ "autoincrement": false
1183
+ }
1184
+ },
1185
+ "indexes": {
1186
+ "note_tags_tag_idx": {
1187
+ "name": "note_tags_tag_idx",
1188
+ "columns": [
1189
+ "tag"
1190
+ ],
1191
+ "isUnique": false
1192
+ }
1193
+ },
1194
+ "foreignKeys": {
1195
+ "note_tags_note_id_notes_id_fk": {
1196
+ "name": "note_tags_note_id_notes_id_fk",
1197
+ "tableFrom": "note_tags",
1198
+ "tableTo": "notes",
1199
+ "columnsFrom": [
1200
+ "note_id"
1201
+ ],
1202
+ "columnsTo": [
1203
+ "id"
1204
+ ],
1205
+ "onDelete": "cascade",
1206
+ "onUpdate": "no action"
1207
+ }
1208
+ },
1209
+ "compositePrimaryKeys": {
1210
+ "note_tags_note_id_tag_pk": {
1211
+ "columns": [
1212
+ "note_id",
1213
+ "tag"
1214
+ ],
1215
+ "name": "note_tags_note_id_tag_pk"
1216
+ }
1217
+ },
1218
+ "uniqueConstraints": {},
1219
+ "checkConstraints": {}
1220
+ },
1221
+ "notes": {
1222
+ "name": "notes",
1223
+ "columns": {
1224
+ "id": {
1225
+ "name": "id",
1226
+ "type": "text",
1227
+ "primaryKey": true,
1228
+ "notNull": true,
1229
+ "autoincrement": false
1230
+ },
1231
+ "import_id": {
1232
+ "name": "import_id",
1233
+ "type": "text",
1234
+ "primaryKey": false,
1235
+ "notNull": true,
1236
+ "autoincrement": false
1237
+ },
1238
+ "path": {
1239
+ "name": "path",
1240
+ "type": "text",
1241
+ "primaryKey": false,
1242
+ "notNull": true,
1243
+ "autoincrement": false
1244
+ },
1245
+ "title": {
1246
+ "name": "title",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "autoincrement": false
1251
+ },
1252
+ "title_key": {
1253
+ "name": "title_key",
1254
+ "type": "text",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "autoincrement": false
1258
+ },
1259
+ "aliases": {
1260
+ "name": "aliases",
1261
+ "type": "text",
1262
+ "primaryKey": false,
1263
+ "notNull": true,
1264
+ "autoincrement": false
1265
+ },
1266
+ "body": {
1267
+ "name": "body",
1268
+ "type": "text",
1269
+ "primaryKey": false,
1270
+ "notNull": true,
1271
+ "autoincrement": false
1272
+ },
1273
+ "hash": {
1274
+ "name": "hash",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "autoincrement": false
1279
+ },
1280
+ "created_at": {
1281
+ "name": "created_at",
1282
+ "type": "integer",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "autoincrement": false
1286
+ },
1287
+ "updated_at": {
1288
+ "name": "updated_at",
1289
+ "type": "integer",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "autoincrement": false
1293
+ }
1294
+ },
1295
+ "indexes": {
1296
+ "notes_import_path_idx": {
1297
+ "name": "notes_import_path_idx",
1298
+ "columns": [
1299
+ "import_id",
1300
+ "path"
1301
+ ],
1302
+ "isUnique": true
1303
+ },
1304
+ "notes_import_title_idx": {
1305
+ "name": "notes_import_title_idx",
1306
+ "columns": [
1307
+ "import_id",
1308
+ "title_key"
1309
+ ],
1310
+ "isUnique": false
1311
+ }
1312
+ },
1313
+ "foreignKeys": {
1314
+ "notes_import_id_vault_imports_id_fk": {
1315
+ "name": "notes_import_id_vault_imports_id_fk",
1316
+ "tableFrom": "notes",
1317
+ "tableTo": "vault_imports",
1318
+ "columnsFrom": [
1319
+ "import_id"
1320
+ ],
1321
+ "columnsTo": [
1322
+ "id"
1323
+ ],
1324
+ "onDelete": "cascade",
1325
+ "onUpdate": "no action"
1326
+ }
1327
+ },
1328
+ "compositePrimaryKeys": {},
1329
+ "uniqueConstraints": {},
1330
+ "checkConstraints": {}
1331
+ },
1332
+ "runs": {
1333
+ "name": "runs",
1334
+ "columns": {
1335
+ "id": {
1336
+ "name": "id",
1337
+ "type": "text",
1338
+ "primaryKey": true,
1339
+ "notNull": true,
1340
+ "autoincrement": false
1341
+ },
1342
+ "session_id": {
1343
+ "name": "session_id",
1344
+ "type": "text",
1345
+ "primaryKey": false,
1346
+ "notNull": true,
1347
+ "autoincrement": false
1348
+ },
1349
+ "user_message_id": {
1350
+ "name": "user_message_id",
1351
+ "type": "text",
1352
+ "primaryKey": false,
1353
+ "notNull": true,
1354
+ "autoincrement": false
1355
+ },
1356
+ "continuation_of": {
1357
+ "name": "continuation_of",
1358
+ "type": "text",
1359
+ "primaryKey": false,
1360
+ "notNull": false,
1361
+ "autoincrement": false
1362
+ },
1363
+ "assistant_message_id": {
1364
+ "name": "assistant_message_id",
1365
+ "type": "text",
1366
+ "primaryKey": false,
1367
+ "notNull": false,
1368
+ "autoincrement": false
1369
+ },
1370
+ "status": {
1371
+ "name": "status",
1372
+ "type": "text",
1373
+ "primaryKey": false,
1374
+ "notNull": true,
1375
+ "autoincrement": false
1376
+ },
1377
+ "model": {
1378
+ "name": "model",
1379
+ "type": "text",
1380
+ "primaryKey": false,
1381
+ "notNull": false,
1382
+ "autoincrement": false
1383
+ },
1384
+ "effort": {
1385
+ "name": "effort",
1386
+ "type": "text",
1387
+ "primaryKey": false,
1388
+ "notNull": false,
1389
+ "autoincrement": false
1390
+ },
1391
+ "error": {
1392
+ "name": "error",
1393
+ "type": "text",
1394
+ "primaryKey": false,
1395
+ "notNull": false,
1396
+ "autoincrement": false
1397
+ },
1398
+ "started_at": {
1399
+ "name": "started_at",
1400
+ "type": "integer",
1401
+ "primaryKey": false,
1402
+ "notNull": true,
1403
+ "autoincrement": false
1404
+ },
1405
+ "ended_at": {
1406
+ "name": "ended_at",
1407
+ "type": "integer",
1408
+ "primaryKey": false,
1409
+ "notNull": false,
1410
+ "autoincrement": false
1411
+ }
1412
+ },
1413
+ "indexes": {
1414
+ "runs_continuation_once_idx": {
1415
+ "name": "runs_continuation_once_idx",
1416
+ "columns": [
1417
+ "continuation_of"
1418
+ ],
1419
+ "isUnique": true
1420
+ },
1421
+ "runs_session_idx": {
1422
+ "name": "runs_session_idx",
1423
+ "columns": [
1424
+ "session_id",
1425
+ "started_at"
1426
+ ],
1427
+ "isUnique": false
1428
+ },
1429
+ "runs_one_running_per_session_idx": {
1430
+ "name": "runs_one_running_per_session_idx",
1431
+ "columns": [
1432
+ "session_id"
1433
+ ],
1434
+ "isUnique": true,
1435
+ "where": "\"runs\".\"status\" = 'running'"
1436
+ }
1437
+ },
1438
+ "foreignKeys": {
1439
+ "runs_session_id_sessions_id_fk": {
1440
+ "name": "runs_session_id_sessions_id_fk",
1441
+ "tableFrom": "runs",
1442
+ "tableTo": "sessions",
1443
+ "columnsFrom": [
1444
+ "session_id"
1445
+ ],
1446
+ "columnsTo": [
1447
+ "id"
1448
+ ],
1449
+ "onDelete": "cascade",
1450
+ "onUpdate": "no action"
1451
+ },
1452
+ "runs_user_message_id_messages_id_fk": {
1453
+ "name": "runs_user_message_id_messages_id_fk",
1454
+ "tableFrom": "runs",
1455
+ "tableTo": "messages",
1456
+ "columnsFrom": [
1457
+ "user_message_id"
1458
+ ],
1459
+ "columnsTo": [
1460
+ "id"
1461
+ ],
1462
+ "onDelete": "cascade",
1463
+ "onUpdate": "no action"
1464
+ },
1465
+ "runs_assistant_message_id_messages_id_fk": {
1466
+ "name": "runs_assistant_message_id_messages_id_fk",
1467
+ "tableFrom": "runs",
1468
+ "tableTo": "messages",
1469
+ "columnsFrom": [
1470
+ "assistant_message_id"
1471
+ ],
1472
+ "columnsTo": [
1473
+ "id"
1474
+ ],
1475
+ "onDelete": "set null",
1476
+ "onUpdate": "no action"
1477
+ }
1478
+ },
1479
+ "compositePrimaryKeys": {},
1480
+ "uniqueConstraints": {},
1481
+ "checkConstraints": {}
1482
+ },
1483
+ "sessions": {
1484
+ "name": "sessions",
1485
+ "columns": {
1486
+ "id": {
1487
+ "name": "id",
1488
+ "type": "text",
1489
+ "primaryKey": true,
1490
+ "notNull": true,
1491
+ "autoincrement": false
1492
+ },
1493
+ "title": {
1494
+ "name": "title",
1495
+ "type": "text",
1496
+ "primaryKey": false,
1497
+ "notNull": true,
1498
+ "autoincrement": false
1499
+ },
1500
+ "title_set_by_learner": {
1501
+ "name": "title_set_by_learner",
1502
+ "type": "integer",
1503
+ "primaryKey": false,
1504
+ "notNull": true,
1505
+ "autoincrement": false,
1506
+ "default": false
1507
+ },
1508
+ "created_at": {
1509
+ "name": "created_at",
1510
+ "type": "integer",
1511
+ "primaryKey": false,
1512
+ "notNull": true,
1513
+ "autoincrement": false
1514
+ },
1515
+ "updated_at": {
1516
+ "name": "updated_at",
1517
+ "type": "integer",
1518
+ "primaryKey": false,
1519
+ "notNull": true,
1520
+ "autoincrement": false
1521
+ }
1522
+ },
1523
+ "indexes": {},
1524
+ "foreignKeys": {},
1525
+ "compositePrimaryKeys": {},
1526
+ "uniqueConstraints": {},
1527
+ "checkConstraints": {}
1528
+ },
1529
+ "settings": {
1530
+ "name": "settings",
1531
+ "columns": {
1532
+ "key": {
1533
+ "name": "key",
1534
+ "type": "text",
1535
+ "primaryKey": true,
1536
+ "notNull": true,
1537
+ "autoincrement": false
1538
+ },
1539
+ "value": {
1540
+ "name": "value",
1541
+ "type": "text",
1542
+ "primaryKey": false,
1543
+ "notNull": true,
1544
+ "autoincrement": false
1545
+ },
1546
+ "updated_at": {
1547
+ "name": "updated_at",
1548
+ "type": "integer",
1549
+ "primaryKey": false,
1550
+ "notNull": true,
1551
+ "autoincrement": false
1552
+ }
1553
+ },
1554
+ "indexes": {},
1555
+ "foreignKeys": {},
1556
+ "compositePrimaryKeys": {},
1557
+ "uniqueConstraints": {},
1558
+ "checkConstraints": {}
1559
+ },
1560
+ "syllabus_versions": {
1561
+ "name": "syllabus_versions",
1562
+ "columns": {
1563
+ "id": {
1564
+ "name": "id",
1565
+ "type": "text",
1566
+ "primaryKey": true,
1567
+ "notNull": true,
1568
+ "autoincrement": false
1569
+ },
1570
+ "course_id": {
1571
+ "name": "course_id",
1572
+ "type": "text",
1573
+ "primaryKey": false,
1574
+ "notNull": true,
1575
+ "autoincrement": false
1576
+ },
1577
+ "version": {
1578
+ "name": "version",
1579
+ "type": "integer",
1580
+ "primaryKey": false,
1581
+ "notNull": true,
1582
+ "autoincrement": false
1583
+ },
1584
+ "topics": {
1585
+ "name": "topics",
1586
+ "type": "text",
1587
+ "primaryKey": false,
1588
+ "notNull": true,
1589
+ "autoincrement": false
1590
+ },
1591
+ "known": {
1592
+ "name": "known",
1593
+ "type": "text",
1594
+ "primaryKey": false,
1595
+ "notNull": true,
1596
+ "autoincrement": false
1597
+ },
1598
+ "source": {
1599
+ "name": "source",
1600
+ "type": "text",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "autoincrement": false,
1604
+ "default": "'interview'"
1605
+ },
1606
+ "trigger_lesson_id": {
1607
+ "name": "trigger_lesson_id",
1608
+ "type": "text",
1609
+ "primaryKey": false,
1610
+ "notNull": false,
1611
+ "autoincrement": false
1612
+ },
1613
+ "reason": {
1614
+ "name": "reason",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": false,
1618
+ "autoincrement": false
1619
+ },
1620
+ "changed_topic_ids": {
1621
+ "name": "changed_topic_ids",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": true,
1625
+ "autoincrement": false,
1626
+ "default": "'[]'"
1627
+ },
1628
+ "run_id": {
1629
+ "name": "run_id",
1630
+ "type": "text",
1631
+ "primaryKey": false,
1632
+ "notNull": false,
1633
+ "autoincrement": false
1634
+ },
1635
+ "created_at": {
1636
+ "name": "created_at",
1637
+ "type": "integer",
1638
+ "primaryKey": false,
1639
+ "notNull": true,
1640
+ "autoincrement": false
1641
+ }
1642
+ },
1643
+ "indexes": {
1644
+ "syllabus_versions_course_version_idx": {
1645
+ "name": "syllabus_versions_course_version_idx",
1646
+ "columns": [
1647
+ "course_id",
1648
+ "version"
1649
+ ],
1650
+ "isUnique": true
1651
+ }
1652
+ },
1653
+ "foreignKeys": {
1654
+ "syllabus_versions_course_id_courses_id_fk": {
1655
+ "name": "syllabus_versions_course_id_courses_id_fk",
1656
+ "tableFrom": "syllabus_versions",
1657
+ "tableTo": "courses",
1658
+ "columnsFrom": [
1659
+ "course_id"
1660
+ ],
1661
+ "columnsTo": [
1662
+ "id"
1663
+ ],
1664
+ "onDelete": "cascade",
1665
+ "onUpdate": "no action"
1666
+ },
1667
+ "syllabus_versions_run_id_runs_id_fk": {
1668
+ "name": "syllabus_versions_run_id_runs_id_fk",
1669
+ "tableFrom": "syllabus_versions",
1670
+ "tableTo": "runs",
1671
+ "columnsFrom": [
1672
+ "run_id"
1673
+ ],
1674
+ "columnsTo": [
1675
+ "id"
1676
+ ],
1677
+ "onDelete": "set null",
1678
+ "onUpdate": "no action"
1679
+ }
1680
+ },
1681
+ "compositePrimaryKeys": {},
1682
+ "uniqueConstraints": {},
1683
+ "checkConstraints": {}
1684
+ },
1685
+ "vault_imports": {
1686
+ "name": "vault_imports",
1687
+ "columns": {
1688
+ "id": {
1689
+ "name": "id",
1690
+ "type": "text",
1691
+ "primaryKey": true,
1692
+ "notNull": true,
1693
+ "autoincrement": false
1694
+ },
1695
+ "name": {
1696
+ "name": "name",
1697
+ "type": "text",
1698
+ "primaryKey": false,
1699
+ "notNull": true,
1700
+ "autoincrement": false
1701
+ },
1702
+ "source": {
1703
+ "name": "source",
1704
+ "type": "text",
1705
+ "primaryKey": false,
1706
+ "notNull": true,
1707
+ "autoincrement": false
1708
+ },
1709
+ "created_at": {
1710
+ "name": "created_at",
1711
+ "type": "integer",
1712
+ "primaryKey": false,
1713
+ "notNull": true,
1714
+ "autoincrement": false
1715
+ },
1716
+ "updated_at": {
1717
+ "name": "updated_at",
1718
+ "type": "integer",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false
1722
+ }
1723
+ },
1724
+ "indexes": {
1725
+ "vault_imports_name_idx": {
1726
+ "name": "vault_imports_name_idx",
1727
+ "columns": [
1728
+ "name"
1729
+ ],
1730
+ "isUnique": true
1731
+ }
1732
+ },
1733
+ "foreignKeys": {},
1734
+ "compositePrimaryKeys": {},
1735
+ "uniqueConstraints": {},
1736
+ "checkConstraints": {}
1737
+ }
1738
+ },
1739
+ "views": {},
1740
+ "enums": {},
1741
+ "_meta": {
1742
+ "schemas": {},
1743
+ "tables": {},
1744
+ "columns": {}
1745
+ },
1746
+ "internal": {
1747
+ "indexes": {}
1748
+ }
1749
+ }