duron 0.1.1 → 0.2.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.
Files changed (43) hide show
  1. package/README.md +4 -4
  2. package/dist/adapters/adapter.d.ts +3 -3
  3. package/dist/adapters/adapter.d.ts.map +1 -1
  4. package/dist/adapters/adapter.js +7 -7
  5. package/dist/adapters/postgres/base.d.ts +52 -0
  6. package/dist/adapters/postgres/base.d.ts.map +1 -0
  7. package/dist/adapters/postgres/base.js +834 -0
  8. package/dist/adapters/postgres/pglite.d.ts +10 -5
  9. package/dist/adapters/postgres/pglite.d.ts.map +1 -1
  10. package/dist/adapters/postgres/pglite.js +19 -7
  11. package/dist/adapters/postgres/postgres.d.ts +6 -39
  12. package/dist/adapters/postgres/postgres.d.ts.map +1 -1
  13. package/dist/adapters/postgres/postgres.js +9 -822
  14. package/dist/adapters/postgres/schema.d.ts +90 -136
  15. package/dist/adapters/postgres/schema.d.ts.map +1 -1
  16. package/dist/adapters/postgres/schema.default.d.ts +90 -136
  17. package/dist/adapters/postgres/schema.default.d.ts.map +1 -1
  18. package/dist/adapters/postgres/schema.js +2 -2
  19. package/dist/adapters/schemas.d.ts +6 -3
  20. package/dist/adapters/schemas.d.ts.map +1 -1
  21. package/dist/adapters/schemas.js +2 -1
  22. package/dist/client.d.ts +1 -0
  23. package/dist/client.d.ts.map +1 -1
  24. package/dist/server.d.ts +5 -2
  25. package/dist/server.d.ts.map +1 -1
  26. package/dist/server.js +3 -3
  27. package/dist/utils/p-retry.d.ts.map +1 -1
  28. package/dist/utils/p-retry.js +3 -4
  29. package/migrations/postgres/20251203223656_conscious_johnny_blaze/migration.sql +64 -0
  30. package/migrations/postgres/20251203223656_conscious_johnny_blaze/snapshot.json +941 -0
  31. package/package.json +3 -3
  32. package/src/adapters/adapter.ts +10 -10
  33. package/src/adapters/postgres/base.ts +1299 -0
  34. package/src/adapters/postgres/pglite.ts +36 -18
  35. package/src/adapters/postgres/postgres.ts +19 -1244
  36. package/src/adapters/postgres/schema.ts +2 -2
  37. package/src/adapters/schemas.ts +2 -1
  38. package/src/client.ts +1 -1
  39. package/src/server.ts +2 -2
  40. package/src/utils/p-retry.ts +8 -11
  41. package/migrations/postgres/0000_lethal_speed_demon.sql +0 -64
  42. package/migrations/postgres/meta/0000_snapshot.json +0 -606
  43. package/migrations/postgres/meta/_journal.json +0 -13
@@ -0,0 +1,941 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "e32fddc5-6d55-4c79-87b4-13d3a01b7d09",
5
+ "prevIds": ["00000000-0000-0000-0000-000000000000"],
6
+ "ddl": [
7
+ {
8
+ "name": "duron",
9
+ "entityType": "schemas"
10
+ },
11
+ {
12
+ "isRlsEnabled": false,
13
+ "name": "job_steps",
14
+ "entityType": "tables",
15
+ "schema": "duron"
16
+ },
17
+ {
18
+ "isRlsEnabled": false,
19
+ "name": "jobs",
20
+ "entityType": "tables",
21
+ "schema": "duron"
22
+ },
23
+ {
24
+ "type": "uuid",
25
+ "typeSchema": null,
26
+ "notNull": true,
27
+ "dimensions": 0,
28
+ "default": "gen_random_uuid()",
29
+ "generated": null,
30
+ "identity": null,
31
+ "name": "id",
32
+ "entityType": "columns",
33
+ "schema": "duron",
34
+ "table": "job_steps"
35
+ },
36
+ {
37
+ "type": "uuid",
38
+ "typeSchema": null,
39
+ "notNull": true,
40
+ "dimensions": 0,
41
+ "default": null,
42
+ "generated": null,
43
+ "identity": null,
44
+ "name": "job_id",
45
+ "entityType": "columns",
46
+ "schema": "duron",
47
+ "table": "job_steps"
48
+ },
49
+ {
50
+ "type": "text",
51
+ "typeSchema": null,
52
+ "notNull": true,
53
+ "dimensions": 0,
54
+ "default": null,
55
+ "generated": null,
56
+ "identity": null,
57
+ "name": "name",
58
+ "entityType": "columns",
59
+ "schema": "duron",
60
+ "table": "job_steps"
61
+ },
62
+ {
63
+ "type": "text",
64
+ "typeSchema": null,
65
+ "notNull": true,
66
+ "dimensions": 0,
67
+ "default": "'active'",
68
+ "generated": null,
69
+ "identity": null,
70
+ "name": "status",
71
+ "entityType": "columns",
72
+ "schema": "duron",
73
+ "table": "job_steps"
74
+ },
75
+ {
76
+ "type": "jsonb",
77
+ "typeSchema": null,
78
+ "notNull": false,
79
+ "dimensions": 0,
80
+ "default": null,
81
+ "generated": null,
82
+ "identity": null,
83
+ "name": "output",
84
+ "entityType": "columns",
85
+ "schema": "duron",
86
+ "table": "job_steps"
87
+ },
88
+ {
89
+ "type": "jsonb",
90
+ "typeSchema": null,
91
+ "notNull": false,
92
+ "dimensions": 0,
93
+ "default": null,
94
+ "generated": null,
95
+ "identity": null,
96
+ "name": "error",
97
+ "entityType": "columns",
98
+ "schema": "duron",
99
+ "table": "job_steps"
100
+ },
101
+ {
102
+ "type": "timestamp with time zone",
103
+ "typeSchema": null,
104
+ "notNull": true,
105
+ "dimensions": 0,
106
+ "default": "now()",
107
+ "generated": null,
108
+ "identity": null,
109
+ "name": "started_at",
110
+ "entityType": "columns",
111
+ "schema": "duron",
112
+ "table": "job_steps"
113
+ },
114
+ {
115
+ "type": "timestamp with time zone",
116
+ "typeSchema": null,
117
+ "notNull": false,
118
+ "dimensions": 0,
119
+ "default": null,
120
+ "generated": null,
121
+ "identity": null,
122
+ "name": "finished_at",
123
+ "entityType": "columns",
124
+ "schema": "duron",
125
+ "table": "job_steps"
126
+ },
127
+ {
128
+ "type": "integer",
129
+ "typeSchema": null,
130
+ "notNull": true,
131
+ "dimensions": 0,
132
+ "default": null,
133
+ "generated": null,
134
+ "identity": null,
135
+ "name": "timeout_ms",
136
+ "entityType": "columns",
137
+ "schema": "duron",
138
+ "table": "job_steps"
139
+ },
140
+ {
141
+ "type": "timestamp with time zone",
142
+ "typeSchema": null,
143
+ "notNull": false,
144
+ "dimensions": 0,
145
+ "default": null,
146
+ "generated": null,
147
+ "identity": null,
148
+ "name": "expires_at",
149
+ "entityType": "columns",
150
+ "schema": "duron",
151
+ "table": "job_steps"
152
+ },
153
+ {
154
+ "type": "integer",
155
+ "typeSchema": null,
156
+ "notNull": true,
157
+ "dimensions": 0,
158
+ "default": "0",
159
+ "generated": null,
160
+ "identity": null,
161
+ "name": "retries_limit",
162
+ "entityType": "columns",
163
+ "schema": "duron",
164
+ "table": "job_steps"
165
+ },
166
+ {
167
+ "type": "integer",
168
+ "typeSchema": null,
169
+ "notNull": true,
170
+ "dimensions": 0,
171
+ "default": "0",
172
+ "generated": null,
173
+ "identity": null,
174
+ "name": "retries_count",
175
+ "entityType": "columns",
176
+ "schema": "duron",
177
+ "table": "job_steps"
178
+ },
179
+ {
180
+ "type": "integer",
181
+ "typeSchema": null,
182
+ "notNull": false,
183
+ "dimensions": 0,
184
+ "default": null,
185
+ "generated": null,
186
+ "identity": null,
187
+ "name": "delayed_ms",
188
+ "entityType": "columns",
189
+ "schema": "duron",
190
+ "table": "job_steps"
191
+ },
192
+ {
193
+ "type": "jsonb",
194
+ "typeSchema": null,
195
+ "notNull": true,
196
+ "dimensions": 0,
197
+ "default": "'{}'",
198
+ "generated": null,
199
+ "identity": null,
200
+ "name": "history_failed_attempts",
201
+ "entityType": "columns",
202
+ "schema": "duron",
203
+ "table": "job_steps"
204
+ },
205
+ {
206
+ "type": "timestamp with time zone",
207
+ "typeSchema": null,
208
+ "notNull": true,
209
+ "dimensions": 0,
210
+ "default": "now()",
211
+ "generated": null,
212
+ "identity": null,
213
+ "name": "created_at",
214
+ "entityType": "columns",
215
+ "schema": "duron",
216
+ "table": "job_steps"
217
+ },
218
+ {
219
+ "type": "timestamp with time zone",
220
+ "typeSchema": null,
221
+ "notNull": true,
222
+ "dimensions": 0,
223
+ "default": "now()",
224
+ "generated": null,
225
+ "identity": null,
226
+ "name": "updated_at",
227
+ "entityType": "columns",
228
+ "schema": "duron",
229
+ "table": "job_steps"
230
+ },
231
+ {
232
+ "type": "uuid",
233
+ "typeSchema": null,
234
+ "notNull": true,
235
+ "dimensions": 0,
236
+ "default": "gen_random_uuid()",
237
+ "generated": null,
238
+ "identity": null,
239
+ "name": "id",
240
+ "entityType": "columns",
241
+ "schema": "duron",
242
+ "table": "jobs"
243
+ },
244
+ {
245
+ "type": "text",
246
+ "typeSchema": null,
247
+ "notNull": true,
248
+ "dimensions": 0,
249
+ "default": null,
250
+ "generated": null,
251
+ "identity": null,
252
+ "name": "action_name",
253
+ "entityType": "columns",
254
+ "schema": "duron",
255
+ "table": "jobs"
256
+ },
257
+ {
258
+ "type": "text",
259
+ "typeSchema": null,
260
+ "notNull": true,
261
+ "dimensions": 0,
262
+ "default": null,
263
+ "generated": null,
264
+ "identity": null,
265
+ "name": "group_key",
266
+ "entityType": "columns",
267
+ "schema": "duron",
268
+ "table": "jobs"
269
+ },
270
+ {
271
+ "type": "text",
272
+ "typeSchema": null,
273
+ "notNull": true,
274
+ "dimensions": 0,
275
+ "default": "'created'",
276
+ "generated": null,
277
+ "identity": null,
278
+ "name": "status",
279
+ "entityType": "columns",
280
+ "schema": "duron",
281
+ "table": "jobs"
282
+ },
283
+ {
284
+ "type": "text",
285
+ "typeSchema": null,
286
+ "notNull": true,
287
+ "dimensions": 0,
288
+ "default": null,
289
+ "generated": null,
290
+ "identity": null,
291
+ "name": "checksum",
292
+ "entityType": "columns",
293
+ "schema": "duron",
294
+ "table": "jobs"
295
+ },
296
+ {
297
+ "type": "jsonb",
298
+ "typeSchema": null,
299
+ "notNull": true,
300
+ "dimensions": 0,
301
+ "default": "'{}'",
302
+ "generated": null,
303
+ "identity": null,
304
+ "name": "input",
305
+ "entityType": "columns",
306
+ "schema": "duron",
307
+ "table": "jobs"
308
+ },
309
+ {
310
+ "type": "jsonb",
311
+ "typeSchema": null,
312
+ "notNull": false,
313
+ "dimensions": 0,
314
+ "default": null,
315
+ "generated": null,
316
+ "identity": null,
317
+ "name": "output",
318
+ "entityType": "columns",
319
+ "schema": "duron",
320
+ "table": "jobs"
321
+ },
322
+ {
323
+ "type": "jsonb",
324
+ "typeSchema": null,
325
+ "notNull": false,
326
+ "dimensions": 0,
327
+ "default": null,
328
+ "generated": null,
329
+ "identity": null,
330
+ "name": "error",
331
+ "entityType": "columns",
332
+ "schema": "duron",
333
+ "table": "jobs"
334
+ },
335
+ {
336
+ "type": "integer",
337
+ "typeSchema": null,
338
+ "notNull": true,
339
+ "dimensions": 0,
340
+ "default": null,
341
+ "generated": null,
342
+ "identity": null,
343
+ "name": "timeout_ms",
344
+ "entityType": "columns",
345
+ "schema": "duron",
346
+ "table": "jobs"
347
+ },
348
+ {
349
+ "type": "timestamp with time zone",
350
+ "typeSchema": null,
351
+ "notNull": false,
352
+ "dimensions": 0,
353
+ "default": null,
354
+ "generated": null,
355
+ "identity": null,
356
+ "name": "expires_at",
357
+ "entityType": "columns",
358
+ "schema": "duron",
359
+ "table": "jobs"
360
+ },
361
+ {
362
+ "type": "timestamp with time zone",
363
+ "typeSchema": null,
364
+ "notNull": false,
365
+ "dimensions": 0,
366
+ "default": null,
367
+ "generated": null,
368
+ "identity": null,
369
+ "name": "started_at",
370
+ "entityType": "columns",
371
+ "schema": "duron",
372
+ "table": "jobs"
373
+ },
374
+ {
375
+ "type": "timestamp with time zone",
376
+ "typeSchema": null,
377
+ "notNull": false,
378
+ "dimensions": 0,
379
+ "default": null,
380
+ "generated": null,
381
+ "identity": null,
382
+ "name": "finished_at",
383
+ "entityType": "columns",
384
+ "schema": "duron",
385
+ "table": "jobs"
386
+ },
387
+ {
388
+ "type": "text",
389
+ "typeSchema": null,
390
+ "notNull": false,
391
+ "dimensions": 0,
392
+ "default": null,
393
+ "generated": null,
394
+ "identity": null,
395
+ "name": "client_id",
396
+ "entityType": "columns",
397
+ "schema": "duron",
398
+ "table": "jobs"
399
+ },
400
+ {
401
+ "type": "integer",
402
+ "typeSchema": null,
403
+ "notNull": true,
404
+ "dimensions": 0,
405
+ "default": "10",
406
+ "generated": null,
407
+ "identity": null,
408
+ "name": "concurrency_limit",
409
+ "entityType": "columns",
410
+ "schema": "duron",
411
+ "table": "jobs"
412
+ },
413
+ {
414
+ "type": "timestamp with time zone",
415
+ "typeSchema": null,
416
+ "notNull": true,
417
+ "dimensions": 0,
418
+ "default": "now()",
419
+ "generated": null,
420
+ "identity": null,
421
+ "name": "created_at",
422
+ "entityType": "columns",
423
+ "schema": "duron",
424
+ "table": "jobs"
425
+ },
426
+ {
427
+ "type": "timestamp with time zone",
428
+ "typeSchema": null,
429
+ "notNull": true,
430
+ "dimensions": 0,
431
+ "default": "now()",
432
+ "generated": null,
433
+ "identity": null,
434
+ "name": "updated_at",
435
+ "entityType": "columns",
436
+ "schema": "duron",
437
+ "table": "jobs"
438
+ },
439
+ {
440
+ "nameExplicit": true,
441
+ "columns": [
442
+ {
443
+ "value": "job_id",
444
+ "isExpression": false,
445
+ "asc": true,
446
+ "nullsFirst": false,
447
+ "opclass": null
448
+ }
449
+ ],
450
+ "isUnique": false,
451
+ "where": null,
452
+ "with": "",
453
+ "method": "btree",
454
+ "concurrently": false,
455
+ "name": "idx_job_steps_job_id",
456
+ "entityType": "indexes",
457
+ "schema": "duron",
458
+ "table": "job_steps"
459
+ },
460
+ {
461
+ "nameExplicit": true,
462
+ "columns": [
463
+ {
464
+ "value": "status",
465
+ "isExpression": false,
466
+ "asc": true,
467
+ "nullsFirst": false,
468
+ "opclass": null
469
+ }
470
+ ],
471
+ "isUnique": false,
472
+ "where": null,
473
+ "with": "",
474
+ "method": "btree",
475
+ "concurrently": false,
476
+ "name": "idx_job_steps_status",
477
+ "entityType": "indexes",
478
+ "schema": "duron",
479
+ "table": "job_steps"
480
+ },
481
+ {
482
+ "nameExplicit": true,
483
+ "columns": [
484
+ {
485
+ "value": "name",
486
+ "isExpression": false,
487
+ "asc": true,
488
+ "nullsFirst": false,
489
+ "opclass": null
490
+ }
491
+ ],
492
+ "isUnique": false,
493
+ "where": null,
494
+ "with": "",
495
+ "method": "btree",
496
+ "concurrently": false,
497
+ "name": "idx_job_steps_name",
498
+ "entityType": "indexes",
499
+ "schema": "duron",
500
+ "table": "job_steps"
501
+ },
502
+ {
503
+ "nameExplicit": true,
504
+ "columns": [
505
+ {
506
+ "value": "expires_at",
507
+ "isExpression": false,
508
+ "asc": true,
509
+ "nullsFirst": false,
510
+ "opclass": null
511
+ }
512
+ ],
513
+ "isUnique": false,
514
+ "where": null,
515
+ "with": "",
516
+ "method": "btree",
517
+ "concurrently": false,
518
+ "name": "idx_job_steps_expires_at",
519
+ "entityType": "indexes",
520
+ "schema": "duron",
521
+ "table": "job_steps"
522
+ },
523
+ {
524
+ "nameExplicit": true,
525
+ "columns": [
526
+ {
527
+ "value": "job_id",
528
+ "isExpression": false,
529
+ "asc": true,
530
+ "nullsFirst": false,
531
+ "opclass": null
532
+ },
533
+ {
534
+ "value": "status",
535
+ "isExpression": false,
536
+ "asc": true,
537
+ "nullsFirst": false,
538
+ "opclass": null
539
+ }
540
+ ],
541
+ "isUnique": false,
542
+ "where": null,
543
+ "with": "",
544
+ "method": "btree",
545
+ "concurrently": false,
546
+ "name": "idx_job_steps_job_status",
547
+ "entityType": "indexes",
548
+ "schema": "duron",
549
+ "table": "job_steps"
550
+ },
551
+ {
552
+ "nameExplicit": true,
553
+ "columns": [
554
+ {
555
+ "value": "job_id",
556
+ "isExpression": false,
557
+ "asc": true,
558
+ "nullsFirst": false,
559
+ "opclass": null
560
+ },
561
+ {
562
+ "value": "name",
563
+ "isExpression": false,
564
+ "asc": true,
565
+ "nullsFirst": false,
566
+ "opclass": null
567
+ }
568
+ ],
569
+ "isUnique": false,
570
+ "where": null,
571
+ "with": "",
572
+ "method": "btree",
573
+ "concurrently": false,
574
+ "name": "idx_job_steps_job_name",
575
+ "entityType": "indexes",
576
+ "schema": "duron",
577
+ "table": "job_steps"
578
+ },
579
+ {
580
+ "nameExplicit": true,
581
+ "columns": [
582
+ {
583
+ "value": "to_tsvector('english', \"output\"::text)",
584
+ "isExpression": true,
585
+ "asc": true,
586
+ "nullsFirst": false,
587
+ "opclass": null
588
+ }
589
+ ],
590
+ "isUnique": false,
591
+ "where": null,
592
+ "with": "",
593
+ "method": "gin",
594
+ "concurrently": false,
595
+ "name": "idx_job_steps_output_fts",
596
+ "entityType": "indexes",
597
+ "schema": "duron",
598
+ "table": "job_steps"
599
+ },
600
+ {
601
+ "nameExplicit": true,
602
+ "columns": [
603
+ {
604
+ "value": "action_name",
605
+ "isExpression": false,
606
+ "asc": true,
607
+ "nullsFirst": false,
608
+ "opclass": null
609
+ }
610
+ ],
611
+ "isUnique": false,
612
+ "where": null,
613
+ "with": "",
614
+ "method": "btree",
615
+ "concurrently": false,
616
+ "name": "idx_jobs_action_name",
617
+ "entityType": "indexes",
618
+ "schema": "duron",
619
+ "table": "jobs"
620
+ },
621
+ {
622
+ "nameExplicit": true,
623
+ "columns": [
624
+ {
625
+ "value": "status",
626
+ "isExpression": false,
627
+ "asc": true,
628
+ "nullsFirst": false,
629
+ "opclass": null
630
+ }
631
+ ],
632
+ "isUnique": false,
633
+ "where": null,
634
+ "with": "",
635
+ "method": "btree",
636
+ "concurrently": false,
637
+ "name": "idx_jobs_status",
638
+ "entityType": "indexes",
639
+ "schema": "duron",
640
+ "table": "jobs"
641
+ },
642
+ {
643
+ "nameExplicit": true,
644
+ "columns": [
645
+ {
646
+ "value": "group_key",
647
+ "isExpression": false,
648
+ "asc": true,
649
+ "nullsFirst": false,
650
+ "opclass": null
651
+ }
652
+ ],
653
+ "isUnique": false,
654
+ "where": null,
655
+ "with": "",
656
+ "method": "btree",
657
+ "concurrently": false,
658
+ "name": "idx_jobs_group_key",
659
+ "entityType": "indexes",
660
+ "schema": "duron",
661
+ "table": "jobs"
662
+ },
663
+ {
664
+ "nameExplicit": true,
665
+ "columns": [
666
+ {
667
+ "value": "started_at",
668
+ "isExpression": false,
669
+ "asc": true,
670
+ "nullsFirst": false,
671
+ "opclass": null
672
+ }
673
+ ],
674
+ "isUnique": false,
675
+ "where": null,
676
+ "with": "",
677
+ "method": "btree",
678
+ "concurrently": false,
679
+ "name": "idx_jobs_started_at",
680
+ "entityType": "indexes",
681
+ "schema": "duron",
682
+ "table": "jobs"
683
+ },
684
+ {
685
+ "nameExplicit": true,
686
+ "columns": [
687
+ {
688
+ "value": "finished_at",
689
+ "isExpression": false,
690
+ "asc": true,
691
+ "nullsFirst": false,
692
+ "opclass": null
693
+ }
694
+ ],
695
+ "isUnique": false,
696
+ "where": null,
697
+ "with": "",
698
+ "method": "btree",
699
+ "concurrently": false,
700
+ "name": "idx_jobs_finished_at",
701
+ "entityType": "indexes",
702
+ "schema": "duron",
703
+ "table": "jobs"
704
+ },
705
+ {
706
+ "nameExplicit": true,
707
+ "columns": [
708
+ {
709
+ "value": "expires_at",
710
+ "isExpression": false,
711
+ "asc": true,
712
+ "nullsFirst": false,
713
+ "opclass": null
714
+ }
715
+ ],
716
+ "isUnique": false,
717
+ "where": null,
718
+ "with": "",
719
+ "method": "btree",
720
+ "concurrently": false,
721
+ "name": "idx_jobs_expires_at",
722
+ "entityType": "indexes",
723
+ "schema": "duron",
724
+ "table": "jobs"
725
+ },
726
+ {
727
+ "nameExplicit": true,
728
+ "columns": [
729
+ {
730
+ "value": "client_id",
731
+ "isExpression": false,
732
+ "asc": true,
733
+ "nullsFirst": false,
734
+ "opclass": null
735
+ }
736
+ ],
737
+ "isUnique": false,
738
+ "where": null,
739
+ "with": "",
740
+ "method": "btree",
741
+ "concurrently": false,
742
+ "name": "idx_jobs_client_id",
743
+ "entityType": "indexes",
744
+ "schema": "duron",
745
+ "table": "jobs"
746
+ },
747
+ {
748
+ "nameExplicit": true,
749
+ "columns": [
750
+ {
751
+ "value": "checksum",
752
+ "isExpression": false,
753
+ "asc": true,
754
+ "nullsFirst": false,
755
+ "opclass": null
756
+ }
757
+ ],
758
+ "isUnique": false,
759
+ "where": null,
760
+ "with": "",
761
+ "method": "btree",
762
+ "concurrently": false,
763
+ "name": "idx_jobs_checksum",
764
+ "entityType": "indexes",
765
+ "schema": "duron",
766
+ "table": "jobs"
767
+ },
768
+ {
769
+ "nameExplicit": true,
770
+ "columns": [
771
+ {
772
+ "value": "concurrency_limit",
773
+ "isExpression": false,
774
+ "asc": true,
775
+ "nullsFirst": false,
776
+ "opclass": null
777
+ }
778
+ ],
779
+ "isUnique": false,
780
+ "where": null,
781
+ "with": "",
782
+ "method": "btree",
783
+ "concurrently": false,
784
+ "name": "idx_jobs_concurrency_limit",
785
+ "entityType": "indexes",
786
+ "schema": "duron",
787
+ "table": "jobs"
788
+ },
789
+ {
790
+ "nameExplicit": true,
791
+ "columns": [
792
+ {
793
+ "value": "action_name",
794
+ "isExpression": false,
795
+ "asc": true,
796
+ "nullsFirst": false,
797
+ "opclass": null
798
+ },
799
+ {
800
+ "value": "status",
801
+ "isExpression": false,
802
+ "asc": true,
803
+ "nullsFirst": false,
804
+ "opclass": null
805
+ }
806
+ ],
807
+ "isUnique": false,
808
+ "where": null,
809
+ "with": "",
810
+ "method": "btree",
811
+ "concurrently": false,
812
+ "name": "idx_jobs_action_status",
813
+ "entityType": "indexes",
814
+ "schema": "duron",
815
+ "table": "jobs"
816
+ },
817
+ {
818
+ "nameExplicit": true,
819
+ "columns": [
820
+ {
821
+ "value": "action_name",
822
+ "isExpression": false,
823
+ "asc": true,
824
+ "nullsFirst": false,
825
+ "opclass": null
826
+ },
827
+ {
828
+ "value": "group_key",
829
+ "isExpression": false,
830
+ "asc": true,
831
+ "nullsFirst": false,
832
+ "opclass": null
833
+ }
834
+ ],
835
+ "isUnique": false,
836
+ "where": null,
837
+ "with": "",
838
+ "method": "btree",
839
+ "concurrently": false,
840
+ "name": "idx_jobs_action_group",
841
+ "entityType": "indexes",
842
+ "schema": "duron",
843
+ "table": "jobs"
844
+ },
845
+ {
846
+ "nameExplicit": true,
847
+ "columns": [
848
+ {
849
+ "value": "to_tsvector('english', \"input\"::text)",
850
+ "isExpression": true,
851
+ "asc": true,
852
+ "nullsFirst": false,
853
+ "opclass": null
854
+ }
855
+ ],
856
+ "isUnique": false,
857
+ "where": null,
858
+ "with": "",
859
+ "method": "gin",
860
+ "concurrently": false,
861
+ "name": "idx_jobs_input_fts",
862
+ "entityType": "indexes",
863
+ "schema": "duron",
864
+ "table": "jobs"
865
+ },
866
+ {
867
+ "nameExplicit": true,
868
+ "columns": [
869
+ {
870
+ "value": "to_tsvector('english', \"output\"::text)",
871
+ "isExpression": true,
872
+ "asc": true,
873
+ "nullsFirst": false,
874
+ "opclass": null
875
+ }
876
+ ],
877
+ "isUnique": false,
878
+ "where": null,
879
+ "with": "",
880
+ "method": "gin",
881
+ "concurrently": false,
882
+ "name": "idx_jobs_output_fts",
883
+ "entityType": "indexes",
884
+ "schema": "duron",
885
+ "table": "jobs"
886
+ },
887
+ {
888
+ "nameExplicit": false,
889
+ "columns": ["job_id"],
890
+ "schemaTo": "duron",
891
+ "tableTo": "jobs",
892
+ "columnsTo": ["id"],
893
+ "onUpdate": "NO ACTION",
894
+ "onDelete": "CASCADE",
895
+ "name": "job_steps_job_id_jobs_id_fkey",
896
+ "entityType": "fks",
897
+ "schema": "duron",
898
+ "table": "job_steps"
899
+ },
900
+ {
901
+ "columns": ["id"],
902
+ "nameExplicit": false,
903
+ "name": "job_steps_pkey",
904
+ "schema": "duron",
905
+ "table": "job_steps",
906
+ "entityType": "pks"
907
+ },
908
+ {
909
+ "columns": ["id"],
910
+ "nameExplicit": false,
911
+ "name": "jobs_pkey",
912
+ "schema": "duron",
913
+ "table": "jobs",
914
+ "entityType": "pks"
915
+ },
916
+ {
917
+ "nameExplicit": true,
918
+ "columns": ["job_id", "name"],
919
+ "nullsNotDistinct": false,
920
+ "name": "unique_job_step_name",
921
+ "entityType": "uniques",
922
+ "schema": "duron",
923
+ "table": "job_steps"
924
+ },
925
+ {
926
+ "value": "\"status\" IN ('active','completed','failed','cancelled')",
927
+ "name": "job_steps_status_check",
928
+ "entityType": "checks",
929
+ "schema": "duron",
930
+ "table": "job_steps"
931
+ },
932
+ {
933
+ "value": "\"status\" IN ('created','active','completed','failed','cancelled')",
934
+ "name": "jobs_status_check",
935
+ "entityType": "checks",
936
+ "schema": "duron",
937
+ "table": "jobs"
938
+ }
939
+ ],
940
+ "renames": []
941
+ }