@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,1763 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "84c78916-d173-43a5-b40f-197440f46bc4",
5
+ "prevId": "b7110d13-9316-4e84-a9e9-20bea6384172",
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
+ "created_at": {
764
+ "name": "created_at",
765
+ "type": "integer",
766
+ "primaryKey": false,
767
+ "notNull": true,
768
+ "autoincrement": false
769
+ },
770
+ "finished_at": {
771
+ "name": "finished_at",
772
+ "type": "integer",
773
+ "primaryKey": false,
774
+ "notNull": false,
775
+ "autoincrement": false
776
+ }
777
+ },
778
+ "indexes": {
779
+ "lessons_course_topic_idx": {
780
+ "name": "lessons_course_topic_idx",
781
+ "columns": [
782
+ "course_id",
783
+ "topic_id"
784
+ ],
785
+ "isUnique": true
786
+ },
787
+ "lessons_session_idx": {
788
+ "name": "lessons_session_idx",
789
+ "columns": [
790
+ "session_id"
791
+ ],
792
+ "isUnique": true
793
+ }
794
+ },
795
+ "foreignKeys": {
796
+ "lessons_course_id_courses_id_fk": {
797
+ "name": "lessons_course_id_courses_id_fk",
798
+ "tableFrom": "lessons",
799
+ "tableTo": "courses",
800
+ "columnsFrom": [
801
+ "course_id"
802
+ ],
803
+ "columnsTo": [
804
+ "id"
805
+ ],
806
+ "onDelete": "cascade",
807
+ "onUpdate": "no action"
808
+ },
809
+ "lessons_session_id_sessions_id_fk": {
810
+ "name": "lessons_session_id_sessions_id_fk",
811
+ "tableFrom": "lessons",
812
+ "tableTo": "sessions",
813
+ "columnsFrom": [
814
+ "session_id"
815
+ ],
816
+ "columnsTo": [
817
+ "id"
818
+ ],
819
+ "onDelete": "cascade",
820
+ "onUpdate": "no action"
821
+ }
822
+ },
823
+ "compositePrimaryKeys": {},
824
+ "uniqueConstraints": {},
825
+ "checkConstraints": {}
826
+ },
827
+ "memories": {
828
+ "name": "memories",
829
+ "columns": {
830
+ "id": {
831
+ "name": "id",
832
+ "type": "text",
833
+ "primaryKey": true,
834
+ "notNull": true,
835
+ "autoincrement": false
836
+ },
837
+ "kind": {
838
+ "name": "kind",
839
+ "type": "text",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "autoincrement": false
843
+ },
844
+ "text": {
845
+ "name": "text",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": true,
849
+ "autoincrement": false
850
+ },
851
+ "concept": {
852
+ "name": "concept",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": false,
856
+ "autoincrement": false
857
+ },
858
+ "basis": {
859
+ "name": "basis",
860
+ "type": "text",
861
+ "primaryKey": false,
862
+ "notNull": true,
863
+ "autoincrement": false
864
+ },
865
+ "attempt_id": {
866
+ "name": "attempt_id",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": false,
870
+ "autoincrement": false
871
+ },
872
+ "session_id": {
873
+ "name": "session_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false,
877
+ "autoincrement": false
878
+ },
879
+ "run_id": {
880
+ "name": "run_id",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": false,
884
+ "autoincrement": false
885
+ },
886
+ "status": {
887
+ "name": "status",
888
+ "type": "text",
889
+ "primaryKey": false,
890
+ "notNull": true,
891
+ "autoincrement": false
892
+ },
893
+ "replaces_id": {
894
+ "name": "replaces_id",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false,
898
+ "autoincrement": false
899
+ },
900
+ "created_at": {
901
+ "name": "created_at",
902
+ "type": "integer",
903
+ "primaryKey": false,
904
+ "notNull": true,
905
+ "autoincrement": false
906
+ },
907
+ "edited_at": {
908
+ "name": "edited_at",
909
+ "type": "integer",
910
+ "primaryKey": false,
911
+ "notNull": false,
912
+ "autoincrement": false
913
+ }
914
+ },
915
+ "indexes": {
916
+ "memories_status_idx": {
917
+ "name": "memories_status_idx",
918
+ "columns": [
919
+ "status",
920
+ "created_at"
921
+ ],
922
+ "isUnique": false
923
+ },
924
+ "memories_run_idx": {
925
+ "name": "memories_run_idx",
926
+ "columns": [
927
+ "run_id"
928
+ ],
929
+ "isUnique": false
930
+ }
931
+ },
932
+ "foreignKeys": {
933
+ "memories_attempt_id_attempts_id_fk": {
934
+ "name": "memories_attempt_id_attempts_id_fk",
935
+ "tableFrom": "memories",
936
+ "tableTo": "attempts",
937
+ "columnsFrom": [
938
+ "attempt_id"
939
+ ],
940
+ "columnsTo": [
941
+ "id"
942
+ ],
943
+ "onDelete": "set null",
944
+ "onUpdate": "no action"
945
+ },
946
+ "memories_session_id_sessions_id_fk": {
947
+ "name": "memories_session_id_sessions_id_fk",
948
+ "tableFrom": "memories",
949
+ "tableTo": "sessions",
950
+ "columnsFrom": [
951
+ "session_id"
952
+ ],
953
+ "columnsTo": [
954
+ "id"
955
+ ],
956
+ "onDelete": "set null",
957
+ "onUpdate": "no action"
958
+ },
959
+ "memories_run_id_runs_id_fk": {
960
+ "name": "memories_run_id_runs_id_fk",
961
+ "tableFrom": "memories",
962
+ "tableTo": "runs",
963
+ "columnsFrom": [
964
+ "run_id"
965
+ ],
966
+ "columnsTo": [
967
+ "id"
968
+ ],
969
+ "onDelete": "set null",
970
+ "onUpdate": "no action"
971
+ }
972
+ },
973
+ "compositePrimaryKeys": {},
974
+ "uniqueConstraints": {},
975
+ "checkConstraints": {}
976
+ },
977
+ "messages": {
978
+ "name": "messages",
979
+ "columns": {
980
+ "id": {
981
+ "name": "id",
982
+ "type": "text",
983
+ "primaryKey": true,
984
+ "notNull": true,
985
+ "autoincrement": false
986
+ },
987
+ "session_id": {
988
+ "name": "session_id",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": true,
992
+ "autoincrement": false
993
+ },
994
+ "seq": {
995
+ "name": "seq",
996
+ "type": "integer",
997
+ "primaryKey": false,
998
+ "notNull": true,
999
+ "autoincrement": false
1000
+ },
1001
+ "role": {
1002
+ "name": "role",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": true,
1006
+ "autoincrement": false
1007
+ },
1008
+ "parts": {
1009
+ "name": "parts",
1010
+ "type": "text",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ },
1015
+ "created_at": {
1016
+ "name": "created_at",
1017
+ "type": "integer",
1018
+ "primaryKey": false,
1019
+ "notNull": true,
1020
+ "autoincrement": false
1021
+ }
1022
+ },
1023
+ "indexes": {
1024
+ "messages_session_seq_idx": {
1025
+ "name": "messages_session_seq_idx",
1026
+ "columns": [
1027
+ "session_id",
1028
+ "seq"
1029
+ ],
1030
+ "isUnique": true
1031
+ }
1032
+ },
1033
+ "foreignKeys": {
1034
+ "messages_session_id_sessions_id_fk": {
1035
+ "name": "messages_session_id_sessions_id_fk",
1036
+ "tableFrom": "messages",
1037
+ "tableTo": "sessions",
1038
+ "columnsFrom": [
1039
+ "session_id"
1040
+ ],
1041
+ "columnsTo": [
1042
+ "id"
1043
+ ],
1044
+ "onDelete": "cascade",
1045
+ "onUpdate": "no action"
1046
+ }
1047
+ },
1048
+ "compositePrimaryKeys": {},
1049
+ "uniqueConstraints": {},
1050
+ "checkConstraints": {}
1051
+ },
1052
+ "note_chunks": {
1053
+ "name": "note_chunks",
1054
+ "columns": {
1055
+ "id": {
1056
+ "name": "id",
1057
+ "type": "integer",
1058
+ "primaryKey": true,
1059
+ "notNull": true,
1060
+ "autoincrement": true
1061
+ },
1062
+ "note_id": {
1063
+ "name": "note_id",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": true,
1067
+ "autoincrement": false
1068
+ },
1069
+ "seq": {
1070
+ "name": "seq",
1071
+ "type": "integer",
1072
+ "primaryKey": false,
1073
+ "notNull": true,
1074
+ "autoincrement": false
1075
+ },
1076
+ "heading": {
1077
+ "name": "heading",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": false,
1081
+ "autoincrement": false
1082
+ },
1083
+ "text": {
1084
+ "name": "text",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": true,
1088
+ "autoincrement": false
1089
+ }
1090
+ },
1091
+ "indexes": {
1092
+ "note_chunks_note_seq_idx": {
1093
+ "name": "note_chunks_note_seq_idx",
1094
+ "columns": [
1095
+ "note_id",
1096
+ "seq"
1097
+ ],
1098
+ "isUnique": true
1099
+ }
1100
+ },
1101
+ "foreignKeys": {
1102
+ "note_chunks_note_id_notes_id_fk": {
1103
+ "name": "note_chunks_note_id_notes_id_fk",
1104
+ "tableFrom": "note_chunks",
1105
+ "tableTo": "notes",
1106
+ "columnsFrom": [
1107
+ "note_id"
1108
+ ],
1109
+ "columnsTo": [
1110
+ "id"
1111
+ ],
1112
+ "onDelete": "cascade",
1113
+ "onUpdate": "no action"
1114
+ }
1115
+ },
1116
+ "compositePrimaryKeys": {},
1117
+ "uniqueConstraints": {},
1118
+ "checkConstraints": {}
1119
+ },
1120
+ "note_links": {
1121
+ "name": "note_links",
1122
+ "columns": {
1123
+ "note_id": {
1124
+ "name": "note_id",
1125
+ "type": "text",
1126
+ "primaryKey": false,
1127
+ "notNull": true,
1128
+ "autoincrement": false
1129
+ },
1130
+ "target": {
1131
+ "name": "target",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": true,
1135
+ "autoincrement": false
1136
+ },
1137
+ "kind": {
1138
+ "name": "kind",
1139
+ "type": "text",
1140
+ "primaryKey": false,
1141
+ "notNull": true,
1142
+ "autoincrement": false
1143
+ }
1144
+ },
1145
+ "indexes": {},
1146
+ "foreignKeys": {
1147
+ "note_links_note_id_notes_id_fk": {
1148
+ "name": "note_links_note_id_notes_id_fk",
1149
+ "tableFrom": "note_links",
1150
+ "tableTo": "notes",
1151
+ "columnsFrom": [
1152
+ "note_id"
1153
+ ],
1154
+ "columnsTo": [
1155
+ "id"
1156
+ ],
1157
+ "onDelete": "cascade",
1158
+ "onUpdate": "no action"
1159
+ }
1160
+ },
1161
+ "compositePrimaryKeys": {
1162
+ "note_links_note_id_target_kind_pk": {
1163
+ "columns": [
1164
+ "note_id",
1165
+ "target",
1166
+ "kind"
1167
+ ],
1168
+ "name": "note_links_note_id_target_kind_pk"
1169
+ }
1170
+ },
1171
+ "uniqueConstraints": {},
1172
+ "checkConstraints": {}
1173
+ },
1174
+ "note_tags": {
1175
+ "name": "note_tags",
1176
+ "columns": {
1177
+ "note_id": {
1178
+ "name": "note_id",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": true,
1182
+ "autoincrement": false
1183
+ },
1184
+ "tag": {
1185
+ "name": "tag",
1186
+ "type": "text",
1187
+ "primaryKey": false,
1188
+ "notNull": true,
1189
+ "autoincrement": false
1190
+ }
1191
+ },
1192
+ "indexes": {
1193
+ "note_tags_tag_idx": {
1194
+ "name": "note_tags_tag_idx",
1195
+ "columns": [
1196
+ "tag"
1197
+ ],
1198
+ "isUnique": false
1199
+ }
1200
+ },
1201
+ "foreignKeys": {
1202
+ "note_tags_note_id_notes_id_fk": {
1203
+ "name": "note_tags_note_id_notes_id_fk",
1204
+ "tableFrom": "note_tags",
1205
+ "tableTo": "notes",
1206
+ "columnsFrom": [
1207
+ "note_id"
1208
+ ],
1209
+ "columnsTo": [
1210
+ "id"
1211
+ ],
1212
+ "onDelete": "cascade",
1213
+ "onUpdate": "no action"
1214
+ }
1215
+ },
1216
+ "compositePrimaryKeys": {
1217
+ "note_tags_note_id_tag_pk": {
1218
+ "columns": [
1219
+ "note_id",
1220
+ "tag"
1221
+ ],
1222
+ "name": "note_tags_note_id_tag_pk"
1223
+ }
1224
+ },
1225
+ "uniqueConstraints": {},
1226
+ "checkConstraints": {}
1227
+ },
1228
+ "notes": {
1229
+ "name": "notes",
1230
+ "columns": {
1231
+ "id": {
1232
+ "name": "id",
1233
+ "type": "text",
1234
+ "primaryKey": true,
1235
+ "notNull": true,
1236
+ "autoincrement": false
1237
+ },
1238
+ "import_id": {
1239
+ "name": "import_id",
1240
+ "type": "text",
1241
+ "primaryKey": false,
1242
+ "notNull": true,
1243
+ "autoincrement": false
1244
+ },
1245
+ "path": {
1246
+ "name": "path",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "autoincrement": false
1251
+ },
1252
+ "title": {
1253
+ "name": "title",
1254
+ "type": "text",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "autoincrement": false
1258
+ },
1259
+ "title_key": {
1260
+ "name": "title_key",
1261
+ "type": "text",
1262
+ "primaryKey": false,
1263
+ "notNull": true,
1264
+ "autoincrement": false
1265
+ },
1266
+ "aliases": {
1267
+ "name": "aliases",
1268
+ "type": "text",
1269
+ "primaryKey": false,
1270
+ "notNull": true,
1271
+ "autoincrement": false
1272
+ },
1273
+ "body": {
1274
+ "name": "body",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "autoincrement": false
1279
+ },
1280
+ "hash": {
1281
+ "name": "hash",
1282
+ "type": "text",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "autoincrement": false
1286
+ },
1287
+ "created_at": {
1288
+ "name": "created_at",
1289
+ "type": "integer",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "autoincrement": false
1293
+ },
1294
+ "updated_at": {
1295
+ "name": "updated_at",
1296
+ "type": "integer",
1297
+ "primaryKey": false,
1298
+ "notNull": true,
1299
+ "autoincrement": false
1300
+ }
1301
+ },
1302
+ "indexes": {
1303
+ "notes_import_path_idx": {
1304
+ "name": "notes_import_path_idx",
1305
+ "columns": [
1306
+ "import_id",
1307
+ "path"
1308
+ ],
1309
+ "isUnique": true
1310
+ },
1311
+ "notes_import_title_idx": {
1312
+ "name": "notes_import_title_idx",
1313
+ "columns": [
1314
+ "import_id",
1315
+ "title_key"
1316
+ ],
1317
+ "isUnique": false
1318
+ }
1319
+ },
1320
+ "foreignKeys": {
1321
+ "notes_import_id_vault_imports_id_fk": {
1322
+ "name": "notes_import_id_vault_imports_id_fk",
1323
+ "tableFrom": "notes",
1324
+ "tableTo": "vault_imports",
1325
+ "columnsFrom": [
1326
+ "import_id"
1327
+ ],
1328
+ "columnsTo": [
1329
+ "id"
1330
+ ],
1331
+ "onDelete": "cascade",
1332
+ "onUpdate": "no action"
1333
+ }
1334
+ },
1335
+ "compositePrimaryKeys": {},
1336
+ "uniqueConstraints": {},
1337
+ "checkConstraints": {}
1338
+ },
1339
+ "runs": {
1340
+ "name": "runs",
1341
+ "columns": {
1342
+ "id": {
1343
+ "name": "id",
1344
+ "type": "text",
1345
+ "primaryKey": true,
1346
+ "notNull": true,
1347
+ "autoincrement": false
1348
+ },
1349
+ "session_id": {
1350
+ "name": "session_id",
1351
+ "type": "text",
1352
+ "primaryKey": false,
1353
+ "notNull": true,
1354
+ "autoincrement": false
1355
+ },
1356
+ "user_message_id": {
1357
+ "name": "user_message_id",
1358
+ "type": "text",
1359
+ "primaryKey": false,
1360
+ "notNull": true,
1361
+ "autoincrement": false
1362
+ },
1363
+ "continuation_of": {
1364
+ "name": "continuation_of",
1365
+ "type": "text",
1366
+ "primaryKey": false,
1367
+ "notNull": false,
1368
+ "autoincrement": false
1369
+ },
1370
+ "assistant_message_id": {
1371
+ "name": "assistant_message_id",
1372
+ "type": "text",
1373
+ "primaryKey": false,
1374
+ "notNull": false,
1375
+ "autoincrement": false
1376
+ },
1377
+ "status": {
1378
+ "name": "status",
1379
+ "type": "text",
1380
+ "primaryKey": false,
1381
+ "notNull": true,
1382
+ "autoincrement": false
1383
+ },
1384
+ "model": {
1385
+ "name": "model",
1386
+ "type": "text",
1387
+ "primaryKey": false,
1388
+ "notNull": false,
1389
+ "autoincrement": false
1390
+ },
1391
+ "effort": {
1392
+ "name": "effort",
1393
+ "type": "text",
1394
+ "primaryKey": false,
1395
+ "notNull": false,
1396
+ "autoincrement": false
1397
+ },
1398
+ "endpoint": {
1399
+ "name": "endpoint",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": false,
1403
+ "autoincrement": false
1404
+ },
1405
+ "error": {
1406
+ "name": "error",
1407
+ "type": "text",
1408
+ "primaryKey": false,
1409
+ "notNull": false,
1410
+ "autoincrement": false
1411
+ },
1412
+ "started_at": {
1413
+ "name": "started_at",
1414
+ "type": "integer",
1415
+ "primaryKey": false,
1416
+ "notNull": true,
1417
+ "autoincrement": false
1418
+ },
1419
+ "ended_at": {
1420
+ "name": "ended_at",
1421
+ "type": "integer",
1422
+ "primaryKey": false,
1423
+ "notNull": false,
1424
+ "autoincrement": false
1425
+ }
1426
+ },
1427
+ "indexes": {
1428
+ "runs_continuation_once_idx": {
1429
+ "name": "runs_continuation_once_idx",
1430
+ "columns": [
1431
+ "continuation_of"
1432
+ ],
1433
+ "isUnique": true
1434
+ },
1435
+ "runs_session_idx": {
1436
+ "name": "runs_session_idx",
1437
+ "columns": [
1438
+ "session_id",
1439
+ "started_at"
1440
+ ],
1441
+ "isUnique": false
1442
+ },
1443
+ "runs_one_running_per_session_idx": {
1444
+ "name": "runs_one_running_per_session_idx",
1445
+ "columns": [
1446
+ "session_id"
1447
+ ],
1448
+ "isUnique": true,
1449
+ "where": "\"runs\".\"status\" = 'running'"
1450
+ }
1451
+ },
1452
+ "foreignKeys": {
1453
+ "runs_session_id_sessions_id_fk": {
1454
+ "name": "runs_session_id_sessions_id_fk",
1455
+ "tableFrom": "runs",
1456
+ "tableTo": "sessions",
1457
+ "columnsFrom": [
1458
+ "session_id"
1459
+ ],
1460
+ "columnsTo": [
1461
+ "id"
1462
+ ],
1463
+ "onDelete": "cascade",
1464
+ "onUpdate": "no action"
1465
+ },
1466
+ "runs_user_message_id_messages_id_fk": {
1467
+ "name": "runs_user_message_id_messages_id_fk",
1468
+ "tableFrom": "runs",
1469
+ "tableTo": "messages",
1470
+ "columnsFrom": [
1471
+ "user_message_id"
1472
+ ],
1473
+ "columnsTo": [
1474
+ "id"
1475
+ ],
1476
+ "onDelete": "cascade",
1477
+ "onUpdate": "no action"
1478
+ },
1479
+ "runs_assistant_message_id_messages_id_fk": {
1480
+ "name": "runs_assistant_message_id_messages_id_fk",
1481
+ "tableFrom": "runs",
1482
+ "tableTo": "messages",
1483
+ "columnsFrom": [
1484
+ "assistant_message_id"
1485
+ ],
1486
+ "columnsTo": [
1487
+ "id"
1488
+ ],
1489
+ "onDelete": "set null",
1490
+ "onUpdate": "no action"
1491
+ }
1492
+ },
1493
+ "compositePrimaryKeys": {},
1494
+ "uniqueConstraints": {},
1495
+ "checkConstraints": {}
1496
+ },
1497
+ "sessions": {
1498
+ "name": "sessions",
1499
+ "columns": {
1500
+ "id": {
1501
+ "name": "id",
1502
+ "type": "text",
1503
+ "primaryKey": true,
1504
+ "notNull": true,
1505
+ "autoincrement": false
1506
+ },
1507
+ "title": {
1508
+ "name": "title",
1509
+ "type": "text",
1510
+ "primaryKey": false,
1511
+ "notNull": true,
1512
+ "autoincrement": false
1513
+ },
1514
+ "title_set_by_learner": {
1515
+ "name": "title_set_by_learner",
1516
+ "type": "integer",
1517
+ "primaryKey": false,
1518
+ "notNull": true,
1519
+ "autoincrement": false,
1520
+ "default": false
1521
+ },
1522
+ "created_at": {
1523
+ "name": "created_at",
1524
+ "type": "integer",
1525
+ "primaryKey": false,
1526
+ "notNull": true,
1527
+ "autoincrement": false
1528
+ },
1529
+ "updated_at": {
1530
+ "name": "updated_at",
1531
+ "type": "integer",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "autoincrement": false
1535
+ }
1536
+ },
1537
+ "indexes": {},
1538
+ "foreignKeys": {},
1539
+ "compositePrimaryKeys": {},
1540
+ "uniqueConstraints": {},
1541
+ "checkConstraints": {}
1542
+ },
1543
+ "settings": {
1544
+ "name": "settings",
1545
+ "columns": {
1546
+ "key": {
1547
+ "name": "key",
1548
+ "type": "text",
1549
+ "primaryKey": true,
1550
+ "notNull": true,
1551
+ "autoincrement": false
1552
+ },
1553
+ "value": {
1554
+ "name": "value",
1555
+ "type": "text",
1556
+ "primaryKey": false,
1557
+ "notNull": true,
1558
+ "autoincrement": false
1559
+ },
1560
+ "updated_at": {
1561
+ "name": "updated_at",
1562
+ "type": "integer",
1563
+ "primaryKey": false,
1564
+ "notNull": true,
1565
+ "autoincrement": false
1566
+ }
1567
+ },
1568
+ "indexes": {},
1569
+ "foreignKeys": {},
1570
+ "compositePrimaryKeys": {},
1571
+ "uniqueConstraints": {},
1572
+ "checkConstraints": {}
1573
+ },
1574
+ "syllabus_versions": {
1575
+ "name": "syllabus_versions",
1576
+ "columns": {
1577
+ "id": {
1578
+ "name": "id",
1579
+ "type": "text",
1580
+ "primaryKey": true,
1581
+ "notNull": true,
1582
+ "autoincrement": false
1583
+ },
1584
+ "course_id": {
1585
+ "name": "course_id",
1586
+ "type": "text",
1587
+ "primaryKey": false,
1588
+ "notNull": true,
1589
+ "autoincrement": false
1590
+ },
1591
+ "version": {
1592
+ "name": "version",
1593
+ "type": "integer",
1594
+ "primaryKey": false,
1595
+ "notNull": true,
1596
+ "autoincrement": false
1597
+ },
1598
+ "topics": {
1599
+ "name": "topics",
1600
+ "type": "text",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "autoincrement": false
1604
+ },
1605
+ "known": {
1606
+ "name": "known",
1607
+ "type": "text",
1608
+ "primaryKey": false,
1609
+ "notNull": true,
1610
+ "autoincrement": false
1611
+ },
1612
+ "source": {
1613
+ "name": "source",
1614
+ "type": "text",
1615
+ "primaryKey": false,
1616
+ "notNull": true,
1617
+ "autoincrement": false,
1618
+ "default": "'interview'"
1619
+ },
1620
+ "trigger_lesson_id": {
1621
+ "name": "trigger_lesson_id",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": false,
1625
+ "autoincrement": false
1626
+ },
1627
+ "reason": {
1628
+ "name": "reason",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": false,
1632
+ "autoincrement": false
1633
+ },
1634
+ "changed_topic_ids": {
1635
+ "name": "changed_topic_ids",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "autoincrement": false,
1640
+ "default": "'[]'"
1641
+ },
1642
+ "run_id": {
1643
+ "name": "run_id",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": false,
1647
+ "autoincrement": false
1648
+ },
1649
+ "created_at": {
1650
+ "name": "created_at",
1651
+ "type": "integer",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "autoincrement": false
1655
+ }
1656
+ },
1657
+ "indexes": {
1658
+ "syllabus_versions_course_version_idx": {
1659
+ "name": "syllabus_versions_course_version_idx",
1660
+ "columns": [
1661
+ "course_id",
1662
+ "version"
1663
+ ],
1664
+ "isUnique": true
1665
+ }
1666
+ },
1667
+ "foreignKeys": {
1668
+ "syllabus_versions_course_id_courses_id_fk": {
1669
+ "name": "syllabus_versions_course_id_courses_id_fk",
1670
+ "tableFrom": "syllabus_versions",
1671
+ "tableTo": "courses",
1672
+ "columnsFrom": [
1673
+ "course_id"
1674
+ ],
1675
+ "columnsTo": [
1676
+ "id"
1677
+ ],
1678
+ "onDelete": "cascade",
1679
+ "onUpdate": "no action"
1680
+ },
1681
+ "syllabus_versions_run_id_runs_id_fk": {
1682
+ "name": "syllabus_versions_run_id_runs_id_fk",
1683
+ "tableFrom": "syllabus_versions",
1684
+ "tableTo": "runs",
1685
+ "columnsFrom": [
1686
+ "run_id"
1687
+ ],
1688
+ "columnsTo": [
1689
+ "id"
1690
+ ],
1691
+ "onDelete": "set null",
1692
+ "onUpdate": "no action"
1693
+ }
1694
+ },
1695
+ "compositePrimaryKeys": {},
1696
+ "uniqueConstraints": {},
1697
+ "checkConstraints": {}
1698
+ },
1699
+ "vault_imports": {
1700
+ "name": "vault_imports",
1701
+ "columns": {
1702
+ "id": {
1703
+ "name": "id",
1704
+ "type": "text",
1705
+ "primaryKey": true,
1706
+ "notNull": true,
1707
+ "autoincrement": false
1708
+ },
1709
+ "name": {
1710
+ "name": "name",
1711
+ "type": "text",
1712
+ "primaryKey": false,
1713
+ "notNull": true,
1714
+ "autoincrement": false
1715
+ },
1716
+ "source": {
1717
+ "name": "source",
1718
+ "type": "text",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false
1722
+ },
1723
+ "created_at": {
1724
+ "name": "created_at",
1725
+ "type": "integer",
1726
+ "primaryKey": false,
1727
+ "notNull": true,
1728
+ "autoincrement": false
1729
+ },
1730
+ "updated_at": {
1731
+ "name": "updated_at",
1732
+ "type": "integer",
1733
+ "primaryKey": false,
1734
+ "notNull": true,
1735
+ "autoincrement": false
1736
+ }
1737
+ },
1738
+ "indexes": {
1739
+ "vault_imports_name_idx": {
1740
+ "name": "vault_imports_name_idx",
1741
+ "columns": [
1742
+ "name"
1743
+ ],
1744
+ "isUnique": true
1745
+ }
1746
+ },
1747
+ "foreignKeys": {},
1748
+ "compositePrimaryKeys": {},
1749
+ "uniqueConstraints": {},
1750
+ "checkConstraints": {}
1751
+ }
1752
+ },
1753
+ "views": {},
1754
+ "enums": {},
1755
+ "_meta": {
1756
+ "schemas": {},
1757
+ "tables": {},
1758
+ "columns": {}
1759
+ },
1760
+ "internal": {
1761
+ "indexes": {}
1762
+ }
1763
+ }