@assistkick/create 1.31.0 → 1.32.0

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/package.json +1 -1
  2. package/templates/assistkick-product-system/packages/shared/db/migrate.ts +153 -1
  3. package/templates/assistkick-product-system/packages/shared/db/migrations/0000_dashing_gorgon.sql +0 -128
  4. package/templates/assistkick-product-system/packages/shared/db/migrations/0001_vengeful_wallop.sql +0 -1
  5. package/templates/assistkick-product-system/packages/shared/db/migrations/0002_greedy_excalibur.sql +0 -4
  6. package/templates/assistkick-product-system/packages/shared/db/migrations/0003_lonely_cyclops.sql +0 -17
  7. package/templates/assistkick-product-system/packages/shared/db/migrations/0004_tidy_matthew_murdock.sql +0 -9
  8. package/templates/assistkick-product-system/packages/shared/db/migrations/0005_mysterious_falcon.sql +0 -692
  9. package/templates/assistkick-product-system/packages/shared/db/migrations/0006_next_venom.sql +0 -9
  10. package/templates/assistkick-product-system/packages/shared/db/migrations/0007_deep_barracuda.sql +0 -39
  11. package/templates/assistkick-product-system/packages/shared/db/migrations/0008_puzzling_hannibal_king.sql +0 -1
  12. package/templates/assistkick-product-system/packages/shared/db/migrations/0009_amused_beast.sql +0 -8
  13. package/templates/assistkick-product-system/packages/shared/db/migrations/0010_spotty_moira_mactaggert.sql +0 -9
  14. package/templates/assistkick-product-system/packages/shared/db/migrations/0011_goofy_snowbird.sql +0 -3
  15. package/templates/assistkick-product-system/packages/shared/db/migrations/0011_supreme_doctor_octopus.sql +0 -3
  16. package/templates/assistkick-product-system/packages/shared/db/migrations/0013_reflective_prowler.sql +0 -15
  17. package/templates/assistkick-product-system/packages/shared/db/migrations/0014_nifty_punisher.sql +0 -15
  18. package/templates/assistkick-product-system/packages/shared/db/migrations/0015_magenta_jazinda.sql +0 -1
  19. package/templates/assistkick-product-system/packages/shared/db/migrations/0016_giant_xorn.sql +0 -1
  20. package/templates/assistkick-product-system/packages/shared/db/migrations/0017_sloppy_mentor.sql +0 -6
  21. package/templates/assistkick-product-system/packages/shared/db/migrations/0018_vengeful_kabuki.sql +0 -9
  22. package/templates/assistkick-product-system/packages/shared/db/migrations/0019_careful_sentinels.sql +0 -8
  23. package/templates/assistkick-product-system/packages/shared/db/migrations/0020_clever_spot.sql +0 -27
  24. package/templates/assistkick-product-system/packages/shared/db/migrations/0021_graceful_hex.sql +0 -1
  25. package/templates/assistkick-product-system/packages/shared/db/migrations/0022_short_kingpin.sql +0 -1
  26. package/templates/assistkick-product-system/packages/shared/db/migrations/0023_ambiguous_sharon_carter.sql +0 -1
  27. package/templates/assistkick-product-system/packages/shared/db/migrations/0024_fat_unus.sql +0 -1
  28. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0003_snapshot.json +0 -862
  29. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0004_snapshot.json +0 -921
  30. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0005_snapshot.json +0 -1042
  31. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0006_snapshot.json +0 -1101
  32. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0007_snapshot.json +0 -1336
  33. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0008_snapshot.json +0 -1275
  34. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0009_snapshot.json +0 -1327
  35. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0010_snapshot.json +0 -1393
  36. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0011_snapshot.json +0 -1436
  37. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0013_snapshot.json +0 -1538
  38. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0014_snapshot.json +0 -1545
  39. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0015_snapshot.json +0 -1552
  40. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0016_snapshot.json +0 -1560
  41. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0017_snapshot.json +0 -1598
  42. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0018_snapshot.json +0 -1657
  43. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0019_snapshot.json +0 -1709
  44. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0020_snapshot.json +0 -1733
  45. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0021_snapshot.json +0 -1740
  46. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0022_snapshot.json +0 -1755
  47. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0023_snapshot.json +0 -1762
  48. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0024_snapshot.json +0 -1769
@@ -1,1101 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "68ca4784-fb0c-4799-84e7-f0a0fd001e97",
5
- "prevId": "5d2685e9-273b-40c6-ac1b-7980306543c9",
6
- "tables": {
7
- "agents": {
8
- "name": "agents",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "text",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "name": {
18
- "name": "name",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "prompt_template": {
25
- "name": "prompt_template",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- },
31
- "project_id": {
32
- "name": "project_id",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": false,
36
- "autoincrement": false
37
- },
38
- "is_default": {
39
- "name": "is_default",
40
- "type": "integer",
41
- "primaryKey": false,
42
- "notNull": true,
43
- "autoincrement": false,
44
- "default": 0
45
- },
46
- "created_at": {
47
- "name": "created_at",
48
- "type": "text",
49
- "primaryKey": false,
50
- "notNull": true,
51
- "autoincrement": false
52
- },
53
- "updated_at": {
54
- "name": "updated_at",
55
- "type": "text",
56
- "primaryKey": false,
57
- "notNull": true,
58
- "autoincrement": false
59
- }
60
- },
61
- "indexes": {},
62
- "foreignKeys": {},
63
- "compositePrimaryKeys": {},
64
- "uniqueConstraints": {},
65
- "checkConstraints": {}
66
- },
67
- "coherence_reviews": {
68
- "name": "coherence_reviews",
69
- "columns": {
70
- "id": {
71
- "name": "id",
72
- "type": "text",
73
- "primaryKey": true,
74
- "notNull": true,
75
- "autoincrement": false
76
- },
77
- "type": {
78
- "name": "type",
79
- "type": "text",
80
- "primaryKey": false,
81
- "notNull": true,
82
- "autoincrement": false
83
- },
84
- "from_id": {
85
- "name": "from_id",
86
- "type": "text",
87
- "primaryKey": false,
88
- "notNull": false,
89
- "autoincrement": false
90
- },
91
- "to_id": {
92
- "name": "to_id",
93
- "type": "text",
94
- "primaryKey": false,
95
- "notNull": false,
96
- "autoincrement": false
97
- },
98
- "relation": {
99
- "name": "relation",
100
- "type": "text",
101
- "primaryKey": false,
102
- "notNull": false,
103
- "autoincrement": false
104
- },
105
- "proposed_node_type": {
106
- "name": "proposed_node_type",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": false,
110
- "autoincrement": false
111
- },
112
- "proposed_node_name": {
113
- "name": "proposed_node_name",
114
- "type": "text",
115
- "primaryKey": false,
116
- "notNull": false,
117
- "autoincrement": false
118
- },
119
- "target_node_id": {
120
- "name": "target_node_id",
121
- "type": "text",
122
- "primaryKey": false,
123
- "notNull": false,
124
- "autoincrement": false
125
- },
126
- "proposed_description": {
127
- "name": "proposed_description",
128
- "type": "text",
129
- "primaryKey": false,
130
- "notNull": false,
131
- "autoincrement": false
132
- },
133
- "confidence": {
134
- "name": "confidence",
135
- "type": "text",
136
- "primaryKey": false,
137
- "notNull": false,
138
- "autoincrement": false
139
- },
140
- "batch_id": {
141
- "name": "batch_id",
142
- "type": "text",
143
- "primaryKey": false,
144
- "notNull": false,
145
- "autoincrement": false
146
- },
147
- "reasoning": {
148
- "name": "reasoning",
149
- "type": "text",
150
- "primaryKey": false,
151
- "notNull": true,
152
- "autoincrement": false
153
- },
154
- "status": {
155
- "name": "status",
156
- "type": "text",
157
- "primaryKey": false,
158
- "notNull": true,
159
- "autoincrement": false
160
- },
161
- "created_at": {
162
- "name": "created_at",
163
- "type": "text",
164
- "primaryKey": false,
165
- "notNull": true,
166
- "autoincrement": false
167
- },
168
- "resolved_at": {
169
- "name": "resolved_at",
170
- "type": "text",
171
- "primaryKey": false,
172
- "notNull": false,
173
- "autoincrement": false
174
- },
175
- "project_id": {
176
- "name": "project_id",
177
- "type": "text",
178
- "primaryKey": false,
179
- "notNull": false,
180
- "autoincrement": false
181
- }
182
- },
183
- "indexes": {},
184
- "foreignKeys": {},
185
- "compositePrimaryKeys": {},
186
- "uniqueConstraints": {},
187
- "checkConstraints": {}
188
- },
189
- "edges": {
190
- "name": "edges",
191
- "columns": {
192
- "from_id": {
193
- "name": "from_id",
194
- "type": "text",
195
- "primaryKey": false,
196
- "notNull": true,
197
- "autoincrement": false
198
- },
199
- "relation": {
200
- "name": "relation",
201
- "type": "text",
202
- "primaryKey": false,
203
- "notNull": true,
204
- "autoincrement": false
205
- },
206
- "to_id": {
207
- "name": "to_id",
208
- "type": "text",
209
- "primaryKey": false,
210
- "notNull": true,
211
- "autoincrement": false
212
- },
213
- "project_id": {
214
- "name": "project_id",
215
- "type": "text",
216
- "primaryKey": false,
217
- "notNull": false,
218
- "autoincrement": false
219
- }
220
- },
221
- "indexes": {},
222
- "foreignKeys": {},
223
- "compositePrimaryKeys": {
224
- "edges_from_id_relation_to_id_pk": {
225
- "columns": [
226
- "from_id",
227
- "relation",
228
- "to_id"
229
- ],
230
- "name": "edges_from_id_relation_to_id_pk"
231
- }
232
- },
233
- "uniqueConstraints": {},
234
- "checkConstraints": {}
235
- },
236
- "invitations": {
237
- "name": "invitations",
238
- "columns": {
239
- "id": {
240
- "name": "id",
241
- "type": "text",
242
- "primaryKey": true,
243
- "notNull": true,
244
- "autoincrement": false
245
- },
246
- "email": {
247
- "name": "email",
248
- "type": "text",
249
- "primaryKey": false,
250
- "notNull": true,
251
- "autoincrement": false
252
- },
253
- "token_hash": {
254
- "name": "token_hash",
255
- "type": "text",
256
- "primaryKey": false,
257
- "notNull": true,
258
- "autoincrement": false
259
- },
260
- "invited_by": {
261
- "name": "invited_by",
262
- "type": "text",
263
- "primaryKey": false,
264
- "notNull": true,
265
- "autoincrement": false
266
- },
267
- "expires_at": {
268
- "name": "expires_at",
269
- "type": "text",
270
- "primaryKey": false,
271
- "notNull": true,
272
- "autoincrement": false
273
- },
274
- "accepted_at": {
275
- "name": "accepted_at",
276
- "type": "text",
277
- "primaryKey": false,
278
- "notNull": false,
279
- "autoincrement": false
280
- },
281
- "created_at": {
282
- "name": "created_at",
283
- "type": "text",
284
- "primaryKey": false,
285
- "notNull": true,
286
- "autoincrement": false
287
- }
288
- },
289
- "indexes": {},
290
- "foreignKeys": {
291
- "invitations_invited_by_users_id_fk": {
292
- "name": "invitations_invited_by_users_id_fk",
293
- "tableFrom": "invitations",
294
- "tableTo": "users",
295
- "columnsFrom": [
296
- "invited_by"
297
- ],
298
- "columnsTo": [
299
- "id"
300
- ],
301
- "onDelete": "no action",
302
- "onUpdate": "no action"
303
- }
304
- },
305
- "compositePrimaryKeys": {},
306
- "uniqueConstraints": {},
307
- "checkConstraints": {}
308
- },
309
- "kanban": {
310
- "name": "kanban",
311
- "columns": {
312
- "node_id": {
313
- "name": "node_id",
314
- "type": "text",
315
- "primaryKey": true,
316
- "notNull": true,
317
- "autoincrement": false
318
- },
319
- "column_name": {
320
- "name": "column_name",
321
- "type": "text",
322
- "primaryKey": false,
323
- "notNull": true,
324
- "autoincrement": false
325
- },
326
- "position": {
327
- "name": "position",
328
- "type": "integer",
329
- "primaryKey": false,
330
- "notNull": true,
331
- "autoincrement": false
332
- },
333
- "project_id": {
334
- "name": "project_id",
335
- "type": "text",
336
- "primaryKey": false,
337
- "notNull": false,
338
- "autoincrement": false
339
- }
340
- },
341
- "indexes": {},
342
- "foreignKeys": {
343
- "kanban_node_id_nodes_id_fk": {
344
- "name": "kanban_node_id_nodes_id_fk",
345
- "tableFrom": "kanban",
346
- "tableTo": "nodes",
347
- "columnsFrom": [
348
- "node_id"
349
- ],
350
- "columnsTo": [
351
- "id"
352
- ],
353
- "onDelete": "no action",
354
- "onUpdate": "no action"
355
- }
356
- },
357
- "compositePrimaryKeys": {},
358
- "uniqueConstraints": {},
359
- "checkConstraints": {}
360
- },
361
- "nodes": {
362
- "name": "nodes",
363
- "columns": {
364
- "id": {
365
- "name": "id",
366
- "type": "text",
367
- "primaryKey": true,
368
- "notNull": true,
369
- "autoincrement": false
370
- },
371
- "type": {
372
- "name": "type",
373
- "type": "text",
374
- "primaryKey": false,
375
- "notNull": true,
376
- "autoincrement": false
377
- },
378
- "name": {
379
- "name": "name",
380
- "type": "text",
381
- "primaryKey": false,
382
- "notNull": true,
383
- "autoincrement": false
384
- },
385
- "status": {
386
- "name": "status",
387
- "type": "text",
388
- "primaryKey": false,
389
- "notNull": true,
390
- "autoincrement": false
391
- },
392
- "priority": {
393
- "name": "priority",
394
- "type": "text",
395
- "primaryKey": false,
396
- "notNull": true,
397
- "autoincrement": false
398
- },
399
- "completeness": {
400
- "name": "completeness",
401
- "type": "real",
402
- "primaryKey": false,
403
- "notNull": true,
404
- "autoincrement": false,
405
- "default": 0
406
- },
407
- "open_questions_count": {
408
- "name": "open_questions_count",
409
- "type": "integer",
410
- "primaryKey": false,
411
- "notNull": true,
412
- "autoincrement": false,
413
- "default": 0
414
- },
415
- "kind": {
416
- "name": "kind",
417
- "type": "text",
418
- "primaryKey": false,
419
- "notNull": false,
420
- "autoincrement": false
421
- },
422
- "created_at": {
423
- "name": "created_at",
424
- "type": "text",
425
- "primaryKey": false,
426
- "notNull": true,
427
- "autoincrement": false
428
- },
429
- "updated_at": {
430
- "name": "updated_at",
431
- "type": "text",
432
- "primaryKey": false,
433
- "notNull": true,
434
- "autoincrement": false
435
- },
436
- "body": {
437
- "name": "body",
438
- "type": "text",
439
- "primaryKey": false,
440
- "notNull": false,
441
- "autoincrement": false
442
- },
443
- "project_id": {
444
- "name": "project_id",
445
- "type": "text",
446
- "primaryKey": false,
447
- "notNull": false,
448
- "autoincrement": false
449
- }
450
- },
451
- "indexes": {},
452
- "foreignKeys": {},
453
- "compositePrimaryKeys": {},
454
- "uniqueConstraints": {},
455
- "checkConstraints": {}
456
- },
457
- "password_reset_tokens": {
458
- "name": "password_reset_tokens",
459
- "columns": {
460
- "id": {
461
- "name": "id",
462
- "type": "text",
463
- "primaryKey": true,
464
- "notNull": true,
465
- "autoincrement": false
466
- },
467
- "user_id": {
468
- "name": "user_id",
469
- "type": "text",
470
- "primaryKey": false,
471
- "notNull": true,
472
- "autoincrement": false
473
- },
474
- "token_hash": {
475
- "name": "token_hash",
476
- "type": "text",
477
- "primaryKey": false,
478
- "notNull": true,
479
- "autoincrement": false
480
- },
481
- "expires_at": {
482
- "name": "expires_at",
483
- "type": "text",
484
- "primaryKey": false,
485
- "notNull": true,
486
- "autoincrement": false
487
- },
488
- "created_at": {
489
- "name": "created_at",
490
- "type": "text",
491
- "primaryKey": false,
492
- "notNull": true,
493
- "autoincrement": false
494
- },
495
- "used_at": {
496
- "name": "used_at",
497
- "type": "text",
498
- "primaryKey": false,
499
- "notNull": false,
500
- "autoincrement": false
501
- }
502
- },
503
- "indexes": {},
504
- "foreignKeys": {
505
- "password_reset_tokens_user_id_users_id_fk": {
506
- "name": "password_reset_tokens_user_id_users_id_fk",
507
- "tableFrom": "password_reset_tokens",
508
- "tableTo": "users",
509
- "columnsFrom": [
510
- "user_id"
511
- ],
512
- "columnsTo": [
513
- "id"
514
- ],
515
- "onDelete": "no action",
516
- "onUpdate": "no action"
517
- }
518
- },
519
- "compositePrimaryKeys": {},
520
- "uniqueConstraints": {},
521
- "checkConstraints": {}
522
- },
523
- "pipeline_outputs": {
524
- "name": "pipeline_outputs",
525
- "columns": {
526
- "id": {
527
- "name": "id",
528
- "type": "text",
529
- "primaryKey": true,
530
- "notNull": true,
531
- "autoincrement": false
532
- },
533
- "feature_id": {
534
- "name": "feature_id",
535
- "type": "text",
536
- "primaryKey": false,
537
- "notNull": true,
538
- "autoincrement": false
539
- },
540
- "stage": {
541
- "name": "stage",
542
- "type": "text",
543
- "primaryKey": false,
544
- "notNull": true,
545
- "autoincrement": false
546
- },
547
- "cycle": {
548
- "name": "cycle",
549
- "type": "integer",
550
- "primaryKey": false,
551
- "notNull": true,
552
- "autoincrement": false
553
- },
554
- "output": {
555
- "name": "output",
556
- "type": "text",
557
- "primaryKey": false,
558
- "notNull": true,
559
- "autoincrement": false
560
- },
561
- "created_at": {
562
- "name": "created_at",
563
- "type": "text",
564
- "primaryKey": false,
565
- "notNull": true,
566
- "autoincrement": false
567
- },
568
- "project_id": {
569
- "name": "project_id",
570
- "type": "text",
571
- "primaryKey": false,
572
- "notNull": false,
573
- "autoincrement": false
574
- }
575
- },
576
- "indexes": {},
577
- "foreignKeys": {},
578
- "compositePrimaryKeys": {},
579
- "uniqueConstraints": {},
580
- "checkConstraints": {}
581
- },
582
- "pipeline_state": {
583
- "name": "pipeline_state",
584
- "columns": {
585
- "feature_id": {
586
- "name": "feature_id",
587
- "type": "text",
588
- "primaryKey": true,
589
- "notNull": true,
590
- "autoincrement": false
591
- },
592
- "status": {
593
- "name": "status",
594
- "type": "text",
595
- "primaryKey": false,
596
- "notNull": true,
597
- "autoincrement": false
598
- },
599
- "cycle": {
600
- "name": "cycle",
601
- "type": "integer",
602
- "primaryKey": false,
603
- "notNull": true,
604
- "autoincrement": false,
605
- "default": 1
606
- },
607
- "tasks_json": {
608
- "name": "tasks_json",
609
- "type": "text",
610
- "primaryKey": false,
611
- "notNull": false,
612
- "autoincrement": false
613
- },
614
- "tool_calls_json": {
615
- "name": "tool_calls_json",
616
- "type": "text",
617
- "primaryKey": false,
618
- "notNull": false,
619
- "autoincrement": false
620
- },
621
- "work_summaries_json": {
622
- "name": "work_summaries_json",
623
- "type": "text",
624
- "primaryKey": false,
625
- "notNull": false,
626
- "autoincrement": false
627
- },
628
- "stage_stats_json": {
629
- "name": "stage_stats_json",
630
- "type": "text",
631
- "primaryKey": false,
632
- "notNull": false,
633
- "autoincrement": false
634
- },
635
- "error": {
636
- "name": "error",
637
- "type": "text",
638
- "primaryKey": false,
639
- "notNull": false,
640
- "autoincrement": false
641
- },
642
- "updated_at": {
643
- "name": "updated_at",
644
- "type": "text",
645
- "primaryKey": false,
646
- "notNull": true,
647
- "autoincrement": false
648
- },
649
- "project_id": {
650
- "name": "project_id",
651
- "type": "text",
652
- "primaryKey": false,
653
- "notNull": false,
654
- "autoincrement": false
655
- }
656
- },
657
- "indexes": {},
658
- "foreignKeys": {},
659
- "compositePrimaryKeys": {},
660
- "uniqueConstraints": {},
661
- "checkConstraints": {}
662
- },
663
- "projects": {
664
- "name": "projects",
665
- "columns": {
666
- "id": {
667
- "name": "id",
668
- "type": "text",
669
- "primaryKey": true,
670
- "notNull": true,
671
- "autoincrement": false
672
- },
673
- "name": {
674
- "name": "name",
675
- "type": "text",
676
- "primaryKey": false,
677
- "notNull": true,
678
- "autoincrement": false
679
- },
680
- "is_default": {
681
- "name": "is_default",
682
- "type": "integer",
683
- "primaryKey": false,
684
- "notNull": true,
685
- "autoincrement": false,
686
- "default": 0
687
- },
688
- "archived_at": {
689
- "name": "archived_at",
690
- "type": "text",
691
- "primaryKey": false,
692
- "notNull": false,
693
- "autoincrement": false
694
- },
695
- "repo_url": {
696
- "name": "repo_url",
697
- "type": "text",
698
- "primaryKey": false,
699
- "notNull": false,
700
- "autoincrement": false
701
- },
702
- "github_installation_id": {
703
- "name": "github_installation_id",
704
- "type": "text",
705
- "primaryKey": false,
706
- "notNull": false,
707
- "autoincrement": false
708
- },
709
- "github_repo_full_name": {
710
- "name": "github_repo_full_name",
711
- "type": "text",
712
- "primaryKey": false,
713
- "notNull": false,
714
- "autoincrement": false
715
- },
716
- "base_branch": {
717
- "name": "base_branch",
718
- "type": "text",
719
- "primaryKey": false,
720
- "notNull": false,
721
- "autoincrement": false
722
- },
723
- "created_at": {
724
- "name": "created_at",
725
- "type": "text",
726
- "primaryKey": false,
727
- "notNull": true,
728
- "autoincrement": false
729
- },
730
- "updated_at": {
731
- "name": "updated_at",
732
- "type": "text",
733
- "primaryKey": false,
734
- "notNull": true,
735
- "autoincrement": false
736
- }
737
- },
738
- "indexes": {},
739
- "foreignKeys": {},
740
- "compositePrimaryKeys": {},
741
- "uniqueConstraints": {},
742
- "checkConstraints": {}
743
- },
744
- "refresh_tokens": {
745
- "name": "refresh_tokens",
746
- "columns": {
747
- "id": {
748
- "name": "id",
749
- "type": "text",
750
- "primaryKey": true,
751
- "notNull": true,
752
- "autoincrement": false
753
- },
754
- "user_id": {
755
- "name": "user_id",
756
- "type": "text",
757
- "primaryKey": false,
758
- "notNull": true,
759
- "autoincrement": false
760
- },
761
- "token_hash": {
762
- "name": "token_hash",
763
- "type": "text",
764
- "primaryKey": false,
765
- "notNull": true,
766
- "autoincrement": false
767
- },
768
- "expires_at": {
769
- "name": "expires_at",
770
- "type": "text",
771
- "primaryKey": false,
772
- "notNull": true,
773
- "autoincrement": false
774
- },
775
- "created_at": {
776
- "name": "created_at",
777
- "type": "text",
778
- "primaryKey": false,
779
- "notNull": true,
780
- "autoincrement": false
781
- }
782
- },
783
- "indexes": {},
784
- "foreignKeys": {
785
- "refresh_tokens_user_id_users_id_fk": {
786
- "name": "refresh_tokens_user_id_users_id_fk",
787
- "tableFrom": "refresh_tokens",
788
- "tableTo": "users",
789
- "columnsFrom": [
790
- "user_id"
791
- ],
792
- "columnsTo": [
793
- "id"
794
- ],
795
- "onDelete": "no action",
796
- "onUpdate": "no action"
797
- }
798
- },
799
- "compositePrimaryKeys": {},
800
- "uniqueConstraints": {},
801
- "checkConstraints": {}
802
- },
803
- "review_meta": {
804
- "name": "review_meta",
805
- "columns": {
806
- "key": {
807
- "name": "key",
808
- "type": "text",
809
- "primaryKey": true,
810
- "notNull": true,
811
- "autoincrement": false
812
- },
813
- "value": {
814
- "name": "value",
815
- "type": "text",
816
- "primaryKey": false,
817
- "notNull": true,
818
- "autoincrement": false
819
- },
820
- "project_id": {
821
- "name": "project_id",
822
- "type": "text",
823
- "primaryKey": false,
824
- "notNull": false,
825
- "autoincrement": false
826
- }
827
- },
828
- "indexes": {},
829
- "foreignKeys": {},
830
- "compositePrimaryKeys": {},
831
- "uniqueConstraints": {},
832
- "checkConstraints": {}
833
- },
834
- "sessions": {
835
- "name": "sessions",
836
- "columns": {
837
- "session_number": {
838
- "name": "session_number",
839
- "type": "integer",
840
- "primaryKey": false,
841
- "notNull": true,
842
- "autoincrement": false
843
- },
844
- "started_at": {
845
- "name": "started_at",
846
- "type": "text",
847
- "primaryKey": false,
848
- "notNull": true,
849
- "autoincrement": false
850
- },
851
- "ended_at": {
852
- "name": "ended_at",
853
- "type": "text",
854
- "primaryKey": false,
855
- "notNull": false,
856
- "autoincrement": false
857
- },
858
- "summary": {
859
- "name": "summary",
860
- "type": "text",
861
- "primaryKey": false,
862
- "notNull": false,
863
- "autoincrement": false
864
- },
865
- "nodes_touched": {
866
- "name": "nodes_touched",
867
- "type": "text",
868
- "primaryKey": false,
869
- "notNull": false,
870
- "autoincrement": false
871
- },
872
- "questions_resolved": {
873
- "name": "questions_resolved",
874
- "type": "integer",
875
- "primaryKey": false,
876
- "notNull": true,
877
- "autoincrement": false,
878
- "default": 0
879
- },
880
- "body": {
881
- "name": "body",
882
- "type": "text",
883
- "primaryKey": false,
884
- "notNull": false,
885
- "autoincrement": false
886
- },
887
- "project_id": {
888
- "name": "project_id",
889
- "type": "text",
890
- "primaryKey": false,
891
- "notNull": true,
892
- "autoincrement": false
893
- }
894
- },
895
- "indexes": {},
896
- "foreignKeys": {},
897
- "compositePrimaryKeys": {
898
- "sessions_session_number_project_id_pk": {
899
- "columns": [
900
- "session_number",
901
- "project_id"
902
- ],
903
- "name": "sessions_session_number_project_id_pk"
904
- }
905
- },
906
- "uniqueConstraints": {},
907
- "checkConstraints": {}
908
- },
909
- "stage_assignments": {
910
- "name": "stage_assignments",
911
- "columns": {
912
- "id": {
913
- "name": "id",
914
- "type": "text",
915
- "primaryKey": true,
916
- "notNull": true,
917
- "autoincrement": false
918
- },
919
- "stage": {
920
- "name": "stage",
921
- "type": "text",
922
- "primaryKey": false,
923
- "notNull": true,
924
- "autoincrement": false
925
- },
926
- "agent_id": {
927
- "name": "agent_id",
928
- "type": "text",
929
- "primaryKey": false,
930
- "notNull": true,
931
- "autoincrement": false
932
- },
933
- "project_id": {
934
- "name": "project_id",
935
- "type": "text",
936
- "primaryKey": false,
937
- "notNull": false,
938
- "autoincrement": false
939
- }
940
- },
941
- "indexes": {
942
- "stage_assignments_stage_project_id_unique": {
943
- "name": "stage_assignments_stage_project_id_unique",
944
- "columns": [
945
- "stage",
946
- "project_id"
947
- ],
948
- "isUnique": true
949
- }
950
- },
951
- "foreignKeys": {
952
- "stage_assignments_agent_id_agents_id_fk": {
953
- "name": "stage_assignments_agent_id_agents_id_fk",
954
- "tableFrom": "stage_assignments",
955
- "tableTo": "agents",
956
- "columnsFrom": [
957
- "agent_id"
958
- ],
959
- "columnsTo": [
960
- "id"
961
- ],
962
- "onDelete": "no action",
963
- "onUpdate": "no action"
964
- }
965
- },
966
- "compositePrimaryKeys": {},
967
- "uniqueConstraints": {},
968
- "checkConstraints": {}
969
- },
970
- "terminal_sessions": {
971
- "name": "terminal_sessions",
972
- "columns": {
973
- "id": {
974
- "name": "id",
975
- "type": "text",
976
- "primaryKey": true,
977
- "notNull": true,
978
- "autoincrement": false
979
- },
980
- "claude_session_id": {
981
- "name": "claude_session_id",
982
- "type": "text",
983
- "primaryKey": false,
984
- "notNull": true,
985
- "autoincrement": false
986
- },
987
- "project_id": {
988
- "name": "project_id",
989
- "type": "text",
990
- "primaryKey": false,
991
- "notNull": true,
992
- "autoincrement": false
993
- },
994
- "project_name": {
995
- "name": "project_name",
996
- "type": "text",
997
- "primaryKey": false,
998
- "notNull": true,
999
- "autoincrement": false
1000
- },
1001
- "name": {
1002
- "name": "name",
1003
- "type": "text",
1004
- "primaryKey": false,
1005
- "notNull": true,
1006
- "autoincrement": false
1007
- },
1008
- "created_at": {
1009
- "name": "created_at",
1010
- "type": "text",
1011
- "primaryKey": false,
1012
- "notNull": true,
1013
- "autoincrement": false
1014
- },
1015
- "last_used_at": {
1016
- "name": "last_used_at",
1017
- "type": "text",
1018
- "primaryKey": false,
1019
- "notNull": true,
1020
- "autoincrement": false
1021
- }
1022
- },
1023
- "indexes": {},
1024
- "foreignKeys": {},
1025
- "compositePrimaryKeys": {},
1026
- "uniqueConstraints": {},
1027
- "checkConstraints": {}
1028
- },
1029
- "users": {
1030
- "name": "users",
1031
- "columns": {
1032
- "id": {
1033
- "name": "id",
1034
- "type": "text",
1035
- "primaryKey": true,
1036
- "notNull": true,
1037
- "autoincrement": false
1038
- },
1039
- "email": {
1040
- "name": "email",
1041
- "type": "text",
1042
- "primaryKey": false,
1043
- "notNull": true,
1044
- "autoincrement": false
1045
- },
1046
- "password_hash": {
1047
- "name": "password_hash",
1048
- "type": "text",
1049
- "primaryKey": false,
1050
- "notNull": true,
1051
- "autoincrement": false
1052
- },
1053
- "role": {
1054
- "name": "role",
1055
- "type": "text",
1056
- "primaryKey": false,
1057
- "notNull": true,
1058
- "autoincrement": false,
1059
- "default": "'user'"
1060
- },
1061
- "created_at": {
1062
- "name": "created_at",
1063
- "type": "text",
1064
- "primaryKey": false,
1065
- "notNull": true,
1066
- "autoincrement": false
1067
- },
1068
- "updated_at": {
1069
- "name": "updated_at",
1070
- "type": "text",
1071
- "primaryKey": false,
1072
- "notNull": true,
1073
- "autoincrement": false
1074
- }
1075
- },
1076
- "indexes": {
1077
- "users_email_unique": {
1078
- "name": "users_email_unique",
1079
- "columns": [
1080
- "email"
1081
- ],
1082
- "isUnique": true
1083
- }
1084
- },
1085
- "foreignKeys": {},
1086
- "compositePrimaryKeys": {},
1087
- "uniqueConstraints": {},
1088
- "checkConstraints": {}
1089
- }
1090
- },
1091
- "views": {},
1092
- "enums": {},
1093
- "_meta": {
1094
- "schemas": {},
1095
- "tables": {},
1096
- "columns": {}
1097
- },
1098
- "internal": {
1099
- "indexes": {}
1100
- }
1101
- }