@pstdio/pocketcoder-cli 0.6.0 → 0.6.2

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,3033 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "6b674baa-e4b8-4f1f-bb2c-b5c86f68de8f",
5
+ "prevIds": [
6
+ "f1f0842e-0f1f-4950-b50b-2e89ea0d0d61"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "isRlsEnabled": false,
11
+ "name": "event_outbox",
12
+ "entityType": "tables",
13
+ "schema": "public"
14
+ },
15
+ {
16
+ "isRlsEnabled": false,
17
+ "name": "machine_keys",
18
+ "entityType": "tables",
19
+ "schema": "public"
20
+ },
21
+ {
22
+ "isRlsEnabled": false,
23
+ "name": "principals",
24
+ "entityType": "tables",
25
+ "schema": "public"
26
+ },
27
+ {
28
+ "isRlsEnabled": false,
29
+ "name": "templates",
30
+ "entityType": "tables",
31
+ "schema": "public"
32
+ },
33
+ {
34
+ "isRlsEnabled": false,
35
+ "name": "warm_pool_runtimes",
36
+ "entityType": "tables",
37
+ "schema": "public"
38
+ },
39
+ {
40
+ "isRlsEnabled": false,
41
+ "name": "workspace_checkpoints",
42
+ "entityType": "tables",
43
+ "schema": "public"
44
+ },
45
+ {
46
+ "isRlsEnabled": false,
47
+ "name": "workspace_logs",
48
+ "entityType": "tables",
49
+ "schema": "public"
50
+ },
51
+ {
52
+ "isRlsEnabled": false,
53
+ "name": "workspace_operations",
54
+ "entityType": "tables",
55
+ "schema": "public"
56
+ },
57
+ {
58
+ "isRlsEnabled": false,
59
+ "name": "workspace_outputs",
60
+ "entityType": "tables",
61
+ "schema": "public"
62
+ },
63
+ {
64
+ "isRlsEnabled": false,
65
+ "name": "workspace_state_history",
66
+ "entityType": "tables",
67
+ "schema": "public"
68
+ },
69
+ {
70
+ "isRlsEnabled": false,
71
+ "name": "workspace_storage",
72
+ "entityType": "tables",
73
+ "schema": "public"
74
+ },
75
+ {
76
+ "isRlsEnabled": false,
77
+ "name": "workspaces",
78
+ "entityType": "tables",
79
+ "schema": "public"
80
+ },
81
+ {
82
+ "type": "uuid",
83
+ "typeSchema": null,
84
+ "notNull": true,
85
+ "dimensions": 0,
86
+ "default": null,
87
+ "generated": null,
88
+ "identity": null,
89
+ "name": "id",
90
+ "entityType": "columns",
91
+ "schema": "public",
92
+ "table": "event_outbox"
93
+ },
94
+ {
95
+ "type": "uuid",
96
+ "typeSchema": null,
97
+ "notNull": true,
98
+ "dimensions": 0,
99
+ "default": null,
100
+ "generated": null,
101
+ "identity": null,
102
+ "name": "workspace_id",
103
+ "entityType": "columns",
104
+ "schema": "public",
105
+ "table": "event_outbox"
106
+ },
107
+ {
108
+ "type": "text",
109
+ "typeSchema": null,
110
+ "notNull": true,
111
+ "dimensions": 0,
112
+ "default": null,
113
+ "generated": null,
114
+ "identity": null,
115
+ "name": "event_type",
116
+ "entityType": "columns",
117
+ "schema": "public",
118
+ "table": "event_outbox"
119
+ },
120
+ {
121
+ "type": "jsonb",
122
+ "typeSchema": null,
123
+ "notNull": true,
124
+ "dimensions": 0,
125
+ "default": null,
126
+ "generated": null,
127
+ "identity": null,
128
+ "name": "payload",
129
+ "entityType": "columns",
130
+ "schema": "public",
131
+ "table": "event_outbox"
132
+ },
133
+ {
134
+ "type": "timestamp with time zone",
135
+ "typeSchema": null,
136
+ "notNull": true,
137
+ "dimensions": 0,
138
+ "default": null,
139
+ "generated": null,
140
+ "identity": null,
141
+ "name": "occurred_at",
142
+ "entityType": "columns",
143
+ "schema": "public",
144
+ "table": "event_outbox"
145
+ },
146
+ {
147
+ "type": "timestamp with time zone",
148
+ "typeSchema": null,
149
+ "notNull": true,
150
+ "dimensions": 0,
151
+ "default": null,
152
+ "generated": null,
153
+ "identity": null,
154
+ "name": "next_attempt_at",
155
+ "entityType": "columns",
156
+ "schema": "public",
157
+ "table": "event_outbox"
158
+ },
159
+ {
160
+ "type": "integer",
161
+ "typeSchema": null,
162
+ "notNull": true,
163
+ "dimensions": 0,
164
+ "default": "0",
165
+ "generated": null,
166
+ "identity": null,
167
+ "name": "attempt_count",
168
+ "entityType": "columns",
169
+ "schema": "public",
170
+ "table": "event_outbox"
171
+ },
172
+ {
173
+ "type": "timestamp with time zone",
174
+ "typeSchema": null,
175
+ "notNull": false,
176
+ "dimensions": 0,
177
+ "default": null,
178
+ "generated": null,
179
+ "identity": null,
180
+ "name": "delivered_at",
181
+ "entityType": "columns",
182
+ "schema": "public",
183
+ "table": "event_outbox"
184
+ },
185
+ {
186
+ "type": "text",
187
+ "typeSchema": null,
188
+ "notNull": false,
189
+ "dimensions": 0,
190
+ "default": null,
191
+ "generated": null,
192
+ "identity": null,
193
+ "name": "last_error_code",
194
+ "entityType": "columns",
195
+ "schema": "public",
196
+ "table": "event_outbox"
197
+ },
198
+ {
199
+ "type": "uuid",
200
+ "typeSchema": null,
201
+ "notNull": true,
202
+ "dimensions": 0,
203
+ "default": null,
204
+ "generated": null,
205
+ "identity": null,
206
+ "name": "id",
207
+ "entityType": "columns",
208
+ "schema": "public",
209
+ "table": "machine_keys"
210
+ },
211
+ {
212
+ "type": "uuid",
213
+ "typeSchema": null,
214
+ "notNull": true,
215
+ "dimensions": 0,
216
+ "default": null,
217
+ "generated": null,
218
+ "identity": null,
219
+ "name": "principal_id",
220
+ "entityType": "columns",
221
+ "schema": "public",
222
+ "table": "machine_keys"
223
+ },
224
+ {
225
+ "type": "bytea",
226
+ "typeSchema": null,
227
+ "notNull": true,
228
+ "dimensions": 0,
229
+ "default": null,
230
+ "generated": null,
231
+ "identity": null,
232
+ "name": "secret_digest",
233
+ "entityType": "columns",
234
+ "schema": "public",
235
+ "table": "machine_keys"
236
+ },
237
+ {
238
+ "type": "text",
239
+ "typeSchema": null,
240
+ "notNull": true,
241
+ "dimensions": 1,
242
+ "default": null,
243
+ "generated": null,
244
+ "identity": null,
245
+ "name": "scopes",
246
+ "entityType": "columns",
247
+ "schema": "public",
248
+ "table": "machine_keys"
249
+ },
250
+ {
251
+ "type": "timestamp with time zone",
252
+ "typeSchema": null,
253
+ "notNull": true,
254
+ "dimensions": 0,
255
+ "default": null,
256
+ "generated": null,
257
+ "identity": null,
258
+ "name": "created_at",
259
+ "entityType": "columns",
260
+ "schema": "public",
261
+ "table": "machine_keys"
262
+ },
263
+ {
264
+ "type": "timestamp with time zone",
265
+ "typeSchema": null,
266
+ "notNull": false,
267
+ "dimensions": 0,
268
+ "default": null,
269
+ "generated": null,
270
+ "identity": null,
271
+ "name": "expires_at",
272
+ "entityType": "columns",
273
+ "schema": "public",
274
+ "table": "machine_keys"
275
+ },
276
+ {
277
+ "type": "timestamp with time zone",
278
+ "typeSchema": null,
279
+ "notNull": false,
280
+ "dimensions": 0,
281
+ "default": null,
282
+ "generated": null,
283
+ "identity": null,
284
+ "name": "revoked_at",
285
+ "entityType": "columns",
286
+ "schema": "public",
287
+ "table": "machine_keys"
288
+ },
289
+ {
290
+ "type": "timestamp with time zone",
291
+ "typeSchema": null,
292
+ "notNull": false,
293
+ "dimensions": 0,
294
+ "default": null,
295
+ "generated": null,
296
+ "identity": null,
297
+ "name": "last_used_at",
298
+ "entityType": "columns",
299
+ "schema": "public",
300
+ "table": "machine_keys"
301
+ },
302
+ {
303
+ "type": "uuid",
304
+ "typeSchema": null,
305
+ "notNull": true,
306
+ "dimensions": 0,
307
+ "default": null,
308
+ "generated": null,
309
+ "identity": null,
310
+ "name": "id",
311
+ "entityType": "columns",
312
+ "schema": "public",
313
+ "table": "principals"
314
+ },
315
+ {
316
+ "type": "text",
317
+ "typeSchema": null,
318
+ "notNull": true,
319
+ "dimensions": 0,
320
+ "default": null,
321
+ "generated": null,
322
+ "identity": null,
323
+ "name": "name",
324
+ "entityType": "columns",
325
+ "schema": "public",
326
+ "table": "principals"
327
+ },
328
+ {
329
+ "type": "text",
330
+ "typeSchema": null,
331
+ "notNull": true,
332
+ "dimensions": 1,
333
+ "default": null,
334
+ "generated": null,
335
+ "identity": null,
336
+ "name": "scopes",
337
+ "entityType": "columns",
338
+ "schema": "public",
339
+ "table": "principals"
340
+ },
341
+ {
342
+ "type": "text",
343
+ "typeSchema": null,
344
+ "notNull": true,
345
+ "dimensions": 1,
346
+ "default": null,
347
+ "generated": null,
348
+ "identity": null,
349
+ "name": "template_names",
350
+ "entityType": "columns",
351
+ "schema": "public",
352
+ "table": "principals"
353
+ },
354
+ {
355
+ "type": "timestamp with time zone",
356
+ "typeSchema": null,
357
+ "notNull": false,
358
+ "dimensions": 0,
359
+ "default": null,
360
+ "generated": null,
361
+ "identity": null,
362
+ "name": "disabled_at",
363
+ "entityType": "columns",
364
+ "schema": "public",
365
+ "table": "principals"
366
+ },
367
+ {
368
+ "type": "timestamp with time zone",
369
+ "typeSchema": null,
370
+ "notNull": true,
371
+ "dimensions": 0,
372
+ "default": null,
373
+ "generated": null,
374
+ "identity": null,
375
+ "name": "created_at",
376
+ "entityType": "columns",
377
+ "schema": "public",
378
+ "table": "principals"
379
+ },
380
+ {
381
+ "type": "uuid",
382
+ "typeSchema": null,
383
+ "notNull": true,
384
+ "dimensions": 0,
385
+ "default": null,
386
+ "generated": null,
387
+ "identity": null,
388
+ "name": "id",
389
+ "entityType": "columns",
390
+ "schema": "public",
391
+ "table": "templates"
392
+ },
393
+ {
394
+ "type": "text",
395
+ "typeSchema": null,
396
+ "notNull": true,
397
+ "dimensions": 0,
398
+ "default": null,
399
+ "generated": null,
400
+ "identity": null,
401
+ "name": "name",
402
+ "entityType": "columns",
403
+ "schema": "public",
404
+ "table": "templates"
405
+ },
406
+ {
407
+ "type": "text",
408
+ "typeSchema": null,
409
+ "notNull": true,
410
+ "dimensions": 0,
411
+ "default": null,
412
+ "generated": null,
413
+ "identity": null,
414
+ "name": "version",
415
+ "entityType": "columns",
416
+ "schema": "public",
417
+ "table": "templates"
418
+ },
419
+ {
420
+ "type": "text",
421
+ "typeSchema": null,
422
+ "notNull": true,
423
+ "dimensions": 0,
424
+ "default": null,
425
+ "generated": null,
426
+ "identity": null,
427
+ "name": "digest",
428
+ "entityType": "columns",
429
+ "schema": "public",
430
+ "table": "templates"
431
+ },
432
+ {
433
+ "type": "text",
434
+ "typeSchema": null,
435
+ "notNull": false,
436
+ "dimensions": 0,
437
+ "default": null,
438
+ "generated": null,
439
+ "identity": null,
440
+ "name": "description",
441
+ "entityType": "columns",
442
+ "schema": "public",
443
+ "table": "templates"
444
+ },
445
+ {
446
+ "type": "jsonb",
447
+ "typeSchema": null,
448
+ "notNull": true,
449
+ "dimensions": 0,
450
+ "default": null,
451
+ "generated": null,
452
+ "identity": null,
453
+ "name": "spec",
454
+ "entityType": "columns",
455
+ "schema": "public",
456
+ "table": "templates"
457
+ },
458
+ {
459
+ "type": "text",
460
+ "typeSchema": null,
461
+ "notNull": true,
462
+ "dimensions": 0,
463
+ "default": null,
464
+ "generated": null,
465
+ "identity": null,
466
+ "name": "status",
467
+ "entityType": "columns",
468
+ "schema": "public",
469
+ "table": "templates"
470
+ },
471
+ {
472
+ "type": "timestamp with time zone",
473
+ "typeSchema": null,
474
+ "notNull": true,
475
+ "dimensions": 0,
476
+ "default": null,
477
+ "generated": null,
478
+ "identity": null,
479
+ "name": "created_at",
480
+ "entityType": "columns",
481
+ "schema": "public",
482
+ "table": "templates"
483
+ },
484
+ {
485
+ "type": "timestamp with time zone",
486
+ "typeSchema": null,
487
+ "notNull": false,
488
+ "dimensions": 0,
489
+ "default": null,
490
+ "generated": null,
491
+ "identity": null,
492
+ "name": "retired_at",
493
+ "entityType": "columns",
494
+ "schema": "public",
495
+ "table": "templates"
496
+ },
497
+ {
498
+ "type": "uuid",
499
+ "typeSchema": null,
500
+ "notNull": true,
501
+ "dimensions": 0,
502
+ "default": null,
503
+ "generated": null,
504
+ "identity": null,
505
+ "name": "id",
506
+ "entityType": "columns",
507
+ "schema": "public",
508
+ "table": "warm_pool_runtimes"
509
+ },
510
+ {
511
+ "type": "uuid",
512
+ "typeSchema": null,
513
+ "notNull": true,
514
+ "dimensions": 0,
515
+ "default": null,
516
+ "generated": null,
517
+ "identity": null,
518
+ "name": "template_id",
519
+ "entityType": "columns",
520
+ "schema": "public",
521
+ "table": "warm_pool_runtimes"
522
+ },
523
+ {
524
+ "type": "text",
525
+ "typeSchema": null,
526
+ "notNull": true,
527
+ "dimensions": 0,
528
+ "default": null,
529
+ "generated": null,
530
+ "identity": null,
531
+ "name": "template_name",
532
+ "entityType": "columns",
533
+ "schema": "public",
534
+ "table": "warm_pool_runtimes"
535
+ },
536
+ {
537
+ "type": "text",
538
+ "typeSchema": null,
539
+ "notNull": true,
540
+ "dimensions": 0,
541
+ "default": null,
542
+ "generated": null,
543
+ "identity": null,
544
+ "name": "template_version",
545
+ "entityType": "columns",
546
+ "schema": "public",
547
+ "table": "warm_pool_runtimes"
548
+ },
549
+ {
550
+ "type": "text",
551
+ "typeSchema": null,
552
+ "notNull": true,
553
+ "dimensions": 0,
554
+ "default": null,
555
+ "generated": null,
556
+ "identity": null,
557
+ "name": "template_digest",
558
+ "entityType": "columns",
559
+ "schema": "public",
560
+ "table": "warm_pool_runtimes"
561
+ },
562
+ {
563
+ "type": "text",
564
+ "typeSchema": null,
565
+ "notNull": true,
566
+ "dimensions": 0,
567
+ "default": null,
568
+ "generated": null,
569
+ "identity": null,
570
+ "name": "driver_kind",
571
+ "entityType": "columns",
572
+ "schema": "public",
573
+ "table": "warm_pool_runtimes"
574
+ },
575
+ {
576
+ "type": "text",
577
+ "typeSchema": null,
578
+ "notNull": true,
579
+ "dimensions": 0,
580
+ "default": null,
581
+ "generated": null,
582
+ "identity": null,
583
+ "name": "eligibility_fingerprint",
584
+ "entityType": "columns",
585
+ "schema": "public",
586
+ "table": "warm_pool_runtimes"
587
+ },
588
+ {
589
+ "type": "text",
590
+ "typeSchema": null,
591
+ "notNull": true,
592
+ "dimensions": 0,
593
+ "default": null,
594
+ "generated": null,
595
+ "identity": null,
596
+ "name": "state",
597
+ "entityType": "columns",
598
+ "schema": "public",
599
+ "table": "warm_pool_runtimes"
600
+ },
601
+ {
602
+ "type": "jsonb",
603
+ "typeSchema": null,
604
+ "notNull": false,
605
+ "dimensions": 0,
606
+ "default": null,
607
+ "generated": null,
608
+ "identity": null,
609
+ "name": "provider_ref",
610
+ "entityType": "columns",
611
+ "schema": "public",
612
+ "table": "warm_pool_runtimes"
613
+ },
614
+ {
615
+ "type": "bytea",
616
+ "typeSchema": null,
617
+ "notNull": false,
618
+ "dimensions": 0,
619
+ "default": null,
620
+ "generated": null,
621
+ "identity": null,
622
+ "name": "enrollment_digest",
623
+ "entityType": "columns",
624
+ "schema": "public",
625
+ "table": "warm_pool_runtimes"
626
+ },
627
+ {
628
+ "type": "timestamp with time zone",
629
+ "typeSchema": null,
630
+ "notNull": false,
631
+ "dimensions": 0,
632
+ "default": null,
633
+ "generated": null,
634
+ "identity": null,
635
+ "name": "enrollment_expires_at",
636
+ "entityType": "columns",
637
+ "schema": "public",
638
+ "table": "warm_pool_runtimes"
639
+ },
640
+ {
641
+ "type": "uuid",
642
+ "typeSchema": null,
643
+ "notNull": false,
644
+ "dimensions": 0,
645
+ "default": null,
646
+ "generated": null,
647
+ "identity": null,
648
+ "name": "workspace_id",
649
+ "entityType": "columns",
650
+ "schema": "public",
651
+ "table": "warm_pool_runtimes"
652
+ },
653
+ {
654
+ "type": "timestamp with time zone",
655
+ "typeSchema": null,
656
+ "notNull": true,
657
+ "dimensions": 0,
658
+ "default": null,
659
+ "generated": null,
660
+ "identity": null,
661
+ "name": "created_at",
662
+ "entityType": "columns",
663
+ "schema": "public",
664
+ "table": "warm_pool_runtimes"
665
+ },
666
+ {
667
+ "type": "timestamp with time zone",
668
+ "typeSchema": null,
669
+ "notNull": true,
670
+ "dimensions": 0,
671
+ "default": null,
672
+ "generated": null,
673
+ "identity": null,
674
+ "name": "updated_at",
675
+ "entityType": "columns",
676
+ "schema": "public",
677
+ "table": "warm_pool_runtimes"
678
+ },
679
+ {
680
+ "type": "timestamp with time zone",
681
+ "typeSchema": null,
682
+ "notNull": false,
683
+ "dimensions": 0,
684
+ "default": null,
685
+ "generated": null,
686
+ "identity": null,
687
+ "name": "ready_at",
688
+ "entityType": "columns",
689
+ "schema": "public",
690
+ "table": "warm_pool_runtimes"
691
+ },
692
+ {
693
+ "type": "timestamp with time zone",
694
+ "typeSchema": null,
695
+ "notNull": false,
696
+ "dimensions": 0,
697
+ "default": null,
698
+ "generated": null,
699
+ "identity": null,
700
+ "name": "leased_at",
701
+ "entityType": "columns",
702
+ "schema": "public",
703
+ "table": "warm_pool_runtimes"
704
+ },
705
+ {
706
+ "type": "text",
707
+ "typeSchema": null,
708
+ "notNull": false,
709
+ "dimensions": 0,
710
+ "default": null,
711
+ "generated": null,
712
+ "identity": null,
713
+ "name": "failure_code",
714
+ "entityType": "columns",
715
+ "schema": "public",
716
+ "table": "warm_pool_runtimes"
717
+ },
718
+ {
719
+ "type": "uuid",
720
+ "typeSchema": null,
721
+ "notNull": true,
722
+ "dimensions": 0,
723
+ "default": null,
724
+ "generated": null,
725
+ "identity": null,
726
+ "name": "id",
727
+ "entityType": "columns",
728
+ "schema": "public",
729
+ "table": "workspace_checkpoints"
730
+ },
731
+ {
732
+ "type": "uuid",
733
+ "typeSchema": null,
734
+ "notNull": true,
735
+ "dimensions": 0,
736
+ "default": null,
737
+ "generated": null,
738
+ "identity": null,
739
+ "name": "workspace_id",
740
+ "entityType": "columns",
741
+ "schema": "public",
742
+ "table": "workspace_checkpoints"
743
+ },
744
+ {
745
+ "type": "uuid",
746
+ "typeSchema": null,
747
+ "notNull": true,
748
+ "dimensions": 0,
749
+ "default": null,
750
+ "generated": null,
751
+ "identity": null,
752
+ "name": "principal_id",
753
+ "entityType": "columns",
754
+ "schema": "public",
755
+ "table": "workspace_checkpoints"
756
+ },
757
+ {
758
+ "type": "uuid",
759
+ "typeSchema": null,
760
+ "notNull": true,
761
+ "dimensions": 0,
762
+ "default": null,
763
+ "generated": null,
764
+ "identity": null,
765
+ "name": "storage_id",
766
+ "entityType": "columns",
767
+ "schema": "public",
768
+ "table": "workspace_checkpoints"
769
+ },
770
+ {
771
+ "type": "uuid",
772
+ "typeSchema": null,
773
+ "notNull": false,
774
+ "dimensions": 0,
775
+ "default": null,
776
+ "generated": null,
777
+ "identity": null,
778
+ "name": "parent_checkpoint_id",
779
+ "entityType": "columns",
780
+ "schema": "public",
781
+ "table": "workspace_checkpoints"
782
+ },
783
+ {
784
+ "type": "text",
785
+ "typeSchema": null,
786
+ "notNull": true,
787
+ "dimensions": 0,
788
+ "default": null,
789
+ "generated": null,
790
+ "identity": null,
791
+ "name": "state",
792
+ "entityType": "columns",
793
+ "schema": "public",
794
+ "table": "workspace_checkpoints"
795
+ },
796
+ {
797
+ "type": "text",
798
+ "typeSchema": null,
799
+ "notNull": false,
800
+ "dimensions": 0,
801
+ "default": null,
802
+ "generated": null,
803
+ "identity": null,
804
+ "name": "reason_code",
805
+ "entityType": "columns",
806
+ "schema": "public",
807
+ "table": "workspace_checkpoints"
808
+ },
809
+ {
810
+ "type": "text",
811
+ "typeSchema": null,
812
+ "notNull": true,
813
+ "dimensions": 0,
814
+ "default": null,
815
+ "generated": null,
816
+ "identity": null,
817
+ "name": "provider_kind",
818
+ "entityType": "columns",
819
+ "schema": "public",
820
+ "table": "workspace_checkpoints"
821
+ },
822
+ {
823
+ "type": "jsonb",
824
+ "typeSchema": null,
825
+ "notNull": false,
826
+ "dimensions": 0,
827
+ "default": null,
828
+ "generated": null,
829
+ "identity": null,
830
+ "name": "provider_ref",
831
+ "entityType": "columns",
832
+ "schema": "public",
833
+ "table": "workspace_checkpoints"
834
+ },
835
+ {
836
+ "type": "jsonb",
837
+ "typeSchema": null,
838
+ "notNull": true,
839
+ "dimensions": 0,
840
+ "default": null,
841
+ "generated": null,
842
+ "identity": null,
843
+ "name": "template_snapshot",
844
+ "entityType": "columns",
845
+ "schema": "public",
846
+ "table": "workspace_checkpoints"
847
+ },
848
+ {
849
+ "type": "text",
850
+ "typeSchema": null,
851
+ "notNull": true,
852
+ "dimensions": 0,
853
+ "default": null,
854
+ "generated": null,
855
+ "identity": null,
856
+ "name": "template_digest",
857
+ "entityType": "columns",
858
+ "schema": "public",
859
+ "table": "workspace_checkpoints"
860
+ },
861
+ {
862
+ "type": "jsonb",
863
+ "typeSchema": null,
864
+ "notNull": false,
865
+ "dimensions": 0,
866
+ "default": null,
867
+ "generated": null,
868
+ "identity": null,
869
+ "name": "source_provenance",
870
+ "entityType": "columns",
871
+ "schema": "public",
872
+ "table": "workspace_checkpoints"
873
+ },
874
+ {
875
+ "type": "jsonb",
876
+ "typeSchema": null,
877
+ "notNull": false,
878
+ "dimensions": 0,
879
+ "default": null,
880
+ "generated": null,
881
+ "identity": null,
882
+ "name": "manifest",
883
+ "entityType": "columns",
884
+ "schema": "public",
885
+ "table": "workspace_checkpoints"
886
+ },
887
+ {
888
+ "type": "text",
889
+ "typeSchema": null,
890
+ "notNull": false,
891
+ "dimensions": 0,
892
+ "default": null,
893
+ "generated": null,
894
+ "identity": null,
895
+ "name": "manifest_digest",
896
+ "entityType": "columns",
897
+ "schema": "public",
898
+ "table": "workspace_checkpoints"
899
+ },
900
+ {
901
+ "type": "bigint",
902
+ "typeSchema": null,
903
+ "notNull": false,
904
+ "dimensions": 0,
905
+ "default": null,
906
+ "generated": null,
907
+ "identity": null,
908
+ "name": "logical_bytes",
909
+ "entityType": "columns",
910
+ "schema": "public",
911
+ "table": "workspace_checkpoints"
912
+ },
913
+ {
914
+ "type": "bigint",
915
+ "typeSchema": null,
916
+ "notNull": false,
917
+ "dimensions": 0,
918
+ "default": null,
919
+ "generated": null,
920
+ "identity": null,
921
+ "name": "stored_bytes",
922
+ "entityType": "columns",
923
+ "schema": "public",
924
+ "table": "workspace_checkpoints"
925
+ },
926
+ {
927
+ "type": "bigint",
928
+ "typeSchema": null,
929
+ "notNull": false,
930
+ "dimensions": 0,
931
+ "default": null,
932
+ "generated": null,
933
+ "identity": null,
934
+ "name": "file_count",
935
+ "entityType": "columns",
936
+ "schema": "public",
937
+ "table": "workspace_checkpoints"
938
+ },
939
+ {
940
+ "type": "text",
941
+ "typeSchema": null,
942
+ "notNull": true,
943
+ "dimensions": 0,
944
+ "default": null,
945
+ "generated": null,
946
+ "identity": null,
947
+ "name": "conversation_restore",
948
+ "entityType": "columns",
949
+ "schema": "public",
950
+ "table": "workspace_checkpoints"
951
+ },
952
+ {
953
+ "type": "text",
954
+ "typeSchema": null,
955
+ "notNull": false,
956
+ "dimensions": 0,
957
+ "default": null,
958
+ "generated": null,
959
+ "identity": null,
960
+ "name": "label",
961
+ "entityType": "columns",
962
+ "schema": "public",
963
+ "table": "workspace_checkpoints"
964
+ },
965
+ {
966
+ "type": "timestamp with time zone",
967
+ "typeSchema": null,
968
+ "notNull": true,
969
+ "dimensions": 0,
970
+ "default": null,
971
+ "generated": null,
972
+ "identity": null,
973
+ "name": "created_at",
974
+ "entityType": "columns",
975
+ "schema": "public",
976
+ "table": "workspace_checkpoints"
977
+ },
978
+ {
979
+ "type": "timestamp with time zone",
980
+ "typeSchema": null,
981
+ "notNull": true,
982
+ "dimensions": 0,
983
+ "default": null,
984
+ "generated": null,
985
+ "identity": null,
986
+ "name": "updated_at",
987
+ "entityType": "columns",
988
+ "schema": "public",
989
+ "table": "workspace_checkpoints"
990
+ },
991
+ {
992
+ "type": "timestamp with time zone",
993
+ "typeSchema": null,
994
+ "notNull": false,
995
+ "dimensions": 0,
996
+ "default": null,
997
+ "generated": null,
998
+ "identity": null,
999
+ "name": "ready_at",
1000
+ "entityType": "columns",
1001
+ "schema": "public",
1002
+ "table": "workspace_checkpoints"
1003
+ },
1004
+ {
1005
+ "type": "timestamp with time zone",
1006
+ "typeSchema": null,
1007
+ "notNull": false,
1008
+ "dimensions": 0,
1009
+ "default": null,
1010
+ "generated": null,
1011
+ "identity": null,
1012
+ "name": "expires_at",
1013
+ "entityType": "columns",
1014
+ "schema": "public",
1015
+ "table": "workspace_checkpoints"
1016
+ },
1017
+ {
1018
+ "type": "timestamp with time zone",
1019
+ "typeSchema": null,
1020
+ "notNull": false,
1021
+ "dimensions": 0,
1022
+ "default": null,
1023
+ "generated": null,
1024
+ "identity": null,
1025
+ "name": "deleted_at",
1026
+ "entityType": "columns",
1027
+ "schema": "public",
1028
+ "table": "workspace_checkpoints"
1029
+ },
1030
+ {
1031
+ "type": "uuid",
1032
+ "typeSchema": null,
1033
+ "notNull": true,
1034
+ "dimensions": 0,
1035
+ "default": null,
1036
+ "generated": null,
1037
+ "identity": null,
1038
+ "name": "workspace_id",
1039
+ "entityType": "columns",
1040
+ "schema": "public",
1041
+ "table": "workspace_logs"
1042
+ },
1043
+ {
1044
+ "type": "bigint",
1045
+ "typeSchema": null,
1046
+ "notNull": true,
1047
+ "dimensions": 0,
1048
+ "default": null,
1049
+ "generated": null,
1050
+ "identity": null,
1051
+ "name": "seq",
1052
+ "entityType": "columns",
1053
+ "schema": "public",
1054
+ "table": "workspace_logs"
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "typeSchema": null,
1059
+ "notNull": true,
1060
+ "dimensions": 0,
1061
+ "default": null,
1062
+ "generated": null,
1063
+ "identity": null,
1064
+ "name": "stream",
1065
+ "entityType": "columns",
1066
+ "schema": "public",
1067
+ "table": "workspace_logs"
1068
+ },
1069
+ {
1070
+ "type": "timestamp with time zone",
1071
+ "typeSchema": null,
1072
+ "notNull": true,
1073
+ "dimensions": 0,
1074
+ "default": null,
1075
+ "generated": null,
1076
+ "identity": null,
1077
+ "name": "occurred_at",
1078
+ "entityType": "columns",
1079
+ "schema": "public",
1080
+ "table": "workspace_logs"
1081
+ },
1082
+ {
1083
+ "type": "bytea",
1084
+ "typeSchema": null,
1085
+ "notNull": true,
1086
+ "dimensions": 0,
1087
+ "default": null,
1088
+ "generated": null,
1089
+ "identity": null,
1090
+ "name": "content",
1091
+ "entityType": "columns",
1092
+ "schema": "public",
1093
+ "table": "workspace_logs"
1094
+ },
1095
+ {
1096
+ "type": "uuid",
1097
+ "typeSchema": null,
1098
+ "notNull": true,
1099
+ "dimensions": 0,
1100
+ "default": null,
1101
+ "generated": null,
1102
+ "identity": null,
1103
+ "name": "id",
1104
+ "entityType": "columns",
1105
+ "schema": "public",
1106
+ "table": "workspace_operations"
1107
+ },
1108
+ {
1109
+ "type": "uuid",
1110
+ "typeSchema": null,
1111
+ "notNull": true,
1112
+ "dimensions": 0,
1113
+ "default": null,
1114
+ "generated": null,
1115
+ "identity": null,
1116
+ "name": "principal_id",
1117
+ "entityType": "columns",
1118
+ "schema": "public",
1119
+ "table": "workspace_operations"
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "typeSchema": null,
1124
+ "notNull": true,
1125
+ "dimensions": 0,
1126
+ "default": null,
1127
+ "generated": null,
1128
+ "identity": null,
1129
+ "name": "kind",
1130
+ "entityType": "columns",
1131
+ "schema": "public",
1132
+ "table": "workspace_operations"
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "typeSchema": null,
1137
+ "notNull": true,
1138
+ "dimensions": 0,
1139
+ "default": null,
1140
+ "generated": null,
1141
+ "identity": null,
1142
+ "name": "state",
1143
+ "entityType": "columns",
1144
+ "schema": "public",
1145
+ "table": "workspace_operations"
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "typeSchema": null,
1150
+ "notNull": true,
1151
+ "dimensions": 0,
1152
+ "default": null,
1153
+ "generated": null,
1154
+ "identity": null,
1155
+ "name": "idempotency_key",
1156
+ "entityType": "columns",
1157
+ "schema": "public",
1158
+ "table": "workspace_operations"
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "typeSchema": null,
1163
+ "notNull": true,
1164
+ "dimensions": 0,
1165
+ "default": null,
1166
+ "generated": null,
1167
+ "identity": null,
1168
+ "name": "request_digest",
1169
+ "entityType": "columns",
1170
+ "schema": "public",
1171
+ "table": "workspace_operations"
1172
+ },
1173
+ {
1174
+ "type": "uuid",
1175
+ "typeSchema": null,
1176
+ "notNull": false,
1177
+ "dimensions": 0,
1178
+ "default": null,
1179
+ "generated": null,
1180
+ "identity": null,
1181
+ "name": "workspace_id",
1182
+ "entityType": "columns",
1183
+ "schema": "public",
1184
+ "table": "workspace_operations"
1185
+ },
1186
+ {
1187
+ "type": "uuid",
1188
+ "typeSchema": null,
1189
+ "notNull": false,
1190
+ "dimensions": 0,
1191
+ "default": null,
1192
+ "generated": null,
1193
+ "identity": null,
1194
+ "name": "checkpoint_id",
1195
+ "entityType": "columns",
1196
+ "schema": "public",
1197
+ "table": "workspace_operations"
1198
+ },
1199
+ {
1200
+ "type": "uuid",
1201
+ "typeSchema": null,
1202
+ "notNull": false,
1203
+ "dimensions": 0,
1204
+ "default": null,
1205
+ "generated": null,
1206
+ "identity": null,
1207
+ "name": "result_workspace_id",
1208
+ "entityType": "columns",
1209
+ "schema": "public",
1210
+ "table": "workspace_operations"
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "typeSchema": null,
1215
+ "notNull": false,
1216
+ "dimensions": 0,
1217
+ "default": null,
1218
+ "generated": null,
1219
+ "identity": null,
1220
+ "name": "reason_code",
1221
+ "entityType": "columns",
1222
+ "schema": "public",
1223
+ "table": "workspace_operations"
1224
+ },
1225
+ {
1226
+ "type": "integer",
1227
+ "typeSchema": null,
1228
+ "notNull": true,
1229
+ "dimensions": 0,
1230
+ "default": "0",
1231
+ "generated": null,
1232
+ "identity": null,
1233
+ "name": "attempt_count",
1234
+ "entityType": "columns",
1235
+ "schema": "public",
1236
+ "table": "workspace_operations"
1237
+ },
1238
+ {
1239
+ "type": "timestamp with time zone",
1240
+ "typeSchema": null,
1241
+ "notNull": true,
1242
+ "dimensions": 0,
1243
+ "default": null,
1244
+ "generated": null,
1245
+ "identity": null,
1246
+ "name": "created_at",
1247
+ "entityType": "columns",
1248
+ "schema": "public",
1249
+ "table": "workspace_operations"
1250
+ },
1251
+ {
1252
+ "type": "timestamp with time zone",
1253
+ "typeSchema": null,
1254
+ "notNull": true,
1255
+ "dimensions": 0,
1256
+ "default": null,
1257
+ "generated": null,
1258
+ "identity": null,
1259
+ "name": "updated_at",
1260
+ "entityType": "columns",
1261
+ "schema": "public",
1262
+ "table": "workspace_operations"
1263
+ },
1264
+ {
1265
+ "type": "timestamp with time zone",
1266
+ "typeSchema": null,
1267
+ "notNull": false,
1268
+ "dimensions": 0,
1269
+ "default": null,
1270
+ "generated": null,
1271
+ "identity": null,
1272
+ "name": "completed_at",
1273
+ "entityType": "columns",
1274
+ "schema": "public",
1275
+ "table": "workspace_operations"
1276
+ },
1277
+ {
1278
+ "type": "uuid",
1279
+ "typeSchema": null,
1280
+ "notNull": true,
1281
+ "dimensions": 0,
1282
+ "default": null,
1283
+ "generated": null,
1284
+ "identity": null,
1285
+ "name": "workspace_id",
1286
+ "entityType": "columns",
1287
+ "schema": "public",
1288
+ "table": "workspace_outputs"
1289
+ },
1290
+ {
1291
+ "type": "bigint",
1292
+ "typeSchema": null,
1293
+ "notNull": true,
1294
+ "dimensions": 0,
1295
+ "default": null,
1296
+ "generated": null,
1297
+ "identity": null,
1298
+ "name": "seq",
1299
+ "entityType": "columns",
1300
+ "schema": "public",
1301
+ "table": "workspace_outputs"
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "typeSchema": null,
1306
+ "notNull": true,
1307
+ "dimensions": 0,
1308
+ "default": null,
1309
+ "generated": null,
1310
+ "identity": null,
1311
+ "name": "name",
1312
+ "entityType": "columns",
1313
+ "schema": "public",
1314
+ "table": "workspace_outputs"
1315
+ },
1316
+ {
1317
+ "type": "jsonb",
1318
+ "typeSchema": null,
1319
+ "notNull": true,
1320
+ "dimensions": 0,
1321
+ "default": null,
1322
+ "generated": null,
1323
+ "identity": null,
1324
+ "name": "value",
1325
+ "entityType": "columns",
1326
+ "schema": "public",
1327
+ "table": "workspace_outputs"
1328
+ },
1329
+ {
1330
+ "type": "timestamp with time zone",
1331
+ "typeSchema": null,
1332
+ "notNull": true,
1333
+ "dimensions": 0,
1334
+ "default": null,
1335
+ "generated": null,
1336
+ "identity": null,
1337
+ "name": "occurred_at",
1338
+ "entityType": "columns",
1339
+ "schema": "public",
1340
+ "table": "workspace_outputs"
1341
+ },
1342
+ {
1343
+ "type": "uuid",
1344
+ "typeSchema": null,
1345
+ "notNull": true,
1346
+ "dimensions": 0,
1347
+ "default": null,
1348
+ "generated": null,
1349
+ "identity": null,
1350
+ "name": "id",
1351
+ "entityType": "columns",
1352
+ "schema": "public",
1353
+ "table": "workspace_state_history"
1354
+ },
1355
+ {
1356
+ "type": "uuid",
1357
+ "typeSchema": null,
1358
+ "notNull": true,
1359
+ "dimensions": 0,
1360
+ "default": null,
1361
+ "generated": null,
1362
+ "identity": null,
1363
+ "name": "workspace_id",
1364
+ "entityType": "columns",
1365
+ "schema": "public",
1366
+ "table": "workspace_state_history"
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "typeSchema": null,
1371
+ "notNull": false,
1372
+ "dimensions": 0,
1373
+ "default": null,
1374
+ "generated": null,
1375
+ "identity": null,
1376
+ "name": "from_state",
1377
+ "entityType": "columns",
1378
+ "schema": "public",
1379
+ "table": "workspace_state_history"
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "typeSchema": null,
1384
+ "notNull": true,
1385
+ "dimensions": 0,
1386
+ "default": null,
1387
+ "generated": null,
1388
+ "identity": null,
1389
+ "name": "to_state",
1390
+ "entityType": "columns",
1391
+ "schema": "public",
1392
+ "table": "workspace_state_history"
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "typeSchema": null,
1397
+ "notNull": false,
1398
+ "dimensions": 0,
1399
+ "default": null,
1400
+ "generated": null,
1401
+ "identity": null,
1402
+ "name": "reason_code",
1403
+ "entityType": "columns",
1404
+ "schema": "public",
1405
+ "table": "workspace_state_history"
1406
+ },
1407
+ {
1408
+ "type": "timestamp with time zone",
1409
+ "typeSchema": null,
1410
+ "notNull": true,
1411
+ "dimensions": 0,
1412
+ "default": null,
1413
+ "generated": null,
1414
+ "identity": null,
1415
+ "name": "occurred_at",
1416
+ "entityType": "columns",
1417
+ "schema": "public",
1418
+ "table": "workspace_state_history"
1419
+ },
1420
+ {
1421
+ "type": "uuid",
1422
+ "typeSchema": null,
1423
+ "notNull": true,
1424
+ "dimensions": 0,
1425
+ "default": null,
1426
+ "generated": null,
1427
+ "identity": null,
1428
+ "name": "id",
1429
+ "entityType": "columns",
1430
+ "schema": "public",
1431
+ "table": "workspace_storage"
1432
+ },
1433
+ {
1434
+ "type": "uuid",
1435
+ "typeSchema": null,
1436
+ "notNull": true,
1437
+ "dimensions": 0,
1438
+ "default": null,
1439
+ "generated": null,
1440
+ "identity": null,
1441
+ "name": "workspace_id",
1442
+ "entityType": "columns",
1443
+ "schema": "public",
1444
+ "table": "workspace_storage"
1445
+ },
1446
+ {
1447
+ "type": "uuid",
1448
+ "typeSchema": null,
1449
+ "notNull": true,
1450
+ "dimensions": 0,
1451
+ "default": null,
1452
+ "generated": null,
1453
+ "identity": null,
1454
+ "name": "principal_id",
1455
+ "entityType": "columns",
1456
+ "schema": "public",
1457
+ "table": "workspace_storage"
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "typeSchema": null,
1462
+ "notNull": true,
1463
+ "dimensions": 0,
1464
+ "default": null,
1465
+ "generated": null,
1466
+ "identity": null,
1467
+ "name": "provider_kind",
1468
+ "entityType": "columns",
1469
+ "schema": "public",
1470
+ "table": "workspace_storage"
1471
+ },
1472
+ {
1473
+ "type": "jsonb",
1474
+ "typeSchema": null,
1475
+ "notNull": true,
1476
+ "dimensions": 0,
1477
+ "default": null,
1478
+ "generated": null,
1479
+ "identity": null,
1480
+ "name": "provider_ref",
1481
+ "entityType": "columns",
1482
+ "schema": "public",
1483
+ "table": "workspace_storage"
1484
+ },
1485
+ {
1486
+ "type": "text",
1487
+ "typeSchema": null,
1488
+ "notNull": true,
1489
+ "dimensions": 0,
1490
+ "default": null,
1491
+ "generated": null,
1492
+ "identity": null,
1493
+ "name": "state",
1494
+ "entityType": "columns",
1495
+ "schema": "public",
1496
+ "table": "workspace_storage"
1497
+ },
1498
+ {
1499
+ "type": "jsonb",
1500
+ "typeSchema": null,
1501
+ "notNull": true,
1502
+ "dimensions": 0,
1503
+ "default": null,
1504
+ "generated": null,
1505
+ "identity": null,
1506
+ "name": "mount_manifest",
1507
+ "entityType": "columns",
1508
+ "schema": "public",
1509
+ "table": "workspace_storage"
1510
+ },
1511
+ {
1512
+ "type": "bigint",
1513
+ "typeSchema": null,
1514
+ "notNull": false,
1515
+ "dimensions": 0,
1516
+ "default": null,
1517
+ "generated": null,
1518
+ "identity": null,
1519
+ "name": "logical_bytes",
1520
+ "entityType": "columns",
1521
+ "schema": "public",
1522
+ "table": "workspace_storage"
1523
+ },
1524
+ {
1525
+ "type": "bigint",
1526
+ "typeSchema": null,
1527
+ "notNull": false,
1528
+ "dimensions": 0,
1529
+ "default": null,
1530
+ "generated": null,
1531
+ "identity": null,
1532
+ "name": "file_count",
1533
+ "entityType": "columns",
1534
+ "schema": "public",
1535
+ "table": "workspace_storage"
1536
+ },
1537
+ {
1538
+ "type": "timestamp with time zone",
1539
+ "typeSchema": null,
1540
+ "notNull": false,
1541
+ "dimensions": 0,
1542
+ "default": null,
1543
+ "generated": null,
1544
+ "identity": null,
1545
+ "name": "retained_until",
1546
+ "entityType": "columns",
1547
+ "schema": "public",
1548
+ "table": "workspace_storage"
1549
+ },
1550
+ {
1551
+ "type": "timestamp with time zone",
1552
+ "typeSchema": null,
1553
+ "notNull": true,
1554
+ "dimensions": 0,
1555
+ "default": null,
1556
+ "generated": null,
1557
+ "identity": null,
1558
+ "name": "created_at",
1559
+ "entityType": "columns",
1560
+ "schema": "public",
1561
+ "table": "workspace_storage"
1562
+ },
1563
+ {
1564
+ "type": "timestamp with time zone",
1565
+ "typeSchema": null,
1566
+ "notNull": true,
1567
+ "dimensions": 0,
1568
+ "default": null,
1569
+ "generated": null,
1570
+ "identity": null,
1571
+ "name": "updated_at",
1572
+ "entityType": "columns",
1573
+ "schema": "public",
1574
+ "table": "workspace_storage"
1575
+ },
1576
+ {
1577
+ "type": "timestamp with time zone",
1578
+ "typeSchema": null,
1579
+ "notNull": false,
1580
+ "dimensions": 0,
1581
+ "default": null,
1582
+ "generated": null,
1583
+ "identity": null,
1584
+ "name": "deleted_at",
1585
+ "entityType": "columns",
1586
+ "schema": "public",
1587
+ "table": "workspace_storage"
1588
+ },
1589
+ {
1590
+ "type": "text",
1591
+ "typeSchema": null,
1592
+ "notNull": false,
1593
+ "dimensions": 0,
1594
+ "default": null,
1595
+ "generated": null,
1596
+ "identity": null,
1597
+ "name": "last_error_code",
1598
+ "entityType": "columns",
1599
+ "schema": "public",
1600
+ "table": "workspace_storage"
1601
+ },
1602
+ {
1603
+ "type": "uuid",
1604
+ "typeSchema": null,
1605
+ "notNull": true,
1606
+ "dimensions": 0,
1607
+ "default": null,
1608
+ "generated": null,
1609
+ "identity": null,
1610
+ "name": "id",
1611
+ "entityType": "columns",
1612
+ "schema": "public",
1613
+ "table": "workspaces"
1614
+ },
1615
+ {
1616
+ "type": "uuid",
1617
+ "typeSchema": null,
1618
+ "notNull": true,
1619
+ "dimensions": 0,
1620
+ "default": null,
1621
+ "generated": null,
1622
+ "identity": null,
1623
+ "name": "principal_id",
1624
+ "entityType": "columns",
1625
+ "schema": "public",
1626
+ "table": "workspaces"
1627
+ },
1628
+ {
1629
+ "type": "text",
1630
+ "typeSchema": null,
1631
+ "notNull": true,
1632
+ "dimensions": 0,
1633
+ "default": null,
1634
+ "generated": null,
1635
+ "identity": null,
1636
+ "name": "external_id",
1637
+ "entityType": "columns",
1638
+ "schema": "public",
1639
+ "table": "workspaces"
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "typeSchema": null,
1644
+ "notNull": true,
1645
+ "dimensions": 0,
1646
+ "default": null,
1647
+ "generated": null,
1648
+ "identity": null,
1649
+ "name": "idempotency_key",
1650
+ "entityType": "columns",
1651
+ "schema": "public",
1652
+ "table": "workspaces"
1653
+ },
1654
+ {
1655
+ "type": "text",
1656
+ "typeSchema": null,
1657
+ "notNull": true,
1658
+ "dimensions": 0,
1659
+ "default": null,
1660
+ "generated": null,
1661
+ "identity": null,
1662
+ "name": "request_digest",
1663
+ "entityType": "columns",
1664
+ "schema": "public",
1665
+ "table": "workspaces"
1666
+ },
1667
+ {
1668
+ "type": "uuid",
1669
+ "typeSchema": null,
1670
+ "notNull": true,
1671
+ "dimensions": 0,
1672
+ "default": null,
1673
+ "generated": null,
1674
+ "identity": null,
1675
+ "name": "template_id",
1676
+ "entityType": "columns",
1677
+ "schema": "public",
1678
+ "table": "workspaces"
1679
+ },
1680
+ {
1681
+ "type": "text",
1682
+ "typeSchema": null,
1683
+ "notNull": true,
1684
+ "dimensions": 0,
1685
+ "default": null,
1686
+ "generated": null,
1687
+ "identity": null,
1688
+ "name": "template_name",
1689
+ "entityType": "columns",
1690
+ "schema": "public",
1691
+ "table": "workspaces"
1692
+ },
1693
+ {
1694
+ "type": "text",
1695
+ "typeSchema": null,
1696
+ "notNull": true,
1697
+ "dimensions": 0,
1698
+ "default": null,
1699
+ "generated": null,
1700
+ "identity": null,
1701
+ "name": "template_version",
1702
+ "entityType": "columns",
1703
+ "schema": "public",
1704
+ "table": "workspaces"
1705
+ },
1706
+ {
1707
+ "type": "text",
1708
+ "typeSchema": null,
1709
+ "notNull": true,
1710
+ "dimensions": 0,
1711
+ "default": null,
1712
+ "generated": null,
1713
+ "identity": null,
1714
+ "name": "template_digest",
1715
+ "entityType": "columns",
1716
+ "schema": "public",
1717
+ "table": "workspaces"
1718
+ },
1719
+ {
1720
+ "type": "jsonb",
1721
+ "typeSchema": null,
1722
+ "notNull": true,
1723
+ "dimensions": 0,
1724
+ "default": null,
1725
+ "generated": null,
1726
+ "identity": null,
1727
+ "name": "template_snapshot",
1728
+ "entityType": "columns",
1729
+ "schema": "public",
1730
+ "table": "workspaces"
1731
+ },
1732
+ {
1733
+ "type": "text",
1734
+ "typeSchema": null,
1735
+ "notNull": true,
1736
+ "dimensions": 0,
1737
+ "default": null,
1738
+ "generated": null,
1739
+ "identity": null,
1740
+ "name": "state",
1741
+ "entityType": "columns",
1742
+ "schema": "public",
1743
+ "table": "workspaces"
1744
+ },
1745
+ {
1746
+ "type": "text",
1747
+ "typeSchema": null,
1748
+ "notNull": false,
1749
+ "dimensions": 0,
1750
+ "default": null,
1751
+ "generated": null,
1752
+ "identity": null,
1753
+ "name": "reason_code",
1754
+ "entityType": "columns",
1755
+ "schema": "public",
1756
+ "table": "workspaces"
1757
+ },
1758
+ {
1759
+ "type": "text",
1760
+ "typeSchema": null,
1761
+ "notNull": true,
1762
+ "dimensions": 0,
1763
+ "default": "'unknown'",
1764
+ "generated": null,
1765
+ "identity": null,
1766
+ "name": "agent_state",
1767
+ "entityType": "columns",
1768
+ "schema": "public",
1769
+ "table": "workspaces"
1770
+ },
1771
+ {
1772
+ "type": "bigint",
1773
+ "typeSchema": null,
1774
+ "notNull": true,
1775
+ "dimensions": 0,
1776
+ "default": "1",
1777
+ "generated": null,
1778
+ "identity": null,
1779
+ "name": "change_seq",
1780
+ "entityType": "columns",
1781
+ "schema": "public",
1782
+ "table": "workspaces"
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "typeSchema": null,
1787
+ "notNull": false,
1788
+ "dimensions": 0,
1789
+ "default": null,
1790
+ "generated": null,
1791
+ "identity": null,
1792
+ "name": "failure_log_tail",
1793
+ "entityType": "columns",
1794
+ "schema": "public",
1795
+ "table": "workspaces"
1796
+ },
1797
+ {
1798
+ "type": "boolean",
1799
+ "typeSchema": null,
1800
+ "notNull": true,
1801
+ "dimensions": 0,
1802
+ "default": "false",
1803
+ "generated": null,
1804
+ "identity": null,
1805
+ "name": "failure_log_tail_truncated",
1806
+ "entityType": "columns",
1807
+ "schema": "public",
1808
+ "table": "workspaces"
1809
+ },
1810
+ {
1811
+ "type": "bigint",
1812
+ "typeSchema": null,
1813
+ "notNull": false,
1814
+ "dimensions": 0,
1815
+ "default": null,
1816
+ "generated": null,
1817
+ "identity": null,
1818
+ "name": "failure_last_log_seq",
1819
+ "entityType": "columns",
1820
+ "schema": "public",
1821
+ "table": "workspaces"
1822
+ },
1823
+ {
1824
+ "type": "text",
1825
+ "typeSchema": null,
1826
+ "notNull": false,
1827
+ "dimensions": 0,
1828
+ "default": null,
1829
+ "generated": null,
1830
+ "identity": null,
1831
+ "name": "terminal_intent",
1832
+ "entityType": "columns",
1833
+ "schema": "public",
1834
+ "table": "workspaces"
1835
+ },
1836
+ {
1837
+ "type": "jsonb",
1838
+ "typeSchema": null,
1839
+ "notNull": false,
1840
+ "dimensions": 0,
1841
+ "default": null,
1842
+ "generated": null,
1843
+ "identity": null,
1844
+ "name": "launch_input",
1845
+ "entityType": "columns",
1846
+ "schema": "public",
1847
+ "table": "workspaces"
1848
+ },
1849
+ {
1850
+ "type": "text",
1851
+ "typeSchema": null,
1852
+ "notNull": false,
1853
+ "dimensions": 0,
1854
+ "default": null,
1855
+ "generated": null,
1856
+ "identity": null,
1857
+ "name": "provider_kind",
1858
+ "entityType": "columns",
1859
+ "schema": "public",
1860
+ "table": "workspaces"
1861
+ },
1862
+ {
1863
+ "type": "jsonb",
1864
+ "typeSchema": null,
1865
+ "notNull": false,
1866
+ "dimensions": 0,
1867
+ "default": null,
1868
+ "generated": null,
1869
+ "identity": null,
1870
+ "name": "provider_ref",
1871
+ "entityType": "columns",
1872
+ "schema": "public",
1873
+ "table": "workspaces"
1874
+ },
1875
+ {
1876
+ "type": "text",
1877
+ "typeSchema": null,
1878
+ "notNull": false,
1879
+ "dimensions": 0,
1880
+ "default": null,
1881
+ "generated": null,
1882
+ "identity": null,
1883
+ "name": "provisioning_mode",
1884
+ "entityType": "columns",
1885
+ "schema": "public",
1886
+ "table": "workspaces"
1887
+ },
1888
+ {
1889
+ "type": "bytea",
1890
+ "typeSchema": null,
1891
+ "notNull": false,
1892
+ "dimensions": 0,
1893
+ "default": null,
1894
+ "generated": null,
1895
+ "identity": null,
1896
+ "name": "registration_digest",
1897
+ "entityType": "columns",
1898
+ "schema": "public",
1899
+ "table": "workspaces"
1900
+ },
1901
+ {
1902
+ "type": "timestamp with time zone",
1903
+ "typeSchema": null,
1904
+ "notNull": false,
1905
+ "dimensions": 0,
1906
+ "default": null,
1907
+ "generated": null,
1908
+ "identity": null,
1909
+ "name": "registration_expires_at",
1910
+ "entityType": "columns",
1911
+ "schema": "public",
1912
+ "table": "workspaces"
1913
+ },
1914
+ {
1915
+ "type": "bytea",
1916
+ "typeSchema": null,
1917
+ "notNull": false,
1918
+ "dimensions": 0,
1919
+ "default": null,
1920
+ "generated": null,
1921
+ "identity": null,
1922
+ "name": "reconnect_digest",
1923
+ "entityType": "columns",
1924
+ "schema": "public",
1925
+ "table": "workspaces"
1926
+ },
1927
+ {
1928
+ "type": "integer",
1929
+ "typeSchema": null,
1930
+ "notNull": true,
1931
+ "dimensions": 0,
1932
+ "default": "0",
1933
+ "generated": null,
1934
+ "identity": null,
1935
+ "name": "connection_epoch",
1936
+ "entityType": "columns",
1937
+ "schema": "public",
1938
+ "table": "workspaces"
1939
+ },
1940
+ {
1941
+ "type": "timestamp with time zone",
1942
+ "typeSchema": null,
1943
+ "notNull": false,
1944
+ "dimensions": 0,
1945
+ "default": null,
1946
+ "generated": null,
1947
+ "identity": null,
1948
+ "name": "connected_at",
1949
+ "entityType": "columns",
1950
+ "schema": "public",
1951
+ "table": "workspaces"
1952
+ },
1953
+ {
1954
+ "type": "timestamp with time zone",
1955
+ "typeSchema": null,
1956
+ "notNull": false,
1957
+ "dimensions": 0,
1958
+ "default": null,
1959
+ "generated": null,
1960
+ "identity": null,
1961
+ "name": "disconnected_at",
1962
+ "entityType": "columns",
1963
+ "schema": "public",
1964
+ "table": "workspaces"
1965
+ },
1966
+ {
1967
+ "type": "timestamp with time zone",
1968
+ "typeSchema": null,
1969
+ "notNull": false,
1970
+ "dimensions": 0,
1971
+ "default": null,
1972
+ "generated": null,
1973
+ "identity": null,
1974
+ "name": "ready_at",
1975
+ "entityType": "columns",
1976
+ "schema": "public",
1977
+ "table": "workspaces"
1978
+ },
1979
+ {
1980
+ "type": "timestamp with time zone",
1981
+ "typeSchema": null,
1982
+ "notNull": false,
1983
+ "dimensions": 0,
1984
+ "default": null,
1985
+ "generated": null,
1986
+ "identity": null,
1987
+ "name": "last_activity_at",
1988
+ "entityType": "columns",
1989
+ "schema": "public",
1990
+ "table": "workspaces"
1991
+ },
1992
+ {
1993
+ "type": "integer",
1994
+ "typeSchema": null,
1995
+ "notNull": true,
1996
+ "dimensions": 0,
1997
+ "default": "0",
1998
+ "generated": null,
1999
+ "identity": null,
2000
+ "name": "launch_attempts",
2001
+ "entityType": "columns",
2002
+ "schema": "public",
2003
+ "table": "workspaces"
2004
+ },
2005
+ {
2006
+ "type": "jsonb",
2007
+ "typeSchema": null,
2008
+ "notNull": true,
2009
+ "dimensions": 0,
2010
+ "default": "'{}'",
2011
+ "generated": null,
2012
+ "identity": null,
2013
+ "name": "health",
2014
+ "entityType": "columns",
2015
+ "schema": "public",
2016
+ "table": "workspaces"
2017
+ },
2018
+ {
2019
+ "type": "jsonb",
2020
+ "typeSchema": null,
2021
+ "notNull": true,
2022
+ "dimensions": 0,
2023
+ "default": "'{}'",
2024
+ "generated": null,
2025
+ "identity": null,
2026
+ "name": "metadata",
2027
+ "entityType": "columns",
2028
+ "schema": "public",
2029
+ "table": "workspaces"
2030
+ },
2031
+ {
2032
+ "type": "timestamp with time zone",
2033
+ "typeSchema": null,
2034
+ "notNull": true,
2035
+ "dimensions": 0,
2036
+ "default": null,
2037
+ "generated": null,
2038
+ "identity": null,
2039
+ "name": "deadline_at",
2040
+ "entityType": "columns",
2041
+ "schema": "public",
2042
+ "table": "workspaces"
2043
+ },
2044
+ {
2045
+ "type": "timestamp with time zone",
2046
+ "typeSchema": null,
2047
+ "notNull": true,
2048
+ "dimensions": 0,
2049
+ "default": null,
2050
+ "generated": null,
2051
+ "identity": null,
2052
+ "name": "created_at",
2053
+ "entityType": "columns",
2054
+ "schema": "public",
2055
+ "table": "workspaces"
2056
+ },
2057
+ {
2058
+ "type": "timestamp with time zone",
2059
+ "typeSchema": null,
2060
+ "notNull": true,
2061
+ "dimensions": 0,
2062
+ "default": null,
2063
+ "generated": null,
2064
+ "identity": null,
2065
+ "name": "updated_at",
2066
+ "entityType": "columns",
2067
+ "schema": "public",
2068
+ "table": "workspaces"
2069
+ },
2070
+ {
2071
+ "type": "timestamp with time zone",
2072
+ "typeSchema": null,
2073
+ "notNull": false,
2074
+ "dimensions": 0,
2075
+ "default": null,
2076
+ "generated": null,
2077
+ "identity": null,
2078
+ "name": "terminal_at",
2079
+ "entityType": "columns",
2080
+ "schema": "public",
2081
+ "table": "workspaces"
2082
+ },
2083
+ {
2084
+ "type": "uuid",
2085
+ "typeSchema": null,
2086
+ "notNull": false,
2087
+ "dimensions": 0,
2088
+ "default": null,
2089
+ "generated": null,
2090
+ "identity": null,
2091
+ "name": "origin_workspace_id",
2092
+ "entityType": "columns",
2093
+ "schema": "public",
2094
+ "table": "workspaces"
2095
+ },
2096
+ {
2097
+ "type": "uuid",
2098
+ "typeSchema": null,
2099
+ "notNull": false,
2100
+ "dimensions": 0,
2101
+ "default": null,
2102
+ "generated": null,
2103
+ "identity": null,
2104
+ "name": "restored_from_checkpoint_id",
2105
+ "entityType": "columns",
2106
+ "schema": "public",
2107
+ "table": "workspaces"
2108
+ },
2109
+ {
2110
+ "type": "jsonb",
2111
+ "typeSchema": null,
2112
+ "notNull": false,
2113
+ "dimensions": 0,
2114
+ "default": null,
2115
+ "generated": null,
2116
+ "identity": null,
2117
+ "name": "source_descriptor",
2118
+ "entityType": "columns",
2119
+ "schema": "public",
2120
+ "table": "workspaces"
2121
+ },
2122
+ {
2123
+ "type": "jsonb",
2124
+ "typeSchema": null,
2125
+ "notNull": false,
2126
+ "dimensions": 0,
2127
+ "default": null,
2128
+ "generated": null,
2129
+ "identity": null,
2130
+ "name": "resolved_source",
2131
+ "entityType": "columns",
2132
+ "schema": "public",
2133
+ "table": "workspaces"
2134
+ },
2135
+ {
2136
+ "type": "text",
2137
+ "typeSchema": null,
2138
+ "notNull": true,
2139
+ "dimensions": 0,
2140
+ "default": "'filesystem_only'",
2141
+ "generated": null,
2142
+ "identity": null,
2143
+ "name": "persistence_capability",
2144
+ "entityType": "columns",
2145
+ "schema": "public",
2146
+ "table": "workspaces"
2147
+ },
2148
+ {
2149
+ "type": "uuid",
2150
+ "typeSchema": null,
2151
+ "notNull": false,
2152
+ "dimensions": 0,
2153
+ "default": null,
2154
+ "generated": null,
2155
+ "identity": null,
2156
+ "name": "latest_checkpoint_id",
2157
+ "entityType": "columns",
2158
+ "schema": "public",
2159
+ "table": "workspaces"
2160
+ },
2161
+ {
2162
+ "type": "text",
2163
+ "typeSchema": null,
2164
+ "notNull": true,
2165
+ "dimensions": 0,
2166
+ "default": "'create'",
2167
+ "generated": null,
2168
+ "identity": null,
2169
+ "name": "launch_mode",
2170
+ "entityType": "columns",
2171
+ "schema": "public",
2172
+ "table": "workspaces"
2173
+ },
2174
+ {
2175
+ "type": "jsonb",
2176
+ "typeSchema": null,
2177
+ "notNull": true,
2178
+ "dimensions": 0,
2179
+ "default": "'{}'",
2180
+ "generated": null,
2181
+ "identity": null,
2182
+ "name": "outputs",
2183
+ "entityType": "columns",
2184
+ "schema": "public",
2185
+ "table": "workspaces"
2186
+ },
2187
+ {
2188
+ "nameExplicit": true,
2189
+ "columns": [
2190
+ {
2191
+ "value": "next_attempt_at",
2192
+ "isExpression": false,
2193
+ "asc": true,
2194
+ "nullsFirst": false,
2195
+ "opclass": null
2196
+ }
2197
+ ],
2198
+ "isUnique": false,
2199
+ "where": "\"delivered_at\" IS NULL",
2200
+ "with": "",
2201
+ "method": "btree",
2202
+ "concurrently": false,
2203
+ "name": "event_outbox_due",
2204
+ "entityType": "indexes",
2205
+ "schema": "public",
2206
+ "table": "event_outbox"
2207
+ },
2208
+ {
2209
+ "nameExplicit": true,
2210
+ "columns": [
2211
+ {
2212
+ "value": "template_digest",
2213
+ "isExpression": false,
2214
+ "asc": true,
2215
+ "nullsFirst": false,
2216
+ "opclass": null
2217
+ },
2218
+ {
2219
+ "value": "driver_kind",
2220
+ "isExpression": false,
2221
+ "asc": true,
2222
+ "nullsFirst": false,
2223
+ "opclass": null
2224
+ },
2225
+ {
2226
+ "value": "eligibility_fingerprint",
2227
+ "isExpression": false,
2228
+ "asc": true,
2229
+ "nullsFirst": false,
2230
+ "opclass": null
2231
+ },
2232
+ {
2233
+ "value": "state",
2234
+ "isExpression": false,
2235
+ "asc": true,
2236
+ "nullsFirst": false,
2237
+ "opclass": null
2238
+ },
2239
+ {
2240
+ "value": "ready_at",
2241
+ "isExpression": false,
2242
+ "asc": true,
2243
+ "nullsFirst": false,
2244
+ "opclass": null
2245
+ }
2246
+ ],
2247
+ "isUnique": false,
2248
+ "where": null,
2249
+ "with": "",
2250
+ "method": "btree",
2251
+ "concurrently": false,
2252
+ "name": "warm_pool_eligible",
2253
+ "entityType": "indexes",
2254
+ "schema": "public",
2255
+ "table": "warm_pool_runtimes"
2256
+ },
2257
+ {
2258
+ "nameExplicit": true,
2259
+ "columns": [
2260
+ {
2261
+ "value": "workspace_id",
2262
+ "isExpression": false,
2263
+ "asc": true,
2264
+ "nullsFirst": false,
2265
+ "opclass": null
2266
+ }
2267
+ ],
2268
+ "isUnique": true,
2269
+ "where": null,
2270
+ "with": "",
2271
+ "method": "btree",
2272
+ "concurrently": false,
2273
+ "name": "warm_pool_workspace_once",
2274
+ "entityType": "indexes",
2275
+ "schema": "public",
2276
+ "table": "warm_pool_runtimes"
2277
+ },
2278
+ {
2279
+ "nameExplicit": true,
2280
+ "columns": [
2281
+ {
2282
+ "value": "principal_id",
2283
+ "isExpression": false,
2284
+ "asc": true,
2285
+ "nullsFirst": false,
2286
+ "opclass": null
2287
+ },
2288
+ {
2289
+ "value": "state",
2290
+ "isExpression": false,
2291
+ "asc": true,
2292
+ "nullsFirst": false,
2293
+ "opclass": null
2294
+ },
2295
+ {
2296
+ "value": "created_at",
2297
+ "isExpression": false,
2298
+ "asc": true,
2299
+ "nullsFirst": false,
2300
+ "opclass": null
2301
+ }
2302
+ ],
2303
+ "isUnique": false,
2304
+ "where": null,
2305
+ "with": "",
2306
+ "method": "btree",
2307
+ "concurrently": false,
2308
+ "name": "workspace_checkpoints_principal_state",
2309
+ "entityType": "indexes",
2310
+ "schema": "public",
2311
+ "table": "workspace_checkpoints"
2312
+ },
2313
+ {
2314
+ "nameExplicit": true,
2315
+ "columns": [
2316
+ {
2317
+ "value": "state",
2318
+ "isExpression": false,
2319
+ "asc": true,
2320
+ "nullsFirst": false,
2321
+ "opclass": null
2322
+ },
2323
+ {
2324
+ "value": "expires_at",
2325
+ "isExpression": false,
2326
+ "asc": true,
2327
+ "nullsFirst": false,
2328
+ "opclass": null
2329
+ }
2330
+ ],
2331
+ "isUnique": false,
2332
+ "where": null,
2333
+ "with": "",
2334
+ "method": "btree",
2335
+ "concurrently": false,
2336
+ "name": "workspace_checkpoints_gc",
2337
+ "entityType": "indexes",
2338
+ "schema": "public",
2339
+ "table": "workspace_checkpoints"
2340
+ },
2341
+ {
2342
+ "nameExplicit": true,
2343
+ "columns": [
2344
+ {
2345
+ "value": "state",
2346
+ "isExpression": false,
2347
+ "asc": true,
2348
+ "nullsFirst": false,
2349
+ "opclass": null
2350
+ },
2351
+ {
2352
+ "value": "updated_at",
2353
+ "isExpression": false,
2354
+ "asc": true,
2355
+ "nullsFirst": false,
2356
+ "opclass": null
2357
+ }
2358
+ ],
2359
+ "isUnique": false,
2360
+ "where": null,
2361
+ "with": "",
2362
+ "method": "btree",
2363
+ "concurrently": false,
2364
+ "name": "workspace_operations_due",
2365
+ "entityType": "indexes",
2366
+ "schema": "public",
2367
+ "table": "workspace_operations"
2368
+ },
2369
+ {
2370
+ "nameExplicit": true,
2371
+ "columns": [
2372
+ {
2373
+ "value": "workspace_id",
2374
+ "isExpression": false,
2375
+ "asc": true,
2376
+ "nullsFirst": false,
2377
+ "opclass": null
2378
+ },
2379
+ {
2380
+ "value": "occurred_at",
2381
+ "isExpression": false,
2382
+ "asc": true,
2383
+ "nullsFirst": false,
2384
+ "opclass": null
2385
+ }
2386
+ ],
2387
+ "isUnique": false,
2388
+ "where": null,
2389
+ "with": "",
2390
+ "method": "btree",
2391
+ "concurrently": false,
2392
+ "name": "workspace_state_history_ws",
2393
+ "entityType": "indexes",
2394
+ "schema": "public",
2395
+ "table": "workspace_state_history"
2396
+ },
2397
+ {
2398
+ "nameExplicit": true,
2399
+ "columns": [
2400
+ {
2401
+ "value": "workspace_id",
2402
+ "isExpression": false,
2403
+ "asc": true,
2404
+ "nullsFirst": false,
2405
+ "opclass": null
2406
+ }
2407
+ ],
2408
+ "isUnique": true,
2409
+ "where": "\"state\" NOT IN ('deleted', 'lost', 'quarantined')",
2410
+ "with": "",
2411
+ "method": "btree",
2412
+ "concurrently": false,
2413
+ "name": "workspace_storage_one_live",
2414
+ "entityType": "indexes",
2415
+ "schema": "public",
2416
+ "table": "workspace_storage"
2417
+ },
2418
+ {
2419
+ "nameExplicit": true,
2420
+ "columns": [
2421
+ {
2422
+ "value": "state",
2423
+ "isExpression": false,
2424
+ "asc": true,
2425
+ "nullsFirst": false,
2426
+ "opclass": null
2427
+ },
2428
+ {
2429
+ "value": "retained_until",
2430
+ "isExpression": false,
2431
+ "asc": true,
2432
+ "nullsFirst": false,
2433
+ "opclass": null
2434
+ }
2435
+ ],
2436
+ "isUnique": false,
2437
+ "where": null,
2438
+ "with": "",
2439
+ "method": "btree",
2440
+ "concurrently": false,
2441
+ "name": "workspace_storage_gc",
2442
+ "entityType": "indexes",
2443
+ "schema": "public",
2444
+ "table": "workspace_storage"
2445
+ },
2446
+ {
2447
+ "nameExplicit": true,
2448
+ "columns": [
2449
+ {
2450
+ "value": "principal_id",
2451
+ "isExpression": false,
2452
+ "asc": true,
2453
+ "nullsFirst": false,
2454
+ "opclass": null
2455
+ }
2456
+ ],
2457
+ "isUnique": false,
2458
+ "where": null,
2459
+ "with": "",
2460
+ "method": "btree",
2461
+ "concurrently": false,
2462
+ "name": "workspace_storage_principal",
2463
+ "entityType": "indexes",
2464
+ "schema": "public",
2465
+ "table": "workspace_storage"
2466
+ },
2467
+ {
2468
+ "nameExplicit": true,
2469
+ "columns": [
2470
+ {
2471
+ "value": "principal_id",
2472
+ "isExpression": false,
2473
+ "asc": true,
2474
+ "nullsFirst": false,
2475
+ "opclass": null
2476
+ },
2477
+ {
2478
+ "value": "external_id",
2479
+ "isExpression": false,
2480
+ "asc": true,
2481
+ "nullsFirst": false,
2482
+ "opclass": null
2483
+ }
2484
+ ],
2485
+ "isUnique": true,
2486
+ "where": "\"state\" NOT IN ('succeeded', 'failed', 'canceled', 'expired', 'preserved')",
2487
+ "with": "",
2488
+ "method": "btree",
2489
+ "concurrently": false,
2490
+ "name": "workspaces_principal_external_active",
2491
+ "entityType": "indexes",
2492
+ "schema": "public",
2493
+ "table": "workspaces"
2494
+ },
2495
+ {
2496
+ "nameExplicit": true,
2497
+ "columns": [
2498
+ {
2499
+ "value": "state",
2500
+ "isExpression": false,
2501
+ "asc": true,
2502
+ "nullsFirst": false,
2503
+ "opclass": null
2504
+ },
2505
+ {
2506
+ "value": "created_at",
2507
+ "isExpression": false,
2508
+ "asc": true,
2509
+ "nullsFirst": false,
2510
+ "opclass": null
2511
+ }
2512
+ ],
2513
+ "isUnique": false,
2514
+ "where": null,
2515
+ "with": "",
2516
+ "method": "btree",
2517
+ "concurrently": false,
2518
+ "name": "workspaces_state_created",
2519
+ "entityType": "indexes",
2520
+ "schema": "public",
2521
+ "table": "workspaces"
2522
+ },
2523
+ {
2524
+ "nameExplicit": true,
2525
+ "columns": [
2526
+ {
2527
+ "value": "deadline_at",
2528
+ "isExpression": false,
2529
+ "asc": true,
2530
+ "nullsFirst": false,
2531
+ "opclass": null
2532
+ }
2533
+ ],
2534
+ "isUnique": false,
2535
+ "where": "\"state\" NOT IN ('succeeded', 'failed', 'canceled', 'expired', 'preserved')",
2536
+ "with": "",
2537
+ "method": "btree",
2538
+ "concurrently": false,
2539
+ "name": "workspaces_deadline",
2540
+ "entityType": "indexes",
2541
+ "schema": "public",
2542
+ "table": "workspaces"
2543
+ },
2544
+ {
2545
+ "nameExplicit": false,
2546
+ "columns": [
2547
+ "workspace_id"
2548
+ ],
2549
+ "schemaTo": "public",
2550
+ "tableTo": "workspaces",
2551
+ "columnsTo": [
2552
+ "id"
2553
+ ],
2554
+ "onUpdate": "NO ACTION",
2555
+ "onDelete": "NO ACTION",
2556
+ "name": "event_outbox_workspace_id_workspaces_id_fkey",
2557
+ "entityType": "fks",
2558
+ "schema": "public",
2559
+ "table": "event_outbox"
2560
+ },
2561
+ {
2562
+ "nameExplicit": false,
2563
+ "columns": [
2564
+ "principal_id"
2565
+ ],
2566
+ "schemaTo": "public",
2567
+ "tableTo": "principals",
2568
+ "columnsTo": [
2569
+ "id"
2570
+ ],
2571
+ "onUpdate": "NO ACTION",
2572
+ "onDelete": "NO ACTION",
2573
+ "name": "machine_keys_principal_id_principals_id_fkey",
2574
+ "entityType": "fks",
2575
+ "schema": "public",
2576
+ "table": "machine_keys"
2577
+ },
2578
+ {
2579
+ "nameExplicit": false,
2580
+ "columns": [
2581
+ "template_id"
2582
+ ],
2583
+ "schemaTo": "public",
2584
+ "tableTo": "templates",
2585
+ "columnsTo": [
2586
+ "id"
2587
+ ],
2588
+ "onUpdate": "NO ACTION",
2589
+ "onDelete": "NO ACTION",
2590
+ "name": "warm_pool_runtimes_template_id_templates_id_fkey",
2591
+ "entityType": "fks",
2592
+ "schema": "public",
2593
+ "table": "warm_pool_runtimes"
2594
+ },
2595
+ {
2596
+ "nameExplicit": false,
2597
+ "columns": [
2598
+ "workspace_id"
2599
+ ],
2600
+ "schemaTo": "public",
2601
+ "tableTo": "workspaces",
2602
+ "columnsTo": [
2603
+ "id"
2604
+ ],
2605
+ "onUpdate": "NO ACTION",
2606
+ "onDelete": "NO ACTION",
2607
+ "name": "warm_pool_runtimes_workspace_id_workspaces_id_fkey",
2608
+ "entityType": "fks",
2609
+ "schema": "public",
2610
+ "table": "warm_pool_runtimes"
2611
+ },
2612
+ {
2613
+ "nameExplicit": false,
2614
+ "columns": [
2615
+ "workspace_id"
2616
+ ],
2617
+ "schemaTo": "public",
2618
+ "tableTo": "workspaces",
2619
+ "columnsTo": [
2620
+ "id"
2621
+ ],
2622
+ "onUpdate": "NO ACTION",
2623
+ "onDelete": "NO ACTION",
2624
+ "name": "workspace_checkpoints_workspace_id_workspaces_id_fkey",
2625
+ "entityType": "fks",
2626
+ "schema": "public",
2627
+ "table": "workspace_checkpoints"
2628
+ },
2629
+ {
2630
+ "nameExplicit": false,
2631
+ "columns": [
2632
+ "principal_id"
2633
+ ],
2634
+ "schemaTo": "public",
2635
+ "tableTo": "principals",
2636
+ "columnsTo": [
2637
+ "id"
2638
+ ],
2639
+ "onUpdate": "NO ACTION",
2640
+ "onDelete": "NO ACTION",
2641
+ "name": "workspace_checkpoints_principal_id_principals_id_fkey",
2642
+ "entityType": "fks",
2643
+ "schema": "public",
2644
+ "table": "workspace_checkpoints"
2645
+ },
2646
+ {
2647
+ "nameExplicit": false,
2648
+ "columns": [
2649
+ "storage_id"
2650
+ ],
2651
+ "schemaTo": "public",
2652
+ "tableTo": "workspace_storage",
2653
+ "columnsTo": [
2654
+ "id"
2655
+ ],
2656
+ "onUpdate": "NO ACTION",
2657
+ "onDelete": "NO ACTION",
2658
+ "name": "workspace_checkpoints_storage_id_workspace_storage_id_fkey",
2659
+ "entityType": "fks",
2660
+ "schema": "public",
2661
+ "table": "workspace_checkpoints"
2662
+ },
2663
+ {
2664
+ "nameExplicit": false,
2665
+ "columns": [
2666
+ "workspace_id"
2667
+ ],
2668
+ "schemaTo": "public",
2669
+ "tableTo": "workspaces",
2670
+ "columnsTo": [
2671
+ "id"
2672
+ ],
2673
+ "onUpdate": "NO ACTION",
2674
+ "onDelete": "NO ACTION",
2675
+ "name": "workspace_logs_workspace_id_workspaces_id_fkey",
2676
+ "entityType": "fks",
2677
+ "schema": "public",
2678
+ "table": "workspace_logs"
2679
+ },
2680
+ {
2681
+ "nameExplicit": false,
2682
+ "columns": [
2683
+ "principal_id"
2684
+ ],
2685
+ "schemaTo": "public",
2686
+ "tableTo": "principals",
2687
+ "columnsTo": [
2688
+ "id"
2689
+ ],
2690
+ "onUpdate": "NO ACTION",
2691
+ "onDelete": "NO ACTION",
2692
+ "name": "workspace_operations_principal_id_principals_id_fkey",
2693
+ "entityType": "fks",
2694
+ "schema": "public",
2695
+ "table": "workspace_operations"
2696
+ },
2697
+ {
2698
+ "nameExplicit": false,
2699
+ "columns": [
2700
+ "workspace_id"
2701
+ ],
2702
+ "schemaTo": "public",
2703
+ "tableTo": "workspaces",
2704
+ "columnsTo": [
2705
+ "id"
2706
+ ],
2707
+ "onUpdate": "NO ACTION",
2708
+ "onDelete": "NO ACTION",
2709
+ "name": "workspace_operations_workspace_id_workspaces_id_fkey",
2710
+ "entityType": "fks",
2711
+ "schema": "public",
2712
+ "table": "workspace_operations"
2713
+ },
2714
+ {
2715
+ "nameExplicit": false,
2716
+ "columns": [
2717
+ "checkpoint_id"
2718
+ ],
2719
+ "schemaTo": "public",
2720
+ "tableTo": "workspace_checkpoints",
2721
+ "columnsTo": [
2722
+ "id"
2723
+ ],
2724
+ "onUpdate": "NO ACTION",
2725
+ "onDelete": "NO ACTION",
2726
+ "name": "workspace_operations_fBJ1lkBRI011_fkey",
2727
+ "entityType": "fks",
2728
+ "schema": "public",
2729
+ "table": "workspace_operations"
2730
+ },
2731
+ {
2732
+ "nameExplicit": false,
2733
+ "columns": [
2734
+ "result_workspace_id"
2735
+ ],
2736
+ "schemaTo": "public",
2737
+ "tableTo": "workspaces",
2738
+ "columnsTo": [
2739
+ "id"
2740
+ ],
2741
+ "onUpdate": "NO ACTION",
2742
+ "onDelete": "NO ACTION",
2743
+ "name": "workspace_operations_result_workspace_id_workspaces_id_fkey",
2744
+ "entityType": "fks",
2745
+ "schema": "public",
2746
+ "table": "workspace_operations"
2747
+ },
2748
+ {
2749
+ "nameExplicit": false,
2750
+ "columns": [
2751
+ "workspace_id"
2752
+ ],
2753
+ "schemaTo": "public",
2754
+ "tableTo": "workspaces",
2755
+ "columnsTo": [
2756
+ "id"
2757
+ ],
2758
+ "onUpdate": "NO ACTION",
2759
+ "onDelete": "NO ACTION",
2760
+ "name": "workspace_outputs_workspace_id_workspaces_id_fkey",
2761
+ "entityType": "fks",
2762
+ "schema": "public",
2763
+ "table": "workspace_outputs"
2764
+ },
2765
+ {
2766
+ "nameExplicit": false,
2767
+ "columns": [
2768
+ "workspace_id"
2769
+ ],
2770
+ "schemaTo": "public",
2771
+ "tableTo": "workspaces",
2772
+ "columnsTo": [
2773
+ "id"
2774
+ ],
2775
+ "onUpdate": "NO ACTION",
2776
+ "onDelete": "NO ACTION",
2777
+ "name": "workspace_state_history_workspace_id_workspaces_id_fkey",
2778
+ "entityType": "fks",
2779
+ "schema": "public",
2780
+ "table": "workspace_state_history"
2781
+ },
2782
+ {
2783
+ "nameExplicit": false,
2784
+ "columns": [
2785
+ "workspace_id"
2786
+ ],
2787
+ "schemaTo": "public",
2788
+ "tableTo": "workspaces",
2789
+ "columnsTo": [
2790
+ "id"
2791
+ ],
2792
+ "onUpdate": "NO ACTION",
2793
+ "onDelete": "NO ACTION",
2794
+ "name": "workspace_storage_workspace_id_workspaces_id_fkey",
2795
+ "entityType": "fks",
2796
+ "schema": "public",
2797
+ "table": "workspace_storage"
2798
+ },
2799
+ {
2800
+ "nameExplicit": false,
2801
+ "columns": [
2802
+ "principal_id"
2803
+ ],
2804
+ "schemaTo": "public",
2805
+ "tableTo": "principals",
2806
+ "columnsTo": [
2807
+ "id"
2808
+ ],
2809
+ "onUpdate": "NO ACTION",
2810
+ "onDelete": "NO ACTION",
2811
+ "name": "workspace_storage_principal_id_principals_id_fkey",
2812
+ "entityType": "fks",
2813
+ "schema": "public",
2814
+ "table": "workspace_storage"
2815
+ },
2816
+ {
2817
+ "nameExplicit": false,
2818
+ "columns": [
2819
+ "principal_id"
2820
+ ],
2821
+ "schemaTo": "public",
2822
+ "tableTo": "principals",
2823
+ "columnsTo": [
2824
+ "id"
2825
+ ],
2826
+ "onUpdate": "NO ACTION",
2827
+ "onDelete": "NO ACTION",
2828
+ "name": "workspaces_principal_id_principals_id_fkey",
2829
+ "entityType": "fks",
2830
+ "schema": "public",
2831
+ "table": "workspaces"
2832
+ },
2833
+ {
2834
+ "nameExplicit": false,
2835
+ "columns": [
2836
+ "template_id"
2837
+ ],
2838
+ "schemaTo": "public",
2839
+ "tableTo": "templates",
2840
+ "columnsTo": [
2841
+ "id"
2842
+ ],
2843
+ "onUpdate": "NO ACTION",
2844
+ "onDelete": "NO ACTION",
2845
+ "name": "workspaces_template_id_templates_id_fkey",
2846
+ "entityType": "fks",
2847
+ "schema": "public",
2848
+ "table": "workspaces"
2849
+ },
2850
+ {
2851
+ "columns": [
2852
+ "workspace_id",
2853
+ "seq"
2854
+ ],
2855
+ "nameExplicit": false,
2856
+ "name": "workspace_logs_pkey",
2857
+ "entityType": "pks",
2858
+ "schema": "public",
2859
+ "table": "workspace_logs"
2860
+ },
2861
+ {
2862
+ "columns": [
2863
+ "workspace_id",
2864
+ "seq"
2865
+ ],
2866
+ "nameExplicit": false,
2867
+ "name": "workspace_outputs_pkey",
2868
+ "entityType": "pks",
2869
+ "schema": "public",
2870
+ "table": "workspace_outputs"
2871
+ },
2872
+ {
2873
+ "columns": [
2874
+ "id"
2875
+ ],
2876
+ "nameExplicit": false,
2877
+ "name": "event_outbox_pkey",
2878
+ "schema": "public",
2879
+ "table": "event_outbox",
2880
+ "entityType": "pks"
2881
+ },
2882
+ {
2883
+ "columns": [
2884
+ "id"
2885
+ ],
2886
+ "nameExplicit": false,
2887
+ "name": "machine_keys_pkey",
2888
+ "schema": "public",
2889
+ "table": "machine_keys",
2890
+ "entityType": "pks"
2891
+ },
2892
+ {
2893
+ "columns": [
2894
+ "id"
2895
+ ],
2896
+ "nameExplicit": false,
2897
+ "name": "principals_pkey",
2898
+ "schema": "public",
2899
+ "table": "principals",
2900
+ "entityType": "pks"
2901
+ },
2902
+ {
2903
+ "columns": [
2904
+ "id"
2905
+ ],
2906
+ "nameExplicit": false,
2907
+ "name": "templates_pkey",
2908
+ "schema": "public",
2909
+ "table": "templates",
2910
+ "entityType": "pks"
2911
+ },
2912
+ {
2913
+ "columns": [
2914
+ "id"
2915
+ ],
2916
+ "nameExplicit": false,
2917
+ "name": "warm_pool_runtimes_pkey",
2918
+ "schema": "public",
2919
+ "table": "warm_pool_runtimes",
2920
+ "entityType": "pks"
2921
+ },
2922
+ {
2923
+ "columns": [
2924
+ "id"
2925
+ ],
2926
+ "nameExplicit": false,
2927
+ "name": "workspace_checkpoints_pkey",
2928
+ "schema": "public",
2929
+ "table": "workspace_checkpoints",
2930
+ "entityType": "pks"
2931
+ },
2932
+ {
2933
+ "columns": [
2934
+ "id"
2935
+ ],
2936
+ "nameExplicit": false,
2937
+ "name": "workspace_operations_pkey",
2938
+ "schema": "public",
2939
+ "table": "workspace_operations",
2940
+ "entityType": "pks"
2941
+ },
2942
+ {
2943
+ "columns": [
2944
+ "id"
2945
+ ],
2946
+ "nameExplicit": false,
2947
+ "name": "workspace_state_history_pkey",
2948
+ "schema": "public",
2949
+ "table": "workspace_state_history",
2950
+ "entityType": "pks"
2951
+ },
2952
+ {
2953
+ "columns": [
2954
+ "id"
2955
+ ],
2956
+ "nameExplicit": false,
2957
+ "name": "workspace_storage_pkey",
2958
+ "schema": "public",
2959
+ "table": "workspace_storage",
2960
+ "entityType": "pks"
2961
+ },
2962
+ {
2963
+ "columns": [
2964
+ "id"
2965
+ ],
2966
+ "nameExplicit": false,
2967
+ "name": "workspaces_pkey",
2968
+ "schema": "public",
2969
+ "table": "workspaces",
2970
+ "entityType": "pks"
2971
+ },
2972
+ {
2973
+ "nameExplicit": false,
2974
+ "columns": [
2975
+ "name",
2976
+ "version"
2977
+ ],
2978
+ "nullsNotDistinct": false,
2979
+ "name": "templates_name_version_unique",
2980
+ "entityType": "uniques",
2981
+ "schema": "public",
2982
+ "table": "templates"
2983
+ },
2984
+ {
2985
+ "nameExplicit": false,
2986
+ "columns": [
2987
+ "principal_id",
2988
+ "kind",
2989
+ "idempotency_key"
2990
+ ],
2991
+ "nullsNotDistinct": false,
2992
+ "name": "workspace_operations_principal_id_kind_idempotency_key_unique",
2993
+ "entityType": "uniques",
2994
+ "schema": "public",
2995
+ "table": "workspace_operations"
2996
+ },
2997
+ {
2998
+ "nameExplicit": false,
2999
+ "columns": [
3000
+ "principal_id",
3001
+ "idempotency_key"
3002
+ ],
3003
+ "nullsNotDistinct": false,
3004
+ "name": "workspaces_principal_id_idempotency_key_unique",
3005
+ "entityType": "uniques",
3006
+ "schema": "public",
3007
+ "table": "workspaces"
3008
+ },
3009
+ {
3010
+ "nameExplicit": false,
3011
+ "columns": [
3012
+ "name"
3013
+ ],
3014
+ "nullsNotDistinct": false,
3015
+ "name": "principals_name_key",
3016
+ "schema": "public",
3017
+ "table": "principals",
3018
+ "entityType": "uniques"
3019
+ },
3020
+ {
3021
+ "nameExplicit": false,
3022
+ "columns": [
3023
+ "digest"
3024
+ ],
3025
+ "nullsNotDistinct": false,
3026
+ "name": "templates_digest_key",
3027
+ "schema": "public",
3028
+ "table": "templates",
3029
+ "entityType": "uniques"
3030
+ }
3031
+ ],
3032
+ "renames": []
3033
+ }