schub 0.1.21 → 0.1.22

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.
@@ -0,0 +1,1410 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "6a7eb47b-0c94-4361-a295-cd68648e1278",
5
+ "prevId": "4e75dd81-89f5-4af2-b666-2d5a136acc03",
6
+ "tables": {
7
+ "files": {
8
+ "name": "files",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "project_id": {
18
+ "name": "project_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "file_name": {
25
+ "name": "file_name",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "file_kind": {
32
+ "name": "file_kind",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "storage_path": {
39
+ "name": "storage_path",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "mime_type": {
46
+ "name": "mime_type",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "size_bytes": {
53
+ "name": "size_bytes",
54
+ "type": "integer",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "hash": {
60
+ "name": "hash",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "created_at": {
67
+ "name": "created_at",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false
72
+ },
73
+ "updated_at": {
74
+ "name": "updated_at",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": true,
78
+ "autoincrement": false
79
+ }
80
+ },
81
+ "indexes": {},
82
+ "foreignKeys": {
83
+ "files_project_id_projects_id_fk": {
84
+ "name": "files_project_id_projects_id_fk",
85
+ "tableFrom": "files",
86
+ "tableTo": "projects",
87
+ "columnsFrom": ["project_id"],
88
+ "columnsTo": ["id"],
89
+ "onDelete": "cascade",
90
+ "onUpdate": "no action"
91
+ }
92
+ },
93
+ "compositePrimaryKeys": {},
94
+ "uniqueConstraints": {},
95
+ "checkConstraints": {}
96
+ },
97
+ "project_doc_files": {
98
+ "name": "project_doc_files",
99
+ "columns": {
100
+ "id": {
101
+ "name": "id",
102
+ "type": "text",
103
+ "primaryKey": true,
104
+ "notNull": true,
105
+ "autoincrement": false
106
+ },
107
+ "project_doc_id": {
108
+ "name": "project_doc_id",
109
+ "type": "text",
110
+ "primaryKey": false,
111
+ "notNull": true,
112
+ "autoincrement": false
113
+ },
114
+ "file_id": {
115
+ "name": "file_id",
116
+ "type": "text",
117
+ "primaryKey": false,
118
+ "notNull": true,
119
+ "autoincrement": false
120
+ },
121
+ "created_at": {
122
+ "name": "created_at",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true,
126
+ "autoincrement": false
127
+ }
128
+ },
129
+ "indexes": {
130
+ "project_doc_files_project_doc_file_idx": {
131
+ "name": "project_doc_files_project_doc_file_idx",
132
+ "columns": ["project_doc_id", "file_id"],
133
+ "isUnique": true
134
+ }
135
+ },
136
+ "foreignKeys": {
137
+ "project_doc_files_project_doc_id_project_docs_id_fk": {
138
+ "name": "project_doc_files_project_doc_id_project_docs_id_fk",
139
+ "tableFrom": "project_doc_files",
140
+ "tableTo": "project_docs",
141
+ "columnsFrom": ["project_doc_id"],
142
+ "columnsTo": ["id"],
143
+ "onDelete": "cascade",
144
+ "onUpdate": "no action"
145
+ },
146
+ "project_doc_files_file_id_files_id_fk": {
147
+ "name": "project_doc_files_file_id_files_id_fk",
148
+ "tableFrom": "project_doc_files",
149
+ "tableTo": "files",
150
+ "columnsFrom": ["file_id"],
151
+ "columnsTo": ["id"],
152
+ "onDelete": "cascade",
153
+ "onUpdate": "no action"
154
+ }
155
+ },
156
+ "compositePrimaryKeys": {},
157
+ "uniqueConstraints": {},
158
+ "checkConstraints": {}
159
+ },
160
+ "project_docs": {
161
+ "name": "project_docs",
162
+ "columns": {
163
+ "id": {
164
+ "name": "id",
165
+ "type": "text",
166
+ "primaryKey": true,
167
+ "notNull": true,
168
+ "autoincrement": false
169
+ },
170
+ "project_id": {
171
+ "name": "project_id",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true,
175
+ "autoincrement": false
176
+ },
177
+ "last_synced_at": {
178
+ "name": "last_synced_at",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": false,
182
+ "autoincrement": false
183
+ },
184
+ "created_at": {
185
+ "name": "created_at",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "updated_at": {
192
+ "name": "updated_at",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false
197
+ }
198
+ },
199
+ "indexes": {
200
+ "project_docs_project_id_idx": {
201
+ "name": "project_docs_project_id_idx",
202
+ "columns": ["project_id"],
203
+ "isUnique": true
204
+ }
205
+ },
206
+ "foreignKeys": {
207
+ "project_docs_project_id_projects_id_fk": {
208
+ "name": "project_docs_project_id_projects_id_fk",
209
+ "tableFrom": "project_docs",
210
+ "tableTo": "projects",
211
+ "columnsFrom": ["project_id"],
212
+ "columnsTo": ["id"],
213
+ "onDelete": "cascade",
214
+ "onUpdate": "no action"
215
+ }
216
+ },
217
+ "compositePrimaryKeys": {},
218
+ "uniqueConstraints": {},
219
+ "checkConstraints": {}
220
+ },
221
+ "project_repos": {
222
+ "name": "project_repos",
223
+ "columns": {
224
+ "id": {
225
+ "name": "id",
226
+ "type": "text",
227
+ "primaryKey": true,
228
+ "notNull": true,
229
+ "autoincrement": false
230
+ },
231
+ "project_id": {
232
+ "name": "project_id",
233
+ "type": "text",
234
+ "primaryKey": false,
235
+ "notNull": true,
236
+ "autoincrement": false
237
+ },
238
+ "repo_id": {
239
+ "name": "repo_id",
240
+ "type": "text",
241
+ "primaryKey": false,
242
+ "notNull": true,
243
+ "autoincrement": false
244
+ },
245
+ "created_at": {
246
+ "name": "created_at",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true,
250
+ "autoincrement": false
251
+ }
252
+ },
253
+ "indexes": {},
254
+ "foreignKeys": {
255
+ "project_repos_project_id_projects_id_fk": {
256
+ "name": "project_repos_project_id_projects_id_fk",
257
+ "tableFrom": "project_repos",
258
+ "tableTo": "projects",
259
+ "columnsFrom": ["project_id"],
260
+ "columnsTo": ["id"],
261
+ "onDelete": "cascade",
262
+ "onUpdate": "no action"
263
+ },
264
+ "project_repos_repo_id_repos_id_fk": {
265
+ "name": "project_repos_repo_id_repos_id_fk",
266
+ "tableFrom": "project_repos",
267
+ "tableTo": "repos",
268
+ "columnsFrom": ["repo_id"],
269
+ "columnsTo": ["id"],
270
+ "onDelete": "cascade",
271
+ "onUpdate": "no action"
272
+ }
273
+ },
274
+ "compositePrimaryKeys": {},
275
+ "uniqueConstraints": {},
276
+ "checkConstraints": {}
277
+ },
278
+ "projects": {
279
+ "name": "projects",
280
+ "columns": {
281
+ "id": {
282
+ "name": "id",
283
+ "type": "text",
284
+ "primaryKey": true,
285
+ "notNull": true,
286
+ "autoincrement": false
287
+ },
288
+ "name": {
289
+ "name": "name",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false
294
+ },
295
+ "created_at": {
296
+ "name": "created_at",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true,
300
+ "autoincrement": false
301
+ },
302
+ "updated_at": {
303
+ "name": "updated_at",
304
+ "type": "text",
305
+ "primaryKey": false,
306
+ "notNull": true,
307
+ "autoincrement": false
308
+ }
309
+ },
310
+ "indexes": {},
311
+ "foreignKeys": {},
312
+ "compositePrimaryKeys": {},
313
+ "uniqueConstraints": {},
314
+ "checkConstraints": {}
315
+ },
316
+ "proposal_files": {
317
+ "name": "proposal_files",
318
+ "columns": {
319
+ "id": {
320
+ "name": "id",
321
+ "type": "text",
322
+ "primaryKey": true,
323
+ "notNull": true,
324
+ "autoincrement": false
325
+ },
326
+ "proposal_id": {
327
+ "name": "proposal_id",
328
+ "type": "text",
329
+ "primaryKey": false,
330
+ "notNull": true,
331
+ "autoincrement": false
332
+ },
333
+ "file_id": {
334
+ "name": "file_id",
335
+ "type": "text",
336
+ "primaryKey": false,
337
+ "notNull": true,
338
+ "autoincrement": false
339
+ },
340
+ "created_at": {
341
+ "name": "created_at",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true,
345
+ "autoincrement": false
346
+ }
347
+ },
348
+ "indexes": {},
349
+ "foreignKeys": {
350
+ "proposal_files_proposal_id_proposals_id_fk": {
351
+ "name": "proposal_files_proposal_id_proposals_id_fk",
352
+ "tableFrom": "proposal_files",
353
+ "tableTo": "proposals",
354
+ "columnsFrom": ["proposal_id"],
355
+ "columnsTo": ["id"],
356
+ "onDelete": "cascade",
357
+ "onUpdate": "no action"
358
+ },
359
+ "proposal_files_file_id_files_id_fk": {
360
+ "name": "proposal_files_file_id_files_id_fk",
361
+ "tableFrom": "proposal_files",
362
+ "tableTo": "files",
363
+ "columnsFrom": ["file_id"],
364
+ "columnsTo": ["id"],
365
+ "onDelete": "cascade",
366
+ "onUpdate": "no action"
367
+ }
368
+ },
369
+ "compositePrimaryKeys": {},
370
+ "uniqueConstraints": {},
371
+ "checkConstraints": {}
372
+ },
373
+ "proposal_statuses": {
374
+ "name": "proposal_statuses",
375
+ "columns": {
376
+ "id": {
377
+ "name": "id",
378
+ "type": "text",
379
+ "primaryKey": true,
380
+ "notNull": true,
381
+ "autoincrement": false
382
+ },
383
+ "project_id": {
384
+ "name": "project_id",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": true,
388
+ "autoincrement": false
389
+ },
390
+ "name": {
391
+ "name": "name",
392
+ "type": "text",
393
+ "primaryKey": false,
394
+ "notNull": true,
395
+ "autoincrement": false
396
+ },
397
+ "sort_order": {
398
+ "name": "sort_order",
399
+ "type": "integer",
400
+ "primaryKey": false,
401
+ "notNull": true,
402
+ "autoincrement": false
403
+ },
404
+ "is_default": {
405
+ "name": "is_default",
406
+ "type": "integer",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "created_at": {
412
+ "name": "created_at",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "updated_at": {
419
+ "name": "updated_at",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false
424
+ }
425
+ },
426
+ "indexes": {},
427
+ "foreignKeys": {
428
+ "proposal_statuses_project_id_projects_id_fk": {
429
+ "name": "proposal_statuses_project_id_projects_id_fk",
430
+ "tableFrom": "proposal_statuses",
431
+ "tableTo": "projects",
432
+ "columnsFrom": ["project_id"],
433
+ "columnsTo": ["id"],
434
+ "onDelete": "cascade",
435
+ "onUpdate": "no action"
436
+ }
437
+ },
438
+ "compositePrimaryKeys": {},
439
+ "uniqueConstraints": {},
440
+ "checkConstraints": {}
441
+ },
442
+ "proposals": {
443
+ "name": "proposals",
444
+ "columns": {
445
+ "id": {
446
+ "name": "id",
447
+ "type": "text",
448
+ "primaryKey": true,
449
+ "notNull": true,
450
+ "autoincrement": false
451
+ },
452
+ "shorthand": {
453
+ "name": "shorthand",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": true,
457
+ "autoincrement": false
458
+ },
459
+ "project_id": {
460
+ "name": "project_id",
461
+ "type": "text",
462
+ "primaryKey": false,
463
+ "notNull": true,
464
+ "autoincrement": false
465
+ },
466
+ "repo_id": {
467
+ "name": "repo_id",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": false,
471
+ "autoincrement": false
472
+ },
473
+ "agent": {
474
+ "name": "agent",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": true,
478
+ "autoincrement": false
479
+ },
480
+ "input": {
481
+ "name": "input",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": false,
485
+ "autoincrement": false
486
+ },
487
+ "status": {
488
+ "name": "status",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": true,
492
+ "autoincrement": false,
493
+ "default": "'draft'"
494
+ },
495
+ "archived": {
496
+ "name": "archived",
497
+ "type": "integer",
498
+ "primaryKey": false,
499
+ "notNull": true,
500
+ "autoincrement": false,
501
+ "default": 0
502
+ },
503
+ "created_at": {
504
+ "name": "created_at",
505
+ "type": "text",
506
+ "primaryKey": false,
507
+ "notNull": true,
508
+ "autoincrement": false
509
+ },
510
+ "updated_at": {
511
+ "name": "updated_at",
512
+ "type": "text",
513
+ "primaryKey": false,
514
+ "notNull": true,
515
+ "autoincrement": false
516
+ }
517
+ },
518
+ "indexes": {
519
+ "proposals_project_shorthand_idx": {
520
+ "name": "proposals_project_shorthand_idx",
521
+ "columns": ["project_id", "shorthand"],
522
+ "isUnique": true
523
+ }
524
+ },
525
+ "foreignKeys": {
526
+ "proposals_project_id_projects_id_fk": {
527
+ "name": "proposals_project_id_projects_id_fk",
528
+ "tableFrom": "proposals",
529
+ "tableTo": "projects",
530
+ "columnsFrom": ["project_id"],
531
+ "columnsTo": ["id"],
532
+ "onDelete": "cascade",
533
+ "onUpdate": "no action"
534
+ },
535
+ "proposals_repo_id_repos_id_fk": {
536
+ "name": "proposals_repo_id_repos_id_fk",
537
+ "tableFrom": "proposals",
538
+ "tableTo": "repos",
539
+ "columnsFrom": ["repo_id"],
540
+ "columnsTo": ["id"],
541
+ "onDelete": "set null",
542
+ "onUpdate": "no action"
543
+ }
544
+ },
545
+ "compositePrimaryKeys": {},
546
+ "uniqueConstraints": {},
547
+ "checkConstraints": {}
548
+ },
549
+ "repos": {
550
+ "name": "repos",
551
+ "columns": {
552
+ "id": {
553
+ "name": "id",
554
+ "type": "text",
555
+ "primaryKey": true,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ },
559
+ "name": {
560
+ "name": "name",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "autoincrement": false
565
+ },
566
+ "display_name": {
567
+ "name": "display_name",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": false,
571
+ "autoincrement": false
572
+ },
573
+ "path": {
574
+ "name": "path",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "autoincrement": false
579
+ },
580
+ "created_at": {
581
+ "name": "created_at",
582
+ "type": "text",
583
+ "primaryKey": false,
584
+ "notNull": true,
585
+ "autoincrement": false
586
+ },
587
+ "updated_at": {
588
+ "name": "updated_at",
589
+ "type": "text",
590
+ "primaryKey": false,
591
+ "notNull": true,
592
+ "autoincrement": false
593
+ }
594
+ },
595
+ "indexes": {},
596
+ "foreignKeys": {},
597
+ "compositePrimaryKeys": {},
598
+ "uniqueConstraints": {},
599
+ "checkConstraints": {}
600
+ },
601
+ "sessions": {
602
+ "name": "sessions",
603
+ "columns": {
604
+ "id": {
605
+ "name": "id",
606
+ "type": "text",
607
+ "primaryKey": true,
608
+ "notNull": true,
609
+ "autoincrement": false
610
+ },
611
+ "title": {
612
+ "name": "title",
613
+ "type": "text",
614
+ "primaryKey": false,
615
+ "notNull": true,
616
+ "autoincrement": false
617
+ },
618
+ "status": {
619
+ "name": "status",
620
+ "type": "text",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "autoincrement": false,
624
+ "default": "'in_progress'"
625
+ },
626
+ "archived": {
627
+ "name": "archived",
628
+ "type": "integer",
629
+ "primaryKey": false,
630
+ "notNull": true,
631
+ "autoincrement": false,
632
+ "default": 0
633
+ },
634
+ "created": {
635
+ "name": "created",
636
+ "type": "text",
637
+ "primaryKey": false,
638
+ "notNull": false,
639
+ "autoincrement": false
640
+ },
641
+ "last_request_started": {
642
+ "name": "last_request_started",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": false,
646
+ "autoincrement": false
647
+ },
648
+ "last_request_ended": {
649
+ "name": "last_request_ended",
650
+ "type": "text",
651
+ "primaryKey": false,
652
+ "notNull": false,
653
+ "autoincrement": false
654
+ },
655
+ "agent": {
656
+ "name": "agent",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": false,
660
+ "autoincrement": false
661
+ },
662
+ "agent_session_id": {
663
+ "name": "agent_session_id",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": false,
667
+ "autoincrement": false
668
+ },
669
+ "content": {
670
+ "name": "content",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": false,
674
+ "autoincrement": false
675
+ },
676
+ "created_at": {
677
+ "name": "created_at",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": true,
681
+ "autoincrement": false
682
+ },
683
+ "updated_at": {
684
+ "name": "updated_at",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "autoincrement": false
689
+ }
690
+ },
691
+ "indexes": {},
692
+ "foreignKeys": {},
693
+ "compositePrimaryKeys": {},
694
+ "uniqueConstraints": {},
695
+ "checkConstraints": {}
696
+ },
697
+ "templates": {
698
+ "name": "templates",
699
+ "columns": {
700
+ "id": {
701
+ "name": "id",
702
+ "type": "text",
703
+ "primaryKey": true,
704
+ "notNull": true,
705
+ "autoincrement": false
706
+ },
707
+ "project_id": {
708
+ "name": "project_id",
709
+ "type": "text",
710
+ "primaryKey": false,
711
+ "notNull": false,
712
+ "autoincrement": false
713
+ },
714
+ "name": {
715
+ "name": "name",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": true,
719
+ "autoincrement": false
720
+ },
721
+ "template_type": {
722
+ "name": "template_type",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "autoincrement": false
727
+ },
728
+ "content": {
729
+ "name": "content",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": true,
733
+ "autoincrement": false
734
+ },
735
+ "created_at": {
736
+ "name": "created_at",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true,
740
+ "autoincrement": false
741
+ },
742
+ "updated_at": {
743
+ "name": "updated_at",
744
+ "type": "text",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "autoincrement": false
748
+ }
749
+ },
750
+ "indexes": {},
751
+ "foreignKeys": {
752
+ "templates_project_id_projects_id_fk": {
753
+ "name": "templates_project_id_projects_id_fk",
754
+ "tableFrom": "templates",
755
+ "tableTo": "projects",
756
+ "columnsFrom": ["project_id"],
757
+ "columnsTo": ["id"],
758
+ "onDelete": "set null",
759
+ "onUpdate": "no action"
760
+ }
761
+ },
762
+ "compositePrimaryKeys": {},
763
+ "uniqueConstraints": {},
764
+ "checkConstraints": {}
765
+ },
766
+ "ticket_files": {
767
+ "name": "ticket_files",
768
+ "columns": {
769
+ "id": {
770
+ "name": "id",
771
+ "type": "text",
772
+ "primaryKey": true,
773
+ "notNull": true,
774
+ "autoincrement": false
775
+ },
776
+ "ticket_id": {
777
+ "name": "ticket_id",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": true,
781
+ "autoincrement": false
782
+ },
783
+ "file_id": {
784
+ "name": "file_id",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": true,
788
+ "autoincrement": false
789
+ },
790
+ "created_at": {
791
+ "name": "created_at",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": true,
795
+ "autoincrement": false
796
+ }
797
+ },
798
+ "indexes": {},
799
+ "foreignKeys": {
800
+ "ticket_files_ticket_id_tickets_id_fk": {
801
+ "name": "ticket_files_ticket_id_tickets_id_fk",
802
+ "tableFrom": "ticket_files",
803
+ "tableTo": "tickets",
804
+ "columnsFrom": ["ticket_id"],
805
+ "columnsTo": ["id"],
806
+ "onDelete": "cascade",
807
+ "onUpdate": "no action"
808
+ },
809
+ "ticket_files_file_id_files_id_fk": {
810
+ "name": "ticket_files_file_id_files_id_fk",
811
+ "tableFrom": "ticket_files",
812
+ "tableTo": "files",
813
+ "columnsFrom": ["file_id"],
814
+ "columnsTo": ["id"],
815
+ "onDelete": "cascade",
816
+ "onUpdate": "no action"
817
+ }
818
+ },
819
+ "compositePrimaryKeys": {},
820
+ "uniqueConstraints": {},
821
+ "checkConstraints": {}
822
+ },
823
+ "ticket_statuses": {
824
+ "name": "ticket_statuses",
825
+ "columns": {
826
+ "id": {
827
+ "name": "id",
828
+ "type": "text",
829
+ "primaryKey": true,
830
+ "notNull": true,
831
+ "autoincrement": false
832
+ },
833
+ "project_id": {
834
+ "name": "project_id",
835
+ "type": "text",
836
+ "primaryKey": false,
837
+ "notNull": true,
838
+ "autoincrement": false
839
+ },
840
+ "name": {
841
+ "name": "name",
842
+ "type": "text",
843
+ "primaryKey": false,
844
+ "notNull": true,
845
+ "autoincrement": false
846
+ },
847
+ "color": {
848
+ "name": "color",
849
+ "type": "text",
850
+ "primaryKey": false,
851
+ "notNull": true,
852
+ "autoincrement": false
853
+ },
854
+ "sort_order": {
855
+ "name": "sort_order",
856
+ "type": "integer",
857
+ "primaryKey": false,
858
+ "notNull": true,
859
+ "autoincrement": false
860
+ },
861
+ "is_default": {
862
+ "name": "is_default",
863
+ "type": "integer",
864
+ "primaryKey": false,
865
+ "notNull": true,
866
+ "autoincrement": false
867
+ },
868
+ "is_open": {
869
+ "name": "is_open",
870
+ "type": "integer",
871
+ "primaryKey": false,
872
+ "notNull": true,
873
+ "autoincrement": false,
874
+ "default": 1
875
+ },
876
+ "can_drag_out": {
877
+ "name": "can_drag_out",
878
+ "type": "integer",
879
+ "primaryKey": false,
880
+ "notNull": true,
881
+ "autoincrement": false
882
+ },
883
+ "can_drag_in": {
884
+ "name": "can_drag_in",
885
+ "type": "integer",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "autoincrement": false
889
+ },
890
+ "can_create": {
891
+ "name": "can_create",
892
+ "type": "integer",
893
+ "primaryKey": false,
894
+ "notNull": true,
895
+ "autoincrement": false
896
+ },
897
+ "can_attempt_on_drop": {
898
+ "name": "can_attempt_on_drop",
899
+ "type": "integer",
900
+ "primaryKey": false,
901
+ "notNull": true,
902
+ "autoincrement": false
903
+ },
904
+ "created_at": {
905
+ "name": "created_at",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": true,
909
+ "autoincrement": false
910
+ },
911
+ "updated_at": {
912
+ "name": "updated_at",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": true,
916
+ "autoincrement": false
917
+ }
918
+ },
919
+ "indexes": {},
920
+ "foreignKeys": {
921
+ "ticket_statuses_project_id_projects_id_fk": {
922
+ "name": "ticket_statuses_project_id_projects_id_fk",
923
+ "tableFrom": "ticket_statuses",
924
+ "tableTo": "projects",
925
+ "columnsFrom": ["project_id"],
926
+ "columnsTo": ["id"],
927
+ "onDelete": "cascade",
928
+ "onUpdate": "no action"
929
+ }
930
+ },
931
+ "compositePrimaryKeys": {},
932
+ "uniqueConstraints": {},
933
+ "checkConstraints": {}
934
+ },
935
+ "ticket_tag_assignments": {
936
+ "name": "ticket_tag_assignments",
937
+ "columns": {
938
+ "id": {
939
+ "name": "id",
940
+ "type": "text",
941
+ "primaryKey": true,
942
+ "notNull": true,
943
+ "autoincrement": false
944
+ },
945
+ "ticket_id": {
946
+ "name": "ticket_id",
947
+ "type": "text",
948
+ "primaryKey": false,
949
+ "notNull": true,
950
+ "autoincrement": false
951
+ },
952
+ "ticket_tag_id": {
953
+ "name": "ticket_tag_id",
954
+ "type": "text",
955
+ "primaryKey": false,
956
+ "notNull": true,
957
+ "autoincrement": false
958
+ },
959
+ "created_at": {
960
+ "name": "created_at",
961
+ "type": "text",
962
+ "primaryKey": false,
963
+ "notNull": true,
964
+ "autoincrement": false
965
+ }
966
+ },
967
+ "indexes": {
968
+ "ticket_tag_assignments_ticket_tag_idx": {
969
+ "name": "ticket_tag_assignments_ticket_tag_idx",
970
+ "columns": ["ticket_id", "ticket_tag_id"],
971
+ "isUnique": true
972
+ }
973
+ },
974
+ "foreignKeys": {
975
+ "ticket_tag_assignments_ticket_id_tickets_id_fk": {
976
+ "name": "ticket_tag_assignments_ticket_id_tickets_id_fk",
977
+ "tableFrom": "ticket_tag_assignments",
978
+ "tableTo": "tickets",
979
+ "columnsFrom": ["ticket_id"],
980
+ "columnsTo": ["id"],
981
+ "onDelete": "cascade",
982
+ "onUpdate": "no action"
983
+ },
984
+ "ticket_tag_assignments_ticket_tag_id_ticket_tags_id_fk": {
985
+ "name": "ticket_tag_assignments_ticket_tag_id_ticket_tags_id_fk",
986
+ "tableFrom": "ticket_tag_assignments",
987
+ "tableTo": "ticket_tags",
988
+ "columnsFrom": ["ticket_tag_id"],
989
+ "columnsTo": ["id"],
990
+ "onDelete": "cascade",
991
+ "onUpdate": "no action"
992
+ }
993
+ },
994
+ "compositePrimaryKeys": {},
995
+ "uniqueConstraints": {},
996
+ "checkConstraints": {}
997
+ },
998
+ "ticket_tags": {
999
+ "name": "ticket_tags",
1000
+ "columns": {
1001
+ "id": {
1002
+ "name": "id",
1003
+ "type": "text",
1004
+ "primaryKey": true,
1005
+ "notNull": true,
1006
+ "autoincrement": false
1007
+ },
1008
+ "project_id": {
1009
+ "name": "project_id",
1010
+ "type": "text",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "autoincrement": false
1014
+ },
1015
+ "name": {
1016
+ "name": "name",
1017
+ "type": "text",
1018
+ "primaryKey": false,
1019
+ "notNull": true,
1020
+ "autoincrement": false
1021
+ },
1022
+ "color": {
1023
+ "name": "color",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": true,
1027
+ "autoincrement": false
1028
+ },
1029
+ "created_at": {
1030
+ "name": "created_at",
1031
+ "type": "text",
1032
+ "primaryKey": false,
1033
+ "notNull": true,
1034
+ "autoincrement": false
1035
+ },
1036
+ "updated_at": {
1037
+ "name": "updated_at",
1038
+ "type": "text",
1039
+ "primaryKey": false,
1040
+ "notNull": true,
1041
+ "autoincrement": false
1042
+ }
1043
+ },
1044
+ "indexes": {
1045
+ "ticket_tags_project_name_idx": {
1046
+ "name": "ticket_tags_project_name_idx",
1047
+ "columns": ["project_id", "name"],
1048
+ "isUnique": true
1049
+ }
1050
+ },
1051
+ "foreignKeys": {
1052
+ "ticket_tags_project_id_projects_id_fk": {
1053
+ "name": "ticket_tags_project_id_projects_id_fk",
1054
+ "tableFrom": "ticket_tags",
1055
+ "tableTo": "projects",
1056
+ "columnsFrom": ["project_id"],
1057
+ "columnsTo": ["id"],
1058
+ "onDelete": "cascade",
1059
+ "onUpdate": "no action"
1060
+ }
1061
+ },
1062
+ "compositePrimaryKeys": {},
1063
+ "uniqueConstraints": {},
1064
+ "checkConstraints": {}
1065
+ },
1066
+ "ticket_workspaces": {
1067
+ "name": "ticket_workspaces",
1068
+ "columns": {
1069
+ "id": {
1070
+ "name": "id",
1071
+ "type": "text",
1072
+ "primaryKey": true,
1073
+ "notNull": true,
1074
+ "autoincrement": false
1075
+ },
1076
+ "ticket_id": {
1077
+ "name": "ticket_id",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": true,
1081
+ "autoincrement": false
1082
+ },
1083
+ "workspace_id": {
1084
+ "name": "workspace_id",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": true,
1088
+ "autoincrement": false
1089
+ },
1090
+ "created_at": {
1091
+ "name": "created_at",
1092
+ "type": "text",
1093
+ "primaryKey": false,
1094
+ "notNull": true,
1095
+ "autoincrement": false
1096
+ }
1097
+ },
1098
+ "indexes": {
1099
+ "ticket_workspaces_ticket_workspace_idx": {
1100
+ "name": "ticket_workspaces_ticket_workspace_idx",
1101
+ "columns": ["ticket_id", "workspace_id"],
1102
+ "isUnique": true
1103
+ },
1104
+ "ticket_workspaces_workspace_idx": {
1105
+ "name": "ticket_workspaces_workspace_idx",
1106
+ "columns": ["workspace_id"],
1107
+ "isUnique": true
1108
+ }
1109
+ },
1110
+ "foreignKeys": {
1111
+ "ticket_workspaces_ticket_id_tickets_id_fk": {
1112
+ "name": "ticket_workspaces_ticket_id_tickets_id_fk",
1113
+ "tableFrom": "ticket_workspaces",
1114
+ "tableTo": "tickets",
1115
+ "columnsFrom": ["ticket_id"],
1116
+ "columnsTo": ["id"],
1117
+ "onDelete": "cascade",
1118
+ "onUpdate": "no action"
1119
+ },
1120
+ "ticket_workspaces_workspace_id_workspaces_id_fk": {
1121
+ "name": "ticket_workspaces_workspace_id_workspaces_id_fk",
1122
+ "tableFrom": "ticket_workspaces",
1123
+ "tableTo": "workspaces",
1124
+ "columnsFrom": ["workspace_id"],
1125
+ "columnsTo": ["id"],
1126
+ "onDelete": "cascade",
1127
+ "onUpdate": "no action"
1128
+ }
1129
+ },
1130
+ "compositePrimaryKeys": {},
1131
+ "uniqueConstraints": {},
1132
+ "checkConstraints": {}
1133
+ },
1134
+ "tickets": {
1135
+ "name": "tickets",
1136
+ "columns": {
1137
+ "id": {
1138
+ "name": "id",
1139
+ "type": "text",
1140
+ "primaryKey": true,
1141
+ "notNull": true,
1142
+ "autoincrement": false
1143
+ },
1144
+ "shorthand": {
1145
+ "name": "shorthand",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": true,
1149
+ "autoincrement": false
1150
+ },
1151
+ "project_id": {
1152
+ "name": "project_id",
1153
+ "type": "text",
1154
+ "primaryKey": false,
1155
+ "notNull": true,
1156
+ "autoincrement": false
1157
+ },
1158
+ "proposal_id": {
1159
+ "name": "proposal_id",
1160
+ "type": "text",
1161
+ "primaryKey": false,
1162
+ "notNull": false,
1163
+ "autoincrement": false
1164
+ },
1165
+ "status_id": {
1166
+ "name": "status_id",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": false,
1170
+ "autoincrement": false
1171
+ },
1172
+ "content": {
1173
+ "name": "content",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": false,
1177
+ "autoincrement": false
1178
+ },
1179
+ "input": {
1180
+ "name": "input",
1181
+ "type": "text",
1182
+ "primaryKey": false,
1183
+ "notNull": false,
1184
+ "autoincrement": false
1185
+ },
1186
+ "priority": {
1187
+ "name": "priority",
1188
+ "type": "text",
1189
+ "primaryKey": false,
1190
+ "notNull": false,
1191
+ "autoincrement": false
1192
+ },
1193
+ "parallelizable": {
1194
+ "name": "parallelizable",
1195
+ "type": "text",
1196
+ "primaryKey": false,
1197
+ "notNull": false,
1198
+ "autoincrement": false
1199
+ },
1200
+ "complexity": {
1201
+ "name": "complexity",
1202
+ "type": "text",
1203
+ "primaryKey": false,
1204
+ "notNull": false,
1205
+ "autoincrement": false
1206
+ },
1207
+ "blocked_by": {
1208
+ "name": "blocked_by",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": false,
1212
+ "autoincrement": false
1213
+ },
1214
+ "blocked_reason": {
1215
+ "name": "blocked_reason",
1216
+ "type": "text",
1217
+ "primaryKey": false,
1218
+ "notNull": false,
1219
+ "autoincrement": false
1220
+ },
1221
+ "dependencies": {
1222
+ "name": "dependencies",
1223
+ "type": "text",
1224
+ "primaryKey": false,
1225
+ "notNull": false,
1226
+ "autoincrement": false
1227
+ },
1228
+ "archived": {
1229
+ "name": "archived",
1230
+ "type": "integer",
1231
+ "primaryKey": false,
1232
+ "notNull": true,
1233
+ "autoincrement": false,
1234
+ "default": 0
1235
+ },
1236
+ "created_at": {
1237
+ "name": "created_at",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": true,
1241
+ "autoincrement": false
1242
+ },
1243
+ "updated_at": {
1244
+ "name": "updated_at",
1245
+ "type": "text",
1246
+ "primaryKey": false,
1247
+ "notNull": true,
1248
+ "autoincrement": false
1249
+ }
1250
+ },
1251
+ "indexes": {
1252
+ "tickets_project_shorthand_idx": {
1253
+ "name": "tickets_project_shorthand_idx",
1254
+ "columns": ["project_id", "shorthand"],
1255
+ "isUnique": true
1256
+ }
1257
+ },
1258
+ "foreignKeys": {
1259
+ "tickets_project_id_projects_id_fk": {
1260
+ "name": "tickets_project_id_projects_id_fk",
1261
+ "tableFrom": "tickets",
1262
+ "tableTo": "projects",
1263
+ "columnsFrom": ["project_id"],
1264
+ "columnsTo": ["id"],
1265
+ "onDelete": "cascade",
1266
+ "onUpdate": "no action"
1267
+ },
1268
+ "tickets_proposal_id_proposals_id_fk": {
1269
+ "name": "tickets_proposal_id_proposals_id_fk",
1270
+ "tableFrom": "tickets",
1271
+ "tableTo": "proposals",
1272
+ "columnsFrom": ["proposal_id"],
1273
+ "columnsTo": ["id"],
1274
+ "onDelete": "set null",
1275
+ "onUpdate": "no action"
1276
+ },
1277
+ "tickets_status_id_ticket_statuses_id_fk": {
1278
+ "name": "tickets_status_id_ticket_statuses_id_fk",
1279
+ "tableFrom": "tickets",
1280
+ "tableTo": "ticket_statuses",
1281
+ "columnsFrom": ["status_id"],
1282
+ "columnsTo": ["id"],
1283
+ "onDelete": "set null",
1284
+ "onUpdate": "no action"
1285
+ }
1286
+ },
1287
+ "compositePrimaryKeys": {},
1288
+ "uniqueConstraints": {},
1289
+ "checkConstraints": {}
1290
+ },
1291
+ "workspaces": {
1292
+ "name": "workspaces",
1293
+ "columns": {
1294
+ "id": {
1295
+ "name": "id",
1296
+ "type": "text",
1297
+ "primaryKey": true,
1298
+ "notNull": true,
1299
+ "autoincrement": false
1300
+ },
1301
+ "project_id": {
1302
+ "name": "project_id",
1303
+ "type": "text",
1304
+ "primaryKey": false,
1305
+ "notNull": true,
1306
+ "autoincrement": false
1307
+ },
1308
+ "name": {
1309
+ "name": "name",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": true,
1313
+ "autoincrement": false
1314
+ },
1315
+ "session_id": {
1316
+ "name": "session_id",
1317
+ "type": "text",
1318
+ "primaryKey": false,
1319
+ "notNull": false,
1320
+ "autoincrement": false
1321
+ },
1322
+ "branch": {
1323
+ "name": "branch",
1324
+ "type": "text",
1325
+ "primaryKey": false,
1326
+ "notNull": false,
1327
+ "autoincrement": false
1328
+ },
1329
+ "repo_id": {
1330
+ "name": "repo_id",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": false,
1334
+ "autoincrement": false
1335
+ },
1336
+ "worktree_path": {
1337
+ "name": "worktree_path",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": false,
1341
+ "autoincrement": false
1342
+ },
1343
+ "workspace_shorthand": {
1344
+ "name": "workspace_shorthand",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": false,
1348
+ "autoincrement": false
1349
+ },
1350
+ "created_at": {
1351
+ "name": "created_at",
1352
+ "type": "text",
1353
+ "primaryKey": false,
1354
+ "notNull": true,
1355
+ "autoincrement": false
1356
+ },
1357
+ "updated_at": {
1358
+ "name": "updated_at",
1359
+ "type": "text",
1360
+ "primaryKey": false,
1361
+ "notNull": true,
1362
+ "autoincrement": false
1363
+ }
1364
+ },
1365
+ "indexes": {
1366
+ "workspaces_project_workspace_shorthand_idx": {
1367
+ "name": "workspaces_project_workspace_shorthand_idx",
1368
+ "columns": ["project_id", "workspace_shorthand"],
1369
+ "isUnique": true
1370
+ }
1371
+ },
1372
+ "foreignKeys": {
1373
+ "workspaces_project_id_projects_id_fk": {
1374
+ "name": "workspaces_project_id_projects_id_fk",
1375
+ "tableFrom": "workspaces",
1376
+ "tableTo": "projects",
1377
+ "columnsFrom": ["project_id"],
1378
+ "columnsTo": ["id"],
1379
+ "onDelete": "cascade",
1380
+ "onUpdate": "no action"
1381
+ },
1382
+ "workspaces_session_id_sessions_id_fk": {
1383
+ "name": "workspaces_session_id_sessions_id_fk",
1384
+ "tableFrom": "workspaces",
1385
+ "tableTo": "sessions",
1386
+ "columnsFrom": ["session_id"],
1387
+ "columnsTo": ["id"],
1388
+ "onDelete": "set null",
1389
+ "onUpdate": "no action"
1390
+ }
1391
+ },
1392
+ "compositePrimaryKeys": {},
1393
+ "uniqueConstraints": {},
1394
+ "checkConstraints": {}
1395
+ }
1396
+ },
1397
+ "views": {},
1398
+ "enums": {},
1399
+ "_meta": {
1400
+ "schemas": {},
1401
+ "tables": {},
1402
+ "columns": {
1403
+ "\"sessions\".\"executor\"": "\"sessions\".\"agent\"",
1404
+ "\"sessions\".\"executor_session_id\"": "\"sessions\".\"agent_session_id\""
1405
+ }
1406
+ },
1407
+ "internal": {
1408
+ "indexes": {}
1409
+ }
1410
+ }