@open-qa/qa 0.1.0-alpha.3 → 0.1.0-alpha.5

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 (118) hide show
  1. package/THIRD_PARTY.md +5 -0
  2. package/drizzle/0017_provider_notifications.sql +13 -0
  3. package/drizzle/0018_classification_registry.sql +39 -0
  4. package/drizzle/0019_trial_audit.sql +44 -0
  5. package/drizzle/meta/0017_snapshot.json +2092 -0
  6. package/drizzle/meta/0018_snapshot.json +2102 -0
  7. package/drizzle/meta/0019_snapshot.json +2451 -0
  8. package/drizzle/meta/_journal.json +21 -0
  9. package/package.json +12 -7
  10. package/src/access-binding.d.ts +8 -0
  11. package/src/access-binding.js +26 -0
  12. package/src/adapters/classification-write.d.ts +87 -0
  13. package/src/adapters/classification-write.js +64 -0
  14. package/src/adapters/e2b-executor.js +4 -0
  15. package/src/adapters/file-run-store.d.ts +186 -41
  16. package/src/adapters/file-run-store.js +87 -19
  17. package/src/adapters/file-trial-audit.d.ts +280 -0
  18. package/src/adapters/file-trial-audit.js +105 -0
  19. package/src/adapters/pg-classification-store.d.ts +98 -20
  20. package/src/adapters/pg-classification-store.js +84 -44
  21. package/src/adapters/pg-run-store.d.ts +1 -0
  22. package/src/adapters/pg-run-store.js +70 -9
  23. package/src/adapters/run-metadata.d.ts +2 -0
  24. package/src/adapters/run-metadata.js +10 -0
  25. package/src/adapters/secret-manager-credential-resolver.d.ts +1 -1
  26. package/src/attempt-audit.d.ts +363 -0
  27. package/src/attempt-audit.js +253 -0
  28. package/src/audit-command.d.ts +13 -0
  29. package/src/audit-command.js +77 -0
  30. package/src/classification-command.d.ts +14 -9
  31. package/src/classification-command.js +119 -26
  32. package/src/classification-model.d.ts +10 -3
  33. package/src/classification-model.js +40 -24
  34. package/src/classification-notifier.d.ts +4 -3
  35. package/src/classification-notifier.js +26 -6
  36. package/src/classify-runs.d.ts +2 -1
  37. package/src/classify-runs.js +39 -3
  38. package/src/cli-program.js +54 -8
  39. package/src/commands.d.ts +1 -0
  40. package/src/commands.js +2 -0
  41. package/src/db/database.d.ts +7 -0
  42. package/src/db/database.js +15 -0
  43. package/src/db/event-chunks.d.ts +38 -29
  44. package/src/db/flow-status.d.ts +7 -3
  45. package/src/db/flow-status.js +240 -16
  46. package/src/db/queries.d.ts +24 -1
  47. package/src/db/queries.js +22 -0
  48. package/src/db/schema.d.ts +333 -4
  49. package/src/db/schema.js +83 -11
  50. package/src/db/trial-audit.d.ts +526 -0
  51. package/src/db/trial-audit.js +84 -0
  52. package/src/doctor-command.js +2 -1
  53. package/src/draft-api.d.ts +25 -421
  54. package/src/draft-api.js +10 -3
  55. package/src/engine.d.ts +47 -4
  56. package/src/engine.js +97 -8
  57. package/src/execution-snapshot.d.ts +1 -1
  58. package/src/execution-snapshot.js +24 -18
  59. package/src/export-command.d.ts +6 -0
  60. package/src/export-command.js +106 -0
  61. package/src/flow-check.js +1 -1
  62. package/src/flow-loader.d.ts +72 -6
  63. package/src/flow-loader.js +76 -12
  64. package/src/http-stage-client.d.ts +98 -1
  65. package/src/independent-model.js +53 -6
  66. package/src/judge-review-store.d.ts +13 -0
  67. package/src/judge-review-store.js +58 -0
  68. package/src/local-host-executor.d.ts +3 -1
  69. package/src/local-host-executor.js +2 -0
  70. package/src/quarantine-command.d.ts +5 -1
  71. package/src/quarantine-command.js +56 -13
  72. package/src/remote-command.js +2 -0
  73. package/src/report/browser.css +1 -1
  74. package/src/report/browser.js +41 -41
  75. package/src/report/ctrf.d.ts +983 -0
  76. package/src/report/ctrf.js +306 -0
  77. package/src/report/generate.d.ts +1 -1
  78. package/src/report/generate.js +29 -6
  79. package/src/report/load.d.ts +738 -42
  80. package/src/report/load.js +78 -6
  81. package/src/result-notifier.js +1 -1
  82. package/src/result-trace.d.ts +62 -0
  83. package/src/result-trace.js +81 -0
  84. package/src/run-command.d.ts +9 -0
  85. package/src/run-command.js +300 -63
  86. package/src/run-setup-error.d.ts +11 -0
  87. package/src/run-setup-error.js +18 -0
  88. package/src/server/app.js +5 -4
  89. package/src/server/index.d.ts +2 -0
  90. package/src/server/index.js +11 -2
  91. package/src/server/repository.d.ts +166 -29
  92. package/src/server/repository.js +14 -2
  93. package/src/studio-command.d.ts +1 -0
  94. package/src/studio-command.js +11 -0
  95. package/src/studio-control.d.ts +5 -0
  96. package/src/studio-control.js +207 -0
  97. package/src/studio-review.d.ts +24 -0
  98. package/src/studio-review.js +64 -0
  99. package/src/studio-worker.d.ts +1 -0
  100. package/src/studio-worker.js +48 -0
  101. package/src/system-config.d.ts +2 -2
  102. package/src/system-config.js +5 -4
  103. package/src/trial-audit.d.ts +630 -0
  104. package/src/trial-audit.js +272 -0
  105. package/src/visual-baseline.d.ts +4 -0
  106. package/src/visual-baseline.js +42 -0
  107. package/src/webhook-notification.d.ts +15 -0
  108. package/src/webhook-notification.js +61 -0
  109. package/src/worker/execution.d.ts +2 -1
  110. package/src/worker/execution.js +122 -3
  111. package/src/worker/index.d.ts +4 -0
  112. package/src/worker/index.js +10 -1
  113. package/src/worker/quarantine-notifications.js +2 -2
  114. package/src/worker/queue.d.ts +6 -2
  115. package/src/worker/queue.js +80 -19
  116. package/src/worker/result-notifications.d.ts +10 -2
  117. package/src/worker/result-notifications.js +120 -23
  118. package/src/worker/store.js +6 -3
@@ -0,0 +1,2092 @@
1
+ {
2
+ "id": "9facd840-a4d7-4e18-bf49-6601e758898b",
3
+ "prevId": "ac73f552-679a-4b38-917e-78a7a3069e3f",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "qa.artifacts": {
8
+ "name": "artifacts",
9
+ "schema": "qa",
10
+ "columns": {
11
+ "project_id": {
12
+ "name": "project_id",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "run_id": {
18
+ "name": "run_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "path": {
24
+ "name": "path",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "kind": {
30
+ "name": "kind",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "object_key": {
36
+ "name": "object_key",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "bytes": {
42
+ "name": "bytes",
43
+ "type": "bigint",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "sha256": {
48
+ "name": "sha256",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": true
52
+ }
53
+ },
54
+ "indexes": {},
55
+ "foreignKeys": {
56
+ "artifacts_project_id_run_id_runs_project_id_id_fk": {
57
+ "name": "artifacts_project_id_run_id_runs_project_id_id_fk",
58
+ "tableFrom": "artifacts",
59
+ "tableTo": "runs",
60
+ "schemaTo": "qa",
61
+ "columnsFrom": ["project_id", "run_id"],
62
+ "columnsTo": ["project_id", "id"],
63
+ "onDelete": "no action",
64
+ "onUpdate": "no action"
65
+ }
66
+ },
67
+ "compositePrimaryKeys": {
68
+ "artifacts_project_id_run_id_path_pk": {
69
+ "name": "artifacts_project_id_run_id_path_pk",
70
+ "columns": ["project_id", "run_id", "path"]
71
+ }
72
+ },
73
+ "uniqueConstraints": {},
74
+ "policies": {},
75
+ "checkConstraints": {},
76
+ "isRLSEnabled": false
77
+ },
78
+ "qa.batches": {
79
+ "name": "batches",
80
+ "schema": "qa",
81
+ "columns": {
82
+ "project_id": {
83
+ "name": "project_id",
84
+ "type": "text",
85
+ "primaryKey": false,
86
+ "notNull": true
87
+ },
88
+ "id": {
89
+ "name": "id",
90
+ "type": "text",
91
+ "primaryKey": false,
92
+ "notNull": true
93
+ },
94
+ "trigger": {
95
+ "name": "trigger",
96
+ "type": "text",
97
+ "primaryKey": false,
98
+ "notNull": true
99
+ },
100
+ "target": {
101
+ "name": "target",
102
+ "type": "text",
103
+ "primaryKey": false,
104
+ "notNull": false
105
+ },
106
+ "commit": {
107
+ "name": "commit",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": false
111
+ },
112
+ "created_by": {
113
+ "name": "created_by",
114
+ "type": "text",
115
+ "primaryKey": false,
116
+ "notNull": false
117
+ },
118
+ "created_at": {
119
+ "name": "created_at",
120
+ "type": "timestamp with time zone",
121
+ "primaryKey": false,
122
+ "notNull": true,
123
+ "default": "now()"
124
+ }
125
+ },
126
+ "indexes": {},
127
+ "foreignKeys": {},
128
+ "compositePrimaryKeys": {
129
+ "batches_project_id_id_pk": {
130
+ "name": "batches_project_id_id_pk",
131
+ "columns": ["project_id", "id"]
132
+ }
133
+ },
134
+ "uniqueConstraints": {},
135
+ "policies": {},
136
+ "checkConstraints": {},
137
+ "isRLSEnabled": false
138
+ },
139
+ "qa.cache_entries": {
140
+ "name": "cache_entries",
141
+ "schema": "qa",
142
+ "columns": {
143
+ "project_id": {
144
+ "name": "project_id",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true
148
+ },
149
+ "cache_key": {
150
+ "name": "cache_key",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": true
154
+ },
155
+ "version": {
156
+ "name": "version",
157
+ "type": "integer",
158
+ "primaryKey": false,
159
+ "notNull": true
160
+ },
161
+ "entry": {
162
+ "name": "entry",
163
+ "type": "jsonb",
164
+ "primaryKey": false,
165
+ "notNull": true
166
+ },
167
+ "created_at": {
168
+ "name": "created_at",
169
+ "type": "timestamp with time zone",
170
+ "primaryKey": false,
171
+ "notNull": true,
172
+ "default": "now()"
173
+ }
174
+ },
175
+ "indexes": {},
176
+ "foreignKeys": {},
177
+ "compositePrimaryKeys": {
178
+ "cache_entries_project_id_cache_key_version_pk": {
179
+ "name": "cache_entries_project_id_cache_key_version_pk",
180
+ "columns": ["project_id", "cache_key", "version"]
181
+ }
182
+ },
183
+ "uniqueConstraints": {},
184
+ "policies": {},
185
+ "checkConstraints": {
186
+ "cache_version_positive": {
187
+ "name": "cache_version_positive",
188
+ "value": "\"qa\".\"cache_entries\".\"version\" > 0"
189
+ }
190
+ },
191
+ "isRLSEnabled": false
192
+ },
193
+ "qa.classification_labels": {
194
+ "name": "classification_labels",
195
+ "schema": "qa",
196
+ "columns": {
197
+ "project_id": {
198
+ "name": "project_id",
199
+ "type": "text",
200
+ "primaryKey": false,
201
+ "notNull": true
202
+ },
203
+ "run_id": {
204
+ "name": "run_id",
205
+ "type": "text",
206
+ "primaryKey": false,
207
+ "notNull": true
208
+ },
209
+ "ordinal": {
210
+ "name": "ordinal",
211
+ "type": "integer",
212
+ "primaryKey": false,
213
+ "notNull": true
214
+ },
215
+ "category": {
216
+ "name": "category",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": true
220
+ },
221
+ "reason": {
222
+ "name": "reason",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": true
226
+ },
227
+ "modified_by": {
228
+ "name": "modified_by",
229
+ "type": "text",
230
+ "primaryKey": false,
231
+ "notNull": true
232
+ },
233
+ "modified_at": {
234
+ "name": "modified_at",
235
+ "type": "double precision",
236
+ "primaryKey": false,
237
+ "notNull": true
238
+ },
239
+ "predicted": {
240
+ "name": "predicted",
241
+ "type": "jsonb",
242
+ "primaryKey": false,
243
+ "notNull": false
244
+ }
245
+ },
246
+ "indexes": {},
247
+ "foreignKeys": {
248
+ "classification_labels_project_id_run_id_runs_project_id_id_fk": {
249
+ "name": "classification_labels_project_id_run_id_runs_project_id_id_fk",
250
+ "tableFrom": "classification_labels",
251
+ "tableTo": "runs",
252
+ "schemaTo": "qa",
253
+ "columnsFrom": ["project_id", "run_id"],
254
+ "columnsTo": ["project_id", "id"],
255
+ "onDelete": "no action",
256
+ "onUpdate": "no action"
257
+ }
258
+ },
259
+ "compositePrimaryKeys": {
260
+ "classification_labels_project_id_run_id_ordinal_pk": {
261
+ "name": "classification_labels_project_id_run_id_ordinal_pk",
262
+ "columns": ["project_id", "run_id", "ordinal"]
263
+ }
264
+ },
265
+ "uniqueConstraints": {},
266
+ "policies": {},
267
+ "checkConstraints": {
268
+ "classification_label_category": {
269
+ "name": "classification_label_category",
270
+ "value": "\"qa\".\"classification_labels\".\"category\" IN ('product-bug','test-case','env','flaky','agent')"
271
+ },
272
+ "classification_prediction_category": {
273
+ "name": "classification_prediction_category",
274
+ "value": "\"qa\".\"classification_labels\".\"predicted\"->>'category' IN ('product-bug','test-case','env','flaky','agent')"
275
+ }
276
+ },
277
+ "isRLSEnabled": false
278
+ },
279
+ "qa.credentials": {
280
+ "name": "credentials",
281
+ "schema": "qa",
282
+ "columns": {
283
+ "project_id": {
284
+ "name": "project_id",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": true
288
+ },
289
+ "user_id": {
290
+ "name": "user_id",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true
294
+ },
295
+ "provider": {
296
+ "name": "provider",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true
300
+ },
301
+ "secret_ref": {
302
+ "name": "secret_ref",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": true
306
+ },
307
+ "expires_at": {
308
+ "name": "expires_at",
309
+ "type": "timestamp with time zone",
310
+ "primaryKey": false,
311
+ "notNull": false
312
+ }
313
+ },
314
+ "indexes": {},
315
+ "foreignKeys": {},
316
+ "compositePrimaryKeys": {
317
+ "credentials_project_id_user_id_provider_pk": {
318
+ "name": "credentials_project_id_user_id_provider_pk",
319
+ "columns": ["project_id", "user_id", "provider"]
320
+ }
321
+ },
322
+ "uniqueConstraints": {},
323
+ "policies": {},
324
+ "checkConstraints": {},
325
+ "isRLSEnabled": false
326
+ },
327
+ "qa.event_chunks": {
328
+ "name": "event_chunks",
329
+ "schema": "qa",
330
+ "columns": {
331
+ "project_id": {
332
+ "name": "project_id",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": true
336
+ },
337
+ "run_id": {
338
+ "name": "run_id",
339
+ "type": "text",
340
+ "primaryKey": false,
341
+ "notNull": true
342
+ },
343
+ "id": {
344
+ "name": "id",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true
348
+ },
349
+ "object_key": {
350
+ "name": "object_key",
351
+ "type": "text",
352
+ "primaryKey": false,
353
+ "notNull": true
354
+ },
355
+ "sha256": {
356
+ "name": "sha256",
357
+ "type": "text",
358
+ "primaryKey": false,
359
+ "notNull": true
360
+ },
361
+ "count": {
362
+ "name": "count",
363
+ "type": "integer",
364
+ "primaryKey": false,
365
+ "notNull": true
366
+ },
367
+ "bytes": {
368
+ "name": "bytes",
369
+ "type": "integer",
370
+ "primaryKey": false,
371
+ "notNull": true
372
+ },
373
+ "first_seq": {
374
+ "name": "first_seq",
375
+ "type": "bigint",
376
+ "primaryKey": false,
377
+ "notNull": true
378
+ },
379
+ "last_seq": {
380
+ "name": "last_seq",
381
+ "type": "bigint",
382
+ "primaryKey": false,
383
+ "notNull": true
384
+ },
385
+ "first_t": {
386
+ "name": "first_t",
387
+ "type": "double precision",
388
+ "primaryKey": false,
389
+ "notNull": true
390
+ },
391
+ "last_t": {
392
+ "name": "last_t",
393
+ "type": "double precision",
394
+ "primaryKey": false,
395
+ "notNull": true
396
+ },
397
+ "state": {
398
+ "name": "state",
399
+ "type": "text",
400
+ "primaryKey": false,
401
+ "notNull": true,
402
+ "default": "'uploading'"
403
+ },
404
+ "cleaned_at": {
405
+ "name": "cleaned_at",
406
+ "type": "timestamp with time zone",
407
+ "primaryKey": false,
408
+ "notNull": false
409
+ },
410
+ "created_at": {
411
+ "name": "created_at",
412
+ "type": "timestamp with time zone",
413
+ "primaryKey": false,
414
+ "notNull": true,
415
+ "default": "now()"
416
+ }
417
+ },
418
+ "indexes": {
419
+ "event_object_key": {
420
+ "name": "event_object_key",
421
+ "columns": [
422
+ {
423
+ "expression": "object_key",
424
+ "isExpression": false,
425
+ "asc": true,
426
+ "nulls": "last"
427
+ }
428
+ ],
429
+ "isUnique": true,
430
+ "concurrently": false,
431
+ "method": "btree",
432
+ "with": {}
433
+ }
434
+ },
435
+ "foreignKeys": {
436
+ "event_chunks_project_id_run_id_runs_project_id_id_fk": {
437
+ "name": "event_chunks_project_id_run_id_runs_project_id_id_fk",
438
+ "tableFrom": "event_chunks",
439
+ "tableTo": "runs",
440
+ "schemaTo": "qa",
441
+ "columnsFrom": ["project_id", "run_id"],
442
+ "columnsTo": ["project_id", "id"],
443
+ "onDelete": "no action",
444
+ "onUpdate": "no action"
445
+ }
446
+ },
447
+ "compositePrimaryKeys": {
448
+ "event_chunks_project_id_run_id_id_pk": {
449
+ "name": "event_chunks_project_id_run_id_id_pk",
450
+ "columns": ["project_id", "run_id", "id"]
451
+ }
452
+ },
453
+ "uniqueConstraints": {},
454
+ "policies": {},
455
+ "checkConstraints": {
456
+ "chunk_state": {
457
+ "name": "chunk_state",
458
+ "value": "\"qa\".\"event_chunks\".\"state\" IN ('uploading','committed','abandoned','cleaned')"
459
+ },
460
+ "chunk_range": {
461
+ "name": "chunk_range",
462
+ "value": "\"qa\".\"event_chunks\".\"count\" > 0 AND \"qa\".\"event_chunks\".\"bytes\" > 0 AND \"qa\".\"event_chunks\".\"first_seq\" > 0 AND \"qa\".\"event_chunks\".\"last_seq\" >= \"qa\".\"event_chunks\".\"first_seq\" AND \"qa\".\"event_chunks\".\"last_t\" >= \"qa\".\"event_chunks\".\"first_t\""
463
+ }
464
+ },
465
+ "isRLSEnabled": false
466
+ },
467
+ "qa.events": {
468
+ "name": "events",
469
+ "schema": "qa",
470
+ "columns": {
471
+ "project_id": {
472
+ "name": "project_id",
473
+ "type": "text",
474
+ "primaryKey": false,
475
+ "notNull": true
476
+ },
477
+ "run_id": {
478
+ "name": "run_id",
479
+ "type": "text",
480
+ "primaryKey": false,
481
+ "notNull": true
482
+ },
483
+ "seq": {
484
+ "name": "seq",
485
+ "type": "bigint",
486
+ "primaryKey": false,
487
+ "notNull": true
488
+ },
489
+ "t": {
490
+ "name": "t",
491
+ "type": "double precision",
492
+ "primaryKey": false,
493
+ "notNull": true
494
+ },
495
+ "kind": {
496
+ "name": "kind",
497
+ "type": "text",
498
+ "primaryKey": false,
499
+ "notNull": true
500
+ },
501
+ "actor": {
502
+ "name": "actor",
503
+ "type": "text",
504
+ "primaryKey": false,
505
+ "notNull": false
506
+ },
507
+ "step": {
508
+ "name": "step",
509
+ "type": "text",
510
+ "primaryKey": false,
511
+ "notNull": false
512
+ },
513
+ "chunk_id": {
514
+ "name": "chunk_id",
515
+ "type": "text",
516
+ "primaryKey": false,
517
+ "notNull": true
518
+ },
519
+ "offset": {
520
+ "name": "offset",
521
+ "type": "integer",
522
+ "primaryKey": false,
523
+ "notNull": true
524
+ }
525
+ },
526
+ "indexes": {},
527
+ "foreignKeys": {
528
+ "events_project_id_run_id_chunk_id_event_chunks_project_id_run_id_id_fk": {
529
+ "name": "events_project_id_run_id_chunk_id_event_chunks_project_id_run_id_id_fk",
530
+ "tableFrom": "events",
531
+ "tableTo": "event_chunks",
532
+ "schemaTo": "qa",
533
+ "columnsFrom": ["project_id", "run_id", "chunk_id"],
534
+ "columnsTo": ["project_id", "run_id", "id"],
535
+ "onDelete": "no action",
536
+ "onUpdate": "no action"
537
+ }
538
+ },
539
+ "compositePrimaryKeys": {
540
+ "events_project_id_run_id_seq_pk": {
541
+ "name": "events_project_id_run_id_seq_pk",
542
+ "columns": ["project_id", "run_id", "seq"]
543
+ }
544
+ },
545
+ "uniqueConstraints": {},
546
+ "policies": {},
547
+ "checkConstraints": {},
548
+ "isRLSEnabled": false
549
+ },
550
+ "qa.findings": {
551
+ "name": "findings",
552
+ "schema": "qa",
553
+ "columns": {
554
+ "project_id": {
555
+ "name": "project_id",
556
+ "type": "text",
557
+ "primaryKey": false,
558
+ "notNull": true
559
+ },
560
+ "run_id": {
561
+ "name": "run_id",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": true
565
+ },
566
+ "ordinal": {
567
+ "name": "ordinal",
568
+ "type": "integer",
569
+ "primaryKey": false,
570
+ "notNull": true
571
+ },
572
+ "actor": {
573
+ "name": "actor",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": true
577
+ },
578
+ "step": {
579
+ "name": "step",
580
+ "type": "text",
581
+ "primaryKey": false,
582
+ "notNull": true
583
+ },
584
+ "category": {
585
+ "name": "category",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": true
589
+ },
590
+ "severity": {
591
+ "name": "severity",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": true
595
+ },
596
+ "description": {
597
+ "name": "description",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": true
601
+ },
602
+ "event_seqs": {
603
+ "name": "event_seqs",
604
+ "type": "jsonb",
605
+ "primaryKey": false,
606
+ "notNull": true
607
+ },
608
+ "shots": {
609
+ "name": "shots",
610
+ "type": "jsonb",
611
+ "primaryKey": false,
612
+ "notNull": true
613
+ },
614
+ "created_at": {
615
+ "name": "created_at",
616
+ "type": "timestamp with time zone",
617
+ "primaryKey": false,
618
+ "notNull": true,
619
+ "default": "now()"
620
+ }
621
+ },
622
+ "indexes": {},
623
+ "foreignKeys": {
624
+ "findings_project_id_run_id_runs_project_id_id_fk": {
625
+ "name": "findings_project_id_run_id_runs_project_id_id_fk",
626
+ "tableFrom": "findings",
627
+ "tableTo": "runs",
628
+ "schemaTo": "qa",
629
+ "columnsFrom": ["project_id", "run_id"],
630
+ "columnsTo": ["project_id", "id"],
631
+ "onDelete": "no action",
632
+ "onUpdate": "no action"
633
+ }
634
+ },
635
+ "compositePrimaryKeys": {
636
+ "findings_project_id_run_id_ordinal_pk": {
637
+ "name": "findings_project_id_run_id_ordinal_pk",
638
+ "columns": ["project_id", "run_id", "ordinal"]
639
+ }
640
+ },
641
+ "uniqueConstraints": {},
642
+ "policies": {},
643
+ "checkConstraints": {
644
+ "finding_ordinal_positive": {
645
+ "name": "finding_ordinal_positive",
646
+ "value": "\"qa\".\"findings\".\"ordinal\" > 0"
647
+ },
648
+ "finding_severity": {
649
+ "name": "finding_severity",
650
+ "value": "\"qa\".\"findings\".\"severity\" IN ('low','medium','high')"
651
+ },
652
+ "finding_category": {
653
+ "name": "finding_category",
654
+ "value": "\"qa\".\"findings\".\"category\" IN ('scope','other')"
655
+ }
656
+ },
657
+ "isRLSEnabled": false
658
+ },
659
+ "qa.flow_results": {
660
+ "name": "flow_results",
661
+ "schema": "qa",
662
+ "columns": {
663
+ "project_id": {
664
+ "name": "project_id",
665
+ "type": "text",
666
+ "primaryKey": false,
667
+ "notNull": true
668
+ },
669
+ "execution_id": {
670
+ "name": "execution_id",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": true
674
+ },
675
+ "flow": {
676
+ "name": "flow",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": true
680
+ },
681
+ "quarantined": {
682
+ "name": "quarantined",
683
+ "type": "integer",
684
+ "primaryKey": false,
685
+ "notNull": true
686
+ }
687
+ },
688
+ "indexes": {},
689
+ "foreignKeys": {},
690
+ "compositePrimaryKeys": {
691
+ "flow_results_project_id_execution_id_pk": {
692
+ "name": "flow_results_project_id_execution_id_pk",
693
+ "columns": ["project_id", "execution_id"]
694
+ }
695
+ },
696
+ "uniqueConstraints": {},
697
+ "policies": {},
698
+ "checkConstraints": {
699
+ "flow_result_quarantined": {
700
+ "name": "flow_result_quarantined",
701
+ "value": "\"qa\".\"flow_results\".\"quarantined\" IN (0,1)"
702
+ }
703
+ },
704
+ "isRLSEnabled": false
705
+ },
706
+ "qa.flow_statuses": {
707
+ "name": "flow_statuses",
708
+ "schema": "qa",
709
+ "columns": {
710
+ "project_id": {
711
+ "name": "project_id",
712
+ "type": "text",
713
+ "primaryKey": false,
714
+ "notNull": true
715
+ },
716
+ "flow": {
717
+ "name": "flow",
718
+ "type": "text",
719
+ "primaryKey": false,
720
+ "notNull": true
721
+ },
722
+ "status": {
723
+ "name": "status",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": true,
727
+ "default": "'draft'"
728
+ },
729
+ "flaky_streak": {
730
+ "name": "flaky_streak",
731
+ "type": "integer",
732
+ "primaryKey": false,
733
+ "notNull": true,
734
+ "default": 0
735
+ },
736
+ "generation": {
737
+ "name": "generation",
738
+ "type": "integer",
739
+ "primaryKey": false,
740
+ "notNull": true,
741
+ "default": 0
742
+ },
743
+ "owner": {
744
+ "name": "owner",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": false
748
+ },
749
+ "latest_repeat": {
750
+ "name": "latest_repeat",
751
+ "type": "jsonb",
752
+ "primaryKey": false,
753
+ "notNull": false
754
+ },
755
+ "first_run_id": {
756
+ "name": "first_run_id",
757
+ "type": "text",
758
+ "primaryKey": false,
759
+ "notNull": false
760
+ },
761
+ "first_run_revision": {
762
+ "name": "first_run_revision",
763
+ "type": "text",
764
+ "primaryKey": false,
765
+ "notNull": false
766
+ },
767
+ "first_run_at": {
768
+ "name": "first_run_at",
769
+ "type": "timestamp with time zone",
770
+ "primaryKey": false,
771
+ "notNull": false
772
+ },
773
+ "accepted_at": {
774
+ "name": "accepted_at",
775
+ "type": "timestamp with time zone",
776
+ "primaryKey": false,
777
+ "notNull": false
778
+ },
779
+ "accepted_by": {
780
+ "name": "accepted_by",
781
+ "type": "text",
782
+ "primaryKey": false,
783
+ "notNull": false
784
+ },
785
+ "retired_at": {
786
+ "name": "retired_at",
787
+ "type": "timestamp with time zone",
788
+ "primaryKey": false,
789
+ "notNull": false
790
+ }
791
+ },
792
+ "indexes": {},
793
+ "foreignKeys": {},
794
+ "compositePrimaryKeys": {
795
+ "flow_statuses_project_id_flow_pk": {
796
+ "name": "flow_statuses_project_id_flow_pk",
797
+ "columns": ["project_id", "flow"]
798
+ }
799
+ },
800
+ "uniqueConstraints": {},
801
+ "policies": {},
802
+ "checkConstraints": {
803
+ "flow_status": {
804
+ "name": "flow_status",
805
+ "value": "\"qa\".\"flow_statuses\".\"status\" IN ('draft','review','active','quarantined','retired')"
806
+ },
807
+ "flow_streak": {
808
+ "name": "flow_streak",
809
+ "value": "\"qa\".\"flow_statuses\".\"flaky_streak\" >= 0 AND \"qa\".\"flow_statuses\".\"generation\" >= 0"
810
+ }
811
+ },
812
+ "isRLSEnabled": false
813
+ },
814
+ "qa.jobs": {
815
+ "name": "jobs",
816
+ "schema": "qa",
817
+ "columns": {
818
+ "project_id": {
819
+ "name": "project_id",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": true
823
+ },
824
+ "id": {
825
+ "name": "id",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "run_id": {
831
+ "name": "run_id",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": true
835
+ },
836
+ "state": {
837
+ "name": "state",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "default": "'queued'"
842
+ },
843
+ "available_at": {
844
+ "name": "available_at",
845
+ "type": "timestamp with time zone",
846
+ "primaryKey": false,
847
+ "notNull": true,
848
+ "default": "now()"
849
+ },
850
+ "attempts": {
851
+ "name": "attempts",
852
+ "type": "integer",
853
+ "primaryKey": false,
854
+ "notNull": true,
855
+ "default": 0
856
+ },
857
+ "owner": {
858
+ "name": "owner",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": false
862
+ },
863
+ "epoch": {
864
+ "name": "epoch",
865
+ "type": "bigserial",
866
+ "primaryKey": false,
867
+ "notNull": true
868
+ },
869
+ "lease_until": {
870
+ "name": "lease_until",
871
+ "type": "timestamp with time zone",
872
+ "primaryKey": false,
873
+ "notNull": false
874
+ },
875
+ "retry_of": {
876
+ "name": "retry_of",
877
+ "type": "text",
878
+ "primaryKey": false,
879
+ "notNull": false
880
+ },
881
+ "cleaned_at": {
882
+ "name": "cleaned_at",
883
+ "type": "timestamp with time zone",
884
+ "primaryKey": false,
885
+ "notNull": false
886
+ },
887
+ "verified_revision": {
888
+ "name": "verified_revision",
889
+ "type": "text",
890
+ "primaryKey": false,
891
+ "notNull": false
892
+ },
893
+ "infrastructure_failure": {
894
+ "name": "infrastructure_failure",
895
+ "type": "integer",
896
+ "primaryKey": false,
897
+ "notNull": true,
898
+ "default": 0
899
+ }
900
+ },
901
+ "indexes": {
902
+ "jobs_available": {
903
+ "name": "jobs_available",
904
+ "columns": [
905
+ {
906
+ "expression": "project_id",
907
+ "isExpression": false,
908
+ "asc": true,
909
+ "nulls": "last"
910
+ },
911
+ {
912
+ "expression": "state",
913
+ "isExpression": false,
914
+ "asc": true,
915
+ "nulls": "last"
916
+ },
917
+ {
918
+ "expression": "available_at",
919
+ "isExpression": false,
920
+ "asc": true,
921
+ "nulls": "last"
922
+ }
923
+ ],
924
+ "isUnique": false,
925
+ "concurrently": false,
926
+ "method": "btree",
927
+ "with": {}
928
+ },
929
+ "job_run": {
930
+ "name": "job_run",
931
+ "columns": [
932
+ {
933
+ "expression": "project_id",
934
+ "isExpression": false,
935
+ "asc": true,
936
+ "nulls": "last"
937
+ },
938
+ {
939
+ "expression": "run_id",
940
+ "isExpression": false,
941
+ "asc": true,
942
+ "nulls": "last"
943
+ }
944
+ ],
945
+ "isUnique": true,
946
+ "concurrently": false,
947
+ "method": "btree",
948
+ "with": {}
949
+ },
950
+ "job_retry": {
951
+ "name": "job_retry",
952
+ "columns": [
953
+ {
954
+ "expression": "project_id",
955
+ "isExpression": false,
956
+ "asc": true,
957
+ "nulls": "last"
958
+ },
959
+ {
960
+ "expression": "retry_of",
961
+ "isExpression": false,
962
+ "asc": true,
963
+ "nulls": "last"
964
+ }
965
+ ],
966
+ "isUnique": true,
967
+ "concurrently": false,
968
+ "method": "btree",
969
+ "with": {}
970
+ }
971
+ },
972
+ "foreignKeys": {
973
+ "jobs_project_id_run_id_runs_project_id_id_fk": {
974
+ "name": "jobs_project_id_run_id_runs_project_id_id_fk",
975
+ "tableFrom": "jobs",
976
+ "tableTo": "runs",
977
+ "schemaTo": "qa",
978
+ "columnsFrom": ["project_id", "run_id"],
979
+ "columnsTo": ["project_id", "id"],
980
+ "onDelete": "no action",
981
+ "onUpdate": "no action"
982
+ }
983
+ },
984
+ "compositePrimaryKeys": {
985
+ "jobs_project_id_id_pk": {
986
+ "name": "jobs_project_id_id_pk",
987
+ "columns": ["project_id", "id"]
988
+ }
989
+ },
990
+ "uniqueConstraints": {},
991
+ "policies": {},
992
+ "checkConstraints": {
993
+ "job_attempt": {
994
+ "name": "job_attempt",
995
+ "value": "\"qa\".\"jobs\".\"attempts\" IN (0,1)"
996
+ }
997
+ },
998
+ "isRLSEnabled": false
999
+ },
1000
+ "qa.lanes": {
1001
+ "name": "lanes",
1002
+ "schema": "qa",
1003
+ "columns": {
1004
+ "project_id": {
1005
+ "name": "project_id",
1006
+ "type": "text",
1007
+ "primaryKey": false,
1008
+ "notNull": true
1009
+ },
1010
+ "run_id": {
1011
+ "name": "run_id",
1012
+ "type": "text",
1013
+ "primaryKey": false,
1014
+ "notNull": true
1015
+ },
1016
+ "actor": {
1017
+ "name": "actor",
1018
+ "type": "text",
1019
+ "primaryKey": false,
1020
+ "notNull": true
1021
+ },
1022
+ "status": {
1023
+ "name": "status",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": true
1027
+ },
1028
+ "started_at": {
1029
+ "name": "started_at",
1030
+ "type": "double precision",
1031
+ "primaryKey": false,
1032
+ "notNull": true
1033
+ },
1034
+ "finished_at": {
1035
+ "name": "finished_at",
1036
+ "type": "double precision",
1037
+ "primaryKey": false,
1038
+ "notNull": false
1039
+ }
1040
+ },
1041
+ "indexes": {},
1042
+ "foreignKeys": {
1043
+ "lanes_project_id_run_id_runs_project_id_id_fk": {
1044
+ "name": "lanes_project_id_run_id_runs_project_id_id_fk",
1045
+ "tableFrom": "lanes",
1046
+ "tableTo": "runs",
1047
+ "schemaTo": "qa",
1048
+ "columnsFrom": ["project_id", "run_id"],
1049
+ "columnsTo": ["project_id", "id"],
1050
+ "onDelete": "no action",
1051
+ "onUpdate": "no action"
1052
+ }
1053
+ },
1054
+ "compositePrimaryKeys": {
1055
+ "lanes_project_id_run_id_actor_pk": {
1056
+ "name": "lanes_project_id_run_id_actor_pk",
1057
+ "columns": ["project_id", "run_id", "actor"]
1058
+ }
1059
+ },
1060
+ "uniqueConstraints": {},
1061
+ "policies": {},
1062
+ "checkConstraints": {},
1063
+ "isRLSEnabled": false
1064
+ },
1065
+ "qa.lease_claims": {
1066
+ "name": "lease_claims",
1067
+ "schema": "qa",
1068
+ "columns": {
1069
+ "project_id": {
1070
+ "name": "project_id",
1071
+ "type": "text",
1072
+ "primaryKey": false,
1073
+ "notNull": true
1074
+ },
1075
+ "identity": {
1076
+ "name": "identity",
1077
+ "type": "text",
1078
+ "primaryKey": false,
1079
+ "notNull": true
1080
+ },
1081
+ "lease_id": {
1082
+ "name": "lease_id",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": true
1086
+ }
1087
+ },
1088
+ "indexes": {},
1089
+ "foreignKeys": {
1090
+ "lease_claims_project_id_lease_id_leases_project_id_id_fk": {
1091
+ "name": "lease_claims_project_id_lease_id_leases_project_id_id_fk",
1092
+ "tableFrom": "lease_claims",
1093
+ "tableTo": "leases",
1094
+ "schemaTo": "qa",
1095
+ "columnsFrom": ["project_id", "lease_id"],
1096
+ "columnsTo": ["project_id", "id"],
1097
+ "onDelete": "no action",
1098
+ "onUpdate": "no action"
1099
+ }
1100
+ },
1101
+ "compositePrimaryKeys": {
1102
+ "lease_claims_project_id_identity_pk": {
1103
+ "name": "lease_claims_project_id_identity_pk",
1104
+ "columns": ["project_id", "identity"]
1105
+ }
1106
+ },
1107
+ "uniqueConstraints": {},
1108
+ "policies": {},
1109
+ "checkConstraints": {},
1110
+ "isRLSEnabled": false
1111
+ },
1112
+ "qa.lease_resources": {
1113
+ "name": "lease_resources",
1114
+ "schema": "qa",
1115
+ "columns": {
1116
+ "project_id": {
1117
+ "name": "project_id",
1118
+ "type": "text",
1119
+ "primaryKey": false,
1120
+ "notNull": true
1121
+ },
1122
+ "id": {
1123
+ "name": "id",
1124
+ "type": "text",
1125
+ "primaryKey": false,
1126
+ "notNull": true
1127
+ },
1128
+ "kind": {
1129
+ "name": "kind",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": true
1133
+ },
1134
+ "canonical_id": {
1135
+ "name": "canonical_id",
1136
+ "type": "text",
1137
+ "primaryKey": false,
1138
+ "notNull": true
1139
+ },
1140
+ "secret_ref": {
1141
+ "name": "secret_ref",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": true
1145
+ }
1146
+ },
1147
+ "indexes": {
1148
+ "resource_kinds": {
1149
+ "name": "resource_kinds",
1150
+ "columns": [
1151
+ {
1152
+ "expression": "project_id",
1153
+ "isExpression": false,
1154
+ "asc": true,
1155
+ "nulls": "last"
1156
+ },
1157
+ {
1158
+ "expression": "kind",
1159
+ "isExpression": false,
1160
+ "asc": true,
1161
+ "nulls": "last"
1162
+ }
1163
+ ],
1164
+ "isUnique": false,
1165
+ "concurrently": false,
1166
+ "method": "btree",
1167
+ "with": {}
1168
+ }
1169
+ },
1170
+ "foreignKeys": {},
1171
+ "compositePrimaryKeys": {
1172
+ "lease_resources_project_id_id_pk": {
1173
+ "name": "lease_resources_project_id_id_pk",
1174
+ "columns": ["project_id", "id"]
1175
+ }
1176
+ },
1177
+ "uniqueConstraints": {},
1178
+ "policies": {},
1179
+ "checkConstraints": {},
1180
+ "isRLSEnabled": false
1181
+ },
1182
+ "qa.leases": {
1183
+ "name": "leases",
1184
+ "schema": "qa",
1185
+ "columns": {
1186
+ "project_id": {
1187
+ "name": "project_id",
1188
+ "type": "text",
1189
+ "primaryKey": false,
1190
+ "notNull": true
1191
+ },
1192
+ "id": {
1193
+ "name": "id",
1194
+ "type": "text",
1195
+ "primaryKey": false,
1196
+ "notNull": true
1197
+ },
1198
+ "run_id": {
1199
+ "name": "run_id",
1200
+ "type": "text",
1201
+ "primaryKey": false,
1202
+ "notNull": true
1203
+ },
1204
+ "actor": {
1205
+ "name": "actor",
1206
+ "type": "text",
1207
+ "primaryKey": false,
1208
+ "notNull": true
1209
+ },
1210
+ "owner": {
1211
+ "name": "owner",
1212
+ "type": "text",
1213
+ "primaryKey": false,
1214
+ "notNull": true
1215
+ },
1216
+ "epoch": {
1217
+ "name": "epoch",
1218
+ "type": "bigserial",
1219
+ "primaryKey": false,
1220
+ "notNull": true
1221
+ },
1222
+ "state": {
1223
+ "name": "state",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": true,
1227
+ "default": "'active'"
1228
+ },
1229
+ "expires_at": {
1230
+ "name": "expires_at",
1231
+ "type": "timestamp with time zone",
1232
+ "primaryKey": false,
1233
+ "notNull": true
1234
+ },
1235
+ "allocations": {
1236
+ "name": "allocations",
1237
+ "type": "jsonb",
1238
+ "primaryKey": false,
1239
+ "notNull": true
1240
+ }
1241
+ },
1242
+ "indexes": {},
1243
+ "foreignKeys": {},
1244
+ "compositePrimaryKeys": {
1245
+ "leases_project_id_id_pk": {
1246
+ "name": "leases_project_id_id_pk",
1247
+ "columns": ["project_id", "id"]
1248
+ }
1249
+ },
1250
+ "uniqueConstraints": {},
1251
+ "policies": {},
1252
+ "checkConstraints": {
1253
+ "lease_state": {
1254
+ "name": "lease_state",
1255
+ "value": "\"qa\".\"leases\".\"state\" IN ('active','quarantined','released')"
1256
+ }
1257
+ },
1258
+ "isRLSEnabled": false
1259
+ },
1260
+ "qa.quarantine_notifications": {
1261
+ "name": "quarantine_notifications",
1262
+ "schema": "qa",
1263
+ "columns": {
1264
+ "project_id": {
1265
+ "name": "project_id",
1266
+ "type": "text",
1267
+ "primaryKey": false,
1268
+ "notNull": true
1269
+ },
1270
+ "flow": {
1271
+ "name": "flow",
1272
+ "type": "text",
1273
+ "primaryKey": false,
1274
+ "notNull": true
1275
+ },
1276
+ "generation": {
1277
+ "name": "generation",
1278
+ "type": "integer",
1279
+ "primaryKey": false,
1280
+ "notNull": true
1281
+ },
1282
+ "run_id": {
1283
+ "name": "run_id",
1284
+ "type": "text",
1285
+ "primaryKey": false,
1286
+ "notNull": true
1287
+ },
1288
+ "owner": {
1289
+ "name": "owner",
1290
+ "type": "text",
1291
+ "primaryKey": false,
1292
+ "notNull": false
1293
+ },
1294
+ "completed_at": {
1295
+ "name": "completed_at",
1296
+ "type": "timestamp with time zone",
1297
+ "primaryKey": false,
1298
+ "notNull": false
1299
+ },
1300
+ "abandoned_at": {
1301
+ "name": "abandoned_at",
1302
+ "type": "timestamp with time zone",
1303
+ "primaryKey": false,
1304
+ "notNull": false
1305
+ },
1306
+ "attempts": {
1307
+ "name": "attempts",
1308
+ "type": "integer",
1309
+ "primaryKey": false,
1310
+ "notNull": true,
1311
+ "default": 0
1312
+ },
1313
+ "available_at": {
1314
+ "name": "available_at",
1315
+ "type": "timestamp with time zone",
1316
+ "primaryKey": false,
1317
+ "notNull": true,
1318
+ "default": "now()"
1319
+ }
1320
+ },
1321
+ "indexes": {},
1322
+ "foreignKeys": {},
1323
+ "compositePrimaryKeys": {
1324
+ "quarantine_notifications_project_id_flow_generation_pk": {
1325
+ "name": "quarantine_notifications_project_id_flow_generation_pk",
1326
+ "columns": ["project_id", "flow", "generation"]
1327
+ }
1328
+ },
1329
+ "uniqueConstraints": {},
1330
+ "policies": {},
1331
+ "checkConstraints": {
1332
+ "quarantine_notification_attempts": {
1333
+ "name": "quarantine_notification_attempts",
1334
+ "value": "\"qa\".\"quarantine_notifications\".\"attempts\" BETWEEN 0 AND 5"
1335
+ }
1336
+ },
1337
+ "isRLSEnabled": false
1338
+ },
1339
+ "qa.read_publications": {
1340
+ "name": "read_publications",
1341
+ "schema": "qa",
1342
+ "columns": {
1343
+ "project_id": {
1344
+ "name": "project_id",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": true
1348
+ },
1349
+ "kind": {
1350
+ "name": "kind",
1351
+ "type": "text",
1352
+ "primaryKey": false,
1353
+ "notNull": true
1354
+ },
1355
+ "document": {
1356
+ "name": "document",
1357
+ "type": "jsonb",
1358
+ "primaryKey": false,
1359
+ "notNull": true
1360
+ }
1361
+ },
1362
+ "indexes": {},
1363
+ "foreignKeys": {},
1364
+ "compositePrimaryKeys": {
1365
+ "read_publications_project_id_kind_pk": {
1366
+ "name": "read_publications_project_id_kind_pk",
1367
+ "columns": ["project_id", "kind"]
1368
+ }
1369
+ },
1370
+ "uniqueConstraints": {},
1371
+ "policies": {},
1372
+ "checkConstraints": {},
1373
+ "isRLSEnabled": false
1374
+ },
1375
+ "qa.result_notification_flows": {
1376
+ "name": "result_notification_flows",
1377
+ "schema": "qa",
1378
+ "columns": {
1379
+ "project_id": {
1380
+ "name": "project_id",
1381
+ "type": "text",
1382
+ "primaryKey": false,
1383
+ "notNull": true
1384
+ },
1385
+ "batch_id": {
1386
+ "name": "batch_id",
1387
+ "type": "text",
1388
+ "primaryKey": false,
1389
+ "notNull": true
1390
+ },
1391
+ "channel": {
1392
+ "name": "channel",
1393
+ "type": "text",
1394
+ "primaryKey": false,
1395
+ "notNull": true,
1396
+ "default": "'pr'"
1397
+ },
1398
+ "flow": {
1399
+ "name": "flow",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": true
1403
+ },
1404
+ "outcome": {
1405
+ "name": "outcome",
1406
+ "type": "text",
1407
+ "primaryKey": false,
1408
+ "notNull": false
1409
+ },
1410
+ "completed_at": {
1411
+ "name": "completed_at",
1412
+ "type": "timestamp with time zone",
1413
+ "primaryKey": false,
1414
+ "notNull": false
1415
+ },
1416
+ "abandoned_at": {
1417
+ "name": "abandoned_at",
1418
+ "type": "timestamp with time zone",
1419
+ "primaryKey": false,
1420
+ "notNull": false
1421
+ },
1422
+ "attempts": {
1423
+ "name": "attempts",
1424
+ "type": "integer",
1425
+ "primaryKey": false,
1426
+ "notNull": true,
1427
+ "default": 0
1428
+ },
1429
+ "available_at": {
1430
+ "name": "available_at",
1431
+ "type": "timestamp with time zone",
1432
+ "primaryKey": false,
1433
+ "notNull": true,
1434
+ "default": "now()"
1435
+ }
1436
+ },
1437
+ "indexes": {
1438
+ "result_notification_flow_delivered": {
1439
+ "name": "result_notification_flow_delivered",
1440
+ "columns": [
1441
+ {
1442
+ "expression": "project_id",
1443
+ "isExpression": false,
1444
+ "asc": true,
1445
+ "nulls": "last"
1446
+ },
1447
+ {
1448
+ "expression": "flow",
1449
+ "isExpression": false,
1450
+ "asc": true,
1451
+ "nulls": "last"
1452
+ }
1453
+ ],
1454
+ "isUnique": false,
1455
+ "where": "\"qa\".\"result_notification_flows\".\"outcome\" = 'delivered'",
1456
+ "concurrently": false,
1457
+ "method": "btree",
1458
+ "with": {}
1459
+ }
1460
+ },
1461
+ "foreignKeys": {
1462
+ "result_notification_flows_project_id_batch_id_channel_result_notifications_project_id_batch_id_channel_fk": {
1463
+ "name": "result_notification_flows_project_id_batch_id_channel_result_notifications_project_id_batch_id_channel_fk",
1464
+ "tableFrom": "result_notification_flows",
1465
+ "tableTo": "result_notifications",
1466
+ "schemaTo": "qa",
1467
+ "columnsFrom": ["project_id", "batch_id", "channel"],
1468
+ "columnsTo": ["project_id", "batch_id", "channel"],
1469
+ "onDelete": "no action",
1470
+ "onUpdate": "no action"
1471
+ }
1472
+ },
1473
+ "compositePrimaryKeys": {
1474
+ "result_notification_flows_project_id_batch_id_flow_pk": {
1475
+ "name": "result_notification_flows_project_id_batch_id_flow_pk",
1476
+ "columns": ["project_id", "batch_id", "flow"]
1477
+ }
1478
+ },
1479
+ "uniqueConstraints": {},
1480
+ "policies": {},
1481
+ "checkConstraints": {
1482
+ "result_notification_flow_channel": {
1483
+ "name": "result_notification_flow_channel",
1484
+ "value": "\"qa\".\"result_notification_flows\".\"channel\" = 'pr'"
1485
+ },
1486
+ "result_notification_flow_attempts": {
1487
+ "name": "result_notification_flow_attempts",
1488
+ "value": "\"qa\".\"result_notification_flows\".\"attempts\" BETWEEN 0 AND 5"
1489
+ },
1490
+ "result_notification_flow_outcome": {
1491
+ "name": "result_notification_flow_outcome",
1492
+ "value": "\"qa\".\"result_notification_flows\".\"outcome\" IN ('delivered','superseded')"
1493
+ },
1494
+ "result_notification_flow_completion": {
1495
+ "name": "result_notification_flow_completion",
1496
+ "value": "(\"qa\".\"result_notification_flows\".\"outcome\" IS NULL) = (\"qa\".\"result_notification_flows\".\"completed_at\" IS NULL)"
1497
+ }
1498
+ },
1499
+ "isRLSEnabled": false
1500
+ },
1501
+ "qa.result_notifications": {
1502
+ "name": "result_notifications",
1503
+ "schema": "qa",
1504
+ "columns": {
1505
+ "project_id": {
1506
+ "name": "project_id",
1507
+ "type": "text",
1508
+ "primaryKey": false,
1509
+ "notNull": true
1510
+ },
1511
+ "batch_id": {
1512
+ "name": "batch_id",
1513
+ "type": "text",
1514
+ "primaryKey": false,
1515
+ "notNull": true
1516
+ },
1517
+ "channel": {
1518
+ "name": "channel",
1519
+ "type": "text",
1520
+ "primaryKey": false,
1521
+ "notNull": true
1522
+ },
1523
+ "kind": {
1524
+ "name": "kind",
1525
+ "type": "text",
1526
+ "primaryKey": false,
1527
+ "notNull": false
1528
+ },
1529
+ "provider": {
1530
+ "name": "provider",
1531
+ "type": "text",
1532
+ "primaryKey": false,
1533
+ "notNull": false
1534
+ },
1535
+ "context": {
1536
+ "name": "context",
1537
+ "type": "jsonb",
1538
+ "primaryKey": false,
1539
+ "notNull": true
1540
+ },
1541
+ "completed_at": {
1542
+ "name": "completed_at",
1543
+ "type": "timestamp with time zone",
1544
+ "primaryKey": false,
1545
+ "notNull": false
1546
+ },
1547
+ "abandoned_at": {
1548
+ "name": "abandoned_at",
1549
+ "type": "timestamp with time zone",
1550
+ "primaryKey": false,
1551
+ "notNull": false
1552
+ },
1553
+ "attempts": {
1554
+ "name": "attempts",
1555
+ "type": "integer",
1556
+ "primaryKey": false,
1557
+ "notNull": true,
1558
+ "default": 0
1559
+ },
1560
+ "available_at": {
1561
+ "name": "available_at",
1562
+ "type": "timestamp with time zone",
1563
+ "primaryKey": false,
1564
+ "notNull": true,
1565
+ "default": "now()"
1566
+ }
1567
+ },
1568
+ "indexes": {
1569
+ "result_notifications_pending": {
1570
+ "name": "result_notifications_pending",
1571
+ "columns": [
1572
+ {
1573
+ "expression": "available_at",
1574
+ "isExpression": false,
1575
+ "asc": true,
1576
+ "nulls": "last"
1577
+ }
1578
+ ],
1579
+ "isUnique": false,
1580
+ "where": "\"qa\".\"result_notifications\".\"completed_at\" IS NULL AND \"qa\".\"result_notifications\".\"abandoned_at\" IS NULL",
1581
+ "concurrently": false,
1582
+ "method": "btree",
1583
+ "with": {}
1584
+ }
1585
+ },
1586
+ "foreignKeys": {
1587
+ "result_notifications_project_id_batch_id_batches_project_id_id_fk": {
1588
+ "name": "result_notifications_project_id_batch_id_batches_project_id_id_fk",
1589
+ "tableFrom": "result_notifications",
1590
+ "tableTo": "batches",
1591
+ "schemaTo": "qa",
1592
+ "columnsFrom": ["project_id", "batch_id"],
1593
+ "columnsTo": ["project_id", "id"],
1594
+ "onDelete": "no action",
1595
+ "onUpdate": "no action"
1596
+ }
1597
+ },
1598
+ "compositePrimaryKeys": {
1599
+ "result_notifications_project_id_batch_id_channel_pk": {
1600
+ "name": "result_notifications_project_id_batch_id_channel_pk",
1601
+ "columns": ["project_id", "batch_id", "channel"]
1602
+ }
1603
+ },
1604
+ "uniqueConstraints": {},
1605
+ "policies": {},
1606
+ "checkConstraints": {
1607
+ "result_notification_channel": {
1608
+ "name": "result_notification_channel",
1609
+ "value": "\"qa\".\"result_notifications\".\"channel\" ~ '^[a-z][a-z0-9-]{0,69}$'"
1610
+ },
1611
+ "result_notification_route": {
1612
+ "name": "result_notification_route",
1613
+ "value": "(\"qa\".\"result_notifications\".\"kind\" IS NULL AND \"qa\".\"result_notifications\".\"provider\" IS NULL) OR (\n \"qa\".\"result_notifications\".\"kind\" IS NOT NULL AND \"qa\".\"result_notifications\".\"provider\" IS NOT NULL\n AND \"qa\".\"result_notifications\".\"kind\" ~ '^[a-z][a-z0-9.-]{0,63}$'\n AND \"qa\".\"result_notifications\".\"provider\" ~ '^[a-z][a-z0-9-]{0,63}$'\n )"
1614
+ },
1615
+ "result_notification_attempts": {
1616
+ "name": "result_notification_attempts",
1617
+ "value": "\"qa\".\"result_notifications\".\"attempts\" BETWEEN 0 AND 5"
1618
+ }
1619
+ },
1620
+ "isRLSEnabled": false
1621
+ },
1622
+ "qa.runs": {
1623
+ "name": "runs",
1624
+ "schema": "qa",
1625
+ "columns": {
1626
+ "project_id": {
1627
+ "name": "project_id",
1628
+ "type": "text",
1629
+ "primaryKey": false,
1630
+ "notNull": true
1631
+ },
1632
+ "id": {
1633
+ "name": "id",
1634
+ "type": "text",
1635
+ "primaryKey": false,
1636
+ "notNull": true
1637
+ },
1638
+ "batch_id": {
1639
+ "name": "batch_id",
1640
+ "type": "text",
1641
+ "primaryKey": false,
1642
+ "notNull": false
1643
+ },
1644
+ "flow": {
1645
+ "name": "flow",
1646
+ "type": "text",
1647
+ "primaryKey": false,
1648
+ "notNull": true
1649
+ },
1650
+ "started_at": {
1651
+ "name": "started_at",
1652
+ "type": "double precision",
1653
+ "primaryKey": false,
1654
+ "notNull": true
1655
+ },
1656
+ "metadata": {
1657
+ "name": "metadata",
1658
+ "type": "jsonb",
1659
+ "primaryKey": false,
1660
+ "notNull": false
1661
+ },
1662
+ "phase": {
1663
+ "name": "phase",
1664
+ "type": "text",
1665
+ "primaryKey": false,
1666
+ "notNull": true,
1667
+ "default": "'queued'"
1668
+ },
1669
+ "verdict": {
1670
+ "name": "verdict",
1671
+ "type": "text",
1672
+ "primaryKey": false,
1673
+ "notNull": false
1674
+ },
1675
+ "finished_at": {
1676
+ "name": "finished_at",
1677
+ "type": "double precision",
1678
+ "primaryKey": false,
1679
+ "notNull": false
1680
+ },
1681
+ "reason": {
1682
+ "name": "reason",
1683
+ "type": "text",
1684
+ "primaryKey": false,
1685
+ "notNull": false
1686
+ },
1687
+ "event_count": {
1688
+ "name": "event_count",
1689
+ "type": "integer",
1690
+ "primaryKey": false,
1691
+ "notNull": true,
1692
+ "default": 0
1693
+ },
1694
+ "last_seq": {
1695
+ "name": "last_seq",
1696
+ "type": "bigint",
1697
+ "primaryKey": false,
1698
+ "notNull": true,
1699
+ "default": 0
1700
+ },
1701
+ "last_t": {
1702
+ "name": "last_t",
1703
+ "type": "double precision",
1704
+ "primaryKey": false,
1705
+ "notNull": true,
1706
+ "default": 0
1707
+ },
1708
+ "event_bytes": {
1709
+ "name": "event_bytes",
1710
+ "type": "bigint",
1711
+ "primaryKey": false,
1712
+ "notNull": true,
1713
+ "default": 0
1714
+ },
1715
+ "writer_lease_id": {
1716
+ "name": "writer_lease_id",
1717
+ "type": "text",
1718
+ "primaryKey": false,
1719
+ "notNull": false
1720
+ },
1721
+ "heartbeat_at": {
1722
+ "name": "heartbeat_at",
1723
+ "type": "timestamp with time zone",
1724
+ "primaryKey": false,
1725
+ "notNull": false
1726
+ },
1727
+ "usage": {
1728
+ "name": "usage",
1729
+ "type": "jsonb",
1730
+ "primaryKey": false,
1731
+ "notNull": false
1732
+ },
1733
+ "error_reason": {
1734
+ "name": "error_reason",
1735
+ "type": "text",
1736
+ "primaryKey": false,
1737
+ "notNull": false
1738
+ },
1739
+ "cost_usd": {
1740
+ "name": "cost_usd",
1741
+ "type": "double precision",
1742
+ "primaryKey": false,
1743
+ "notNull": true,
1744
+ "default": 0
1745
+ },
1746
+ "classification": {
1747
+ "name": "classification",
1748
+ "type": "text",
1749
+ "primaryKey": false,
1750
+ "notNull": false
1751
+ }
1752
+ },
1753
+ "indexes": {
1754
+ "runs_recent": {
1755
+ "name": "runs_recent",
1756
+ "columns": [
1757
+ {
1758
+ "expression": "project_id",
1759
+ "isExpression": false,
1760
+ "asc": true,
1761
+ "nulls": "last"
1762
+ },
1763
+ {
1764
+ "expression": "started_at",
1765
+ "isExpression": false,
1766
+ "asc": false,
1767
+ "nulls": "last"
1768
+ },
1769
+ {
1770
+ "expression": "\"id\" COLLATE \"C\"",
1771
+ "asc": true,
1772
+ "isExpression": true,
1773
+ "nulls": "last"
1774
+ }
1775
+ ],
1776
+ "isUnique": false,
1777
+ "concurrently": false,
1778
+ "method": "btree",
1779
+ "with": {}
1780
+ }
1781
+ },
1782
+ "foreignKeys": {
1783
+ "runs_project_id_batch_id_batches_project_id_id_fk": {
1784
+ "name": "runs_project_id_batch_id_batches_project_id_id_fk",
1785
+ "tableFrom": "runs",
1786
+ "tableTo": "batches",
1787
+ "schemaTo": "qa",
1788
+ "columnsFrom": ["project_id", "batch_id"],
1789
+ "columnsTo": ["project_id", "id"],
1790
+ "onDelete": "no action",
1791
+ "onUpdate": "no action"
1792
+ }
1793
+ },
1794
+ "compositePrimaryKeys": {
1795
+ "runs_project_id_id_pk": {
1796
+ "name": "runs_project_id_id_pk",
1797
+ "columns": ["project_id", "id"]
1798
+ }
1799
+ },
1800
+ "uniqueConstraints": {},
1801
+ "policies": {},
1802
+ "checkConstraints": {
1803
+ "run_classification": {
1804
+ "name": "run_classification",
1805
+ "value": "\"qa\".\"runs\".\"classification\" IN ('product-bug','test-case','env','flaky','agent')"
1806
+ },
1807
+ "run_classification_metadata": {
1808
+ "name": "run_classification_metadata",
1809
+ "value": "\"qa\".\"runs\".\"metadata\"->'failureClassification'->>'category' IN ('product-bug','test-case','env','flaky','agent')"
1810
+ },
1811
+ "run_cursor_nonnegative": {
1812
+ "name": "run_cursor_nonnegative",
1813
+ "value": "\"qa\".\"runs\".\"last_seq\" >= 0 AND \"qa\".\"runs\".\"last_t\" >= 0 AND \"qa\".\"runs\".\"event_count\" >= 0 AND \"qa\".\"runs\".\"event_bytes\" >= 0"
1814
+ }
1815
+ },
1816
+ "isRLSEnabled": false
1817
+ },
1818
+ "qa.server_submissions": {
1819
+ "name": "server_submissions",
1820
+ "schema": "qa",
1821
+ "columns": {
1822
+ "project_id": {
1823
+ "name": "project_id",
1824
+ "type": "text",
1825
+ "primaryKey": false,
1826
+ "notNull": true
1827
+ },
1828
+ "principal_id": {
1829
+ "name": "principal_id",
1830
+ "type": "text",
1831
+ "primaryKey": false,
1832
+ "notNull": true
1833
+ },
1834
+ "idempotency_key": {
1835
+ "name": "idempotency_key",
1836
+ "type": "text",
1837
+ "primaryKey": false,
1838
+ "notNull": true
1839
+ },
1840
+ "fingerprint": {
1841
+ "name": "fingerprint",
1842
+ "type": "text",
1843
+ "primaryKey": false,
1844
+ "notNull": true
1845
+ },
1846
+ "batch_id": {
1847
+ "name": "batch_id",
1848
+ "type": "text",
1849
+ "primaryKey": false,
1850
+ "notNull": true
1851
+ },
1852
+ "response": {
1853
+ "name": "response",
1854
+ "type": "jsonb",
1855
+ "primaryKey": false,
1856
+ "notNull": true
1857
+ },
1858
+ "created_at": {
1859
+ "name": "created_at",
1860
+ "type": "timestamp with time zone",
1861
+ "primaryKey": false,
1862
+ "notNull": true,
1863
+ "default": "now()"
1864
+ }
1865
+ },
1866
+ "indexes": {
1867
+ "submission_batch": {
1868
+ "name": "submission_batch",
1869
+ "columns": [
1870
+ {
1871
+ "expression": "project_id",
1872
+ "isExpression": false,
1873
+ "asc": true,
1874
+ "nulls": "last"
1875
+ },
1876
+ {
1877
+ "expression": "batch_id",
1878
+ "isExpression": false,
1879
+ "asc": true,
1880
+ "nulls": "last"
1881
+ }
1882
+ ],
1883
+ "isUnique": true,
1884
+ "concurrently": false,
1885
+ "method": "btree",
1886
+ "with": {}
1887
+ },
1888
+ "submission_created": {
1889
+ "name": "submission_created",
1890
+ "columns": [
1891
+ {
1892
+ "expression": "project_id",
1893
+ "isExpression": false,
1894
+ "asc": true,
1895
+ "nulls": "last"
1896
+ },
1897
+ {
1898
+ "expression": "created_at",
1899
+ "isExpression": false,
1900
+ "asc": false,
1901
+ "nulls": "last"
1902
+ },
1903
+ {
1904
+ "expression": "batch_id",
1905
+ "isExpression": false,
1906
+ "asc": true,
1907
+ "nulls": "last"
1908
+ }
1909
+ ],
1910
+ "isUnique": false,
1911
+ "concurrently": false,
1912
+ "method": "btree",
1913
+ "with": {}
1914
+ }
1915
+ },
1916
+ "foreignKeys": {
1917
+ "server_submissions_project_id_batch_id_batches_project_id_id_fk": {
1918
+ "name": "server_submissions_project_id_batch_id_batches_project_id_id_fk",
1919
+ "tableFrom": "server_submissions",
1920
+ "tableTo": "batches",
1921
+ "schemaTo": "qa",
1922
+ "columnsFrom": ["project_id", "batch_id"],
1923
+ "columnsTo": ["project_id", "id"],
1924
+ "onDelete": "no action",
1925
+ "onUpdate": "no action"
1926
+ }
1927
+ },
1928
+ "compositePrimaryKeys": {
1929
+ "server_submissions_project_id_principal_id_idempotency_key_pk": {
1930
+ "name": "server_submissions_project_id_principal_id_idempotency_key_pk",
1931
+ "columns": ["project_id", "principal_id", "idempotency_key"]
1932
+ }
1933
+ },
1934
+ "uniqueConstraints": {},
1935
+ "policies": {},
1936
+ "checkConstraints": {},
1937
+ "isRLSEnabled": false
1938
+ },
1939
+ "qa.step_runs": {
1940
+ "name": "step_runs",
1941
+ "schema": "qa",
1942
+ "columns": {
1943
+ "project_id": {
1944
+ "name": "project_id",
1945
+ "type": "text",
1946
+ "primaryKey": false,
1947
+ "notNull": true
1948
+ },
1949
+ "run_id": {
1950
+ "name": "run_id",
1951
+ "type": "text",
1952
+ "primaryKey": false,
1953
+ "notNull": true
1954
+ },
1955
+ "actor": {
1956
+ "name": "actor",
1957
+ "type": "text",
1958
+ "primaryKey": false,
1959
+ "notNull": true
1960
+ },
1961
+ "step": {
1962
+ "name": "step",
1963
+ "type": "text",
1964
+ "primaryKey": false,
1965
+ "notNull": true
1966
+ },
1967
+ "seq": {
1968
+ "name": "seq",
1969
+ "type": "bigint",
1970
+ "primaryKey": false,
1971
+ "notNull": true
1972
+ },
1973
+ "status": {
1974
+ "name": "status",
1975
+ "type": "text",
1976
+ "primaryKey": false,
1977
+ "notNull": true
1978
+ },
1979
+ "started_at": {
1980
+ "name": "started_at",
1981
+ "type": "double precision",
1982
+ "primaryKey": false,
1983
+ "notNull": true
1984
+ },
1985
+ "finished_at": {
1986
+ "name": "finished_at",
1987
+ "type": "double precision",
1988
+ "primaryKey": false,
1989
+ "notNull": false
1990
+ }
1991
+ },
1992
+ "indexes": {},
1993
+ "foreignKeys": {
1994
+ "step_runs_project_id_run_id_runs_project_id_id_fk": {
1995
+ "name": "step_runs_project_id_run_id_runs_project_id_id_fk",
1996
+ "tableFrom": "step_runs",
1997
+ "tableTo": "runs",
1998
+ "schemaTo": "qa",
1999
+ "columnsFrom": ["project_id", "run_id"],
2000
+ "columnsTo": ["project_id", "id"],
2001
+ "onDelete": "no action",
2002
+ "onUpdate": "no action"
2003
+ }
2004
+ },
2005
+ "compositePrimaryKeys": {
2006
+ "step_runs_project_id_run_id_seq_pk": {
2007
+ "name": "step_runs_project_id_run_id_seq_pk",
2008
+ "columns": ["project_id", "run_id", "seq"]
2009
+ }
2010
+ },
2011
+ "uniqueConstraints": {},
2012
+ "policies": {},
2013
+ "checkConstraints": {},
2014
+ "isRLSEnabled": false
2015
+ },
2016
+ "qa.worker_slots": {
2017
+ "name": "worker_slots",
2018
+ "schema": "qa",
2019
+ "columns": {
2020
+ "id": {
2021
+ "name": "id",
2022
+ "type": "integer",
2023
+ "primaryKey": true,
2024
+ "notNull": true
2025
+ },
2026
+ "project_id": {
2027
+ "name": "project_id",
2028
+ "type": "text",
2029
+ "primaryKey": false,
2030
+ "notNull": false
2031
+ },
2032
+ "job_id": {
2033
+ "name": "job_id",
2034
+ "type": "text",
2035
+ "primaryKey": false,
2036
+ "notNull": false
2037
+ }
2038
+ },
2039
+ "indexes": {
2040
+ "worker_slot_job": {
2041
+ "name": "worker_slot_job",
2042
+ "columns": [
2043
+ {
2044
+ "expression": "project_id",
2045
+ "isExpression": false,
2046
+ "asc": true,
2047
+ "nulls": "last"
2048
+ },
2049
+ {
2050
+ "expression": "job_id",
2051
+ "isExpression": false,
2052
+ "asc": true,
2053
+ "nulls": "last"
2054
+ }
2055
+ ],
2056
+ "isUnique": true,
2057
+ "concurrently": false,
2058
+ "method": "btree",
2059
+ "with": {}
2060
+ }
2061
+ },
2062
+ "foreignKeys": {},
2063
+ "compositePrimaryKeys": {},
2064
+ "uniqueConstraints": {},
2065
+ "policies": {},
2066
+ "checkConstraints": {
2067
+ "worker_slot_range": {
2068
+ "name": "worker_slot_range",
2069
+ "value": "\"qa\".\"worker_slots\".\"id\" BETWEEN 1 AND 8"
2070
+ },
2071
+ "worker_slot_pair": {
2072
+ "name": "worker_slot_pair",
2073
+ "value": "(\"qa\".\"worker_slots\".\"project_id\" IS NULL) = (\"qa\".\"worker_slots\".\"job_id\" IS NULL)"
2074
+ }
2075
+ },
2076
+ "isRLSEnabled": false
2077
+ }
2078
+ },
2079
+ "enums": {},
2080
+ "schemas": {
2081
+ "qa": "qa"
2082
+ },
2083
+ "sequences": {},
2084
+ "roles": {},
2085
+ "policies": {},
2086
+ "views": {},
2087
+ "_meta": {
2088
+ "columns": {},
2089
+ "schemas": {},
2090
+ "tables": {}
2091
+ }
2092
+ }