@pstdio/pocketcoder-cli 0.6.0 → 0.6.2

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