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