@pstdio/pocketcoder-cli 0.5.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1360 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "4528e6f0-1c0a-4409-9657-1340a22befa4",
5
+ "prevIds": [
6
+ "00000000-0000-0000-0000-000000000000"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "isRlsEnabled": false,
11
+ "name": "event_outbox",
12
+ "entityType": "tables",
13
+ "schema": "public"
14
+ },
15
+ {
16
+ "isRlsEnabled": false,
17
+ "name": "machine_keys",
18
+ "entityType": "tables",
19
+ "schema": "public"
20
+ },
21
+ {
22
+ "isRlsEnabled": false,
23
+ "name": "principals",
24
+ "entityType": "tables",
25
+ "schema": "public"
26
+ },
27
+ {
28
+ "isRlsEnabled": false,
29
+ "name": "templates",
30
+ "entityType": "tables",
31
+ "schema": "public"
32
+ },
33
+ {
34
+ "isRlsEnabled": false,
35
+ "name": "workspace_logs",
36
+ "entityType": "tables",
37
+ "schema": "public"
38
+ },
39
+ {
40
+ "isRlsEnabled": false,
41
+ "name": "workspace_state_history",
42
+ "entityType": "tables",
43
+ "schema": "public"
44
+ },
45
+ {
46
+ "isRlsEnabled": false,
47
+ "name": "workspaces",
48
+ "entityType": "tables",
49
+ "schema": "public"
50
+ },
51
+ {
52
+ "type": "uuid",
53
+ "typeSchema": null,
54
+ "notNull": true,
55
+ "dimensions": 0,
56
+ "default": null,
57
+ "generated": null,
58
+ "identity": null,
59
+ "name": "id",
60
+ "entityType": "columns",
61
+ "schema": "public",
62
+ "table": "event_outbox"
63
+ },
64
+ {
65
+ "type": "uuid",
66
+ "typeSchema": null,
67
+ "notNull": true,
68
+ "dimensions": 0,
69
+ "default": null,
70
+ "generated": null,
71
+ "identity": null,
72
+ "name": "workspace_id",
73
+ "entityType": "columns",
74
+ "schema": "public",
75
+ "table": "event_outbox"
76
+ },
77
+ {
78
+ "type": "text",
79
+ "typeSchema": null,
80
+ "notNull": true,
81
+ "dimensions": 0,
82
+ "default": null,
83
+ "generated": null,
84
+ "identity": null,
85
+ "name": "event_type",
86
+ "entityType": "columns",
87
+ "schema": "public",
88
+ "table": "event_outbox"
89
+ },
90
+ {
91
+ "type": "jsonb",
92
+ "typeSchema": null,
93
+ "notNull": true,
94
+ "dimensions": 0,
95
+ "default": null,
96
+ "generated": null,
97
+ "identity": null,
98
+ "name": "payload",
99
+ "entityType": "columns",
100
+ "schema": "public",
101
+ "table": "event_outbox"
102
+ },
103
+ {
104
+ "type": "timestamp with time zone",
105
+ "typeSchema": null,
106
+ "notNull": true,
107
+ "dimensions": 0,
108
+ "default": null,
109
+ "generated": null,
110
+ "identity": null,
111
+ "name": "occurred_at",
112
+ "entityType": "columns",
113
+ "schema": "public",
114
+ "table": "event_outbox"
115
+ },
116
+ {
117
+ "type": "timestamp with time zone",
118
+ "typeSchema": null,
119
+ "notNull": true,
120
+ "dimensions": 0,
121
+ "default": null,
122
+ "generated": null,
123
+ "identity": null,
124
+ "name": "next_attempt_at",
125
+ "entityType": "columns",
126
+ "schema": "public",
127
+ "table": "event_outbox"
128
+ },
129
+ {
130
+ "type": "integer",
131
+ "typeSchema": null,
132
+ "notNull": true,
133
+ "dimensions": 0,
134
+ "default": "0",
135
+ "generated": null,
136
+ "identity": null,
137
+ "name": "attempt_count",
138
+ "entityType": "columns",
139
+ "schema": "public",
140
+ "table": "event_outbox"
141
+ },
142
+ {
143
+ "type": "timestamp with time zone",
144
+ "typeSchema": null,
145
+ "notNull": false,
146
+ "dimensions": 0,
147
+ "default": null,
148
+ "generated": null,
149
+ "identity": null,
150
+ "name": "delivered_at",
151
+ "entityType": "columns",
152
+ "schema": "public",
153
+ "table": "event_outbox"
154
+ },
155
+ {
156
+ "type": "text",
157
+ "typeSchema": null,
158
+ "notNull": false,
159
+ "dimensions": 0,
160
+ "default": null,
161
+ "generated": null,
162
+ "identity": null,
163
+ "name": "last_error_code",
164
+ "entityType": "columns",
165
+ "schema": "public",
166
+ "table": "event_outbox"
167
+ },
168
+ {
169
+ "type": "uuid",
170
+ "typeSchema": null,
171
+ "notNull": true,
172
+ "dimensions": 0,
173
+ "default": null,
174
+ "generated": null,
175
+ "identity": null,
176
+ "name": "id",
177
+ "entityType": "columns",
178
+ "schema": "public",
179
+ "table": "machine_keys"
180
+ },
181
+ {
182
+ "type": "uuid",
183
+ "typeSchema": null,
184
+ "notNull": true,
185
+ "dimensions": 0,
186
+ "default": null,
187
+ "generated": null,
188
+ "identity": null,
189
+ "name": "principal_id",
190
+ "entityType": "columns",
191
+ "schema": "public",
192
+ "table": "machine_keys"
193
+ },
194
+ {
195
+ "type": "bytea",
196
+ "typeSchema": null,
197
+ "notNull": true,
198
+ "dimensions": 0,
199
+ "default": null,
200
+ "generated": null,
201
+ "identity": null,
202
+ "name": "secret_digest",
203
+ "entityType": "columns",
204
+ "schema": "public",
205
+ "table": "machine_keys"
206
+ },
207
+ {
208
+ "type": "text",
209
+ "typeSchema": null,
210
+ "notNull": true,
211
+ "dimensions": 1,
212
+ "default": null,
213
+ "generated": null,
214
+ "identity": null,
215
+ "name": "scopes",
216
+ "entityType": "columns",
217
+ "schema": "public",
218
+ "table": "machine_keys"
219
+ },
220
+ {
221
+ "type": "timestamp with time zone",
222
+ "typeSchema": null,
223
+ "notNull": true,
224
+ "dimensions": 0,
225
+ "default": null,
226
+ "generated": null,
227
+ "identity": null,
228
+ "name": "created_at",
229
+ "entityType": "columns",
230
+ "schema": "public",
231
+ "table": "machine_keys"
232
+ },
233
+ {
234
+ "type": "timestamp with time zone",
235
+ "typeSchema": null,
236
+ "notNull": false,
237
+ "dimensions": 0,
238
+ "default": null,
239
+ "generated": null,
240
+ "identity": null,
241
+ "name": "expires_at",
242
+ "entityType": "columns",
243
+ "schema": "public",
244
+ "table": "machine_keys"
245
+ },
246
+ {
247
+ "type": "timestamp with time zone",
248
+ "typeSchema": null,
249
+ "notNull": false,
250
+ "dimensions": 0,
251
+ "default": null,
252
+ "generated": null,
253
+ "identity": null,
254
+ "name": "revoked_at",
255
+ "entityType": "columns",
256
+ "schema": "public",
257
+ "table": "machine_keys"
258
+ },
259
+ {
260
+ "type": "timestamp with time zone",
261
+ "typeSchema": null,
262
+ "notNull": false,
263
+ "dimensions": 0,
264
+ "default": null,
265
+ "generated": null,
266
+ "identity": null,
267
+ "name": "last_used_at",
268
+ "entityType": "columns",
269
+ "schema": "public",
270
+ "table": "machine_keys"
271
+ },
272
+ {
273
+ "type": "uuid",
274
+ "typeSchema": null,
275
+ "notNull": true,
276
+ "dimensions": 0,
277
+ "default": null,
278
+ "generated": null,
279
+ "identity": null,
280
+ "name": "id",
281
+ "entityType": "columns",
282
+ "schema": "public",
283
+ "table": "principals"
284
+ },
285
+ {
286
+ "type": "text",
287
+ "typeSchema": null,
288
+ "notNull": true,
289
+ "dimensions": 0,
290
+ "default": null,
291
+ "generated": null,
292
+ "identity": null,
293
+ "name": "name",
294
+ "entityType": "columns",
295
+ "schema": "public",
296
+ "table": "principals"
297
+ },
298
+ {
299
+ "type": "text",
300
+ "typeSchema": null,
301
+ "notNull": true,
302
+ "dimensions": 1,
303
+ "default": null,
304
+ "generated": null,
305
+ "identity": null,
306
+ "name": "scopes",
307
+ "entityType": "columns",
308
+ "schema": "public",
309
+ "table": "principals"
310
+ },
311
+ {
312
+ "type": "text",
313
+ "typeSchema": null,
314
+ "notNull": true,
315
+ "dimensions": 1,
316
+ "default": null,
317
+ "generated": null,
318
+ "identity": null,
319
+ "name": "template_names",
320
+ "entityType": "columns",
321
+ "schema": "public",
322
+ "table": "principals"
323
+ },
324
+ {
325
+ "type": "timestamp with time zone",
326
+ "typeSchema": null,
327
+ "notNull": false,
328
+ "dimensions": 0,
329
+ "default": null,
330
+ "generated": null,
331
+ "identity": null,
332
+ "name": "disabled_at",
333
+ "entityType": "columns",
334
+ "schema": "public",
335
+ "table": "principals"
336
+ },
337
+ {
338
+ "type": "timestamp with time zone",
339
+ "typeSchema": null,
340
+ "notNull": true,
341
+ "dimensions": 0,
342
+ "default": null,
343
+ "generated": null,
344
+ "identity": null,
345
+ "name": "created_at",
346
+ "entityType": "columns",
347
+ "schema": "public",
348
+ "table": "principals"
349
+ },
350
+ {
351
+ "type": "uuid",
352
+ "typeSchema": null,
353
+ "notNull": true,
354
+ "dimensions": 0,
355
+ "default": null,
356
+ "generated": null,
357
+ "identity": null,
358
+ "name": "id",
359
+ "entityType": "columns",
360
+ "schema": "public",
361
+ "table": "templates"
362
+ },
363
+ {
364
+ "type": "text",
365
+ "typeSchema": null,
366
+ "notNull": true,
367
+ "dimensions": 0,
368
+ "default": null,
369
+ "generated": null,
370
+ "identity": null,
371
+ "name": "name",
372
+ "entityType": "columns",
373
+ "schema": "public",
374
+ "table": "templates"
375
+ },
376
+ {
377
+ "type": "text",
378
+ "typeSchema": null,
379
+ "notNull": true,
380
+ "dimensions": 0,
381
+ "default": null,
382
+ "generated": null,
383
+ "identity": null,
384
+ "name": "version",
385
+ "entityType": "columns",
386
+ "schema": "public",
387
+ "table": "templates"
388
+ },
389
+ {
390
+ "type": "text",
391
+ "typeSchema": null,
392
+ "notNull": true,
393
+ "dimensions": 0,
394
+ "default": null,
395
+ "generated": null,
396
+ "identity": null,
397
+ "name": "digest",
398
+ "entityType": "columns",
399
+ "schema": "public",
400
+ "table": "templates"
401
+ },
402
+ {
403
+ "type": "text",
404
+ "typeSchema": null,
405
+ "notNull": false,
406
+ "dimensions": 0,
407
+ "default": null,
408
+ "generated": null,
409
+ "identity": null,
410
+ "name": "description",
411
+ "entityType": "columns",
412
+ "schema": "public",
413
+ "table": "templates"
414
+ },
415
+ {
416
+ "type": "jsonb",
417
+ "typeSchema": null,
418
+ "notNull": true,
419
+ "dimensions": 0,
420
+ "default": null,
421
+ "generated": null,
422
+ "identity": null,
423
+ "name": "spec",
424
+ "entityType": "columns",
425
+ "schema": "public",
426
+ "table": "templates"
427
+ },
428
+ {
429
+ "type": "text",
430
+ "typeSchema": null,
431
+ "notNull": true,
432
+ "dimensions": 0,
433
+ "default": null,
434
+ "generated": null,
435
+ "identity": null,
436
+ "name": "status",
437
+ "entityType": "columns",
438
+ "schema": "public",
439
+ "table": "templates"
440
+ },
441
+ {
442
+ "type": "timestamp with time zone",
443
+ "typeSchema": null,
444
+ "notNull": true,
445
+ "dimensions": 0,
446
+ "default": null,
447
+ "generated": null,
448
+ "identity": null,
449
+ "name": "created_at",
450
+ "entityType": "columns",
451
+ "schema": "public",
452
+ "table": "templates"
453
+ },
454
+ {
455
+ "type": "timestamp with time zone",
456
+ "typeSchema": null,
457
+ "notNull": false,
458
+ "dimensions": 0,
459
+ "default": null,
460
+ "generated": null,
461
+ "identity": null,
462
+ "name": "retired_at",
463
+ "entityType": "columns",
464
+ "schema": "public",
465
+ "table": "templates"
466
+ },
467
+ {
468
+ "type": "uuid",
469
+ "typeSchema": null,
470
+ "notNull": true,
471
+ "dimensions": 0,
472
+ "default": null,
473
+ "generated": null,
474
+ "identity": null,
475
+ "name": "workspace_id",
476
+ "entityType": "columns",
477
+ "schema": "public",
478
+ "table": "workspace_logs"
479
+ },
480
+ {
481
+ "type": "bigint",
482
+ "typeSchema": null,
483
+ "notNull": true,
484
+ "dimensions": 0,
485
+ "default": null,
486
+ "generated": null,
487
+ "identity": null,
488
+ "name": "seq",
489
+ "entityType": "columns",
490
+ "schema": "public",
491
+ "table": "workspace_logs"
492
+ },
493
+ {
494
+ "type": "text",
495
+ "typeSchema": null,
496
+ "notNull": true,
497
+ "dimensions": 0,
498
+ "default": null,
499
+ "generated": null,
500
+ "identity": null,
501
+ "name": "stream",
502
+ "entityType": "columns",
503
+ "schema": "public",
504
+ "table": "workspace_logs"
505
+ },
506
+ {
507
+ "type": "timestamp with time zone",
508
+ "typeSchema": null,
509
+ "notNull": true,
510
+ "dimensions": 0,
511
+ "default": null,
512
+ "generated": null,
513
+ "identity": null,
514
+ "name": "occurred_at",
515
+ "entityType": "columns",
516
+ "schema": "public",
517
+ "table": "workspace_logs"
518
+ },
519
+ {
520
+ "type": "bytea",
521
+ "typeSchema": null,
522
+ "notNull": true,
523
+ "dimensions": 0,
524
+ "default": null,
525
+ "generated": null,
526
+ "identity": null,
527
+ "name": "content",
528
+ "entityType": "columns",
529
+ "schema": "public",
530
+ "table": "workspace_logs"
531
+ },
532
+ {
533
+ "type": "uuid",
534
+ "typeSchema": null,
535
+ "notNull": true,
536
+ "dimensions": 0,
537
+ "default": null,
538
+ "generated": null,
539
+ "identity": null,
540
+ "name": "id",
541
+ "entityType": "columns",
542
+ "schema": "public",
543
+ "table": "workspace_state_history"
544
+ },
545
+ {
546
+ "type": "uuid",
547
+ "typeSchema": null,
548
+ "notNull": true,
549
+ "dimensions": 0,
550
+ "default": null,
551
+ "generated": null,
552
+ "identity": null,
553
+ "name": "workspace_id",
554
+ "entityType": "columns",
555
+ "schema": "public",
556
+ "table": "workspace_state_history"
557
+ },
558
+ {
559
+ "type": "text",
560
+ "typeSchema": null,
561
+ "notNull": false,
562
+ "dimensions": 0,
563
+ "default": null,
564
+ "generated": null,
565
+ "identity": null,
566
+ "name": "from_state",
567
+ "entityType": "columns",
568
+ "schema": "public",
569
+ "table": "workspace_state_history"
570
+ },
571
+ {
572
+ "type": "text",
573
+ "typeSchema": null,
574
+ "notNull": true,
575
+ "dimensions": 0,
576
+ "default": null,
577
+ "generated": null,
578
+ "identity": null,
579
+ "name": "to_state",
580
+ "entityType": "columns",
581
+ "schema": "public",
582
+ "table": "workspace_state_history"
583
+ },
584
+ {
585
+ "type": "text",
586
+ "typeSchema": null,
587
+ "notNull": false,
588
+ "dimensions": 0,
589
+ "default": null,
590
+ "generated": null,
591
+ "identity": null,
592
+ "name": "reason_code",
593
+ "entityType": "columns",
594
+ "schema": "public",
595
+ "table": "workspace_state_history"
596
+ },
597
+ {
598
+ "type": "timestamp with time zone",
599
+ "typeSchema": null,
600
+ "notNull": true,
601
+ "dimensions": 0,
602
+ "default": null,
603
+ "generated": null,
604
+ "identity": null,
605
+ "name": "occurred_at",
606
+ "entityType": "columns",
607
+ "schema": "public",
608
+ "table": "workspace_state_history"
609
+ },
610
+ {
611
+ "type": "uuid",
612
+ "typeSchema": null,
613
+ "notNull": true,
614
+ "dimensions": 0,
615
+ "default": null,
616
+ "generated": null,
617
+ "identity": null,
618
+ "name": "id",
619
+ "entityType": "columns",
620
+ "schema": "public",
621
+ "table": "workspaces"
622
+ },
623
+ {
624
+ "type": "uuid",
625
+ "typeSchema": null,
626
+ "notNull": true,
627
+ "dimensions": 0,
628
+ "default": null,
629
+ "generated": null,
630
+ "identity": null,
631
+ "name": "principal_id",
632
+ "entityType": "columns",
633
+ "schema": "public",
634
+ "table": "workspaces"
635
+ },
636
+ {
637
+ "type": "text",
638
+ "typeSchema": null,
639
+ "notNull": true,
640
+ "dimensions": 0,
641
+ "default": null,
642
+ "generated": null,
643
+ "identity": null,
644
+ "name": "external_id",
645
+ "entityType": "columns",
646
+ "schema": "public",
647
+ "table": "workspaces"
648
+ },
649
+ {
650
+ "type": "text",
651
+ "typeSchema": null,
652
+ "notNull": true,
653
+ "dimensions": 0,
654
+ "default": null,
655
+ "generated": null,
656
+ "identity": null,
657
+ "name": "idempotency_key",
658
+ "entityType": "columns",
659
+ "schema": "public",
660
+ "table": "workspaces"
661
+ },
662
+ {
663
+ "type": "text",
664
+ "typeSchema": null,
665
+ "notNull": true,
666
+ "dimensions": 0,
667
+ "default": null,
668
+ "generated": null,
669
+ "identity": null,
670
+ "name": "request_digest",
671
+ "entityType": "columns",
672
+ "schema": "public",
673
+ "table": "workspaces"
674
+ },
675
+ {
676
+ "type": "uuid",
677
+ "typeSchema": null,
678
+ "notNull": true,
679
+ "dimensions": 0,
680
+ "default": null,
681
+ "generated": null,
682
+ "identity": null,
683
+ "name": "template_id",
684
+ "entityType": "columns",
685
+ "schema": "public",
686
+ "table": "workspaces"
687
+ },
688
+ {
689
+ "type": "text",
690
+ "typeSchema": null,
691
+ "notNull": true,
692
+ "dimensions": 0,
693
+ "default": null,
694
+ "generated": null,
695
+ "identity": null,
696
+ "name": "template_name",
697
+ "entityType": "columns",
698
+ "schema": "public",
699
+ "table": "workspaces"
700
+ },
701
+ {
702
+ "type": "text",
703
+ "typeSchema": null,
704
+ "notNull": true,
705
+ "dimensions": 0,
706
+ "default": null,
707
+ "generated": null,
708
+ "identity": null,
709
+ "name": "template_version",
710
+ "entityType": "columns",
711
+ "schema": "public",
712
+ "table": "workspaces"
713
+ },
714
+ {
715
+ "type": "text",
716
+ "typeSchema": null,
717
+ "notNull": true,
718
+ "dimensions": 0,
719
+ "default": null,
720
+ "generated": null,
721
+ "identity": null,
722
+ "name": "template_digest",
723
+ "entityType": "columns",
724
+ "schema": "public",
725
+ "table": "workspaces"
726
+ },
727
+ {
728
+ "type": "jsonb",
729
+ "typeSchema": null,
730
+ "notNull": true,
731
+ "dimensions": 0,
732
+ "default": null,
733
+ "generated": null,
734
+ "identity": null,
735
+ "name": "template_snapshot",
736
+ "entityType": "columns",
737
+ "schema": "public",
738
+ "table": "workspaces"
739
+ },
740
+ {
741
+ "type": "text",
742
+ "typeSchema": null,
743
+ "notNull": true,
744
+ "dimensions": 0,
745
+ "default": null,
746
+ "generated": null,
747
+ "identity": null,
748
+ "name": "state",
749
+ "entityType": "columns",
750
+ "schema": "public",
751
+ "table": "workspaces"
752
+ },
753
+ {
754
+ "type": "text",
755
+ "typeSchema": null,
756
+ "notNull": false,
757
+ "dimensions": 0,
758
+ "default": null,
759
+ "generated": null,
760
+ "identity": null,
761
+ "name": "reason_code",
762
+ "entityType": "columns",
763
+ "schema": "public",
764
+ "table": "workspaces"
765
+ },
766
+ {
767
+ "type": "text",
768
+ "typeSchema": null,
769
+ "notNull": false,
770
+ "dimensions": 0,
771
+ "default": null,
772
+ "generated": null,
773
+ "identity": null,
774
+ "name": "terminal_intent",
775
+ "entityType": "columns",
776
+ "schema": "public",
777
+ "table": "workspaces"
778
+ },
779
+ {
780
+ "type": "jsonb",
781
+ "typeSchema": null,
782
+ "notNull": false,
783
+ "dimensions": 0,
784
+ "default": null,
785
+ "generated": null,
786
+ "identity": null,
787
+ "name": "launch_input",
788
+ "entityType": "columns",
789
+ "schema": "public",
790
+ "table": "workspaces"
791
+ },
792
+ {
793
+ "type": "text",
794
+ "typeSchema": null,
795
+ "notNull": false,
796
+ "dimensions": 0,
797
+ "default": null,
798
+ "generated": null,
799
+ "identity": null,
800
+ "name": "provider_kind",
801
+ "entityType": "columns",
802
+ "schema": "public",
803
+ "table": "workspaces"
804
+ },
805
+ {
806
+ "type": "jsonb",
807
+ "typeSchema": null,
808
+ "notNull": false,
809
+ "dimensions": 0,
810
+ "default": null,
811
+ "generated": null,
812
+ "identity": null,
813
+ "name": "provider_ref",
814
+ "entityType": "columns",
815
+ "schema": "public",
816
+ "table": "workspaces"
817
+ },
818
+ {
819
+ "type": "bytea",
820
+ "typeSchema": null,
821
+ "notNull": false,
822
+ "dimensions": 0,
823
+ "default": null,
824
+ "generated": null,
825
+ "identity": null,
826
+ "name": "registration_digest",
827
+ "entityType": "columns",
828
+ "schema": "public",
829
+ "table": "workspaces"
830
+ },
831
+ {
832
+ "type": "timestamp with time zone",
833
+ "typeSchema": null,
834
+ "notNull": false,
835
+ "dimensions": 0,
836
+ "default": null,
837
+ "generated": null,
838
+ "identity": null,
839
+ "name": "registration_expires_at",
840
+ "entityType": "columns",
841
+ "schema": "public",
842
+ "table": "workspaces"
843
+ },
844
+ {
845
+ "type": "bytea",
846
+ "typeSchema": null,
847
+ "notNull": false,
848
+ "dimensions": 0,
849
+ "default": null,
850
+ "generated": null,
851
+ "identity": null,
852
+ "name": "reconnect_digest",
853
+ "entityType": "columns",
854
+ "schema": "public",
855
+ "table": "workspaces"
856
+ },
857
+ {
858
+ "type": "integer",
859
+ "typeSchema": null,
860
+ "notNull": true,
861
+ "dimensions": 0,
862
+ "default": "0",
863
+ "generated": null,
864
+ "identity": null,
865
+ "name": "connection_epoch",
866
+ "entityType": "columns",
867
+ "schema": "public",
868
+ "table": "workspaces"
869
+ },
870
+ {
871
+ "type": "timestamp with time zone",
872
+ "typeSchema": null,
873
+ "notNull": false,
874
+ "dimensions": 0,
875
+ "default": null,
876
+ "generated": null,
877
+ "identity": null,
878
+ "name": "connected_at",
879
+ "entityType": "columns",
880
+ "schema": "public",
881
+ "table": "workspaces"
882
+ },
883
+ {
884
+ "type": "timestamp with time zone",
885
+ "typeSchema": null,
886
+ "notNull": false,
887
+ "dimensions": 0,
888
+ "default": null,
889
+ "generated": null,
890
+ "identity": null,
891
+ "name": "disconnected_at",
892
+ "entityType": "columns",
893
+ "schema": "public",
894
+ "table": "workspaces"
895
+ },
896
+ {
897
+ "type": "timestamp with time zone",
898
+ "typeSchema": null,
899
+ "notNull": false,
900
+ "dimensions": 0,
901
+ "default": null,
902
+ "generated": null,
903
+ "identity": null,
904
+ "name": "ready_at",
905
+ "entityType": "columns",
906
+ "schema": "public",
907
+ "table": "workspaces"
908
+ },
909
+ {
910
+ "type": "timestamp with time zone",
911
+ "typeSchema": null,
912
+ "notNull": false,
913
+ "dimensions": 0,
914
+ "default": null,
915
+ "generated": null,
916
+ "identity": null,
917
+ "name": "last_activity_at",
918
+ "entityType": "columns",
919
+ "schema": "public",
920
+ "table": "workspaces"
921
+ },
922
+ {
923
+ "type": "integer",
924
+ "typeSchema": null,
925
+ "notNull": true,
926
+ "dimensions": 0,
927
+ "default": "0",
928
+ "generated": null,
929
+ "identity": null,
930
+ "name": "launch_attempts",
931
+ "entityType": "columns",
932
+ "schema": "public",
933
+ "table": "workspaces"
934
+ },
935
+ {
936
+ "type": "jsonb",
937
+ "typeSchema": null,
938
+ "notNull": true,
939
+ "dimensions": 0,
940
+ "default": "'{}'",
941
+ "generated": null,
942
+ "identity": null,
943
+ "name": "health",
944
+ "entityType": "columns",
945
+ "schema": "public",
946
+ "table": "workspaces"
947
+ },
948
+ {
949
+ "type": "jsonb",
950
+ "typeSchema": null,
951
+ "notNull": true,
952
+ "dimensions": 0,
953
+ "default": "'{}'",
954
+ "generated": null,
955
+ "identity": null,
956
+ "name": "metadata",
957
+ "entityType": "columns",
958
+ "schema": "public",
959
+ "table": "workspaces"
960
+ },
961
+ {
962
+ "type": "timestamp with time zone",
963
+ "typeSchema": null,
964
+ "notNull": true,
965
+ "dimensions": 0,
966
+ "default": null,
967
+ "generated": null,
968
+ "identity": null,
969
+ "name": "deadline_at",
970
+ "entityType": "columns",
971
+ "schema": "public",
972
+ "table": "workspaces"
973
+ },
974
+ {
975
+ "type": "timestamp with time zone",
976
+ "typeSchema": null,
977
+ "notNull": true,
978
+ "dimensions": 0,
979
+ "default": null,
980
+ "generated": null,
981
+ "identity": null,
982
+ "name": "created_at",
983
+ "entityType": "columns",
984
+ "schema": "public",
985
+ "table": "workspaces"
986
+ },
987
+ {
988
+ "type": "timestamp with time zone",
989
+ "typeSchema": null,
990
+ "notNull": true,
991
+ "dimensions": 0,
992
+ "default": null,
993
+ "generated": null,
994
+ "identity": null,
995
+ "name": "updated_at",
996
+ "entityType": "columns",
997
+ "schema": "public",
998
+ "table": "workspaces"
999
+ },
1000
+ {
1001
+ "type": "timestamp with time zone",
1002
+ "typeSchema": null,
1003
+ "notNull": false,
1004
+ "dimensions": 0,
1005
+ "default": null,
1006
+ "generated": null,
1007
+ "identity": null,
1008
+ "name": "terminal_at",
1009
+ "entityType": "columns",
1010
+ "schema": "public",
1011
+ "table": "workspaces"
1012
+ },
1013
+ {
1014
+ "nameExplicit": true,
1015
+ "columns": [
1016
+ {
1017
+ "value": "next_attempt_at",
1018
+ "isExpression": false,
1019
+ "asc": true,
1020
+ "nullsFirst": false,
1021
+ "opclass": null
1022
+ }
1023
+ ],
1024
+ "isUnique": false,
1025
+ "where": "\"delivered_at\" IS NULL",
1026
+ "with": "",
1027
+ "method": "btree",
1028
+ "concurrently": false,
1029
+ "name": "event_outbox_due",
1030
+ "entityType": "indexes",
1031
+ "schema": "public",
1032
+ "table": "event_outbox"
1033
+ },
1034
+ {
1035
+ "nameExplicit": true,
1036
+ "columns": [
1037
+ {
1038
+ "value": "workspace_id",
1039
+ "isExpression": false,
1040
+ "asc": true,
1041
+ "nullsFirst": false,
1042
+ "opclass": null
1043
+ },
1044
+ {
1045
+ "value": "occurred_at",
1046
+ "isExpression": false,
1047
+ "asc": true,
1048
+ "nullsFirst": false,
1049
+ "opclass": null
1050
+ }
1051
+ ],
1052
+ "isUnique": false,
1053
+ "where": null,
1054
+ "with": "",
1055
+ "method": "btree",
1056
+ "concurrently": false,
1057
+ "name": "workspace_state_history_ws",
1058
+ "entityType": "indexes",
1059
+ "schema": "public",
1060
+ "table": "workspace_state_history"
1061
+ },
1062
+ {
1063
+ "nameExplicit": true,
1064
+ "columns": [
1065
+ {
1066
+ "value": "principal_id",
1067
+ "isExpression": false,
1068
+ "asc": true,
1069
+ "nullsFirst": false,
1070
+ "opclass": null
1071
+ },
1072
+ {
1073
+ "value": "external_id",
1074
+ "isExpression": false,
1075
+ "asc": true,
1076
+ "nullsFirst": false,
1077
+ "opclass": null
1078
+ }
1079
+ ],
1080
+ "isUnique": true,
1081
+ "where": "\"state\" NOT IN ('succeeded', 'failed', 'canceled', 'expired')",
1082
+ "with": "",
1083
+ "method": "btree",
1084
+ "concurrently": false,
1085
+ "name": "workspaces_principal_external_active",
1086
+ "entityType": "indexes",
1087
+ "schema": "public",
1088
+ "table": "workspaces"
1089
+ },
1090
+ {
1091
+ "nameExplicit": true,
1092
+ "columns": [
1093
+ {
1094
+ "value": "state",
1095
+ "isExpression": false,
1096
+ "asc": true,
1097
+ "nullsFirst": false,
1098
+ "opclass": null
1099
+ },
1100
+ {
1101
+ "value": "created_at",
1102
+ "isExpression": false,
1103
+ "asc": true,
1104
+ "nullsFirst": false,
1105
+ "opclass": null
1106
+ }
1107
+ ],
1108
+ "isUnique": false,
1109
+ "where": null,
1110
+ "with": "",
1111
+ "method": "btree",
1112
+ "concurrently": false,
1113
+ "name": "workspaces_state_created",
1114
+ "entityType": "indexes",
1115
+ "schema": "public",
1116
+ "table": "workspaces"
1117
+ },
1118
+ {
1119
+ "nameExplicit": true,
1120
+ "columns": [
1121
+ {
1122
+ "value": "deadline_at",
1123
+ "isExpression": false,
1124
+ "asc": true,
1125
+ "nullsFirst": false,
1126
+ "opclass": null
1127
+ }
1128
+ ],
1129
+ "isUnique": false,
1130
+ "where": "\"state\" NOT IN ('succeeded', 'failed', 'canceled', 'expired')",
1131
+ "with": "",
1132
+ "method": "btree",
1133
+ "concurrently": false,
1134
+ "name": "workspaces_deadline",
1135
+ "entityType": "indexes",
1136
+ "schema": "public",
1137
+ "table": "workspaces"
1138
+ },
1139
+ {
1140
+ "nameExplicit": false,
1141
+ "columns": [
1142
+ "workspace_id"
1143
+ ],
1144
+ "schemaTo": "public",
1145
+ "tableTo": "workspaces",
1146
+ "columnsTo": [
1147
+ "id"
1148
+ ],
1149
+ "onUpdate": "NO ACTION",
1150
+ "onDelete": "NO ACTION",
1151
+ "name": "event_outbox_workspace_id_workspaces_id_fkey",
1152
+ "entityType": "fks",
1153
+ "schema": "public",
1154
+ "table": "event_outbox"
1155
+ },
1156
+ {
1157
+ "nameExplicit": false,
1158
+ "columns": [
1159
+ "principal_id"
1160
+ ],
1161
+ "schemaTo": "public",
1162
+ "tableTo": "principals",
1163
+ "columnsTo": [
1164
+ "id"
1165
+ ],
1166
+ "onUpdate": "NO ACTION",
1167
+ "onDelete": "NO ACTION",
1168
+ "name": "machine_keys_principal_id_principals_id_fkey",
1169
+ "entityType": "fks",
1170
+ "schema": "public",
1171
+ "table": "machine_keys"
1172
+ },
1173
+ {
1174
+ "nameExplicit": false,
1175
+ "columns": [
1176
+ "workspace_id"
1177
+ ],
1178
+ "schemaTo": "public",
1179
+ "tableTo": "workspaces",
1180
+ "columnsTo": [
1181
+ "id"
1182
+ ],
1183
+ "onUpdate": "NO ACTION",
1184
+ "onDelete": "NO ACTION",
1185
+ "name": "workspace_logs_workspace_id_workspaces_id_fkey",
1186
+ "entityType": "fks",
1187
+ "schema": "public",
1188
+ "table": "workspace_logs"
1189
+ },
1190
+ {
1191
+ "nameExplicit": false,
1192
+ "columns": [
1193
+ "workspace_id"
1194
+ ],
1195
+ "schemaTo": "public",
1196
+ "tableTo": "workspaces",
1197
+ "columnsTo": [
1198
+ "id"
1199
+ ],
1200
+ "onUpdate": "NO ACTION",
1201
+ "onDelete": "NO ACTION",
1202
+ "name": "workspace_state_history_workspace_id_workspaces_id_fkey",
1203
+ "entityType": "fks",
1204
+ "schema": "public",
1205
+ "table": "workspace_state_history"
1206
+ },
1207
+ {
1208
+ "nameExplicit": false,
1209
+ "columns": [
1210
+ "principal_id"
1211
+ ],
1212
+ "schemaTo": "public",
1213
+ "tableTo": "principals",
1214
+ "columnsTo": [
1215
+ "id"
1216
+ ],
1217
+ "onUpdate": "NO ACTION",
1218
+ "onDelete": "NO ACTION",
1219
+ "name": "workspaces_principal_id_principals_id_fkey",
1220
+ "entityType": "fks",
1221
+ "schema": "public",
1222
+ "table": "workspaces"
1223
+ },
1224
+ {
1225
+ "nameExplicit": false,
1226
+ "columns": [
1227
+ "template_id"
1228
+ ],
1229
+ "schemaTo": "public",
1230
+ "tableTo": "templates",
1231
+ "columnsTo": [
1232
+ "id"
1233
+ ],
1234
+ "onUpdate": "NO ACTION",
1235
+ "onDelete": "NO ACTION",
1236
+ "name": "workspaces_template_id_templates_id_fkey",
1237
+ "entityType": "fks",
1238
+ "schema": "public",
1239
+ "table": "workspaces"
1240
+ },
1241
+ {
1242
+ "columns": [
1243
+ "workspace_id",
1244
+ "seq"
1245
+ ],
1246
+ "nameExplicit": false,
1247
+ "name": "workspace_logs_pkey",
1248
+ "entityType": "pks",
1249
+ "schema": "public",
1250
+ "table": "workspace_logs"
1251
+ },
1252
+ {
1253
+ "columns": [
1254
+ "id"
1255
+ ],
1256
+ "nameExplicit": false,
1257
+ "name": "event_outbox_pkey",
1258
+ "schema": "public",
1259
+ "table": "event_outbox",
1260
+ "entityType": "pks"
1261
+ },
1262
+ {
1263
+ "columns": [
1264
+ "id"
1265
+ ],
1266
+ "nameExplicit": false,
1267
+ "name": "machine_keys_pkey",
1268
+ "schema": "public",
1269
+ "table": "machine_keys",
1270
+ "entityType": "pks"
1271
+ },
1272
+ {
1273
+ "columns": [
1274
+ "id"
1275
+ ],
1276
+ "nameExplicit": false,
1277
+ "name": "principals_pkey",
1278
+ "schema": "public",
1279
+ "table": "principals",
1280
+ "entityType": "pks"
1281
+ },
1282
+ {
1283
+ "columns": [
1284
+ "id"
1285
+ ],
1286
+ "nameExplicit": false,
1287
+ "name": "templates_pkey",
1288
+ "schema": "public",
1289
+ "table": "templates",
1290
+ "entityType": "pks"
1291
+ },
1292
+ {
1293
+ "columns": [
1294
+ "id"
1295
+ ],
1296
+ "nameExplicit": false,
1297
+ "name": "workspace_state_history_pkey",
1298
+ "schema": "public",
1299
+ "table": "workspace_state_history",
1300
+ "entityType": "pks"
1301
+ },
1302
+ {
1303
+ "columns": [
1304
+ "id"
1305
+ ],
1306
+ "nameExplicit": false,
1307
+ "name": "workspaces_pkey",
1308
+ "schema": "public",
1309
+ "table": "workspaces",
1310
+ "entityType": "pks"
1311
+ },
1312
+ {
1313
+ "nameExplicit": false,
1314
+ "columns": [
1315
+ "name",
1316
+ "version"
1317
+ ],
1318
+ "nullsNotDistinct": false,
1319
+ "name": "templates_name_version_unique",
1320
+ "entityType": "uniques",
1321
+ "schema": "public",
1322
+ "table": "templates"
1323
+ },
1324
+ {
1325
+ "nameExplicit": false,
1326
+ "columns": [
1327
+ "principal_id",
1328
+ "idempotency_key"
1329
+ ],
1330
+ "nullsNotDistinct": false,
1331
+ "name": "workspaces_principal_id_idempotency_key_unique",
1332
+ "entityType": "uniques",
1333
+ "schema": "public",
1334
+ "table": "workspaces"
1335
+ },
1336
+ {
1337
+ "nameExplicit": false,
1338
+ "columns": [
1339
+ "name"
1340
+ ],
1341
+ "nullsNotDistinct": false,
1342
+ "name": "principals_name_key",
1343
+ "schema": "public",
1344
+ "table": "principals",
1345
+ "entityType": "uniques"
1346
+ },
1347
+ {
1348
+ "nameExplicit": false,
1349
+ "columns": [
1350
+ "digest"
1351
+ ],
1352
+ "nullsNotDistinct": false,
1353
+ "name": "templates_digest_key",
1354
+ "schema": "public",
1355
+ "table": "templates",
1356
+ "entityType": "uniques"
1357
+ }
1358
+ ],
1359
+ "renames": []
1360
+ }