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