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