@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,1081 @@
1
+ {
2
+ "id": "7199c3f8-9919-4f6a-a4d9-4a5ad6432246",
3
+ "prevId": "8072c694-3720-4fab-9bc1-e3e07b1938fa",
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
+ },
222
+ "indexes": {},
223
+ "foreignKeys": {},
224
+ "compositePrimaryKeys": {
225
+ "credentials_project_id_user_id_provider_pk": {
226
+ "name": "credentials_project_id_user_id_provider_pk",
227
+ "columns": ["project_id", "user_id", "provider"]
228
+ }
229
+ },
230
+ "uniqueConstraints": {},
231
+ "policies": {},
232
+ "checkConstraints": {},
233
+ "isRLSEnabled": false
234
+ },
235
+ "qa.event_chunks": {
236
+ "name": "event_chunks",
237
+ "schema": "qa",
238
+ "columns": {
239
+ "project_id": {
240
+ "name": "project_id",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": true
244
+ },
245
+ "run_id": {
246
+ "name": "run_id",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true
250
+ },
251
+ "id": {
252
+ "name": "id",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true
256
+ },
257
+ "object_key": {
258
+ "name": "object_key",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": true
262
+ },
263
+ "sha256": {
264
+ "name": "sha256",
265
+ "type": "text",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ },
269
+ "count": {
270
+ "name": "count",
271
+ "type": "integer",
272
+ "primaryKey": false,
273
+ "notNull": true
274
+ },
275
+ "bytes": {
276
+ "name": "bytes",
277
+ "type": "integer",
278
+ "primaryKey": false,
279
+ "notNull": true
280
+ },
281
+ "first_seq": {
282
+ "name": "first_seq",
283
+ "type": "bigint",
284
+ "primaryKey": false,
285
+ "notNull": true
286
+ },
287
+ "last_seq": {
288
+ "name": "last_seq",
289
+ "type": "bigint",
290
+ "primaryKey": false,
291
+ "notNull": true
292
+ },
293
+ "first_t": {
294
+ "name": "first_t",
295
+ "type": "double precision",
296
+ "primaryKey": false,
297
+ "notNull": true
298
+ },
299
+ "last_t": {
300
+ "name": "last_t",
301
+ "type": "double precision",
302
+ "primaryKey": false,
303
+ "notNull": true
304
+ },
305
+ "state": {
306
+ "name": "state",
307
+ "type": "text",
308
+ "primaryKey": false,
309
+ "notNull": true,
310
+ "default": "'uploading'"
311
+ },
312
+ "cleaned_at": {
313
+ "name": "cleaned_at",
314
+ "type": "timestamp with time zone",
315
+ "primaryKey": false,
316
+ "notNull": false
317
+ },
318
+ "created_at": {
319
+ "name": "created_at",
320
+ "type": "timestamp with time zone",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "default": "now()"
324
+ }
325
+ },
326
+ "indexes": {
327
+ "event_object_key": {
328
+ "name": "event_object_key",
329
+ "columns": [
330
+ {
331
+ "expression": "object_key",
332
+ "isExpression": false,
333
+ "asc": true,
334
+ "nulls": "last"
335
+ }
336
+ ],
337
+ "isUnique": true,
338
+ "concurrently": false,
339
+ "method": "btree",
340
+ "with": {}
341
+ }
342
+ },
343
+ "foreignKeys": {
344
+ "event_chunks_project_id_run_id_runs_project_id_id_fk": {
345
+ "name": "event_chunks_project_id_run_id_runs_project_id_id_fk",
346
+ "tableFrom": "event_chunks",
347
+ "tableTo": "runs",
348
+ "schemaTo": "qa",
349
+ "columnsFrom": ["project_id", "run_id"],
350
+ "columnsTo": ["project_id", "id"],
351
+ "onDelete": "no action",
352
+ "onUpdate": "no action"
353
+ }
354
+ },
355
+ "compositePrimaryKeys": {
356
+ "event_chunks_project_id_run_id_id_pk": {
357
+ "name": "event_chunks_project_id_run_id_id_pk",
358
+ "columns": ["project_id", "run_id", "id"]
359
+ }
360
+ },
361
+ "uniqueConstraints": {},
362
+ "policies": {},
363
+ "checkConstraints": {
364
+ "chunk_state": {
365
+ "name": "chunk_state",
366
+ "value": "\"qa\".\"event_chunks\".\"state\" IN ('uploading','committed','abandoned','cleaned')"
367
+ },
368
+ "chunk_range": {
369
+ "name": "chunk_range",
370
+ "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\""
371
+ }
372
+ },
373
+ "isRLSEnabled": false
374
+ },
375
+ "qa.events": {
376
+ "name": "events",
377
+ "schema": "qa",
378
+ "columns": {
379
+ "project_id": {
380
+ "name": "project_id",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": true
384
+ },
385
+ "run_id": {
386
+ "name": "run_id",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true
390
+ },
391
+ "seq": {
392
+ "name": "seq",
393
+ "type": "bigint",
394
+ "primaryKey": false,
395
+ "notNull": true
396
+ },
397
+ "t": {
398
+ "name": "t",
399
+ "type": "double precision",
400
+ "primaryKey": false,
401
+ "notNull": true
402
+ },
403
+ "kind": {
404
+ "name": "kind",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": true
408
+ },
409
+ "actor": {
410
+ "name": "actor",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": false
414
+ },
415
+ "step": {
416
+ "name": "step",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false
420
+ },
421
+ "chunk_id": {
422
+ "name": "chunk_id",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": true
426
+ },
427
+ "offset": {
428
+ "name": "offset",
429
+ "type": "integer",
430
+ "primaryKey": false,
431
+ "notNull": true
432
+ }
433
+ },
434
+ "indexes": {},
435
+ "foreignKeys": {
436
+ "events_project_id_run_id_chunk_id_event_chunks_project_id_run_id_id_fk": {
437
+ "name": "events_project_id_run_id_chunk_id_event_chunks_project_id_run_id_id_fk",
438
+ "tableFrom": "events",
439
+ "tableTo": "event_chunks",
440
+ "schemaTo": "qa",
441
+ "columnsFrom": ["project_id", "run_id", "chunk_id"],
442
+ "columnsTo": ["project_id", "run_id", "id"],
443
+ "onDelete": "no action",
444
+ "onUpdate": "no action"
445
+ }
446
+ },
447
+ "compositePrimaryKeys": {
448
+ "events_project_id_run_id_seq_pk": {
449
+ "name": "events_project_id_run_id_seq_pk",
450
+ "columns": ["project_id", "run_id", "seq"]
451
+ }
452
+ },
453
+ "uniqueConstraints": {},
454
+ "policies": {},
455
+ "checkConstraints": {},
456
+ "isRLSEnabled": false
457
+ },
458
+ "qa.jobs": {
459
+ "name": "jobs",
460
+ "schema": "qa",
461
+ "columns": {
462
+ "project_id": {
463
+ "name": "project_id",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": true
467
+ },
468
+ "id": {
469
+ "name": "id",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true
473
+ },
474
+ "run_id": {
475
+ "name": "run_id",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": true
479
+ },
480
+ "state": {
481
+ "name": "state",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": true,
485
+ "default": "'queued'"
486
+ },
487
+ "available_at": {
488
+ "name": "available_at",
489
+ "type": "timestamp with time zone",
490
+ "primaryKey": false,
491
+ "notNull": true,
492
+ "default": "now()"
493
+ },
494
+ "attempts": {
495
+ "name": "attempts",
496
+ "type": "integer",
497
+ "primaryKey": false,
498
+ "notNull": true,
499
+ "default": 0
500
+ }
501
+ },
502
+ "indexes": {
503
+ "jobs_available": {
504
+ "name": "jobs_available",
505
+ "columns": [
506
+ {
507
+ "expression": "project_id",
508
+ "isExpression": false,
509
+ "asc": true,
510
+ "nulls": "last"
511
+ },
512
+ {
513
+ "expression": "state",
514
+ "isExpression": false,
515
+ "asc": true,
516
+ "nulls": "last"
517
+ },
518
+ {
519
+ "expression": "available_at",
520
+ "isExpression": false,
521
+ "asc": true,
522
+ "nulls": "last"
523
+ }
524
+ ],
525
+ "isUnique": false,
526
+ "concurrently": false,
527
+ "method": "btree",
528
+ "with": {}
529
+ }
530
+ },
531
+ "foreignKeys": {
532
+ "jobs_project_id_run_id_runs_project_id_id_fk": {
533
+ "name": "jobs_project_id_run_id_runs_project_id_id_fk",
534
+ "tableFrom": "jobs",
535
+ "tableTo": "runs",
536
+ "schemaTo": "qa",
537
+ "columnsFrom": ["project_id", "run_id"],
538
+ "columnsTo": ["project_id", "id"],
539
+ "onDelete": "no action",
540
+ "onUpdate": "no action"
541
+ }
542
+ },
543
+ "compositePrimaryKeys": {
544
+ "jobs_project_id_id_pk": {
545
+ "name": "jobs_project_id_id_pk",
546
+ "columns": ["project_id", "id"]
547
+ }
548
+ },
549
+ "uniqueConstraints": {},
550
+ "policies": {},
551
+ "checkConstraints": {},
552
+ "isRLSEnabled": false
553
+ },
554
+ "qa.lanes": {
555
+ "name": "lanes",
556
+ "schema": "qa",
557
+ "columns": {
558
+ "project_id": {
559
+ "name": "project_id",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true
563
+ },
564
+ "run_id": {
565
+ "name": "run_id",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": true
569
+ },
570
+ "actor": {
571
+ "name": "actor",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": true
575
+ },
576
+ "status": {
577
+ "name": "status",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": true
581
+ },
582
+ "started_at": {
583
+ "name": "started_at",
584
+ "type": "double precision",
585
+ "primaryKey": false,
586
+ "notNull": true
587
+ },
588
+ "finished_at": {
589
+ "name": "finished_at",
590
+ "type": "double precision",
591
+ "primaryKey": false,
592
+ "notNull": false
593
+ }
594
+ },
595
+ "indexes": {},
596
+ "foreignKeys": {
597
+ "lanes_project_id_run_id_runs_project_id_id_fk": {
598
+ "name": "lanes_project_id_run_id_runs_project_id_id_fk",
599
+ "tableFrom": "lanes",
600
+ "tableTo": "runs",
601
+ "schemaTo": "qa",
602
+ "columnsFrom": ["project_id", "run_id"],
603
+ "columnsTo": ["project_id", "id"],
604
+ "onDelete": "no action",
605
+ "onUpdate": "no action"
606
+ }
607
+ },
608
+ "compositePrimaryKeys": {
609
+ "lanes_project_id_run_id_actor_pk": {
610
+ "name": "lanes_project_id_run_id_actor_pk",
611
+ "columns": ["project_id", "run_id", "actor"]
612
+ }
613
+ },
614
+ "uniqueConstraints": {},
615
+ "policies": {},
616
+ "checkConstraints": {},
617
+ "isRLSEnabled": false
618
+ },
619
+ "qa.lease_claims": {
620
+ "name": "lease_claims",
621
+ "schema": "qa",
622
+ "columns": {
623
+ "project_id": {
624
+ "name": "project_id",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": true
628
+ },
629
+ "identity": {
630
+ "name": "identity",
631
+ "type": "text",
632
+ "primaryKey": false,
633
+ "notNull": true
634
+ },
635
+ "lease_id": {
636
+ "name": "lease_id",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ }
641
+ },
642
+ "indexes": {},
643
+ "foreignKeys": {
644
+ "lease_claims_project_id_lease_id_leases_project_id_id_fk": {
645
+ "name": "lease_claims_project_id_lease_id_leases_project_id_id_fk",
646
+ "tableFrom": "lease_claims",
647
+ "tableTo": "leases",
648
+ "schemaTo": "qa",
649
+ "columnsFrom": ["project_id", "lease_id"],
650
+ "columnsTo": ["project_id", "id"],
651
+ "onDelete": "no action",
652
+ "onUpdate": "no action"
653
+ }
654
+ },
655
+ "compositePrimaryKeys": {
656
+ "lease_claims_project_id_identity_pk": {
657
+ "name": "lease_claims_project_id_identity_pk",
658
+ "columns": ["project_id", "identity"]
659
+ }
660
+ },
661
+ "uniqueConstraints": {},
662
+ "policies": {},
663
+ "checkConstraints": {},
664
+ "isRLSEnabled": false
665
+ },
666
+ "qa.lease_resources": {
667
+ "name": "lease_resources",
668
+ "schema": "qa",
669
+ "columns": {
670
+ "project_id": {
671
+ "name": "project_id",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": true
675
+ },
676
+ "id": {
677
+ "name": "id",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": true
681
+ },
682
+ "kind": {
683
+ "name": "kind",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true
687
+ },
688
+ "canonical_id": {
689
+ "name": "canonical_id",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true
693
+ },
694
+ "secret_ref": {
695
+ "name": "secret_ref",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": true
699
+ }
700
+ },
701
+ "indexes": {
702
+ "resource_kinds": {
703
+ "name": "resource_kinds",
704
+ "columns": [
705
+ {
706
+ "expression": "project_id",
707
+ "isExpression": false,
708
+ "asc": true,
709
+ "nulls": "last"
710
+ },
711
+ {
712
+ "expression": "kind",
713
+ "isExpression": false,
714
+ "asc": true,
715
+ "nulls": "last"
716
+ }
717
+ ],
718
+ "isUnique": false,
719
+ "concurrently": false,
720
+ "method": "btree",
721
+ "with": {}
722
+ }
723
+ },
724
+ "foreignKeys": {},
725
+ "compositePrimaryKeys": {
726
+ "lease_resources_project_id_id_pk": {
727
+ "name": "lease_resources_project_id_id_pk",
728
+ "columns": ["project_id", "id"]
729
+ }
730
+ },
731
+ "uniqueConstraints": {},
732
+ "policies": {},
733
+ "checkConstraints": {},
734
+ "isRLSEnabled": false
735
+ },
736
+ "qa.leases": {
737
+ "name": "leases",
738
+ "schema": "qa",
739
+ "columns": {
740
+ "project_id": {
741
+ "name": "project_id",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": true
745
+ },
746
+ "id": {
747
+ "name": "id",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": true
751
+ },
752
+ "run_id": {
753
+ "name": "run_id",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": true
757
+ },
758
+ "actor": {
759
+ "name": "actor",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": true
763
+ },
764
+ "owner": {
765
+ "name": "owner",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": true
769
+ },
770
+ "epoch": {
771
+ "name": "epoch",
772
+ "type": "bigserial",
773
+ "primaryKey": false,
774
+ "notNull": true
775
+ },
776
+ "state": {
777
+ "name": "state",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": true,
781
+ "default": "'active'"
782
+ },
783
+ "expires_at": {
784
+ "name": "expires_at",
785
+ "type": "timestamp with time zone",
786
+ "primaryKey": false,
787
+ "notNull": true
788
+ },
789
+ "allocations": {
790
+ "name": "allocations",
791
+ "type": "jsonb",
792
+ "primaryKey": false,
793
+ "notNull": true
794
+ }
795
+ },
796
+ "indexes": {},
797
+ "foreignKeys": {},
798
+ "compositePrimaryKeys": {
799
+ "leases_project_id_id_pk": {
800
+ "name": "leases_project_id_id_pk",
801
+ "columns": ["project_id", "id"]
802
+ }
803
+ },
804
+ "uniqueConstraints": {},
805
+ "policies": {},
806
+ "checkConstraints": {
807
+ "lease_state": {
808
+ "name": "lease_state",
809
+ "value": "\"qa\".\"leases\".\"state\" IN ('active','quarantined','released')"
810
+ }
811
+ },
812
+ "isRLSEnabled": false
813
+ },
814
+ "qa.runs": {
815
+ "name": "runs",
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
+ "batch_id": {
831
+ "name": "batch_id",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": false
835
+ },
836
+ "flow": {
837
+ "name": "flow",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true
841
+ },
842
+ "started_at": {
843
+ "name": "started_at",
844
+ "type": "double precision",
845
+ "primaryKey": false,
846
+ "notNull": true
847
+ },
848
+ "metadata": {
849
+ "name": "metadata",
850
+ "type": "jsonb",
851
+ "primaryKey": false,
852
+ "notNull": false
853
+ },
854
+ "phase": {
855
+ "name": "phase",
856
+ "type": "text",
857
+ "primaryKey": false,
858
+ "notNull": true,
859
+ "default": "'queued'"
860
+ },
861
+ "verdict": {
862
+ "name": "verdict",
863
+ "type": "text",
864
+ "primaryKey": false,
865
+ "notNull": false
866
+ },
867
+ "finished_at": {
868
+ "name": "finished_at",
869
+ "type": "double precision",
870
+ "primaryKey": false,
871
+ "notNull": false
872
+ },
873
+ "reason": {
874
+ "name": "reason",
875
+ "type": "text",
876
+ "primaryKey": false,
877
+ "notNull": false
878
+ },
879
+ "event_count": {
880
+ "name": "event_count",
881
+ "type": "integer",
882
+ "primaryKey": false,
883
+ "notNull": true,
884
+ "default": 0
885
+ },
886
+ "last_seq": {
887
+ "name": "last_seq",
888
+ "type": "bigint",
889
+ "primaryKey": false,
890
+ "notNull": true,
891
+ "default": 0
892
+ },
893
+ "last_t": {
894
+ "name": "last_t",
895
+ "type": "double precision",
896
+ "primaryKey": false,
897
+ "notNull": true,
898
+ "default": 0
899
+ },
900
+ "event_bytes": {
901
+ "name": "event_bytes",
902
+ "type": "bigint",
903
+ "primaryKey": false,
904
+ "notNull": true,
905
+ "default": 0
906
+ },
907
+ "writer_lease_id": {
908
+ "name": "writer_lease_id",
909
+ "type": "text",
910
+ "primaryKey": false,
911
+ "notNull": false
912
+ },
913
+ "heartbeat_at": {
914
+ "name": "heartbeat_at",
915
+ "type": "timestamp with time zone",
916
+ "primaryKey": false,
917
+ "notNull": false
918
+ },
919
+ "cost_usd": {
920
+ "name": "cost_usd",
921
+ "type": "double precision",
922
+ "primaryKey": false,
923
+ "notNull": true,
924
+ "default": 0
925
+ },
926
+ "classification": {
927
+ "name": "classification",
928
+ "type": "text",
929
+ "primaryKey": false,
930
+ "notNull": false
931
+ }
932
+ },
933
+ "indexes": {
934
+ "runs_recent": {
935
+ "name": "runs_recent",
936
+ "columns": [
937
+ {
938
+ "expression": "project_id",
939
+ "isExpression": false,
940
+ "asc": true,
941
+ "nulls": "last"
942
+ },
943
+ {
944
+ "expression": "started_at",
945
+ "isExpression": false,
946
+ "asc": false,
947
+ "nulls": "last"
948
+ },
949
+ {
950
+ "expression": "\"id\" COLLATE \"C\"",
951
+ "asc": true,
952
+ "isExpression": true,
953
+ "nulls": "last"
954
+ }
955
+ ],
956
+ "isUnique": false,
957
+ "concurrently": false,
958
+ "method": "btree",
959
+ "with": {}
960
+ }
961
+ },
962
+ "foreignKeys": {
963
+ "runs_project_id_batch_id_batches_project_id_id_fk": {
964
+ "name": "runs_project_id_batch_id_batches_project_id_id_fk",
965
+ "tableFrom": "runs",
966
+ "tableTo": "batches",
967
+ "schemaTo": "qa",
968
+ "columnsFrom": ["project_id", "batch_id"],
969
+ "columnsTo": ["project_id", "id"],
970
+ "onDelete": "no action",
971
+ "onUpdate": "no action"
972
+ }
973
+ },
974
+ "compositePrimaryKeys": {
975
+ "runs_project_id_id_pk": {
976
+ "name": "runs_project_id_id_pk",
977
+ "columns": ["project_id", "id"]
978
+ }
979
+ },
980
+ "uniqueConstraints": {},
981
+ "policies": {},
982
+ "checkConstraints": {
983
+ "run_cursor_nonnegative": {
984
+ "name": "run_cursor_nonnegative",
985
+ "value": "\"qa\".\"runs\".\"last_seq\" >= 0 AND \"qa\".\"runs\".\"last_t\" >= 0 AND \"qa\".\"runs\".\"event_count\" >= 0 AND \"qa\".\"runs\".\"event_bytes\" >= 0"
986
+ }
987
+ },
988
+ "isRLSEnabled": false
989
+ },
990
+ "qa.step_runs": {
991
+ "name": "step_runs",
992
+ "schema": "qa",
993
+ "columns": {
994
+ "project_id": {
995
+ "name": "project_id",
996
+ "type": "text",
997
+ "primaryKey": false,
998
+ "notNull": true
999
+ },
1000
+ "run_id": {
1001
+ "name": "run_id",
1002
+ "type": "text",
1003
+ "primaryKey": false,
1004
+ "notNull": true
1005
+ },
1006
+ "actor": {
1007
+ "name": "actor",
1008
+ "type": "text",
1009
+ "primaryKey": false,
1010
+ "notNull": true
1011
+ },
1012
+ "step": {
1013
+ "name": "step",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": true
1017
+ },
1018
+ "seq": {
1019
+ "name": "seq",
1020
+ "type": "bigint",
1021
+ "primaryKey": false,
1022
+ "notNull": true
1023
+ },
1024
+ "status": {
1025
+ "name": "status",
1026
+ "type": "text",
1027
+ "primaryKey": false,
1028
+ "notNull": true
1029
+ },
1030
+ "started_at": {
1031
+ "name": "started_at",
1032
+ "type": "double precision",
1033
+ "primaryKey": false,
1034
+ "notNull": true
1035
+ },
1036
+ "finished_at": {
1037
+ "name": "finished_at",
1038
+ "type": "double precision",
1039
+ "primaryKey": false,
1040
+ "notNull": false
1041
+ }
1042
+ },
1043
+ "indexes": {},
1044
+ "foreignKeys": {
1045
+ "step_runs_project_id_run_id_runs_project_id_id_fk": {
1046
+ "name": "step_runs_project_id_run_id_runs_project_id_id_fk",
1047
+ "tableFrom": "step_runs",
1048
+ "tableTo": "runs",
1049
+ "schemaTo": "qa",
1050
+ "columnsFrom": ["project_id", "run_id"],
1051
+ "columnsTo": ["project_id", "id"],
1052
+ "onDelete": "no action",
1053
+ "onUpdate": "no action"
1054
+ }
1055
+ },
1056
+ "compositePrimaryKeys": {
1057
+ "step_runs_project_id_run_id_seq_pk": {
1058
+ "name": "step_runs_project_id_run_id_seq_pk",
1059
+ "columns": ["project_id", "run_id", "seq"]
1060
+ }
1061
+ },
1062
+ "uniqueConstraints": {},
1063
+ "policies": {},
1064
+ "checkConstraints": {},
1065
+ "isRLSEnabled": false
1066
+ }
1067
+ },
1068
+ "enums": {},
1069
+ "schemas": {
1070
+ "qa": "qa"
1071
+ },
1072
+ "sequences": {},
1073
+ "roles": {},
1074
+ "policies": {},
1075
+ "views": {},
1076
+ "_meta": {
1077
+ "columns": {},
1078
+ "schemas": {},
1079
+ "tables": {}
1080
+ }
1081
+ }