@open-qa/qa 0.0.0-stage → 0.1.0-alpha.4

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 (313) hide show
  1. package/LICENSE +204 -0
  2. package/NOTICE +7 -0
  3. package/THIRD_PARTY.md +12 -0
  4. package/THIRD_PARTY_NOTICES.md +11 -0
  5. package/drizzle/0000_qa_core.sql +158 -0
  6. package/drizzle/0001_run_health.sql +3 -0
  7. package/drizzle/0002_bounded_cleanup.sql +5 -0
  8. package/drizzle/0003_step_replay_cache.sql +9 -0
  9. package/drizzle/0004_credential_expiry.sql +1 -0
  10. package/drizzle/0005_server_api.sql +19 -0
  11. package/drizzle/0006_submission_created.sql +3 -0
  12. package/drizzle/0007_findings.sql +19 -0
  13. package/drizzle/0008_classification_labels.sql +14 -0
  14. package/drizzle/0009_job_queue.sql +20 -0
  15. package/drizzle/0010_result_notifications.sql +13 -0
  16. package/drizzle/0011_result_notification_retries.sql +5 -0
  17. package/drizzle/0012_result_notification_flows.sql +44 -0
  18. package/drizzle/0013_flow_quarantine.sql +35 -0
  19. package/drizzle/0014_run_budgets.sql +2 -0
  20. package/drizzle/0015_flow_lifecycle.sql +9 -0
  21. package/drizzle/0016_open_qa_classification.sql +28 -0
  22. package/drizzle/meta/0000_snapshot.json +1002 -0
  23. package/drizzle/meta/0001_snapshot.json +1021 -0
  24. package/drizzle/meta/0002_snapshot.json +1027 -0
  25. package/drizzle/meta/0003_snapshot.json +1081 -0
  26. package/drizzle/meta/0004_snapshot.json +1087 -0
  27. package/drizzle/meta/0005_snapshot.json +1210 -0
  28. package/drizzle/meta/0006_snapshot.json +1244 -0
  29. package/drizzle/meta/0007_snapshot.json +1353 -0
  30. package/drizzle/meta/0008_snapshot.json +1435 -0
  31. package/drizzle/meta/0009_snapshot.json +1587 -0
  32. package/drizzle/meta/0010_snapshot.json +1675 -0
  33. package/drizzle/meta/0011_snapshot.json +1692 -0
  34. package/drizzle/meta/0012_snapshot.json +1818 -0
  35. package/drizzle/meta/0013_snapshot.json +2016 -0
  36. package/drizzle/meta/0014_snapshot.json +2028 -0
  37. package/drizzle/meta/0015_snapshot.json +2064 -0
  38. package/drizzle/meta/0016_snapshot.json +2076 -0
  39. package/drizzle/meta/_journal.json +125 -0
  40. package/package.json +118 -4
  41. package/problem-matcher.json +32 -0
  42. package/src/adapters/db-lease-pool.d.ts +25 -0
  43. package/src/adapters/db-lease-pool.js +293 -0
  44. package/src/adapters/dir-artifact-store.d.ts +9 -0
  45. package/src/adapters/dir-artifact-store.js +64 -0
  46. package/src/adapters/e2b-agent.d.ts +7 -0
  47. package/src/adapters/e2b-agent.js +94 -0
  48. package/src/adapters/e2b-artifacts.d.ts +3 -0
  49. package/src/adapters/e2b-artifacts.js +66 -0
  50. package/src/adapters/e2b-bounded.d.ts +1 -0
  51. package/src/adapters/e2b-bounded.js +19 -0
  52. package/src/adapters/e2b-client.d.ts +33 -0
  53. package/src/adapters/e2b-client.js +114 -0
  54. package/src/adapters/e2b-executor.d.ts +26 -0
  55. package/src/adapters/e2b-executor.js +194 -0
  56. package/src/adapters/e2b-lifetime.d.ts +20 -0
  57. package/src/adapters/e2b-lifetime.js +73 -0
  58. package/src/adapters/e2b-prune.d.ts +13 -0
  59. package/src/adapters/e2b-prune.js +42 -0
  60. package/src/adapters/file-replay-cache.d.ts +14 -0
  61. package/src/adapters/file-replay-cache.js +120 -0
  62. package/src/adapters/file-run-store.d.ts +175 -0
  63. package/src/adapters/file-run-store.js +280 -0
  64. package/src/adapters/fixed-lease-pool.d.ts +10 -0
  65. package/src/adapters/fixed-lease-pool.js +237 -0
  66. package/src/adapters/gcs/artifact-store.d.ts +49 -0
  67. package/src/adapters/gcs/artifact-store.js +247 -0
  68. package/src/adapters/gcs/client.d.ts +22 -0
  69. package/src/adapters/gcs/client.js +106 -0
  70. package/src/adapters/gcs/download.d.ts +9 -0
  71. package/src/adapters/gcs/download.js +43 -0
  72. package/src/adapters/gcs/index.d.ts +8 -0
  73. package/src/adapters/gcs/index.js +23 -0
  74. package/src/adapters/gcs/periodic-flush.d.ts +5 -0
  75. package/src/adapters/gcs/periodic-flush.js +16 -0
  76. package/src/adapters/gcs/pg-catalog.d.ts +16 -0
  77. package/src/adapters/gcs/pg-catalog.js +149 -0
  78. package/src/adapters/gcs/replay-completeness.d.ts +1 -0
  79. package/src/adapters/gcs/replay-completeness.js +65 -0
  80. package/src/adapters/gcs/scan-upload.d.ts +10 -0
  81. package/src/adapters/gcs/scan-upload.js +26 -0
  82. package/src/adapters/index.d.ts +5 -0
  83. package/src/adapters/index.js +12 -0
  84. package/src/adapters/lease-transaction.d.ts +2 -0
  85. package/src/adapters/lease-transaction.js +61 -0
  86. package/src/adapters/local-credential-resolver.d.ts +5 -0
  87. package/src/adapters/local-credential-resolver.js +15 -0
  88. package/src/adapters/local-env.d.ts +1 -0
  89. package/src/adapters/local-env.js +37 -0
  90. package/src/adapters/local-files.d.ts +17 -0
  91. package/src/adapters/local-files.js +150 -0
  92. package/src/adapters/pg-classification-store.d.ts +58 -0
  93. package/src/adapters/pg-classification-store.js +112 -0
  94. package/src/adapters/pg-replay-cache.d.ts +16 -0
  95. package/src/adapters/pg-replay-cache.js +111 -0
  96. package/src/adapters/pg-run-store.d.ts +58 -0
  97. package/src/adapters/pg-run-store.js +399 -0
  98. package/src/adapters/resource-pools.d.ts +2 -0
  99. package/src/adapters/resource-pools.js +28 -0
  100. package/src/adapters/secret-manager-credential-resolver.d.ts +44 -0
  101. package/src/adapters/secret-manager-credential-resolver.js +102 -0
  102. package/src/artifact-scan.d.ts +21 -0
  103. package/src/artifact-scan.js +139 -0
  104. package/src/budget-confirmation.d.ts +23 -0
  105. package/src/budget-confirmation.js +43 -0
  106. package/src/cache-command.d.ts +7 -0
  107. package/src/cache-command.js +107 -0
  108. package/src/classification-command.d.ts +14 -0
  109. package/src/classification-command.js +72 -0
  110. package/src/classification-diff.d.ts +10 -0
  111. package/src/classification-diff.js +47 -0
  112. package/src/classification-model.d.ts +17 -0
  113. package/src/classification-model.js +51 -0
  114. package/src/classification-notifier.d.ts +21 -0
  115. package/src/classification-notifier.js +34 -0
  116. package/src/classify-runs.d.ts +31 -0
  117. package/src/classify-runs.js +138 -0
  118. package/src/cli-program.d.ts +9 -0
  119. package/src/cli-program.js +172 -0
  120. package/src/cli.d.ts +2 -0
  121. package/src/cli.js +12 -0
  122. package/src/commands.d.ts +7 -0
  123. package/src/commands.js +17 -0
  124. package/src/credential-references.d.ts +24 -0
  125. package/src/credential-references.js +33 -0
  126. package/src/db/commands.d.ts +1 -0
  127. package/src/db/commands.js +34 -0
  128. package/src/db/credentials.d.ts +16 -0
  129. package/src/db/credentials.js +73 -0
  130. package/src/db/database.d.ts +12 -0
  131. package/src/db/database.js +135 -0
  132. package/src/db/event-chunks.d.ts +405 -0
  133. package/src/db/event-chunks.js +74 -0
  134. package/src/db/fencing.d.ts +8 -0
  135. package/src/db/fencing.js +16 -0
  136. package/src/db/flow-status.d.ts +41 -0
  137. package/src/db/flow-status.js +208 -0
  138. package/src/db/index.d.ts +12 -0
  139. package/src/db/index.js +24 -0
  140. package/src/db/queries.d.ts +73 -0
  141. package/src/db/queries.js +122 -0
  142. package/src/db/resources.d.ts +14 -0
  143. package/src/db/resources.js +61 -0
  144. package/src/db/schema.d.ts +3532 -0
  145. package/src/db/schema.js +501 -0
  146. package/src/demo-command.d.ts +1 -0
  147. package/src/demo-command.js +50 -0
  148. package/src/doctor-command.d.ts +15 -0
  149. package/src/doctor-command.js +275 -0
  150. package/src/doctor-summary.d.ts +2 -0
  151. package/src/doctor-summary.js +31 -0
  152. package/src/draft-api.d.ts +460 -0
  153. package/src/draft-api.js +333 -0
  154. package/src/draft-command.d.ts +10 -0
  155. package/src/draft-command.js +73 -0
  156. package/src/draft-hooks.d.ts +3 -0
  157. package/src/draft-hooks.js +33 -0
  158. package/src/draft-pages.d.ts +11 -0
  159. package/src/draft-pages.js +82 -0
  160. package/src/engine.d.ts +105 -0
  161. package/src/engine.js +323 -0
  162. package/src/execution-snapshot.d.ts +21 -0
  163. package/src/execution-snapshot.js +141 -0
  164. package/src/flow-check.d.ts +9 -0
  165. package/src/flow-check.js +68 -0
  166. package/src/flow-lifecycle.d.ts +6 -0
  167. package/src/flow-lifecycle.js +61 -0
  168. package/src/flow-lint.d.ts +8 -0
  169. package/src/flow-lint.js +73 -0
  170. package/src/flow-loader.d.ts +219 -0
  171. package/src/flow-loader.js +236 -0
  172. package/src/flow-source.d.ts +2 -0
  173. package/src/flow-source.js +6 -0
  174. package/src/flows-api.d.ts +1 -0
  175. package/src/flows-api.js +12 -0
  176. package/src/heal-notification.d.ts +16 -0
  177. package/src/heal-notification.js +62 -0
  178. package/src/hooks/api.d.ts +29 -0
  179. package/src/hooks/api.js +15 -0
  180. package/src/hooks/consumer.d.ts +18 -0
  181. package/src/hooks/consumer.js +98 -0
  182. package/src/hooks/loader.d.ts +6 -0
  183. package/src/hooks/loader.js +28 -0
  184. package/src/hooks/registry.d.ts +22 -0
  185. package/src/hooks/registry.js +23 -0
  186. package/src/hooks/runner.d.ts +19 -0
  187. package/src/hooks/runner.js +279 -0
  188. package/src/hooks/session-cache.d.ts +16 -0
  189. package/src/hooks/session-cache.js +42 -0
  190. package/src/hooks/session-store.d.ts +20 -0
  191. package/src/hooks/session-store.js +95 -0
  192. package/src/hooks/worker.d.ts +1 -0
  193. package/src/hooks/worker.js +84 -0
  194. package/src/http-stage-client.d.ts +367 -0
  195. package/src/http-stage-client.js +190 -0
  196. package/src/independent-model.d.ts +22 -0
  197. package/src/independent-model.js +215 -0
  198. package/src/lifecycle-command.d.ts +15 -0
  199. package/src/lifecycle-command.js +190 -0
  200. package/src/local-command.d.ts +3 -0
  201. package/src/local-command.js +27 -0
  202. package/src/local-host-executor.d.ts +38 -0
  203. package/src/local-host-executor.js +196 -0
  204. package/src/open-command.d.ts +7 -0
  205. package/src/open-command.js +39 -0
  206. package/src/operations-api.d.ts +2 -0
  207. package/src/operations-api.js +6 -0
  208. package/src/personas.d.ts +2 -0
  209. package/src/personas.js +61 -0
  210. package/src/program-runner.d.ts +3 -0
  211. package/src/program-runner.js +263 -0
  212. package/src/program-sandbox.py +75 -0
  213. package/src/program-scratch.d.ts +2 -0
  214. package/src/program-scratch.js +48 -0
  215. package/src/program-worker.mjs +101 -0
  216. package/src/public-id.d.ts +2 -0
  217. package/src/public-id.js +5 -0
  218. package/src/public-report-url.d.ts +1 -0
  219. package/src/public-report-url.js +18 -0
  220. package/src/publication-check.d.ts +1 -0
  221. package/src/publication-check.js +31 -0
  222. package/src/quarantine-command.d.ts +9 -0
  223. package/src/quarantine-command.js +69 -0
  224. package/src/remote-command.d.ts +30 -0
  225. package/src/remote-command.js +156 -0
  226. package/src/replay-image.d.ts +1 -0
  227. package/src/replay-image.js +35 -0
  228. package/src/report/assets.d.ts +1 -0
  229. package/src/report/assets.js +5 -0
  230. package/src/report/browser.css +414 -0
  231. package/src/report/browser.d.ts +1 -0
  232. package/src/report/browser.js +219 -0
  233. package/src/report/data.d.ts +1 -0
  234. package/src/report/data.js +4 -0
  235. package/src/report/generate.d.ts +1 -0
  236. package/src/report/generate.js +54 -0
  237. package/src/report/load.d.ts +870 -0
  238. package/src/report/load.js +139 -0
  239. package/src/report/resource-table.d.ts +2 -0
  240. package/src/report/resource-table.js +4 -0
  241. package/src/report/status-icon.d.ts +2 -0
  242. package/src/report/status-icon.js +20 -0
  243. package/src/report/style.css +413 -0
  244. package/src/result-notifier.d.ts +121 -0
  245. package/src/result-notifier.js +230 -0
  246. package/src/result-transports.d.ts +12 -0
  247. package/src/result-transports.js +150 -0
  248. package/src/run-command.d.ts +32 -0
  249. package/src/run-command.js +493 -0
  250. package/src/run-setup-error.d.ts +11 -0
  251. package/src/run-setup-error.js +18 -0
  252. package/src/sandboxes-command.d.ts +9 -0
  253. package/src/sandboxes-command.js +29 -0
  254. package/src/screen-proxy.d.ts +5 -0
  255. package/src/screen-proxy.js +79 -0
  256. package/src/screen-url.d.ts +18 -0
  257. package/src/screen-url.js +54 -0
  258. package/src/server/app.d.ts +29 -0
  259. package/src/server/app.js +350 -0
  260. package/src/server/auth.d.ts +33 -0
  261. package/src/server/auth.js +113 -0
  262. package/src/server/credentials.d.ts +30 -0
  263. package/src/server/credentials.js +77 -0
  264. package/src/server/errors.d.ts +9 -0
  265. package/src/server/errors.js +26 -0
  266. package/src/server/index.d.ts +35 -0
  267. package/src/server/index.js +96 -0
  268. package/src/server/maintenance.d.ts +13 -0
  269. package/src/server/maintenance.js +54 -0
  270. package/src/server/repository.d.ts +534 -0
  271. package/src/server/repository.js +219 -0
  272. package/src/setup-command.d.ts +10 -0
  273. package/src/setup-command.js +52 -0
  274. package/src/stage-environment.d.ts +1 -0
  275. package/src/stage-environment.js +35 -0
  276. package/src/stage-supervisor.mjs +95 -0
  277. package/src/studio-command.d.ts +7 -0
  278. package/src/studio-command.js +47 -0
  279. package/src/studio-control.d.ts +5 -0
  280. package/src/studio-control.js +207 -0
  281. package/src/studio-review.d.ts +24 -0
  282. package/src/studio-review.js +64 -0
  283. package/src/studio-worker.d.ts +1 -0
  284. package/src/studio-worker.js +48 -0
  285. package/src/system-config.d.ts +7 -0
  286. package/src/system-config.js +70 -0
  287. package/src/terminal-reporter.d.ts +13 -0
  288. package/src/terminal-reporter.js +93 -0
  289. package/src/vendor/gmail.d.ts +45 -0
  290. package/src/vendor/gmail.js +193 -0
  291. package/src/watch-command.d.ts +16 -0
  292. package/src/watch-command.js +93 -0
  293. package/src/watch-state.d.ts +4 -0
  294. package/src/watch-state.js +53 -0
  295. package/src/worker/execution-error.d.ts +5 -0
  296. package/src/worker/execution-error.js +10 -0
  297. package/src/worker/execution.d.ts +24 -0
  298. package/src/worker/execution.js +190 -0
  299. package/src/worker/index.d.ts +8 -0
  300. package/src/worker/index.js +40 -0
  301. package/src/worker/prune.d.ts +3 -0
  302. package/src/worker/prune.js +22 -0
  303. package/src/worker/quarantine-notifications.d.ts +8 -0
  304. package/src/worker/quarantine-notifications.js +89 -0
  305. package/src/worker/queue.d.ts +65 -0
  306. package/src/worker/queue.js +438 -0
  307. package/src/worker/result-notifications.d.ts +28 -0
  308. package/src/worker/result-notifications.js +347 -0
  309. package/src/worker/store.d.ts +4 -0
  310. package/src/worker/store.js +46 -0
  311. package/src/worker/worker.d.ts +21 -0
  312. package/src/worker/worker.js +140 -0
  313. package/README.md +0 -3
@@ -0,0 +1,1244 @@
1
+ {
2
+ "id": "9eb94ffe-85b7-4890-9fe3-6c3b443a304e",
3
+ "prevId": "bf5d3dcc-2de9-47d8-b1aa-f992603b5a55",
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.credentials": {
194
+ "name": "credentials",
195
+ "schema": "qa",
196
+ "columns": {
197
+ "project_id": {
198
+ "name": "project_id",
199
+ "type": "text",
200
+ "primaryKey": false,
201
+ "notNull": true
202
+ },
203
+ "user_id": {
204
+ "name": "user_id",
205
+ "type": "text",
206
+ "primaryKey": false,
207
+ "notNull": true
208
+ },
209
+ "provider": {
210
+ "name": "provider",
211
+ "type": "text",
212
+ "primaryKey": false,
213
+ "notNull": true
214
+ },
215
+ "secret_ref": {
216
+ "name": "secret_ref",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": true
220
+ },
221
+ "expires_at": {
222
+ "name": "expires_at",
223
+ "type": "timestamp with time zone",
224
+ "primaryKey": false,
225
+ "notNull": false
226
+ }
227
+ },
228
+ "indexes": {},
229
+ "foreignKeys": {},
230
+ "compositePrimaryKeys": {
231
+ "credentials_project_id_user_id_provider_pk": {
232
+ "name": "credentials_project_id_user_id_provider_pk",
233
+ "columns": ["project_id", "user_id", "provider"]
234
+ }
235
+ },
236
+ "uniqueConstraints": {},
237
+ "policies": {},
238
+ "checkConstraints": {},
239
+ "isRLSEnabled": false
240
+ },
241
+ "qa.event_chunks": {
242
+ "name": "event_chunks",
243
+ "schema": "qa",
244
+ "columns": {
245
+ "project_id": {
246
+ "name": "project_id",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true
250
+ },
251
+ "run_id": {
252
+ "name": "run_id",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true
256
+ },
257
+ "id": {
258
+ "name": "id",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true
262
+ },
263
+ "object_key": {
264
+ "name": "object_key",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ },
269
+ "sha256": {
270
+ "name": "sha256",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": true
274
+ },
275
+ "count": {
276
+ "name": "count",
277
+ "type": "integer",
278
+ "primaryKey": false,
279
+ "notNull": true
280
+ },
281
+ "bytes": {
282
+ "name": "bytes",
283
+ "type": "integer",
284
+ "primaryKey": false,
285
+ "notNull": true
286
+ },
287
+ "first_seq": {
288
+ "name": "first_seq",
289
+ "type": "bigint",
290
+ "primaryKey": false,
291
+ "notNull": true
292
+ },
293
+ "last_seq": {
294
+ "name": "last_seq",
295
+ "type": "bigint",
296
+ "primaryKey": false,
297
+ "notNull": true
298
+ },
299
+ "first_t": {
300
+ "name": "first_t",
301
+ "type": "double precision",
302
+ "primaryKey": false,
303
+ "notNull": true
304
+ },
305
+ "last_t": {
306
+ "name": "last_t",
307
+ "type": "double precision",
308
+ "primaryKey": false,
309
+ "notNull": true
310
+ },
311
+ "state": {
312
+ "name": "state",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "default": "'uploading'"
317
+ },
318
+ "cleaned_at": {
319
+ "name": "cleaned_at",
320
+ "type": "timestamp with time zone",
321
+ "primaryKey": false,
322
+ "notNull": false
323
+ },
324
+ "created_at": {
325
+ "name": "created_at",
326
+ "type": "timestamp with time zone",
327
+ "primaryKey": false,
328
+ "notNull": true,
329
+ "default": "now()"
330
+ }
331
+ },
332
+ "indexes": {
333
+ "event_object_key": {
334
+ "name": "event_object_key",
335
+ "columns": [
336
+ {
337
+ "expression": "object_key",
338
+ "isExpression": false,
339
+ "asc": true,
340
+ "nulls": "last"
341
+ }
342
+ ],
343
+ "isUnique": true,
344
+ "concurrently": false,
345
+ "method": "btree",
346
+ "with": {}
347
+ }
348
+ },
349
+ "foreignKeys": {
350
+ "event_chunks_project_id_run_id_runs_project_id_id_fk": {
351
+ "name": "event_chunks_project_id_run_id_runs_project_id_id_fk",
352
+ "tableFrom": "event_chunks",
353
+ "tableTo": "runs",
354
+ "schemaTo": "qa",
355
+ "columnsFrom": ["project_id", "run_id"],
356
+ "columnsTo": ["project_id", "id"],
357
+ "onDelete": "no action",
358
+ "onUpdate": "no action"
359
+ }
360
+ },
361
+ "compositePrimaryKeys": {
362
+ "event_chunks_project_id_run_id_id_pk": {
363
+ "name": "event_chunks_project_id_run_id_id_pk",
364
+ "columns": ["project_id", "run_id", "id"]
365
+ }
366
+ },
367
+ "uniqueConstraints": {},
368
+ "policies": {},
369
+ "checkConstraints": {
370
+ "chunk_state": {
371
+ "name": "chunk_state",
372
+ "value": "\"qa\".\"event_chunks\".\"state\" IN ('uploading','committed','abandoned','cleaned')"
373
+ },
374
+ "chunk_range": {
375
+ "name": "chunk_range",
376
+ "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\""
377
+ }
378
+ },
379
+ "isRLSEnabled": false
380
+ },
381
+ "qa.events": {
382
+ "name": "events",
383
+ "schema": "qa",
384
+ "columns": {
385
+ "project_id": {
386
+ "name": "project_id",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true
390
+ },
391
+ "run_id": {
392
+ "name": "run_id",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": true
396
+ },
397
+ "seq": {
398
+ "name": "seq",
399
+ "type": "bigint",
400
+ "primaryKey": false,
401
+ "notNull": true
402
+ },
403
+ "t": {
404
+ "name": "t",
405
+ "type": "double precision",
406
+ "primaryKey": false,
407
+ "notNull": true
408
+ },
409
+ "kind": {
410
+ "name": "kind",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": true
414
+ },
415
+ "actor": {
416
+ "name": "actor",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false
420
+ },
421
+ "step": {
422
+ "name": "step",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": false
426
+ },
427
+ "chunk_id": {
428
+ "name": "chunk_id",
429
+ "type": "text",
430
+ "primaryKey": false,
431
+ "notNull": true
432
+ },
433
+ "offset": {
434
+ "name": "offset",
435
+ "type": "integer",
436
+ "primaryKey": false,
437
+ "notNull": true
438
+ }
439
+ },
440
+ "indexes": {},
441
+ "foreignKeys": {
442
+ "events_project_id_run_id_chunk_id_event_chunks_project_id_run_id_id_fk": {
443
+ "name": "events_project_id_run_id_chunk_id_event_chunks_project_id_run_id_id_fk",
444
+ "tableFrom": "events",
445
+ "tableTo": "event_chunks",
446
+ "schemaTo": "qa",
447
+ "columnsFrom": ["project_id", "run_id", "chunk_id"],
448
+ "columnsTo": ["project_id", "run_id", "id"],
449
+ "onDelete": "no action",
450
+ "onUpdate": "no action"
451
+ }
452
+ },
453
+ "compositePrimaryKeys": {
454
+ "events_project_id_run_id_seq_pk": {
455
+ "name": "events_project_id_run_id_seq_pk",
456
+ "columns": ["project_id", "run_id", "seq"]
457
+ }
458
+ },
459
+ "uniqueConstraints": {},
460
+ "policies": {},
461
+ "checkConstraints": {},
462
+ "isRLSEnabled": false
463
+ },
464
+ "qa.jobs": {
465
+ "name": "jobs",
466
+ "schema": "qa",
467
+ "columns": {
468
+ "project_id": {
469
+ "name": "project_id",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true
473
+ },
474
+ "id": {
475
+ "name": "id",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": true
479
+ },
480
+ "run_id": {
481
+ "name": "run_id",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": true
485
+ },
486
+ "state": {
487
+ "name": "state",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "default": "'queued'"
492
+ },
493
+ "available_at": {
494
+ "name": "available_at",
495
+ "type": "timestamp with time zone",
496
+ "primaryKey": false,
497
+ "notNull": true,
498
+ "default": "now()"
499
+ },
500
+ "attempts": {
501
+ "name": "attempts",
502
+ "type": "integer",
503
+ "primaryKey": false,
504
+ "notNull": true,
505
+ "default": 0
506
+ }
507
+ },
508
+ "indexes": {
509
+ "jobs_available": {
510
+ "name": "jobs_available",
511
+ "columns": [
512
+ {
513
+ "expression": "project_id",
514
+ "isExpression": false,
515
+ "asc": true,
516
+ "nulls": "last"
517
+ },
518
+ {
519
+ "expression": "state",
520
+ "isExpression": false,
521
+ "asc": true,
522
+ "nulls": "last"
523
+ },
524
+ {
525
+ "expression": "available_at",
526
+ "isExpression": false,
527
+ "asc": true,
528
+ "nulls": "last"
529
+ }
530
+ ],
531
+ "isUnique": false,
532
+ "concurrently": false,
533
+ "method": "btree",
534
+ "with": {}
535
+ }
536
+ },
537
+ "foreignKeys": {
538
+ "jobs_project_id_run_id_runs_project_id_id_fk": {
539
+ "name": "jobs_project_id_run_id_runs_project_id_id_fk",
540
+ "tableFrom": "jobs",
541
+ "tableTo": "runs",
542
+ "schemaTo": "qa",
543
+ "columnsFrom": ["project_id", "run_id"],
544
+ "columnsTo": ["project_id", "id"],
545
+ "onDelete": "no action",
546
+ "onUpdate": "no action"
547
+ }
548
+ },
549
+ "compositePrimaryKeys": {
550
+ "jobs_project_id_id_pk": {
551
+ "name": "jobs_project_id_id_pk",
552
+ "columns": ["project_id", "id"]
553
+ }
554
+ },
555
+ "uniqueConstraints": {},
556
+ "policies": {},
557
+ "checkConstraints": {},
558
+ "isRLSEnabled": false
559
+ },
560
+ "qa.lanes": {
561
+ "name": "lanes",
562
+ "schema": "qa",
563
+ "columns": {
564
+ "project_id": {
565
+ "name": "project_id",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": true
569
+ },
570
+ "run_id": {
571
+ "name": "run_id",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": true
575
+ },
576
+ "actor": {
577
+ "name": "actor",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": true
581
+ },
582
+ "status": {
583
+ "name": "status",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": true
587
+ },
588
+ "started_at": {
589
+ "name": "started_at",
590
+ "type": "double precision",
591
+ "primaryKey": false,
592
+ "notNull": true
593
+ },
594
+ "finished_at": {
595
+ "name": "finished_at",
596
+ "type": "double precision",
597
+ "primaryKey": false,
598
+ "notNull": false
599
+ }
600
+ },
601
+ "indexes": {},
602
+ "foreignKeys": {
603
+ "lanes_project_id_run_id_runs_project_id_id_fk": {
604
+ "name": "lanes_project_id_run_id_runs_project_id_id_fk",
605
+ "tableFrom": "lanes",
606
+ "tableTo": "runs",
607
+ "schemaTo": "qa",
608
+ "columnsFrom": ["project_id", "run_id"],
609
+ "columnsTo": ["project_id", "id"],
610
+ "onDelete": "no action",
611
+ "onUpdate": "no action"
612
+ }
613
+ },
614
+ "compositePrimaryKeys": {
615
+ "lanes_project_id_run_id_actor_pk": {
616
+ "name": "lanes_project_id_run_id_actor_pk",
617
+ "columns": ["project_id", "run_id", "actor"]
618
+ }
619
+ },
620
+ "uniqueConstraints": {},
621
+ "policies": {},
622
+ "checkConstraints": {},
623
+ "isRLSEnabled": false
624
+ },
625
+ "qa.lease_claims": {
626
+ "name": "lease_claims",
627
+ "schema": "qa",
628
+ "columns": {
629
+ "project_id": {
630
+ "name": "project_id",
631
+ "type": "text",
632
+ "primaryKey": false,
633
+ "notNull": true
634
+ },
635
+ "identity": {
636
+ "name": "identity",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "lease_id": {
642
+ "name": "lease_id",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ }
647
+ },
648
+ "indexes": {},
649
+ "foreignKeys": {
650
+ "lease_claims_project_id_lease_id_leases_project_id_id_fk": {
651
+ "name": "lease_claims_project_id_lease_id_leases_project_id_id_fk",
652
+ "tableFrom": "lease_claims",
653
+ "tableTo": "leases",
654
+ "schemaTo": "qa",
655
+ "columnsFrom": ["project_id", "lease_id"],
656
+ "columnsTo": ["project_id", "id"],
657
+ "onDelete": "no action",
658
+ "onUpdate": "no action"
659
+ }
660
+ },
661
+ "compositePrimaryKeys": {
662
+ "lease_claims_project_id_identity_pk": {
663
+ "name": "lease_claims_project_id_identity_pk",
664
+ "columns": ["project_id", "identity"]
665
+ }
666
+ },
667
+ "uniqueConstraints": {},
668
+ "policies": {},
669
+ "checkConstraints": {},
670
+ "isRLSEnabled": false
671
+ },
672
+ "qa.lease_resources": {
673
+ "name": "lease_resources",
674
+ "schema": "qa",
675
+ "columns": {
676
+ "project_id": {
677
+ "name": "project_id",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": true
681
+ },
682
+ "id": {
683
+ "name": "id",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true
687
+ },
688
+ "kind": {
689
+ "name": "kind",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true
693
+ },
694
+ "canonical_id": {
695
+ "name": "canonical_id",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": true
699
+ },
700
+ "secret_ref": {
701
+ "name": "secret_ref",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": true
705
+ }
706
+ },
707
+ "indexes": {
708
+ "resource_kinds": {
709
+ "name": "resource_kinds",
710
+ "columns": [
711
+ {
712
+ "expression": "project_id",
713
+ "isExpression": false,
714
+ "asc": true,
715
+ "nulls": "last"
716
+ },
717
+ {
718
+ "expression": "kind",
719
+ "isExpression": false,
720
+ "asc": true,
721
+ "nulls": "last"
722
+ }
723
+ ],
724
+ "isUnique": false,
725
+ "concurrently": false,
726
+ "method": "btree",
727
+ "with": {}
728
+ }
729
+ },
730
+ "foreignKeys": {},
731
+ "compositePrimaryKeys": {
732
+ "lease_resources_project_id_id_pk": {
733
+ "name": "lease_resources_project_id_id_pk",
734
+ "columns": ["project_id", "id"]
735
+ }
736
+ },
737
+ "uniqueConstraints": {},
738
+ "policies": {},
739
+ "checkConstraints": {},
740
+ "isRLSEnabled": false
741
+ },
742
+ "qa.leases": {
743
+ "name": "leases",
744
+ "schema": "qa",
745
+ "columns": {
746
+ "project_id": {
747
+ "name": "project_id",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": true
751
+ },
752
+ "id": {
753
+ "name": "id",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": true
757
+ },
758
+ "run_id": {
759
+ "name": "run_id",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": true
763
+ },
764
+ "actor": {
765
+ "name": "actor",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": true
769
+ },
770
+ "owner": {
771
+ "name": "owner",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": true
775
+ },
776
+ "epoch": {
777
+ "name": "epoch",
778
+ "type": "bigserial",
779
+ "primaryKey": false,
780
+ "notNull": true
781
+ },
782
+ "state": {
783
+ "name": "state",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "default": "'active'"
788
+ },
789
+ "expires_at": {
790
+ "name": "expires_at",
791
+ "type": "timestamp with time zone",
792
+ "primaryKey": false,
793
+ "notNull": true
794
+ },
795
+ "allocations": {
796
+ "name": "allocations",
797
+ "type": "jsonb",
798
+ "primaryKey": false,
799
+ "notNull": true
800
+ }
801
+ },
802
+ "indexes": {},
803
+ "foreignKeys": {},
804
+ "compositePrimaryKeys": {
805
+ "leases_project_id_id_pk": {
806
+ "name": "leases_project_id_id_pk",
807
+ "columns": ["project_id", "id"]
808
+ }
809
+ },
810
+ "uniqueConstraints": {},
811
+ "policies": {},
812
+ "checkConstraints": {
813
+ "lease_state": {
814
+ "name": "lease_state",
815
+ "value": "\"qa\".\"leases\".\"state\" IN ('active','quarantined','released')"
816
+ }
817
+ },
818
+ "isRLSEnabled": false
819
+ },
820
+ "qa.read_publications": {
821
+ "name": "read_publications",
822
+ "schema": "qa",
823
+ "columns": {
824
+ "project_id": {
825
+ "name": "project_id",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "kind": {
831
+ "name": "kind",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": true
835
+ },
836
+ "document": {
837
+ "name": "document",
838
+ "type": "jsonb",
839
+ "primaryKey": false,
840
+ "notNull": true
841
+ }
842
+ },
843
+ "indexes": {},
844
+ "foreignKeys": {},
845
+ "compositePrimaryKeys": {
846
+ "read_publications_project_id_kind_pk": {
847
+ "name": "read_publications_project_id_kind_pk",
848
+ "columns": ["project_id", "kind"]
849
+ }
850
+ },
851
+ "uniqueConstraints": {},
852
+ "policies": {},
853
+ "checkConstraints": {},
854
+ "isRLSEnabled": false
855
+ },
856
+ "qa.runs": {
857
+ "name": "runs",
858
+ "schema": "qa",
859
+ "columns": {
860
+ "project_id": {
861
+ "name": "project_id",
862
+ "type": "text",
863
+ "primaryKey": false,
864
+ "notNull": true
865
+ },
866
+ "id": {
867
+ "name": "id",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": true
871
+ },
872
+ "batch_id": {
873
+ "name": "batch_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false
877
+ },
878
+ "flow": {
879
+ "name": "flow",
880
+ "type": "text",
881
+ "primaryKey": false,
882
+ "notNull": true
883
+ },
884
+ "started_at": {
885
+ "name": "started_at",
886
+ "type": "double precision",
887
+ "primaryKey": false,
888
+ "notNull": true
889
+ },
890
+ "metadata": {
891
+ "name": "metadata",
892
+ "type": "jsonb",
893
+ "primaryKey": false,
894
+ "notNull": false
895
+ },
896
+ "phase": {
897
+ "name": "phase",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true,
901
+ "default": "'queued'"
902
+ },
903
+ "verdict": {
904
+ "name": "verdict",
905
+ "type": "text",
906
+ "primaryKey": false,
907
+ "notNull": false
908
+ },
909
+ "finished_at": {
910
+ "name": "finished_at",
911
+ "type": "double precision",
912
+ "primaryKey": false,
913
+ "notNull": false
914
+ },
915
+ "reason": {
916
+ "name": "reason",
917
+ "type": "text",
918
+ "primaryKey": false,
919
+ "notNull": false
920
+ },
921
+ "event_count": {
922
+ "name": "event_count",
923
+ "type": "integer",
924
+ "primaryKey": false,
925
+ "notNull": true,
926
+ "default": 0
927
+ },
928
+ "last_seq": {
929
+ "name": "last_seq",
930
+ "type": "bigint",
931
+ "primaryKey": false,
932
+ "notNull": true,
933
+ "default": 0
934
+ },
935
+ "last_t": {
936
+ "name": "last_t",
937
+ "type": "double precision",
938
+ "primaryKey": false,
939
+ "notNull": true,
940
+ "default": 0
941
+ },
942
+ "event_bytes": {
943
+ "name": "event_bytes",
944
+ "type": "bigint",
945
+ "primaryKey": false,
946
+ "notNull": true,
947
+ "default": 0
948
+ },
949
+ "writer_lease_id": {
950
+ "name": "writer_lease_id",
951
+ "type": "text",
952
+ "primaryKey": false,
953
+ "notNull": false
954
+ },
955
+ "heartbeat_at": {
956
+ "name": "heartbeat_at",
957
+ "type": "timestamp with time zone",
958
+ "primaryKey": false,
959
+ "notNull": false
960
+ },
961
+ "cost_usd": {
962
+ "name": "cost_usd",
963
+ "type": "double precision",
964
+ "primaryKey": false,
965
+ "notNull": true,
966
+ "default": 0
967
+ },
968
+ "classification": {
969
+ "name": "classification",
970
+ "type": "text",
971
+ "primaryKey": false,
972
+ "notNull": false
973
+ }
974
+ },
975
+ "indexes": {
976
+ "runs_recent": {
977
+ "name": "runs_recent",
978
+ "columns": [
979
+ {
980
+ "expression": "project_id",
981
+ "isExpression": false,
982
+ "asc": true,
983
+ "nulls": "last"
984
+ },
985
+ {
986
+ "expression": "started_at",
987
+ "isExpression": false,
988
+ "asc": false,
989
+ "nulls": "last"
990
+ },
991
+ {
992
+ "expression": "\"id\" COLLATE \"C\"",
993
+ "asc": true,
994
+ "isExpression": true,
995
+ "nulls": "last"
996
+ }
997
+ ],
998
+ "isUnique": false,
999
+ "concurrently": false,
1000
+ "method": "btree",
1001
+ "with": {}
1002
+ }
1003
+ },
1004
+ "foreignKeys": {
1005
+ "runs_project_id_batch_id_batches_project_id_id_fk": {
1006
+ "name": "runs_project_id_batch_id_batches_project_id_id_fk",
1007
+ "tableFrom": "runs",
1008
+ "tableTo": "batches",
1009
+ "schemaTo": "qa",
1010
+ "columnsFrom": ["project_id", "batch_id"],
1011
+ "columnsTo": ["project_id", "id"],
1012
+ "onDelete": "no action",
1013
+ "onUpdate": "no action"
1014
+ }
1015
+ },
1016
+ "compositePrimaryKeys": {
1017
+ "runs_project_id_id_pk": {
1018
+ "name": "runs_project_id_id_pk",
1019
+ "columns": ["project_id", "id"]
1020
+ }
1021
+ },
1022
+ "uniqueConstraints": {},
1023
+ "policies": {},
1024
+ "checkConstraints": {
1025
+ "run_cursor_nonnegative": {
1026
+ "name": "run_cursor_nonnegative",
1027
+ "value": "\"qa\".\"runs\".\"last_seq\" >= 0 AND \"qa\".\"runs\".\"last_t\" >= 0 AND \"qa\".\"runs\".\"event_count\" >= 0 AND \"qa\".\"runs\".\"event_bytes\" >= 0"
1028
+ }
1029
+ },
1030
+ "isRLSEnabled": false
1031
+ },
1032
+ "qa.server_submissions": {
1033
+ "name": "server_submissions",
1034
+ "schema": "qa",
1035
+ "columns": {
1036
+ "project_id": {
1037
+ "name": "project_id",
1038
+ "type": "text",
1039
+ "primaryKey": false,
1040
+ "notNull": true
1041
+ },
1042
+ "principal_id": {
1043
+ "name": "principal_id",
1044
+ "type": "text",
1045
+ "primaryKey": false,
1046
+ "notNull": true
1047
+ },
1048
+ "idempotency_key": {
1049
+ "name": "idempotency_key",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": true
1053
+ },
1054
+ "fingerprint": {
1055
+ "name": "fingerprint",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": true
1059
+ },
1060
+ "batch_id": {
1061
+ "name": "batch_id",
1062
+ "type": "text",
1063
+ "primaryKey": false,
1064
+ "notNull": true
1065
+ },
1066
+ "response": {
1067
+ "name": "response",
1068
+ "type": "jsonb",
1069
+ "primaryKey": false,
1070
+ "notNull": true
1071
+ },
1072
+ "created_at": {
1073
+ "name": "created_at",
1074
+ "type": "timestamp with time zone",
1075
+ "primaryKey": false,
1076
+ "notNull": true,
1077
+ "default": "now()"
1078
+ }
1079
+ },
1080
+ "indexes": {
1081
+ "submission_batch": {
1082
+ "name": "submission_batch",
1083
+ "columns": [
1084
+ {
1085
+ "expression": "project_id",
1086
+ "isExpression": false,
1087
+ "asc": true,
1088
+ "nulls": "last"
1089
+ },
1090
+ {
1091
+ "expression": "batch_id",
1092
+ "isExpression": false,
1093
+ "asc": true,
1094
+ "nulls": "last"
1095
+ }
1096
+ ],
1097
+ "isUnique": true,
1098
+ "concurrently": false,
1099
+ "method": "btree",
1100
+ "with": {}
1101
+ },
1102
+ "submission_created": {
1103
+ "name": "submission_created",
1104
+ "columns": [
1105
+ {
1106
+ "expression": "project_id",
1107
+ "isExpression": false,
1108
+ "asc": true,
1109
+ "nulls": "last"
1110
+ },
1111
+ {
1112
+ "expression": "created_at",
1113
+ "isExpression": false,
1114
+ "asc": false,
1115
+ "nulls": "last"
1116
+ },
1117
+ {
1118
+ "expression": "batch_id",
1119
+ "isExpression": false,
1120
+ "asc": true,
1121
+ "nulls": "last"
1122
+ }
1123
+ ],
1124
+ "isUnique": false,
1125
+ "concurrently": false,
1126
+ "method": "btree",
1127
+ "with": {}
1128
+ }
1129
+ },
1130
+ "foreignKeys": {
1131
+ "server_submissions_project_id_batch_id_batches_project_id_id_fk": {
1132
+ "name": "server_submissions_project_id_batch_id_batches_project_id_id_fk",
1133
+ "tableFrom": "server_submissions",
1134
+ "tableTo": "batches",
1135
+ "schemaTo": "qa",
1136
+ "columnsFrom": ["project_id", "batch_id"],
1137
+ "columnsTo": ["project_id", "id"],
1138
+ "onDelete": "no action",
1139
+ "onUpdate": "no action"
1140
+ }
1141
+ },
1142
+ "compositePrimaryKeys": {
1143
+ "server_submissions_project_id_principal_id_idempotency_key_pk": {
1144
+ "name": "server_submissions_project_id_principal_id_idempotency_key_pk",
1145
+ "columns": ["project_id", "principal_id", "idempotency_key"]
1146
+ }
1147
+ },
1148
+ "uniqueConstraints": {},
1149
+ "policies": {},
1150
+ "checkConstraints": {},
1151
+ "isRLSEnabled": false
1152
+ },
1153
+ "qa.step_runs": {
1154
+ "name": "step_runs",
1155
+ "schema": "qa",
1156
+ "columns": {
1157
+ "project_id": {
1158
+ "name": "project_id",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": true
1162
+ },
1163
+ "run_id": {
1164
+ "name": "run_id",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": true
1168
+ },
1169
+ "actor": {
1170
+ "name": "actor",
1171
+ "type": "text",
1172
+ "primaryKey": false,
1173
+ "notNull": true
1174
+ },
1175
+ "step": {
1176
+ "name": "step",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": true
1180
+ },
1181
+ "seq": {
1182
+ "name": "seq",
1183
+ "type": "bigint",
1184
+ "primaryKey": false,
1185
+ "notNull": true
1186
+ },
1187
+ "status": {
1188
+ "name": "status",
1189
+ "type": "text",
1190
+ "primaryKey": false,
1191
+ "notNull": true
1192
+ },
1193
+ "started_at": {
1194
+ "name": "started_at",
1195
+ "type": "double precision",
1196
+ "primaryKey": false,
1197
+ "notNull": true
1198
+ },
1199
+ "finished_at": {
1200
+ "name": "finished_at",
1201
+ "type": "double precision",
1202
+ "primaryKey": false,
1203
+ "notNull": false
1204
+ }
1205
+ },
1206
+ "indexes": {},
1207
+ "foreignKeys": {
1208
+ "step_runs_project_id_run_id_runs_project_id_id_fk": {
1209
+ "name": "step_runs_project_id_run_id_runs_project_id_id_fk",
1210
+ "tableFrom": "step_runs",
1211
+ "tableTo": "runs",
1212
+ "schemaTo": "qa",
1213
+ "columnsFrom": ["project_id", "run_id"],
1214
+ "columnsTo": ["project_id", "id"],
1215
+ "onDelete": "no action",
1216
+ "onUpdate": "no action"
1217
+ }
1218
+ },
1219
+ "compositePrimaryKeys": {
1220
+ "step_runs_project_id_run_id_seq_pk": {
1221
+ "name": "step_runs_project_id_run_id_seq_pk",
1222
+ "columns": ["project_id", "run_id", "seq"]
1223
+ }
1224
+ },
1225
+ "uniqueConstraints": {},
1226
+ "policies": {},
1227
+ "checkConstraints": {},
1228
+ "isRLSEnabled": false
1229
+ }
1230
+ },
1231
+ "enums": {},
1232
+ "schemas": {
1233
+ "qa": "qa"
1234
+ },
1235
+ "sequences": {},
1236
+ "roles": {},
1237
+ "policies": {},
1238
+ "views": {},
1239
+ "_meta": {
1240
+ "columns": {},
1241
+ "schemas": {},
1242
+ "tables": {}
1243
+ }
1244
+ }