@treeport/treeport 0.4.0 → 0.6.1

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,923 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "691d4bd0-8f8b-48f1-aa83-d14c03c2d1f8",
5
+ "prevId": "9a78893c-4c30-42fb-972c-d8028bc1a79c",
6
+ "tables": {
7
+ "browser_panels": {
8
+ "name": "browser_panels",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "worktree_id": {
18
+ "name": "worktree_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "title": {
25
+ "name": "title",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "url": {
32
+ "name": "url",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "created_at": {
39
+ "name": "created_at",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "updated_at": {
46
+ "name": "updated_at",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ }
52
+ },
53
+ "indexes": {
54
+ "browser_panels_worktree_order_idx": {
55
+ "name": "browser_panels_worktree_order_idx",
56
+ "columns": ["worktree_id", "created_at", "id"],
57
+ "isUnique": false
58
+ }
59
+ },
60
+ "foreignKeys": {
61
+ "browser_panels_worktree_id_worktrees_id_fk": {
62
+ "name": "browser_panels_worktree_id_worktrees_id_fk",
63
+ "tableFrom": "browser_panels",
64
+ "tableTo": "worktrees",
65
+ "columnsFrom": ["worktree_id"],
66
+ "columnsTo": ["id"],
67
+ "onDelete": "cascade",
68
+ "onUpdate": "no action"
69
+ }
70
+ },
71
+ "compositePrimaryKeys": {},
72
+ "uniqueConstraints": {},
73
+ "checkConstraints": {}
74
+ },
75
+ "operations": {
76
+ "name": "operations",
77
+ "columns": {
78
+ "id": {
79
+ "name": "id",
80
+ "type": "text",
81
+ "primaryKey": true,
82
+ "notNull": true,
83
+ "autoincrement": false
84
+ },
85
+ "kind": {
86
+ "name": "kind",
87
+ "type": "text",
88
+ "primaryKey": false,
89
+ "notNull": true,
90
+ "autoincrement": false
91
+ },
92
+ "project_id": {
93
+ "name": "project_id",
94
+ "type": "text",
95
+ "primaryKey": false,
96
+ "notNull": false,
97
+ "autoincrement": false
98
+ },
99
+ "worktree_id": {
100
+ "name": "worktree_id",
101
+ "type": "text",
102
+ "primaryKey": false,
103
+ "notNull": false,
104
+ "autoincrement": false
105
+ },
106
+ "status": {
107
+ "name": "status",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "request_json": {
114
+ "name": "request_json",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "result_json": {
121
+ "name": "result_json",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": false,
125
+ "autoincrement": false
126
+ },
127
+ "error": {
128
+ "name": "error",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": false,
132
+ "autoincrement": false
133
+ },
134
+ "created_at": {
135
+ "name": "created_at",
136
+ "type": "text",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false
140
+ },
141
+ "updated_at": {
142
+ "name": "updated_at",
143
+ "type": "text",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "autoincrement": false
147
+ }
148
+ },
149
+ "indexes": {
150
+ "operations_worktree_idx": {
151
+ "name": "operations_worktree_idx",
152
+ "columns": ["worktree_id"],
153
+ "isUnique": false
154
+ },
155
+ "operations_project_kind_status_idx": {
156
+ "name": "operations_project_kind_status_idx",
157
+ "columns": ["project_id", "kind", "status"],
158
+ "isUnique": false
159
+ }
160
+ },
161
+ "foreignKeys": {
162
+ "operations_project_id_projects_id_fk": {
163
+ "name": "operations_project_id_projects_id_fk",
164
+ "tableFrom": "operations",
165
+ "tableTo": "projects",
166
+ "columnsFrom": ["project_id"],
167
+ "columnsTo": ["id"],
168
+ "onDelete": "set null",
169
+ "onUpdate": "no action"
170
+ },
171
+ "operations_worktree_id_worktrees_id_fk": {
172
+ "name": "operations_worktree_id_worktrees_id_fk",
173
+ "tableFrom": "operations",
174
+ "tableTo": "worktrees",
175
+ "columnsFrom": ["worktree_id"],
176
+ "columnsTo": ["id"],
177
+ "onDelete": "set null",
178
+ "onUpdate": "no action"
179
+ }
180
+ },
181
+ "compositePrimaryKeys": {},
182
+ "uniqueConstraints": {},
183
+ "checkConstraints": {
184
+ "operations_kind_check": {
185
+ "name": "operations_kind_check",
186
+ "value": "\"operations\".\"kind\" IN ('create','finish','discard','project_cleanup','remove','external_remove')"
187
+ },
188
+ "operations_status_check": {
189
+ "name": "operations_status_check",
190
+ "value": "\"operations\".\"status\" IN ('pending','running','completed','failed')"
191
+ }
192
+ }
193
+ },
194
+ "projects": {
195
+ "name": "projects",
196
+ "columns": {
197
+ "id": {
198
+ "name": "id",
199
+ "type": "text",
200
+ "primaryKey": true,
201
+ "notNull": true,
202
+ "autoincrement": false
203
+ },
204
+ "name": {
205
+ "name": "name",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": true,
209
+ "autoincrement": false
210
+ },
211
+ "project_kind": {
212
+ "name": "project_kind",
213
+ "type": "text",
214
+ "primaryKey": false,
215
+ "notNull": true,
216
+ "autoincrement": false,
217
+ "default": "'repository'"
218
+ },
219
+ "repository_path": {
220
+ "name": "repository_path",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": true,
224
+ "autoincrement": false
225
+ },
226
+ "main_worktree_path": {
227
+ "name": "main_worktree_path",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false
232
+ },
233
+ "default_branch": {
234
+ "name": "default_branch",
235
+ "type": "text",
236
+ "primaryKey": false,
237
+ "notNull": true,
238
+ "autoincrement": false
239
+ },
240
+ "color": {
241
+ "name": "color",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": false,
245
+ "autoincrement": false
246
+ },
247
+ "repository_identity": {
248
+ "name": "repository_identity",
249
+ "type": "text",
250
+ "primaryKey": false,
251
+ "notNull": false,
252
+ "autoincrement": false
253
+ },
254
+ "repository_device": {
255
+ "name": "repository_device",
256
+ "type": "text",
257
+ "primaryKey": false,
258
+ "notNull": true,
259
+ "autoincrement": false
260
+ },
261
+ "repository_inode": {
262
+ "name": "repository_inode",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": true,
266
+ "autoincrement": false
267
+ },
268
+ "name_is_custom": {
269
+ "name": "name_is_custom",
270
+ "type": "integer",
271
+ "primaryKey": false,
272
+ "notNull": true,
273
+ "autoincrement": false,
274
+ "default": 0
275
+ },
276
+ "is_open": {
277
+ "name": "is_open",
278
+ "type": "integer",
279
+ "primaryKey": false,
280
+ "notNull": true,
281
+ "autoincrement": false,
282
+ "default": 1
283
+ },
284
+ "show_in_recents": {
285
+ "name": "show_in_recents",
286
+ "type": "integer",
287
+ "primaryKey": false,
288
+ "notNull": true,
289
+ "autoincrement": false,
290
+ "default": 0
291
+ },
292
+ "last_opened_at": {
293
+ "name": "last_opened_at",
294
+ "type": "text",
295
+ "primaryKey": false,
296
+ "notNull": true,
297
+ "autoincrement": false
298
+ },
299
+ "created_at": {
300
+ "name": "created_at",
301
+ "type": "text",
302
+ "primaryKey": false,
303
+ "notNull": true,
304
+ "autoincrement": false
305
+ },
306
+ "updated_at": {
307
+ "name": "updated_at",
308
+ "type": "text",
309
+ "primaryKey": false,
310
+ "notNull": true,
311
+ "autoincrement": false
312
+ }
313
+ },
314
+ "indexes": {
315
+ "projects_repository_path_unique": {
316
+ "name": "projects_repository_path_unique",
317
+ "columns": ["repository_path"],
318
+ "isUnique": true
319
+ },
320
+ "projects_repository_identity_idx": {
321
+ "name": "projects_repository_identity_idx",
322
+ "columns": ["repository_identity"],
323
+ "isUnique": true,
324
+ "where": "\"projects\".\"repository_identity\" IS NOT NULL"
325
+ },
326
+ "projects_recent_idx": {
327
+ "name": "projects_recent_idx",
328
+ "columns": [
329
+ "is_open",
330
+ "show_in_recents",
331
+ "\"last_opened_at\" desc",
332
+ "id"
333
+ ],
334
+ "isUnique": false
335
+ }
336
+ },
337
+ "foreignKeys": {},
338
+ "compositePrimaryKeys": {},
339
+ "uniqueConstraints": {},
340
+ "checkConstraints": {
341
+ "projects_kind_check": {
342
+ "name": "projects_kind_check",
343
+ "value": "\"projects\".\"project_kind\" IN ('repository','folder')"
344
+ },
345
+ "projects_color_check": {
346
+ "name": "projects_color_check",
347
+ "value": "\"projects\".\"color\" IS NULL OR \"projects\".\"color\" IN ('rose','orange','amber','emerald','cyan','blue','violet','pink')"
348
+ },
349
+ "projects_name_is_custom_check": {
350
+ "name": "projects_name_is_custom_check",
351
+ "value": "\"projects\".\"name_is_custom\" IN (0,1)"
352
+ },
353
+ "projects_is_open_check": {
354
+ "name": "projects_is_open_check",
355
+ "value": "\"projects\".\"is_open\" IN (0,1)"
356
+ },
357
+ "projects_show_in_recents_check": {
358
+ "name": "projects_show_in_recents_check",
359
+ "value": "\"projects\".\"show_in_recents\" IN (0,1)"
360
+ }
361
+ }
362
+ },
363
+ "terminal_bell_states": {
364
+ "name": "terminal_bell_states",
365
+ "columns": {
366
+ "terminal_id": {
367
+ "name": "terminal_id",
368
+ "type": "text",
369
+ "primaryKey": true,
370
+ "notNull": true,
371
+ "autoincrement": false
372
+ },
373
+ "worktree_id": {
374
+ "name": "worktree_id",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": true,
378
+ "autoincrement": false
379
+ },
380
+ "sequence": {
381
+ "name": "sequence",
382
+ "type": "integer",
383
+ "primaryKey": false,
384
+ "notNull": true,
385
+ "autoincrement": false
386
+ },
387
+ "occurred_at": {
388
+ "name": "occurred_at",
389
+ "type": "text",
390
+ "primaryKey": false,
391
+ "notNull": true,
392
+ "autoincrement": false
393
+ },
394
+ "unread": {
395
+ "name": "unread",
396
+ "type": "integer",
397
+ "primaryKey": false,
398
+ "notNull": true,
399
+ "autoincrement": false
400
+ }
401
+ },
402
+ "indexes": {},
403
+ "foreignKeys": {
404
+ "terminal_bell_states_worktree_id_worktrees_id_fk": {
405
+ "name": "terminal_bell_states_worktree_id_worktrees_id_fk",
406
+ "tableFrom": "terminal_bell_states",
407
+ "tableTo": "worktrees",
408
+ "columnsFrom": ["worktree_id"],
409
+ "columnsTo": ["id"],
410
+ "onDelete": "cascade",
411
+ "onUpdate": "no action"
412
+ }
413
+ },
414
+ "compositePrimaryKeys": {},
415
+ "uniqueConstraints": {},
416
+ "checkConstraints": {
417
+ "terminal_bell_states_sequence_check": {
418
+ "name": "terminal_bell_states_sequence_check",
419
+ "value": "\"terminal_bell_states\".\"sequence\" > 0"
420
+ },
421
+ "terminal_bell_states_unread_check": {
422
+ "name": "terminal_bell_states_unread_check",
423
+ "value": "\"terminal_bell_states\".\"unread\" IN (0,1)"
424
+ }
425
+ }
426
+ },
427
+ "terminal_presets": {
428
+ "name": "terminal_presets",
429
+ "columns": {
430
+ "id": {
431
+ "name": "id",
432
+ "type": "text",
433
+ "primaryKey": true,
434
+ "notNull": true,
435
+ "autoincrement": false
436
+ },
437
+ "name": {
438
+ "name": "name",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": true,
442
+ "autoincrement": false
443
+ },
444
+ "executable": {
445
+ "name": "executable",
446
+ "type": "text",
447
+ "primaryKey": false,
448
+ "notNull": true,
449
+ "autoincrement": false
450
+ },
451
+ "args_json": {
452
+ "name": "args_json",
453
+ "type": "text",
454
+ "primaryKey": false,
455
+ "notNull": true,
456
+ "autoincrement": false
457
+ },
458
+ "close_on_success": {
459
+ "name": "close_on_success",
460
+ "type": "integer",
461
+ "primaryKey": false,
462
+ "notNull": true,
463
+ "autoincrement": false,
464
+ "default": 0
465
+ },
466
+ "created_at": {
467
+ "name": "created_at",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "autoincrement": false
472
+ },
473
+ "updated_at": {
474
+ "name": "updated_at",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": true,
478
+ "autoincrement": false
479
+ }
480
+ },
481
+ "indexes": {
482
+ "terminal_presets_order_idx": {
483
+ "name": "terminal_presets_order_idx",
484
+ "columns": ["created_at", "id"],
485
+ "isUnique": false
486
+ }
487
+ },
488
+ "foreignKeys": {},
489
+ "compositePrimaryKeys": {},
490
+ "uniqueConstraints": {},
491
+ "checkConstraints": {
492
+ "terminal_presets_close_on_success_check": {
493
+ "name": "terminal_presets_close_on_success_check",
494
+ "value": "\"terminal_presets\".\"close_on_success\" IN (0,1)"
495
+ }
496
+ }
497
+ },
498
+ "web_panel_permission_grants": {
499
+ "name": "web_panel_permission_grants",
500
+ "columns": {
501
+ "source_key": {
502
+ "name": "source_key",
503
+ "type": "text",
504
+ "primaryKey": true,
505
+ "notNull": true,
506
+ "autoincrement": false
507
+ },
508
+ "definition_id": {
509
+ "name": "definition_id",
510
+ "type": "text",
511
+ "primaryKey": false,
512
+ "notNull": true,
513
+ "autoincrement": false
514
+ },
515
+ "permissions_json": {
516
+ "name": "permissions_json",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": true,
520
+ "autoincrement": false
521
+ },
522
+ "granted_at": {
523
+ "name": "granted_at",
524
+ "type": "text",
525
+ "primaryKey": false,
526
+ "notNull": true,
527
+ "autoincrement": false
528
+ },
529
+ "updated_at": {
530
+ "name": "updated_at",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true,
534
+ "autoincrement": false
535
+ }
536
+ },
537
+ "indexes": {
538
+ "web_panel_permission_definition_idx": {
539
+ "name": "web_panel_permission_definition_idx",
540
+ "columns": ["definition_id"],
541
+ "isUnique": false
542
+ }
543
+ },
544
+ "foreignKeys": {},
545
+ "compositePrimaryKeys": {},
546
+ "uniqueConstraints": {},
547
+ "checkConstraints": {}
548
+ },
549
+ "web_panel_storage": {
550
+ "name": "web_panel_storage",
551
+ "columns": {
552
+ "panel_id": {
553
+ "name": "panel_id",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ },
559
+ "key": {
560
+ "name": "key",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "autoincrement": false
565
+ },
566
+ "value_json": {
567
+ "name": "value_json",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "autoincrement": false
572
+ },
573
+ "updated_at": {
574
+ "name": "updated_at",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "autoincrement": false
579
+ }
580
+ },
581
+ "indexes": {
582
+ "web_panel_storage_panel_key_idx": {
583
+ "name": "web_panel_storage_panel_key_idx",
584
+ "columns": ["panel_id", "key"],
585
+ "isUnique": true
586
+ }
587
+ },
588
+ "foreignKeys": {
589
+ "web_panel_storage_panel_id_web_panels_id_fk": {
590
+ "name": "web_panel_storage_panel_id_web_panels_id_fk",
591
+ "tableFrom": "web_panel_storage",
592
+ "tableTo": "web_panels",
593
+ "columnsFrom": ["panel_id"],
594
+ "columnsTo": ["id"],
595
+ "onDelete": "cascade",
596
+ "onUpdate": "no action"
597
+ }
598
+ },
599
+ "compositePrimaryKeys": {},
600
+ "uniqueConstraints": {},
601
+ "checkConstraints": {}
602
+ },
603
+ "web_panels": {
604
+ "name": "web_panels",
605
+ "columns": {
606
+ "id": {
607
+ "name": "id",
608
+ "type": "text",
609
+ "primaryKey": true,
610
+ "notNull": true,
611
+ "autoincrement": false
612
+ },
613
+ "worktree_id": {
614
+ "name": "worktree_id",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": true,
618
+ "autoincrement": false
619
+ },
620
+ "definition_id": {
621
+ "name": "definition_id",
622
+ "type": "text",
623
+ "primaryKey": false,
624
+ "notNull": true,
625
+ "autoincrement": false
626
+ },
627
+ "title": {
628
+ "name": "title",
629
+ "type": "text",
630
+ "primaryKey": false,
631
+ "notNull": true,
632
+ "autoincrement": false
633
+ },
634
+ "input_json": {
635
+ "name": "input_json",
636
+ "type": "text",
637
+ "primaryKey": false,
638
+ "notNull": true,
639
+ "autoincrement": false,
640
+ "default": "'null'"
641
+ },
642
+ "launch_cwd": {
643
+ "name": "launch_cwd",
644
+ "type": "text",
645
+ "primaryKey": false,
646
+ "notNull": false,
647
+ "autoincrement": false
648
+ },
649
+ "created_at": {
650
+ "name": "created_at",
651
+ "type": "text",
652
+ "primaryKey": false,
653
+ "notNull": true,
654
+ "autoincrement": false
655
+ },
656
+ "updated_at": {
657
+ "name": "updated_at",
658
+ "type": "text",
659
+ "primaryKey": false,
660
+ "notNull": true,
661
+ "autoincrement": false
662
+ }
663
+ },
664
+ "indexes": {
665
+ "web_panels_worktree_order_idx": {
666
+ "name": "web_panels_worktree_order_idx",
667
+ "columns": ["worktree_id", "created_at", "id"],
668
+ "isUnique": false
669
+ }
670
+ },
671
+ "foreignKeys": {
672
+ "web_panels_worktree_id_worktrees_id_fk": {
673
+ "name": "web_panels_worktree_id_worktrees_id_fk",
674
+ "tableFrom": "web_panels",
675
+ "tableTo": "worktrees",
676
+ "columnsFrom": ["worktree_id"],
677
+ "columnsTo": ["id"],
678
+ "onDelete": "cascade",
679
+ "onUpdate": "no action"
680
+ }
681
+ },
682
+ "compositePrimaryKeys": {},
683
+ "uniqueConstraints": {},
684
+ "checkConstraints": {}
685
+ },
686
+ "worktrees": {
687
+ "name": "worktrees",
688
+ "columns": {
689
+ "id": {
690
+ "name": "id",
691
+ "type": "text",
692
+ "primaryKey": true,
693
+ "notNull": true,
694
+ "autoincrement": false
695
+ },
696
+ "project_id": {
697
+ "name": "project_id",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": true,
701
+ "autoincrement": false
702
+ },
703
+ "path": {
704
+ "name": "path",
705
+ "type": "text",
706
+ "primaryKey": false,
707
+ "notNull": true,
708
+ "autoincrement": false
709
+ },
710
+ "git_worktree_key": {
711
+ "name": "git_worktree_key",
712
+ "type": "text",
713
+ "primaryKey": false,
714
+ "notNull": false,
715
+ "autoincrement": false
716
+ },
717
+ "head": {
718
+ "name": "head",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": true,
722
+ "autoincrement": false,
723
+ "default": "''"
724
+ },
725
+ "branch": {
726
+ "name": "branch",
727
+ "type": "text",
728
+ "primaryKey": false,
729
+ "notNull": false,
730
+ "autoincrement": false
731
+ },
732
+ "detached": {
733
+ "name": "detached",
734
+ "type": "integer",
735
+ "primaryKey": false,
736
+ "notNull": true,
737
+ "autoincrement": false,
738
+ "default": 0
739
+ },
740
+ "locked": {
741
+ "name": "locked",
742
+ "type": "integer",
743
+ "primaryKey": false,
744
+ "notNull": true,
745
+ "autoincrement": false,
746
+ "default": 0
747
+ },
748
+ "lock_reason": {
749
+ "name": "lock_reason",
750
+ "type": "text",
751
+ "primaryKey": false,
752
+ "notNull": false,
753
+ "autoincrement": false
754
+ },
755
+ "prunable": {
756
+ "name": "prunable",
757
+ "type": "integer",
758
+ "primaryKey": false,
759
+ "notNull": true,
760
+ "autoincrement": false,
761
+ "default": 0
762
+ },
763
+ "kind": {
764
+ "name": "kind",
765
+ "type": "text",
766
+ "primaryKey": false,
767
+ "notNull": true,
768
+ "autoincrement": false
769
+ },
770
+ "tmux_socket_name": {
771
+ "name": "tmux_socket_name",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": true,
775
+ "autoincrement": false
776
+ },
777
+ "managed_wrapper_path": {
778
+ "name": "managed_wrapper_path",
779
+ "type": "text",
780
+ "primaryKey": false,
781
+ "notNull": false,
782
+ "autoincrement": false
783
+ },
784
+ "pr_state": {
785
+ "name": "pr_state",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": true,
789
+ "autoincrement": false,
790
+ "default": "'unknown'"
791
+ },
792
+ "pr_number": {
793
+ "name": "pr_number",
794
+ "type": "integer",
795
+ "primaryKey": false,
796
+ "notNull": false,
797
+ "autoincrement": false
798
+ },
799
+ "pr_url": {
800
+ "name": "pr_url",
801
+ "type": "text",
802
+ "primaryKey": false,
803
+ "notNull": false,
804
+ "autoincrement": false
805
+ },
806
+ "pr_base_branch": {
807
+ "name": "pr_base_branch",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": false,
811
+ "autoincrement": false
812
+ },
813
+ "pr_head_branch": {
814
+ "name": "pr_head_branch",
815
+ "type": "text",
816
+ "primaryKey": false,
817
+ "notNull": false,
818
+ "autoincrement": false
819
+ },
820
+ "pr_merged_at": {
821
+ "name": "pr_merged_at",
822
+ "type": "text",
823
+ "primaryKey": false,
824
+ "notNull": false,
825
+ "autoincrement": false
826
+ },
827
+ "pr_refreshed_at": {
828
+ "name": "pr_refreshed_at",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false,
832
+ "autoincrement": false
833
+ },
834
+ "created_at": {
835
+ "name": "created_at",
836
+ "type": "text",
837
+ "primaryKey": false,
838
+ "notNull": true,
839
+ "autoincrement": false
840
+ },
841
+ "updated_at": {
842
+ "name": "updated_at",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": true,
846
+ "autoincrement": false
847
+ }
848
+ },
849
+ "indexes": {
850
+ "worktrees_path_unique": {
851
+ "name": "worktrees_path_unique",
852
+ "columns": ["path"],
853
+ "isUnique": true
854
+ },
855
+ "worktrees_tmux_socket_name_unique": {
856
+ "name": "worktrees_tmux_socket_name_unique",
857
+ "columns": ["tmux_socket_name"],
858
+ "isUnique": true
859
+ },
860
+ "worktrees_project_idx": {
861
+ "name": "worktrees_project_idx",
862
+ "columns": ["project_id"],
863
+ "isUnique": false
864
+ },
865
+ "worktrees_git_key_idx": {
866
+ "name": "worktrees_git_key_idx",
867
+ "columns": ["project_id", "git_worktree_key"],
868
+ "isUnique": true,
869
+ "where": "\"worktrees\".\"git_worktree_key\" IS NOT NULL"
870
+ }
871
+ },
872
+ "foreignKeys": {
873
+ "worktrees_project_id_projects_id_fk": {
874
+ "name": "worktrees_project_id_projects_id_fk",
875
+ "tableFrom": "worktrees",
876
+ "tableTo": "projects",
877
+ "columnsFrom": ["project_id"],
878
+ "columnsTo": ["id"],
879
+ "onDelete": "cascade",
880
+ "onUpdate": "no action"
881
+ }
882
+ },
883
+ "compositePrimaryKeys": {},
884
+ "uniqueConstraints": {},
885
+ "checkConstraints": {
886
+ "worktrees_detached_check": {
887
+ "name": "worktrees_detached_check",
888
+ "value": "\"worktrees\".\"detached\" IN (0,1)"
889
+ },
890
+ "worktrees_locked_check": {
891
+ "name": "worktrees_locked_check",
892
+ "value": "\"worktrees\".\"locked\" IN (0,1)"
893
+ },
894
+ "worktrees_prunable_check": {
895
+ "name": "worktrees_prunable_check",
896
+ "value": "\"worktrees\".\"prunable\" IN (0,1)"
897
+ },
898
+ "worktrees_kind_check": {
899
+ "name": "worktrees_kind_check",
900
+ "value": "\"worktrees\".\"kind\" IN ('main','linked','folder')"
901
+ }
902
+ }
903
+ }
904
+ },
905
+ "views": {},
906
+ "enums": {},
907
+ "_meta": {
908
+ "schemas": {},
909
+ "tables": {},
910
+ "columns": {}
911
+ },
912
+ "internal": {
913
+ "indexes": {
914
+ "projects_recent_idx": {
915
+ "columns": {
916
+ "\"last_opened_at\" desc": {
917
+ "isExpression": true
918
+ }
919
+ }
920
+ }
921
+ }
922
+ }
923
+ }