plaincrew 0.1.0 → 0.2.0

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 (456) hide show
  1. package/README.md +6 -4
  2. package/app-build/BUILD_ID +1 -1
  3. package/app-build/app-path-routes-manifest.json +7 -0
  4. package/app-build/build-manifest.json +32 -21
  5. package/app-build/diagnostics/route-bundle-stats.json +55 -32
  6. package/app-build/fallback-build-manifest.json +3 -3
  7. package/app-build/routes-manifest.json +46 -0
  8. package/app-build/server/app/_global-error/page/build-manifest.json +3 -3
  9. package/app-build/server/app/_global-error/page.js +1 -1
  10. package/app-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/app-build/server/app/_global-error.html +1 -1
  12. package/app-build/server/app/_global-error.rsc +1 -1
  13. package/app-build/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  14. package/app-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  15. package/app-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/app-build/server/app/_not-found/page/build-manifest.json +3 -3
  17. package/app-build/server/app/_not-found/page.js +1 -1
  18. package/app-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/app-build/server/app/_not-found.html +1 -1
  20. package/app-build/server/app/_not-found.rsc +2 -2
  21. package/app-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
  22. package/app-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  23. package/app-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/app-build/server/app/api/account/ai/route.js +14 -8
  25. package/app-build/server/app/api/account/leaving/route.js +13 -7
  26. package/app-build/server/app/api/ais/models/route.js +14 -8
  27. package/app-build/server/app/api/attachments/route.js +13 -7
  28. package/app-build/server/app/api/auth/[...all]/route.js +14 -8
  29. package/app-build/server/app/api/cloud/enter/route/app-paths-manifest.json +3 -0
  30. package/app-build/server/app/api/cloud/enter/route/build-manifest.json +12 -0
  31. package/app-build/server/app/api/cloud/enter/route/server-reference-manifest.json +4 -0
  32. package/app-build/server/app/api/cloud/enter/route.js +20 -0
  33. package/app-build/server/app/api/cloud/enter/route_client-reference-manifest.js +3 -0
  34. package/app-build/server/app/api/connect/[code]/approve/route/app-paths-manifest.json +3 -0
  35. package/app-build/server/app/api/connect/[code]/approve/route/build-manifest.json +12 -0
  36. package/app-build/server/app/api/connect/[code]/approve/route/server-reference-manifest.json +4 -0
  37. package/app-build/server/app/api/connect/[code]/approve/route.js +23 -0
  38. package/app-build/server/app/api/connect/[code]/approve/route_client-reference-manifest.js +3 -0
  39. package/app-build/server/app/api/connect/[code]/route/app-paths-manifest.json +3 -0
  40. package/app-build/server/app/api/connect/[code]/route/build-manifest.json +12 -0
  41. package/app-build/server/app/api/connect/[code]/route/server-reference-manifest.json +4 -0
  42. package/app-build/server/app/api/connect/[code]/route.js +11 -0
  43. package/app-build/server/app/api/connect/[code]/route_client-reference-manifest.js +3 -0
  44. package/app-build/server/app/api/connect/route/app-paths-manifest.json +3 -0
  45. package/app-build/server/app/api/connect/route/build-manifest.json +12 -0
  46. package/app-build/server/app/api/connect/route/server-reference-manifest.json +4 -0
  47. package/app-build/server/app/api/connect/route.js +11 -0
  48. package/app-build/server/app/api/connect/route_client-reference-manifest.js +3 -0
  49. package/app-build/server/app/api/health/route/app-paths-manifest.json +3 -0
  50. package/app-build/server/app/api/health/route/build-manifest.json +12 -0
  51. package/app-build/server/app/api/health/route/server-reference-manifest.json +4 -0
  52. package/app-build/server/app/api/health/route.js +8 -0
  53. package/app-build/server/app/api/health/route_client-reference-manifest.js +3 -0
  54. package/app-build/server/app/api/inngest/route.js +14 -12
  55. package/app-build/server/app/api/organization/route.js +13 -7
  56. package/app-build/server/app/api/projects/[id]/base/route.js +13 -7
  57. package/app-build/server/app/api/projects/[id]/github/route.js +14 -8
  58. package/app-build/server/app/api/projects/[id]/notes/[noteId]/route.js +14 -8
  59. package/app-build/server/app/api/projects/[id]/notes/route.js +14 -8
  60. package/app-build/server/app/api/projects/[id]/route.js +14 -8
  61. package/app-build/server/app/api/projects/[id]/site/route.js +14 -8
  62. package/app-build/server/app/api/projects/analyze/route.js +13 -7
  63. package/app-build/server/app/api/projects/route.js +20 -13
  64. package/app-build/server/app/api/projects/scratch/route.js +22 -15
  65. package/app-build/server/app/api/runs/[runId]/blocks/[blockId]/route.js +12 -6
  66. package/app-build/server/app/api/runs/[runId]/branch-name/route.js +12 -6
  67. package/app-build/server/app/api/runs/[runId]/cancel/route.js +18 -12
  68. package/app-build/server/app/api/runs/[runId]/connect-github/route.js +14 -8
  69. package/app-build/server/app/api/runs/[runId]/decision/route.js +14 -8
  70. package/app-build/server/app/api/runs/[runId]/delivery/route.js +13 -7
  71. package/app-build/server/app/api/runs/[runId]/events/route.js +13 -7
  72. package/app-build/server/app/api/runs/[runId]/failure/explain/route.js +14 -8
  73. package/app-build/server/app/api/runs/[runId]/failure/route.js +15 -9
  74. package/app-build/server/app/api/runs/[runId]/findings/route.js +20 -14
  75. package/app-build/server/app/api/runs/[runId]/follow-up/route.js +20 -14
  76. package/app-build/server/app/api/runs/[runId]/plan/route.js +16 -10
  77. package/app-build/server/app/api/runs/[runId]/preview/route.js +16 -10
  78. package/app-build/server/app/api/runs/[runId]/prompts/route.js +14 -8
  79. package/app-build/server/app/api/runs/[runId]/questions/[questionId]/route.js +21 -15
  80. package/app-build/server/app/api/runs/[runId]/review/route.js +13 -7
  81. package/app-build/server/app/api/runs/[runId]/route.js +14 -8
  82. package/app-build/server/app/api/runs/[runId]/ship/route.js +18 -12
  83. package/app-build/server/app/api/runs/[runId]/snapshots/[shot]/route.js +12 -6
  84. package/app-build/server/app/api/runs/[runId]/snapshots/route.js +12 -6
  85. package/app-build/server/app/api/runs/[runId]/versions/[n]/route.js +12 -6
  86. package/app-build/server/app/api/runs/[runId]/versions/[n]/site/route.js +14 -8
  87. package/app-build/server/app/api/runs/[runId]/versions/live/route.js +14 -8
  88. package/app-build/server/app/api/runs/[runId]/versions/route.js +12 -6
  89. package/app-build/server/app/api/storage/route/app-paths-manifest.json +3 -0
  90. package/app-build/server/app/api/storage/route/build-manifest.json +12 -0
  91. package/app-build/server/app/api/storage/route/server-reference-manifest.json +4 -0
  92. package/app-build/server/app/api/storage/route.js +11 -0
  93. package/app-build/server/app/api/storage/route_client-reference-manifest.js +3 -0
  94. package/app-build/server/app/api/system/choose-folder/route.js +15 -9
  95. package/app-build/server/app/api/workflows/[id]/draft/route.js +17 -11
  96. package/app-build/server/app/api/workflows/[id]/publish/route.js +19 -13
  97. package/app-build/server/app/api/workflows/[id]/runs/route.js +21 -15
  98. package/app-build/server/app/canvas/[workflowId]/page/build-manifest.json +3 -3
  99. package/app-build/server/app/canvas/[workflowId]/page.js +6 -6
  100. package/app-build/server/app/canvas/[workflowId]/page_client-reference-manifest.js +1 -1
  101. package/app-build/server/app/connect/page/app-paths-manifest.json +3 -0
  102. package/app-build/server/app/connect/page/build-manifest.json +22 -0
  103. package/app-build/server/app/connect/page/next-font-manifest.json +15 -0
  104. package/app-build/server/app/connect/page/react-loadable-manifest.json +1 -0
  105. package/app-build/server/app/connect/page/server-reference-manifest.json +4 -0
  106. package/app-build/server/app/connect/page.js +22 -0
  107. package/app-build/server/app/connect/page_client-reference-manifest.js +3 -0
  108. package/app-build/server/app/icon.svg/route.js +4 -3
  109. package/app-build/server/app/invite/[id]/page/build-manifest.json +3 -3
  110. package/app-build/server/app/invite/[id]/page.js +6 -6
  111. package/app-build/server/app/invite/[id]/page_client-reference-manifest.js +1 -1
  112. package/app-build/server/app/organization/new/page/build-manifest.json +3 -3
  113. package/app-build/server/app/organization/new/page.js +7 -7
  114. package/app-build/server/app/organization/new/page_client-reference-manifest.js +1 -1
  115. package/app-build/server/app/page/build-manifest.json +3 -3
  116. package/app-build/server/app/page.js +6 -6
  117. package/app-build/server/app/page_client-reference-manifest.js +1 -1
  118. package/app-build/server/app/sign-in/page/build-manifest.json +3 -3
  119. package/app-build/server/app/sign-in/page.js +5 -5
  120. package/app-build/server/app/sign-in/page_client-reference-manifest.js +1 -1
  121. package/app-build/server/app/sign-up/page/build-manifest.json +3 -3
  122. package/app-build/server/app/sign-up/page.js +5 -5
  123. package/app-build/server/app/sign-up/page_client-reference-manifest.js +1 -1
  124. package/app-build/server/app-paths-manifest.json +7 -0
  125. package/app-build/server/chunks/[externals]__0kpij9k8-fioh._.js +3 -0
  126. package/app-build/server/chunks/{[externals]__04-ztb9lgz_qk._.js → [externals]__12cr78va7l10m._.js} +1 -1
  127. package/app-build/server/chunks/{[externals]__0qr-zdkva44f-._.js → [externals]__1c4isywy94j7c._.js} +1 -1
  128. package/app-build/server/chunks/{[externals]__0i1ilt3jn8bz-._.js → [externals]__1h-hxq7f0qqrs._.js} +1 -1
  129. package/app-build/server/chunks/{[root-of-the-server]__08fupt7uivknp._.js → [root-of-the-server]__0-hf81cjc9miq._.js} +2 -2
  130. package/app-build/server/chunks/{[root-of-the-server]__0-67bq4krqdly._.js → [root-of-the-server]__01_h69z_7y8hj._.js} +2 -2
  131. package/app-build/server/chunks/[root-of-the-server]__04bfm6aam99jr._.js +3 -0
  132. package/app-build/server/chunks/[root-of-the-server]__04fo6q9-bmsqf._.js +3 -0
  133. package/app-build/server/chunks/[root-of-the-server]__05mrgzj69be88._.js +3 -0
  134. package/app-build/server/chunks/{[root-of-the-server]__0y2ca5kb5-mhs._.js → [root-of-the-server]__06wj_ntp--r7-._.js} +1 -1
  135. package/app-build/server/chunks/[root-of-the-server]__083kealcx1eos._.js +3 -0
  136. package/app-build/server/chunks/[root-of-the-server]__08j3jvnnyh0k3._.js +1 -1
  137. package/app-build/server/chunks/[root-of-the-server]__093bos_8cbc5e._.js +3 -0
  138. package/app-build/server/chunks/[root-of-the-server]__09mx4_ihytiv9._.js +3 -0
  139. package/app-build/server/chunks/[root-of-the-server]__0_use5ykfraw7._.js +12 -12
  140. package/app-build/server/chunks/[root-of-the-server]__0_wicg5sueifn._.js +3 -0
  141. package/app-build/server/chunks/[root-of-the-server]__0c7krm9gpwvm1._.js +3 -0
  142. package/app-build/server/chunks/{[root-of-the-server]__084tpb8hzqbsc._.js → [root-of-the-server]__0d4dt0ywt1ow0._.js} +2 -2
  143. package/app-build/server/chunks/{[root-of-the-server]__076a8rs-5ove6._.js → [root-of-the-server]__0drcpac0a5hru._.js} +2 -2
  144. package/app-build/server/chunks/[root-of-the-server]__0fer144qqb0_6._.js +3 -0
  145. package/app-build/server/chunks/{[root-of-the-server]__0cmedn5yph-qf._.js → [root-of-the-server]__0hryxb3l1_c-b._.js} +2 -2
  146. package/app-build/server/chunks/[root-of-the-server]__0j-5-xlcodeao._.js +3 -0
  147. package/app-build/server/chunks/[root-of-the-server]__0j9vey56ni96j._.js +3 -0
  148. package/app-build/server/chunks/[root-of-the-server]__0k_l2trzzo8vs._.js +1 -1
  149. package/app-build/server/chunks/[root-of-the-server]__0o-3c4wjexyir._.js +3 -0
  150. package/app-build/server/chunks/[root-of-the-server]__0oslh36tklohe._.js +1 -1
  151. package/app-build/server/chunks/[root-of-the-server]__0qwqrlb3b7i0y._.js +3 -0
  152. package/app-build/server/chunks/[root-of-the-server]__0qzb976d_qj48._.js +3 -0
  153. package/app-build/server/chunks/[root-of-the-server]__0qzwj14rh2ym2._.js +3 -0
  154. package/app-build/server/chunks/[root-of-the-server]__0rwo4zg_leice._.js +3 -0
  155. package/app-build/server/chunks/[root-of-the-server]__0tt48asd4bq_v._.js +3 -0
  156. package/app-build/server/chunks/[root-of-the-server]__0wi9o-l23wx21._.js +3 -0
  157. package/app-build/server/chunks/[root-of-the-server]__0x8sjs-qr0fi-._.js +3 -0
  158. package/app-build/server/chunks/[root-of-the-server]__0z7e3um13c2p0._.js +3 -0
  159. package/app-build/server/chunks/[root-of-the-server]__0zb8p36snewnm._.js +1 -1
  160. package/app-build/server/chunks/[root-of-the-server]__11-p_3onzgf2e._.js +3 -0
  161. package/app-build/server/chunks/[root-of-the-server]__111rn2m71ahq1._.js +3 -0
  162. package/app-build/server/chunks/[root-of-the-server]__11vhj0obteagu._.js +3 -0
  163. package/app-build/server/chunks/[root-of-the-server]__153b932lf_ik5._.js +1 -1
  164. package/app-build/server/chunks/[root-of-the-server]__15p8ahu4ip30q._.js +3 -0
  165. package/app-build/server/chunks/[root-of-the-server]__16023he7o7zot._.js +3 -0
  166. package/app-build/server/chunks/[root-of-the-server]__16_r5tdw4ji2s._.js +3 -0
  167. package/app-build/server/chunks/[root-of-the-server]__17bg71e4epczi._.js +3 -0
  168. package/app-build/server/chunks/[root-of-the-server]__17z8-upkyjz-v._.js +3 -0
  169. package/app-build/server/chunks/[root-of-the-server]__1_2bvyen56qja._.js +3 -0
  170. package/app-build/server/chunks/[root-of-the-server]__1_67_outgzgho._.js +3 -0
  171. package/app-build/server/chunks/[root-of-the-server]__1a17c0kjajkbe._.js +3 -0
  172. package/app-build/server/chunks/[root-of-the-server]__1bbm3yv2mh0ob._.js +3 -0
  173. package/app-build/server/chunks/[root-of-the-server]__1dx64weifqusv._.js +3 -0
  174. package/app-build/server/chunks/[root-of-the-server]__1ehsotx9v9v0-._.js +3 -0
  175. package/app-build/server/chunks/[root-of-the-server]__1f1iirzm5u5a-._.js +3 -0
  176. package/app-build/server/chunks/{[root-of-the-server]__0rs3mde7ikr10._.js → [root-of-the-server]__1fg-66qrs9vmd._.js} +2 -2
  177. package/app-build/server/chunks/[root-of-the-server]__1ghp4gx3vslm5._.js +3 -0
  178. package/app-build/server/chunks/[root-of-the-server]__1gt4-5e1kdit3._.js +1 -1
  179. package/app-build/server/chunks/[root-of-the-server]__1irx63ehwr_32._.js +3 -0
  180. package/app-build/server/chunks/[root-of-the-server]__1j82aseh7oyg8._.js +3 -0
  181. package/app-build/server/chunks/[root-of-the-server]__1jwagne56rhyq._.js +3 -0
  182. package/app-build/server/chunks/[root-of-the-server]__1m9ci-2fhznpr._.js +3 -0
  183. package/app-build/server/chunks/[root-of-the-server]__1mh5ulkjr-g0t._.js +1 -1
  184. package/app-build/server/chunks/[root-of-the-server]__1n1otzmcc-pl-._.js +3 -0
  185. package/app-build/server/chunks/[root-of-the-server]__1no1kg2v5558v._.js +3 -0
  186. package/app-build/server/chunks/[root-of-the-server]__1p__xrrmhqted._.js +3 -0
  187. package/app-build/server/chunks/[root-of-the-server]__1rq-k_585r2e9._.js +3 -0
  188. package/app-build/server/chunks/[root-of-the-server]__1su62l6u2edkj._.js +3 -0
  189. package/app-build/server/chunks/[root-of-the-server]__1xodvnju6iwx3._.js +3 -0
  190. package/app-build/server/chunks/[root-of-the-server]__1yrm6-0jop6pq._.js +1 -1
  191. package/app-build/server/chunks/{[root-of-the-server]__198ndqspcvvv8._.js → [root-of-the-server]__20oqzfu0t4513._.js} +2 -2
  192. package/app-build/server/chunks/_00v0id0w247kv._.js +3 -0
  193. package/app-build/server/chunks/_04ipxobgytrai._.js +19 -0
  194. package/app-build/server/chunks/_06_bsixuw5t32._.js +19 -0
  195. package/app-build/server/chunks/_07m78jtsyjmn1._.js +10 -0
  196. package/app-build/server/chunks/_080g7ve3me2dc._.js +3 -0
  197. package/app-build/server/chunks/_09ejh1dyvkto7._.js +10 -0
  198. package/app-build/server/chunks/_0_6-kjk5l5ckf._.js +19 -0
  199. package/app-build/server/chunks/_0_q5vorhn2m7p._.js +19 -0
  200. package/app-build/server/chunks/_0b15uwzi-_wuu._.js +19 -0
  201. package/app-build/server/chunks/_0b2ridyy82jxe._.js +10 -0
  202. package/app-build/server/chunks/_0dn7480wo_c3b._.js +3 -0
  203. package/app-build/server/chunks/_0e2pq-eirvzjq._.js +10 -0
  204. package/app-build/server/chunks/_0et5mjk8ma941._.js +10 -0
  205. package/app-build/server/chunks/_0fx9tvayvawom._.js +19 -0
  206. package/app-build/server/chunks/_0hfgolst82fo-._.js +19 -0
  207. package/app-build/server/chunks/_0mvcmkm58awy6._.js +19 -0
  208. package/app-build/server/chunks/_0n48mbivlprvf._.js +3 -0
  209. package/app-build/server/chunks/_0o8jagzqj8-1r._.js +2 -2
  210. package/app-build/server/chunks/_0p2av7ih_dhj4._.js +19 -0
  211. package/app-build/server/chunks/_0p5fqb7_si6x6._.js +10 -0
  212. package/app-build/server/chunks/_0prtq3d1e3y27._.js +10 -0
  213. package/app-build/server/chunks/_0qjwzjuyaym3p._.js +3 -0
  214. package/app-build/server/chunks/_0rnf-n0hrw3r0._.js +19 -0
  215. package/app-build/server/chunks/_0sqpau27sb7i_._.js +19 -0
  216. package/app-build/server/chunks/_0w3v4t4p9vsb-._.js +5 -5
  217. package/app-build/server/chunks/_0wuc81q3tth-g._.js +19 -0
  218. package/app-build/server/chunks/_0wwb7zpr0_tmw._.js +1 -1
  219. package/app-build/server/chunks/_0x2g7uj3hbyqa._.js +19 -0
  220. package/app-build/server/chunks/_0yi75njq4zxzw._.js +12 -0
  221. package/app-build/server/chunks/_1-bgcffz4bjus._.js +19 -0
  222. package/app-build/server/chunks/_1-y_cqqaf9ob6._.js +3 -0
  223. package/app-build/server/chunks/_1-yeinb4sdagg._.js +19 -0
  224. package/app-build/server/chunks/_108rver1pgqw-._.js +19 -0
  225. package/app-build/server/chunks/_12v43tznpol4u._.js +10 -0
  226. package/app-build/server/chunks/_139ug1e85f3h4._.js +10 -0
  227. package/app-build/server/chunks/_13lb7kts14z5a._.js +3 -0
  228. package/app-build/server/chunks/_143_tdoh-o8r2._.js +19 -0
  229. package/app-build/server/chunks/_146_--s-6f_o-._.js +19 -0
  230. package/app-build/server/chunks/_190n79a8itd96._.js +19 -0
  231. package/app-build/server/chunks/_19_0wmfnwvz9o._.js +10 -0
  232. package/app-build/server/chunks/_19q1zxel7pllh._.js +10 -0
  233. package/app-build/server/chunks/_1bf1pcq2wtg91._.js +10 -0
  234. package/app-build/server/chunks/_1cq7469bqdm3u._.js +10 -0
  235. package/app-build/server/chunks/_1fq2ezphtpgk3._.js +19 -0
  236. package/app-build/server/chunks/_1fv67kzffpbb_._.js +19 -0
  237. package/app-build/server/chunks/_1k79cnpkap3g1._.js +19 -0
  238. package/app-build/server/chunks/_1kwxo3qf7dky_._.js +19 -0
  239. package/app-build/server/chunks/_1l3fh2phky48z._.js +3 -0
  240. package/app-build/server/chunks/_1nvu29lfamrdk._.js +3 -0
  241. package/app-build/server/chunks/_1ob-6ym8mt48u._.js +10 -0
  242. package/app-build/server/chunks/_1p4epxp2kfwl3._.js +19 -0
  243. package/app-build/server/chunks/_1pg4_7uout-4a._.js +3 -0
  244. package/app-build/server/chunks/_1tqh-hw_2xsox._.js +19 -0
  245. package/app-build/server/chunks/_1u_phco4tax56._.js +19 -0
  246. package/app-build/server/chunks/_1unrzazajazmw._.js +19 -0
  247. package/app-build/server/chunks/_1uwtj6yrwszfe._.js +10 -0
  248. package/app-build/server/chunks/_1vb0vvvhh6nh7._.js +10 -0
  249. package/app-build/server/chunks/_1vmf9gx675--i._.js +19 -0
  250. package/app-build/server/chunks/_1wau1ee-6k-7o._.js +5 -5
  251. package/app-build/server/chunks/_1x2pk99sw0irp._.js +1 -1
  252. package/app-build/server/chunks/_1y5_49ip8l9oe._.js +3 -0
  253. package/app-build/server/chunks/_1yho6hc7s0457._.js +5 -5
  254. package/app-build/server/chunks/_20y-6xht4mb44._.js +19 -0
  255. package/app-build/server/chunks/_next-internal_server_app_api_cloud_enter_route_actions_1ykz98qhixfjs.js +3 -0
  256. package/app-build/server/chunks/_next-internal_server_app_api_connect_[code]_approve_route_actions_0ji2m-dij9hl5.js +3 -0
  257. package/app-build/server/chunks/_next-internal_server_app_api_connect_[code]_route_actions_0g60q3c0wvykf.js +3 -0
  258. package/app-build/server/chunks/_next-internal_server_app_api_connect_route_actions_1r5w03mk355_9.js +3 -0
  259. package/app-build/server/chunks/_next-internal_server_app_api_health_route_actions_1ryftkbeskq31.js +3 -0
  260. package/app-build/server/chunks/_next-internal_server_app_api_storage_route_actions_0oc2s3uo_vbg9.js +3 -0
  261. package/app-build/server/chunks/node_modules_@better-auth_core_dist_0u4ij-92kqpy1._.js +5 -0
  262. package/app-build/server/chunks/node_modules_@better-auth_core_dist_1slw0ax7qf28q._.js +5 -0
  263. package/app-build/server/chunks/node_modules_next_1zdbrneapig6o._.js +10 -0
  264. package/app-build/server/chunks/node_modules_ulid_dist_node_index_1p7p0eihcl4xu.js +3 -0
  265. package/app-build/server/chunks/node_modules_zod_v4_classic_schemas_0x4mq4j_us6_1.js +57 -0
  266. package/app-build/server/chunks/src_0akj18zj93gwk._.js +1 -1
  267. package/app-build/server/chunks/src_0gfs644l13a-r._.js +3 -0
  268. package/app-build/server/chunks/src_1d8a0zxtjfsuf._.js +1 -1
  269. package/app-build/server/chunks/src_1fy1guu0m36-q._.js +3 -0
  270. package/app-build/server/chunks/src_1mb1qcardcu_6._.js +1 -1
  271. package/app-build/server/chunks/src_auth_201pnaihqfe_5._.js +1 -1
  272. package/app-build/server/chunks/src_cloud_connect_ts_0-md3vzxn7lpp._.js +3 -0
  273. package/app-build/server/chunks/src_cloud_provision_ts_0ie1awdx54-v7._.js +3 -0
  274. package/app-build/server/chunks/src_db_where_ts_0pjok_m6bv-44._.js +1 -1
  275. package/app-build/server/chunks/src_engine_machine_ts_1l-5d6ibw02uq._.js +3 -0
  276. package/app-build/server/chunks/src_engine_storage_ts_09h_zn3p2eb2o._.js +3 -0
  277. package/app-build/server/chunks/ssr/{[root-of-the-server]__0hvog5ndgreaj._.js → [root-of-the-server]__02fcbpwktzl0e._.js} +1 -1
  278. package/app-build/server/chunks/ssr/{[root-of-the-server]__1wy84x6274wi0._.js → [root-of-the-server]__06kehcks298uq._.js} +1 -1
  279. package/app-build/server/chunks/ssr/{[root-of-the-server]__13jf90nikuz-v._.js → [root-of-the-server]__07qbaxjilfrhb._.js} +1 -1
  280. package/app-build/server/chunks/ssr/{[root-of-the-server]__1t2mfcfc8i815._.js → [root-of-the-server]__0ayx2k8e4n7yj._.js} +1 -1
  281. package/app-build/server/chunks/ssr/{[root-of-the-server]__1vii79aq3jl2m._.js → [root-of-the-server]__0mpgsl517i3-0._.js} +1 -1
  282. package/app-build/server/chunks/ssr/{[root-of-the-server]__0m3ns_a_2cw5q._.js → [root-of-the-server]__105vglixsp00a._.js} +1 -1
  283. package/app-build/server/chunks/ssr/{[root-of-the-server]__0tfe4nl35ph55._.js → [root-of-the-server]__12pgkxyn_b38p._.js} +1 -1
  284. package/app-build/server/chunks/ssr/{[root-of-the-server]__1v3sow19yjtmw._.js → [root-of-the-server]__1cu7ckiad_t58._.js} +1 -1
  285. package/app-build/server/chunks/ssr/{[root-of-the-server]__1wua7k6dot3x4._.js → [root-of-the-server]__1gxrsvq_gh93m._.js} +1 -1
  286. package/app-build/server/chunks/ssr/[root-of-the-server]__1ik_gvdjzwan6._.js +3 -0
  287. package/app-build/server/chunks/ssr/{[root-of-the-server]__03w_9e_k6kgud._.js → [root-of-the-server]__1n-87555yleii._.js} +1 -1
  288. package/app-build/server/chunks/ssr/_0fb4klqsym0_6._.js +3 -0
  289. package/app-build/server/chunks/ssr/_0plc10a4e_g26._.js +498 -0
  290. package/app-build/server/chunks/ssr/_0vqiqfwum1eeq._.js +498 -0
  291. package/app-build/server/chunks/ssr/_14z-y2hqpv20w._.js +4 -4
  292. package/app-build/server/chunks/ssr/_15rry-mn1ylod._.js +498 -0
  293. package/app-build/server/chunks/ssr/_18d6v6hzvx1mu._.js +1 -1
  294. package/app-build/server/chunks/ssr/{_0buybf2wnrn_4._.js → _1dyej_7akyn4m._.js} +2 -2
  295. package/app-build/server/chunks/ssr/_1er7c_w1fawws._.js +3 -0
  296. package/app-build/server/chunks/ssr/_1mebmslk3b4xf._.js +1 -1
  297. package/app-build/server/chunks/ssr/{_0u7gwi85h6cf-._.js → _1ph9xm-z7tn_h._.js} +2 -2
  298. package/app-build/server/chunks/ssr/_1stfnmis3lpoq._.js +498 -0
  299. package/app-build/server/chunks/ssr/_1uj-3d4t3_f-w._.js +498 -0
  300. package/app-build/server/chunks/ssr/_next-internal_server_app_connect_page_actions_1g-s_3iey9c04.js +3 -0
  301. package/app-build/server/chunks/ssr/node_modules_10id6sduifkvy._.js +59 -0
  302. package/app-build/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0w96iu1ncvvo0.js +3 -0
  303. package/app-build/server/chunks/ssr/src_13l727gejp_6n._.js +3 -0
  304. package/app-build/server/chunks/ssr/{src_0r--q7x0ztpgu._.js → src_1cn16bn7pzjnd._.js} +2 -2
  305. package/app-build/server/chunks/ssr/src_1j5tc25jwfv_8._.js +3 -0
  306. package/app-build/server/chunks/ssr/src_1oitb44kjbwhi._.js +21 -0
  307. package/app-build/server/chunks/ssr/src_1qpok7f_-18_w._.js +3 -0
  308. package/app-build/server/chunks/ssr/src_auth_client_ts_0q_2k3z_l1ip-._.js +3 -0
  309. package/app-build/server/chunks/ssr/src_ui_0a7papum2y8_i._.js +3 -0
  310. package/app-build/server/chunks/ssr/src_ui_0dybjq718frlj._.js +3 -0
  311. package/app-build/server/chunks/ssr/src_ui_1lk_5nzn_qoqs._.js +3 -0
  312. package/app-build/server/chunks/ssr/src_ui_1pd2_lbqeputa._.js +3 -0
  313. package/app-build/server/chunks/ssr/src_ui_AiMark_tsx_0-kcacyns0w8e._.js +3 -0
  314. package/app-build/server/chunks/ssr/src_ui_auth_ConnectScreen_tsx_0fe1yscm_2_27._.js +3 -0
  315. package/app-build/server/chunks/ssr/src_ui_canvas_AddProjectDialog_tsx_10a7chj-0e01u._.js +57 -0
  316. package/app-build/server/chunks/ssr/src_ui_strings_ts_1es3352ykktl1._.js +1 -1
  317. package/app-build/server/instrumentation.js +1 -1
  318. package/app-build/server/middleware-build-manifest.js +32 -21
  319. package/app-build/server/middleware.js +1 -1
  320. package/app-build/server/next-font-manifest.js +1 -1
  321. package/app-build/server/next-font-manifest.json +8 -0
  322. package/app-build/server/pages/404.html +1 -1
  323. package/app-build/server/pages/500.html +1 -1
  324. package/app-build/static/chunks/04hu91jpixs3u.js +1 -0
  325. package/app-build/static/chunks/0u800lsoqi8_z.js +55 -0
  326. package/app-build/static/chunks/{1bnawoiy5_570.js → 1kp-bz-o-8ck-.js} +3 -3
  327. package/app-build/static/chunks/1wg6_v6094_ev.js +1 -0
  328. package/app-build/static/chunks/217-kbs71m5l2.js +1 -0
  329. package/app-build/static/chunks/2k_3gu76w6kra.js +1 -0
  330. package/app-build/static/chunks/2ku8241h3kja_.js +5 -0
  331. package/app-build/static/chunks/2r_8wjfab8ek7.js +1 -0
  332. package/app-build/static/chunks/2urr6-fm2smyv.js +1 -0
  333. package/app-build/static/chunks/2w14sgj4v2wr8.js +1 -0
  334. package/app-build/static/chunks/{324p9a1j89bkh.css → 3qsw-xu34m6k4.css} +1 -1
  335. package/app-build/static/chunks/3x09-es7lx-9r.js +1 -0
  336. package/app-build/trace-build +1 -1
  337. package/bin/plaincrew.mjs +88 -4
  338. package/drizzle-pg/0017_mysterious_major_mapleleaf.sql +20 -0
  339. package/drizzle-pg/0018_puzzling_magdalene.sql +12 -0
  340. package/drizzle-pg/meta/0017_snapshot.json +2978 -0
  341. package/drizzle-pg/meta/0018_snapshot.json +3070 -0
  342. package/drizzle-pg/meta/_journal.json +14 -0
  343. package/package.json +2 -1
  344. package/app-build/server/chunks/[externals]_next_dist_server_app-render_1yoqe3gkwr3dg._.js +0 -3
  345. package/app-build/server/chunks/[root-of-the-server]__0-dtybr1h5y66._.js +0 -3
  346. package/app-build/server/chunks/[root-of-the-server]__05_5uof-vh0ur._.js +0 -3
  347. package/app-build/server/chunks/[root-of-the-server]__05d-vefbcavd3._.js +0 -3
  348. package/app-build/server/chunks/[root-of-the-server]__06i52ssvds_4l._.js +0 -3
  349. package/app-build/server/chunks/[root-of-the-server]__0eduzqmkmc65q._.js +0 -3
  350. package/app-build/server/chunks/[root-of-the-server]__0fu80h1ryrjqj._.js +0 -3
  351. package/app-build/server/chunks/[root-of-the-server]__0hf3vbo5kjyuy._.js +0 -3
  352. package/app-build/server/chunks/[root-of-the-server]__0ilio9-5rd-d8._.js +0 -3
  353. package/app-build/server/chunks/[root-of-the-server]__0jqz-s5880rsj._.js +0 -3
  354. package/app-build/server/chunks/[root-of-the-server]__0kbuhf_sq5zgo._.js +0 -3
  355. package/app-build/server/chunks/[root-of-the-server]__0khjs7gbsfbjd._.js +0 -3
  356. package/app-build/server/chunks/[root-of-the-server]__0lvn5y8zcusur._.js +0 -3
  357. package/app-build/server/chunks/[root-of-the-server]__0m87p_jnin9di._.js +0 -3
  358. package/app-build/server/chunks/[root-of-the-server]__0n57671zyqi-b._.js +0 -3
  359. package/app-build/server/chunks/[root-of-the-server]__0n6ovv8grc91o._.js +0 -3
  360. package/app-build/server/chunks/[root-of-the-server]__0nhkl1m3cu6ri._.js +0 -3
  361. package/app-build/server/chunks/[root-of-the-server]__0omzj4w4vqjjj._.js +0 -3
  362. package/app-build/server/chunks/[root-of-the-server]__0prnmbd2nc0a1._.js +0 -3
  363. package/app-build/server/chunks/[root-of-the-server]__0qhoro7nfi0o0._.js +0 -3
  364. package/app-build/server/chunks/[root-of-the-server]__0quxao-smsayh._.js +0 -3
  365. package/app-build/server/chunks/[root-of-the-server]__0ruz2yyah___m._.js +0 -3
  366. package/app-build/server/chunks/[root-of-the-server]__0s378vzw-73-n._.js +0 -3
  367. package/app-build/server/chunks/[root-of-the-server]__0u06g320ljnbt._.js +0 -3
  368. package/app-build/server/chunks/[root-of-the-server]__0yyzjyq-oy-e1._.js +0 -3
  369. package/app-build/server/chunks/[root-of-the-server]__0z7dh952zeb9f._.js +0 -3
  370. package/app-build/server/chunks/[root-of-the-server]__1-x13b8ye1wfs._.js +0 -3
  371. package/app-build/server/chunks/[root-of-the-server]__10-yy5gpbp308._.js +0 -3
  372. package/app-build/server/chunks/[root-of-the-server]__10dplucy-sz7s._.js +0 -3
  373. package/app-build/server/chunks/[root-of-the-server]__10n1c02pch_ot._.js +0 -3
  374. package/app-build/server/chunks/[root-of-the-server]__12o-04az_z-mg._.js +0 -3
  375. package/app-build/server/chunks/[root-of-the-server]__13-hl-756hoon._.js +0 -3
  376. package/app-build/server/chunks/[root-of-the-server]__14qr9wmmvw7xf._.js +0 -3
  377. package/app-build/server/chunks/[root-of-the-server]__156stbqt7ugb9._.js +0 -3
  378. package/app-build/server/chunks/[root-of-the-server]__1aetujxeqqt_d._.js +0 -3
  379. package/app-build/server/chunks/[root-of-the-server]__1e62d7e5vw5k3._.js +0 -3
  380. package/app-build/server/chunks/[root-of-the-server]__1fgplw81nl-ss._.js +0 -3
  381. package/app-build/server/chunks/[root-of-the-server]__1fzc6c4-172b2._.js +0 -3
  382. package/app-build/server/chunks/[root-of-the-server]__1hv-y842n87d8._.js +0 -3
  383. package/app-build/server/chunks/[root-of-the-server]__1iz569gw7tcd-._.js +0 -3
  384. package/app-build/server/chunks/[root-of-the-server]__1j-8olcwngr7q._.js +0 -3
  385. package/app-build/server/chunks/[root-of-the-server]__1sqed3wmvgodn._.js +0 -3
  386. package/app-build/server/chunks/[root-of-the-server]__1t_dswewodt5w._.js +0 -3
  387. package/app-build/server/chunks/[root-of-the-server]__1u9hq4soe2xwp._.js +0 -3
  388. package/app-build/server/chunks/[root-of-the-server]__1vp_i0kfcgv8v._.js +0 -3
  389. package/app-build/server/chunks/[root-of-the-server]__1x0k45ov7_05w._.js +0 -3
  390. package/app-build/server/chunks/[root-of-the-server]__1yf5s1twz5moo._.js +0 -3
  391. package/app-build/server/chunks/_0-jxl7nrok4vo._.js +0 -26
  392. package/app-build/server/chunks/_00j6_u1runs4w._.js +0 -26
  393. package/app-build/server/chunks/_02rqsv-5r1xyh._.js +0 -26
  394. package/app-build/server/chunks/_037kdv10i5y_3._.js +0 -26
  395. package/app-build/server/chunks/_04qeqxkodasvw._.js +0 -26
  396. package/app-build/server/chunks/_060517ixkutga._.js +0 -26
  397. package/app-build/server/chunks/_0_ohdufir0pc0._.js +0 -26
  398. package/app-build/server/chunks/_0a399s004z09i._.js +0 -26
  399. package/app-build/server/chunks/_0c8uqvkdnv8om._.js +0 -26
  400. package/app-build/server/chunks/_0cpx6gxrun97c._.js +0 -26
  401. package/app-build/server/chunks/_0e0zdgh5__9o9._.js +0 -26
  402. package/app-build/server/chunks/_0i95e9zu6fj4n._.js +0 -26
  403. package/app-build/server/chunks/_0jd49raqadz76._.js +0 -26
  404. package/app-build/server/chunks/_0lhu42i9ysm02._.js +0 -26
  405. package/app-build/server/chunks/_0nk-c9zmnj37l._.js +0 -26
  406. package/app-build/server/chunks/_0rnjb46ttnp_1._.js +0 -10
  407. package/app-build/server/chunks/_0t315blstrlgt._.js +0 -26
  408. package/app-build/server/chunks/_0v3u7bir_x-f1._.js +0 -26
  409. package/app-build/server/chunks/_0vkp8d-4v66df._.js +0 -10
  410. package/app-build/server/chunks/_0vnwz2wsr7rta._.js +0 -26
  411. package/app-build/server/chunks/_0zmtu_rs0-xx3._.js +0 -26
  412. package/app-build/server/chunks/_0zx-1d3-vgrjf._.js +0 -26
  413. package/app-build/server/chunks/_13_q0s3m37izl._.js +0 -26
  414. package/app-build/server/chunks/_15_pg1-nh_uey._.js +0 -26
  415. package/app-build/server/chunks/_16kc8tvml_4jr._.js +0 -10
  416. package/app-build/server/chunks/_197p633h-h37y._.js +0 -26
  417. package/app-build/server/chunks/_1hyd5-0pvbz7j._.js +0 -10
  418. package/app-build/server/chunks/_1k0nwfy3n5zq6._.js +0 -26
  419. package/app-build/server/chunks/_1qp5atyvlmjms._.js +0 -26
  420. package/app-build/server/chunks/_1r8yign_b4xit._.js +0 -26
  421. package/app-build/server/chunks/_1s7c6rvg9jq1b._.js +0 -26
  422. package/app-build/server/chunks/_1srrbf3r_cgyh._.js +0 -3
  423. package/app-build/server/chunks/_1tcp49lkcyk9b._.js +0 -26
  424. package/app-build/server/chunks/_1tmt_2duzfhf-._.js +0 -26
  425. package/app-build/server/chunks/_1tx_iizje6rr5._.js +0 -26
  426. package/app-build/server/chunks/_1vmuo5nz7e9j7._.js +0 -26
  427. package/app-build/server/chunks/_1zqmp75fro5bj._.js +0 -26
  428. package/app-build/server/chunks/_207efa75ej326._.js +0 -26
  429. package/app-build/server/chunks/node_modules_038x-mogk4n7d._.js +0 -59
  430. package/app-build/server/chunks/node_modules_06i8knol64dp4._.js +0 -59
  431. package/app-build/server/chunks/node_modules_1bu1e_tx1yhos._.js +0 -59
  432. package/app-build/server/chunks/src_0ya5sso2-uxy9._.js +0 -3
  433. package/app-build/server/chunks/src_1idm2q9mpd_ac._.js +0 -3
  434. package/app-build/server/chunks/ssr/_0c07_u5ve9h96._.js +0 -3
  435. package/app-build/server/chunks/ssr/_0c9c3otndjyb3._.js +0 -491
  436. package/app-build/server/chunks/ssr/_0r-_quaoj7vtd._.js +0 -491
  437. package/app-build/server/chunks/ssr/_1nnyuupo9_rf8._.js +0 -491
  438. package/app-build/server/chunks/ssr/_1v3g8djeka9qb._.js +0 -32
  439. package/app-build/server/chunks/ssr/_1wcw1-cjuk4-r._.js +0 -491
  440. package/app-build/server/chunks/ssr/node_modules_@better-auth_core_dist_14kycjq88o05j._.js +0 -59
  441. package/app-build/server/chunks/ssr/src_0dka4d-sj76yr._.js +0 -3
  442. package/app-build/server/chunks/ssr/src_0kr0vdt5cmmqe._.js +0 -3
  443. package/app-build/server/chunks/ssr/src_0xa_ew7bgnab8._.js +0 -3
  444. package/app-build/server/chunks/ssr/src_14kyflsj7vzua._.js +0 -3
  445. package/app-build/server/chunks/ssr/src_1kc7a2tc4zk79._.js +0 -3
  446. package/app-build/server/chunks/ssr/src_1xj6pksvrcr7j._.js +0 -21
  447. package/app-build/static/chunks/0ioqfqts8esiv.js +0 -1
  448. package/app-build/static/chunks/0p_562p4eiia0.js +0 -5
  449. package/app-build/static/chunks/0sisrf23dzct3.js +0 -1
  450. package/app-build/static/chunks/16_8pb-q1k23d.js +0 -1
  451. package/app-build/static/chunks/1lj8cya75hc47.js +0 -1
  452. package/app-build/static/chunks/1smn3_hn-_7bt.js +0 -1
  453. package/app-build/static/chunks/1wnov70f88xjy.js +0 -1
  454. /package/app-build/static/{m8GgIjZTfSoO8KWsqC9Cm → r8bYBXboElhyfwYccuAh5}/_buildManifest.js +0 -0
  455. /package/app-build/static/{m8GgIjZTfSoO8KWsqC9Cm → r8bYBXboElhyfwYccuAh5}/_clientMiddlewareManifest.js +0 -0
  456. /package/app-build/static/{m8GgIjZTfSoO8KWsqC9Cm → r8bYBXboElhyfwYccuAh5}/_ssgManifest.js +0 -0
@@ -0,0 +1,3070 @@
1
+ {
2
+ "id": "0e53b7dc-443b-4376-9b52-55459742db03",
3
+ "prevId": "8371079b-1d48-41b3-bb05-c83329804fba",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.approvals": {
8
+ "name": "approvals",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "project_id": {
18
+ "name": "project_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "run_id": {
24
+ "name": "run_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "node_run_id": {
30
+ "name": "node_run_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "decision": {
36
+ "name": "decision",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "actor": {
42
+ "name": "actor",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "reason": {
48
+ "name": "reason",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "diff_hash": {
54
+ "name": "diff_hash",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "created_at": {
60
+ "name": "created_at",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": true
64
+ },
65
+ "consumed_at": {
66
+ "name": "consumed_at",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "delivered_at": {
72
+ "name": "delivered_at",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ }
77
+ },
78
+ "indexes": {
79
+ "approvals_run_idx": {
80
+ "name": "approvals_run_idx",
81
+ "columns": [
82
+ {
83
+ "expression": "run_id",
84
+ "isExpression": false,
85
+ "asc": true,
86
+ "nulls": "last"
87
+ }
88
+ ],
89
+ "isUnique": false,
90
+ "concurrently": false,
91
+ "method": "btree",
92
+ "with": {}
93
+ }
94
+ },
95
+ "foreignKeys": {
96
+ "approvals_project_id_projects_id_fk": {
97
+ "name": "approvals_project_id_projects_id_fk",
98
+ "tableFrom": "approvals",
99
+ "tableTo": "projects",
100
+ "columnsFrom": [
101
+ "project_id"
102
+ ],
103
+ "columnsTo": [
104
+ "id"
105
+ ],
106
+ "onDelete": "cascade",
107
+ "onUpdate": "no action"
108
+ },
109
+ "approvals_run_id_runs_id_fk": {
110
+ "name": "approvals_run_id_runs_id_fk",
111
+ "tableFrom": "approvals",
112
+ "tableTo": "runs",
113
+ "columnsFrom": [
114
+ "run_id"
115
+ ],
116
+ "columnsTo": [
117
+ "id"
118
+ ],
119
+ "onDelete": "cascade",
120
+ "onUpdate": "no action"
121
+ },
122
+ "approvals_node_run_id_node_runs_id_fk": {
123
+ "name": "approvals_node_run_id_node_runs_id_fk",
124
+ "tableFrom": "approvals",
125
+ "tableTo": "node_runs",
126
+ "columnsFrom": [
127
+ "node_run_id"
128
+ ],
129
+ "columnsTo": [
130
+ "id"
131
+ ],
132
+ "onDelete": "cascade",
133
+ "onUpdate": "no action"
134
+ }
135
+ },
136
+ "compositePrimaryKeys": {},
137
+ "uniqueConstraints": {},
138
+ "policies": {},
139
+ "checkConstraints": {},
140
+ "isRLSEnabled": false
141
+ },
142
+ "public.attachments": {
143
+ "name": "attachments",
144
+ "schema": "",
145
+ "columns": {
146
+ "id": {
147
+ "name": "id",
148
+ "type": "text",
149
+ "primaryKey": true,
150
+ "notNull": true
151
+ },
152
+ "run_id": {
153
+ "name": "run_id",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false
157
+ },
158
+ "approval_id": {
159
+ "name": "approval_id",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": false
163
+ },
164
+ "question_id": {
165
+ "name": "question_id",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": false
169
+ },
170
+ "path": {
171
+ "name": "path",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true
175
+ },
176
+ "name": {
177
+ "name": "name",
178
+ "type": "text",
179
+ "primaryKey": false,
180
+ "notNull": true
181
+ },
182
+ "mime": {
183
+ "name": "mime",
184
+ "type": "text",
185
+ "primaryKey": false,
186
+ "notNull": true
187
+ },
188
+ "size": {
189
+ "name": "size",
190
+ "type": "integer",
191
+ "primaryKey": false,
192
+ "notNull": true
193
+ },
194
+ "created_at": {
195
+ "name": "created_at",
196
+ "type": "text",
197
+ "primaryKey": false,
198
+ "notNull": true
199
+ }
200
+ },
201
+ "indexes": {
202
+ "attachments_run_idx": {
203
+ "name": "attachments_run_idx",
204
+ "columns": [
205
+ {
206
+ "expression": "run_id",
207
+ "isExpression": false,
208
+ "asc": true,
209
+ "nulls": "last"
210
+ }
211
+ ],
212
+ "isUnique": false,
213
+ "concurrently": false,
214
+ "method": "btree",
215
+ "with": {}
216
+ }
217
+ },
218
+ "foreignKeys": {
219
+ "attachments_run_id_runs_id_fk": {
220
+ "name": "attachments_run_id_runs_id_fk",
221
+ "tableFrom": "attachments",
222
+ "tableTo": "runs",
223
+ "columnsFrom": [
224
+ "run_id"
225
+ ],
226
+ "columnsTo": [
227
+ "id"
228
+ ],
229
+ "onDelete": "cascade",
230
+ "onUpdate": "no action"
231
+ },
232
+ "attachments_approval_id_approvals_id_fk": {
233
+ "name": "attachments_approval_id_approvals_id_fk",
234
+ "tableFrom": "attachments",
235
+ "tableTo": "approvals",
236
+ "columnsFrom": [
237
+ "approval_id"
238
+ ],
239
+ "columnsTo": [
240
+ "id"
241
+ ],
242
+ "onDelete": "cascade",
243
+ "onUpdate": "no action"
244
+ }
245
+ },
246
+ "compositePrimaryKeys": {},
247
+ "uniqueConstraints": {},
248
+ "policies": {},
249
+ "checkConstraints": {},
250
+ "isRLSEnabled": false
251
+ },
252
+ "public.claims": {
253
+ "name": "claims",
254
+ "schema": "",
255
+ "columns": {
256
+ "id": {
257
+ "name": "id",
258
+ "type": "text",
259
+ "primaryKey": true,
260
+ "notNull": true
261
+ },
262
+ "project_id": {
263
+ "name": "project_id",
264
+ "type": "text",
265
+ "primaryKey": false,
266
+ "notNull": true
267
+ },
268
+ "run_id": {
269
+ "name": "run_id",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": true
273
+ },
274
+ "node_run_id": {
275
+ "name": "node_run_id",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": true
279
+ },
280
+ "text": {
281
+ "name": "text",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true
285
+ },
286
+ "created_at": {
287
+ "name": "created_at",
288
+ "type": "text",
289
+ "primaryKey": false,
290
+ "notNull": true
291
+ }
292
+ },
293
+ "indexes": {
294
+ "claims_node_run_idx": {
295
+ "name": "claims_node_run_idx",
296
+ "columns": [
297
+ {
298
+ "expression": "node_run_id",
299
+ "isExpression": false,
300
+ "asc": true,
301
+ "nulls": "last"
302
+ }
303
+ ],
304
+ "isUnique": false,
305
+ "concurrently": false,
306
+ "method": "btree",
307
+ "with": {}
308
+ }
309
+ },
310
+ "foreignKeys": {
311
+ "claims_project_id_projects_id_fk": {
312
+ "name": "claims_project_id_projects_id_fk",
313
+ "tableFrom": "claims",
314
+ "tableTo": "projects",
315
+ "columnsFrom": [
316
+ "project_id"
317
+ ],
318
+ "columnsTo": [
319
+ "id"
320
+ ],
321
+ "onDelete": "cascade",
322
+ "onUpdate": "no action"
323
+ },
324
+ "claims_run_id_runs_id_fk": {
325
+ "name": "claims_run_id_runs_id_fk",
326
+ "tableFrom": "claims",
327
+ "tableTo": "runs",
328
+ "columnsFrom": [
329
+ "run_id"
330
+ ],
331
+ "columnsTo": [
332
+ "id"
333
+ ],
334
+ "onDelete": "cascade",
335
+ "onUpdate": "no action"
336
+ },
337
+ "claims_node_run_id_node_runs_id_fk": {
338
+ "name": "claims_node_run_id_node_runs_id_fk",
339
+ "tableFrom": "claims",
340
+ "tableTo": "node_runs",
341
+ "columnsFrom": [
342
+ "node_run_id"
343
+ ],
344
+ "columnsTo": [
345
+ "id"
346
+ ],
347
+ "onDelete": "cascade",
348
+ "onUpdate": "no action"
349
+ }
350
+ },
351
+ "compositePrimaryKeys": {},
352
+ "uniqueConstraints": {},
353
+ "policies": {},
354
+ "checkConstraints": {},
355
+ "isRLSEnabled": false
356
+ },
357
+ "public.connect_requests": {
358
+ "name": "connect_requests",
359
+ "schema": "",
360
+ "columns": {
361
+ "code": {
362
+ "name": "code",
363
+ "type": "text",
364
+ "primaryKey": true,
365
+ "notNull": true
366
+ },
367
+ "created_at": {
368
+ "name": "created_at",
369
+ "type": "text",
370
+ "primaryKey": false,
371
+ "notNull": true
372
+ },
373
+ "user_id": {
374
+ "name": "user_id",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": false
378
+ },
379
+ "organization_id": {
380
+ "name": "organization_id",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false
384
+ },
385
+ "approved_at": {
386
+ "name": "approved_at",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": false
390
+ },
391
+ "taken_at": {
392
+ "name": "taken_at",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": false
396
+ }
397
+ },
398
+ "indexes": {},
399
+ "foreignKeys": {
400
+ "connect_requests_user_id_users_id_fk": {
401
+ "name": "connect_requests_user_id_users_id_fk",
402
+ "tableFrom": "connect_requests",
403
+ "tableTo": "users",
404
+ "columnsFrom": [
405
+ "user_id"
406
+ ],
407
+ "columnsTo": [
408
+ "id"
409
+ ],
410
+ "onDelete": "cascade",
411
+ "onUpdate": "no action"
412
+ },
413
+ "connect_requests_organization_id_organizations_id_fk": {
414
+ "name": "connect_requests_organization_id_organizations_id_fk",
415
+ "tableFrom": "connect_requests",
416
+ "tableTo": "organizations",
417
+ "columnsFrom": [
418
+ "organization_id"
419
+ ],
420
+ "columnsTo": [
421
+ "id"
422
+ ],
423
+ "onDelete": "cascade",
424
+ "onUpdate": "no action"
425
+ }
426
+ },
427
+ "compositePrimaryKeys": {},
428
+ "uniqueConstraints": {},
429
+ "policies": {},
430
+ "checkConstraints": {},
431
+ "isRLSEnabled": false
432
+ },
433
+ "public.devices": {
434
+ "name": "devices",
435
+ "schema": "",
436
+ "columns": {
437
+ "id": {
438
+ "name": "id",
439
+ "type": "text",
440
+ "primaryKey": true,
441
+ "notNull": true
442
+ },
443
+ "organization_id": {
444
+ "name": "organization_id",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "user_id": {
450
+ "name": "user_id",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": true
454
+ },
455
+ "token_hash": {
456
+ "name": "token_hash",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": true
460
+ },
461
+ "created_at": {
462
+ "name": "created_at",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true
466
+ },
467
+ "revoked_at": {
468
+ "name": "revoked_at",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": false
472
+ }
473
+ },
474
+ "indexes": {
475
+ "devices_token_uq": {
476
+ "name": "devices_token_uq",
477
+ "columns": [
478
+ {
479
+ "expression": "token_hash",
480
+ "isExpression": false,
481
+ "asc": true,
482
+ "nulls": "last"
483
+ }
484
+ ],
485
+ "isUnique": true,
486
+ "concurrently": false,
487
+ "method": "btree",
488
+ "with": {}
489
+ }
490
+ },
491
+ "foreignKeys": {
492
+ "devices_organization_id_organizations_id_fk": {
493
+ "name": "devices_organization_id_organizations_id_fk",
494
+ "tableFrom": "devices",
495
+ "tableTo": "organizations",
496
+ "columnsFrom": [
497
+ "organization_id"
498
+ ],
499
+ "columnsTo": [
500
+ "id"
501
+ ],
502
+ "onDelete": "cascade",
503
+ "onUpdate": "no action"
504
+ },
505
+ "devices_user_id_users_id_fk": {
506
+ "name": "devices_user_id_users_id_fk",
507
+ "tableFrom": "devices",
508
+ "tableTo": "users",
509
+ "columnsFrom": [
510
+ "user_id"
511
+ ],
512
+ "columnsTo": [
513
+ "id"
514
+ ],
515
+ "onDelete": "cascade",
516
+ "onUpdate": "no action"
517
+ }
518
+ },
519
+ "compositePrimaryKeys": {},
520
+ "uniqueConstraints": {},
521
+ "policies": {},
522
+ "checkConstraints": {},
523
+ "isRLSEnabled": false
524
+ },
525
+ "public.events": {
526
+ "name": "events",
527
+ "schema": "",
528
+ "columns": {
529
+ "id": {
530
+ "name": "id",
531
+ "type": "text",
532
+ "primaryKey": true,
533
+ "notNull": true
534
+ },
535
+ "project_id": {
536
+ "name": "project_id",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ },
541
+ "run_id": {
542
+ "name": "run_id",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": true
546
+ },
547
+ "node_run_id": {
548
+ "name": "node_run_id",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ },
553
+ "sequence": {
554
+ "name": "sequence",
555
+ "type": "integer",
556
+ "primaryKey": false,
557
+ "notNull": true
558
+ },
559
+ "type": {
560
+ "name": "type",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true
564
+ },
565
+ "payload_json": {
566
+ "name": "payload_json",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": true
570
+ },
571
+ "created_at": {
572
+ "name": "created_at",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": true
576
+ },
577
+ "delivered_at": {
578
+ "name": "delivered_at",
579
+ "type": "text",
580
+ "primaryKey": false,
581
+ "notNull": false
582
+ }
583
+ },
584
+ "indexes": {
585
+ "events_run_sequence_uq": {
586
+ "name": "events_run_sequence_uq",
587
+ "columns": [
588
+ {
589
+ "expression": "run_id",
590
+ "isExpression": false,
591
+ "asc": true,
592
+ "nulls": "last"
593
+ },
594
+ {
595
+ "expression": "sequence",
596
+ "isExpression": false,
597
+ "asc": true,
598
+ "nulls": "last"
599
+ }
600
+ ],
601
+ "isUnique": true,
602
+ "concurrently": false,
603
+ "method": "btree",
604
+ "with": {}
605
+ }
606
+ },
607
+ "foreignKeys": {
608
+ "events_project_id_projects_id_fk": {
609
+ "name": "events_project_id_projects_id_fk",
610
+ "tableFrom": "events",
611
+ "tableTo": "projects",
612
+ "columnsFrom": [
613
+ "project_id"
614
+ ],
615
+ "columnsTo": [
616
+ "id"
617
+ ],
618
+ "onDelete": "cascade",
619
+ "onUpdate": "no action"
620
+ },
621
+ "events_run_id_runs_id_fk": {
622
+ "name": "events_run_id_runs_id_fk",
623
+ "tableFrom": "events",
624
+ "tableTo": "runs",
625
+ "columnsFrom": [
626
+ "run_id"
627
+ ],
628
+ "columnsTo": [
629
+ "id"
630
+ ],
631
+ "onDelete": "cascade",
632
+ "onUpdate": "no action"
633
+ },
634
+ "events_node_run_id_node_runs_id_fk": {
635
+ "name": "events_node_run_id_node_runs_id_fk",
636
+ "tableFrom": "events",
637
+ "tableTo": "node_runs",
638
+ "columnsFrom": [
639
+ "node_run_id"
640
+ ],
641
+ "columnsTo": [
642
+ "id"
643
+ ],
644
+ "onDelete": "cascade",
645
+ "onUpdate": "no action"
646
+ }
647
+ },
648
+ "compositePrimaryKeys": {},
649
+ "uniqueConstraints": {},
650
+ "policies": {},
651
+ "checkConstraints": {},
652
+ "isRLSEnabled": false
653
+ },
654
+ "public.evidence": {
655
+ "name": "evidence",
656
+ "schema": "",
657
+ "columns": {
658
+ "id": {
659
+ "name": "id",
660
+ "type": "text",
661
+ "primaryKey": true,
662
+ "notNull": true
663
+ },
664
+ "project_id": {
665
+ "name": "project_id",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": true
669
+ },
670
+ "run_id": {
671
+ "name": "run_id",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": true
675
+ },
676
+ "node_run_id": {
677
+ "name": "node_run_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
+ "source": {
689
+ "name": "source",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true
693
+ },
694
+ "data_json": {
695
+ "name": "data_json",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": true
699
+ },
700
+ "created_at": {
701
+ "name": "created_at",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": true
705
+ }
706
+ },
707
+ "indexes": {
708
+ "evidence_node_run_idx": {
709
+ "name": "evidence_node_run_idx",
710
+ "columns": [
711
+ {
712
+ "expression": "node_run_id",
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
+ "evidence_project_id_projects_id_fk": {
726
+ "name": "evidence_project_id_projects_id_fk",
727
+ "tableFrom": "evidence",
728
+ "tableTo": "projects",
729
+ "columnsFrom": [
730
+ "project_id"
731
+ ],
732
+ "columnsTo": [
733
+ "id"
734
+ ],
735
+ "onDelete": "cascade",
736
+ "onUpdate": "no action"
737
+ },
738
+ "evidence_run_id_runs_id_fk": {
739
+ "name": "evidence_run_id_runs_id_fk",
740
+ "tableFrom": "evidence",
741
+ "tableTo": "runs",
742
+ "columnsFrom": [
743
+ "run_id"
744
+ ],
745
+ "columnsTo": [
746
+ "id"
747
+ ],
748
+ "onDelete": "cascade",
749
+ "onUpdate": "no action"
750
+ },
751
+ "evidence_node_run_id_node_runs_id_fk": {
752
+ "name": "evidence_node_run_id_node_runs_id_fk",
753
+ "tableFrom": "evidence",
754
+ "tableTo": "node_runs",
755
+ "columnsFrom": [
756
+ "node_run_id"
757
+ ],
758
+ "columnsTo": [
759
+ "id"
760
+ ],
761
+ "onDelete": "cascade",
762
+ "onUpdate": "no action"
763
+ }
764
+ },
765
+ "compositePrimaryKeys": {},
766
+ "uniqueConstraints": {},
767
+ "policies": {},
768
+ "checkConstraints": {},
769
+ "isRLSEnabled": false
770
+ },
771
+ "public.findings": {
772
+ "name": "findings",
773
+ "schema": "",
774
+ "columns": {
775
+ "id": {
776
+ "name": "id",
777
+ "type": "text",
778
+ "primaryKey": true,
779
+ "notNull": true
780
+ },
781
+ "project_id": {
782
+ "name": "project_id",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": true
786
+ },
787
+ "run_id": {
788
+ "name": "run_id",
789
+ "type": "text",
790
+ "primaryKey": false,
791
+ "notNull": true
792
+ },
793
+ "round": {
794
+ "name": "round",
795
+ "type": "integer",
796
+ "primaryKey": false,
797
+ "notNull": true
798
+ },
799
+ "type": {
800
+ "name": "type",
801
+ "type": "text",
802
+ "primaryKey": false,
803
+ "notNull": true
804
+ },
805
+ "file": {
806
+ "name": "file",
807
+ "type": "text",
808
+ "primaryKey": false,
809
+ "notNull": false
810
+ },
811
+ "line": {
812
+ "name": "line",
813
+ "type": "integer",
814
+ "primaryKey": false,
815
+ "notNull": false
816
+ },
817
+ "problem": {
818
+ "name": "problem",
819
+ "type": "text",
820
+ "primaryKey": false,
821
+ "notNull": true
822
+ },
823
+ "severity": {
824
+ "name": "severity",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": true
828
+ },
829
+ "affects_json": {
830
+ "name": "affects_json",
831
+ "type": "text",
832
+ "primaryKey": false,
833
+ "notNull": true
834
+ },
835
+ "decisions_json": {
836
+ "name": "decisions_json",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true
840
+ },
841
+ "reporters_json": {
842
+ "name": "reporters_json",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": true
846
+ },
847
+ "count": {
848
+ "name": "count",
849
+ "type": "integer",
850
+ "primaryKey": false,
851
+ "notNull": true,
852
+ "default": 1
853
+ },
854
+ "state": {
855
+ "name": "state",
856
+ "type": "text",
857
+ "primaryKey": false,
858
+ "notNull": true
859
+ },
860
+ "reason": {
861
+ "name": "reason",
862
+ "type": "text",
863
+ "primaryKey": false,
864
+ "notNull": false
865
+ },
866
+ "repro_json": {
867
+ "name": "repro_json",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": false
871
+ },
872
+ "evidence_json": {
873
+ "name": "evidence_json",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false
877
+ },
878
+ "entry_number": {
879
+ "name": "entry_number",
880
+ "type": "integer",
881
+ "primaryKey": false,
882
+ "notNull": false
883
+ },
884
+ "created_at": {
885
+ "name": "created_at",
886
+ "type": "text",
887
+ "primaryKey": false,
888
+ "notNull": true
889
+ },
890
+ "updated_at": {
891
+ "name": "updated_at",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ }
896
+ },
897
+ "indexes": {
898
+ "findings_run_idx": {
899
+ "name": "findings_run_idx",
900
+ "columns": [
901
+ {
902
+ "expression": "run_id",
903
+ "isExpression": false,
904
+ "asc": true,
905
+ "nulls": "last"
906
+ }
907
+ ],
908
+ "isUnique": false,
909
+ "concurrently": false,
910
+ "method": "btree",
911
+ "with": {}
912
+ }
913
+ },
914
+ "foreignKeys": {
915
+ "findings_project_id_projects_id_fk": {
916
+ "name": "findings_project_id_projects_id_fk",
917
+ "tableFrom": "findings",
918
+ "tableTo": "projects",
919
+ "columnsFrom": [
920
+ "project_id"
921
+ ],
922
+ "columnsTo": [
923
+ "id"
924
+ ],
925
+ "onDelete": "cascade",
926
+ "onUpdate": "no action"
927
+ },
928
+ "findings_run_id_runs_id_fk": {
929
+ "name": "findings_run_id_runs_id_fk",
930
+ "tableFrom": "findings",
931
+ "tableTo": "runs",
932
+ "columnsFrom": [
933
+ "run_id"
934
+ ],
935
+ "columnsTo": [
936
+ "id"
937
+ ],
938
+ "onDelete": "cascade",
939
+ "onUpdate": "no action"
940
+ }
941
+ },
942
+ "compositePrimaryKeys": {},
943
+ "uniqueConstraints": {},
944
+ "policies": {},
945
+ "checkConstraints": {},
946
+ "isRLSEnabled": false
947
+ },
948
+ "public.jobs": {
949
+ "name": "jobs",
950
+ "schema": "",
951
+ "columns": {
952
+ "id": {
953
+ "name": "id",
954
+ "type": "text",
955
+ "primaryKey": true,
956
+ "notNull": true
957
+ },
958
+ "project_id": {
959
+ "name": "project_id",
960
+ "type": "text",
961
+ "primaryKey": false,
962
+ "notNull": true
963
+ },
964
+ "run_id": {
965
+ "name": "run_id",
966
+ "type": "text",
967
+ "primaryKey": false,
968
+ "notNull": true
969
+ },
970
+ "node_run_id": {
971
+ "name": "node_run_id",
972
+ "type": "text",
973
+ "primaryKey": false,
974
+ "notNull": false
975
+ },
976
+ "kind": {
977
+ "name": "kind",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": true
981
+ },
982
+ "status": {
983
+ "name": "status",
984
+ "type": "text",
985
+ "primaryKey": false,
986
+ "notNull": true
987
+ },
988
+ "payload_json": {
989
+ "name": "payload_json",
990
+ "type": "text",
991
+ "primaryKey": false,
992
+ "notNull": true,
993
+ "default": "'{}'"
994
+ },
995
+ "created_at": {
996
+ "name": "created_at",
997
+ "type": "text",
998
+ "primaryKey": false,
999
+ "notNull": true
1000
+ },
1001
+ "updated_at": {
1002
+ "name": "updated_at",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": true
1006
+ }
1007
+ },
1008
+ "indexes": {
1009
+ "jobs_run_idx": {
1010
+ "name": "jobs_run_idx",
1011
+ "columns": [
1012
+ {
1013
+ "expression": "run_id",
1014
+ "isExpression": false,
1015
+ "asc": true,
1016
+ "nulls": "last"
1017
+ }
1018
+ ],
1019
+ "isUnique": false,
1020
+ "concurrently": false,
1021
+ "method": "btree",
1022
+ "with": {}
1023
+ }
1024
+ },
1025
+ "foreignKeys": {
1026
+ "jobs_project_id_projects_id_fk": {
1027
+ "name": "jobs_project_id_projects_id_fk",
1028
+ "tableFrom": "jobs",
1029
+ "tableTo": "projects",
1030
+ "columnsFrom": [
1031
+ "project_id"
1032
+ ],
1033
+ "columnsTo": [
1034
+ "id"
1035
+ ],
1036
+ "onDelete": "cascade",
1037
+ "onUpdate": "no action"
1038
+ },
1039
+ "jobs_run_id_runs_id_fk": {
1040
+ "name": "jobs_run_id_runs_id_fk",
1041
+ "tableFrom": "jobs",
1042
+ "tableTo": "runs",
1043
+ "columnsFrom": [
1044
+ "run_id"
1045
+ ],
1046
+ "columnsTo": [
1047
+ "id"
1048
+ ],
1049
+ "onDelete": "cascade",
1050
+ "onUpdate": "no action"
1051
+ },
1052
+ "jobs_node_run_id_node_runs_id_fk": {
1053
+ "name": "jobs_node_run_id_node_runs_id_fk",
1054
+ "tableFrom": "jobs",
1055
+ "tableTo": "node_runs",
1056
+ "columnsFrom": [
1057
+ "node_run_id"
1058
+ ],
1059
+ "columnsTo": [
1060
+ "id"
1061
+ ],
1062
+ "onDelete": "cascade",
1063
+ "onUpdate": "no action"
1064
+ }
1065
+ },
1066
+ "compositePrimaryKeys": {},
1067
+ "uniqueConstraints": {},
1068
+ "policies": {},
1069
+ "checkConstraints": {},
1070
+ "isRLSEnabled": false
1071
+ },
1072
+ "public.machines": {
1073
+ "name": "machines",
1074
+ "schema": "",
1075
+ "columns": {
1076
+ "id": {
1077
+ "name": "id",
1078
+ "type": "text",
1079
+ "primaryKey": true,
1080
+ "notNull": true
1081
+ },
1082
+ "name": {
1083
+ "name": "name",
1084
+ "type": "text",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "created_at": {
1089
+ "name": "created_at",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true
1093
+ }
1094
+ },
1095
+ "indexes": {},
1096
+ "foreignKeys": {},
1097
+ "compositePrimaryKeys": {},
1098
+ "uniqueConstraints": {},
1099
+ "policies": {},
1100
+ "checkConstraints": {},
1101
+ "isRLSEnabled": false
1102
+ },
1103
+ "public.node_runs": {
1104
+ "name": "node_runs",
1105
+ "schema": "",
1106
+ "columns": {
1107
+ "id": {
1108
+ "name": "id",
1109
+ "type": "text",
1110
+ "primaryKey": true,
1111
+ "notNull": true
1112
+ },
1113
+ "project_id": {
1114
+ "name": "project_id",
1115
+ "type": "text",
1116
+ "primaryKey": false,
1117
+ "notNull": true
1118
+ },
1119
+ "run_id": {
1120
+ "name": "run_id",
1121
+ "type": "text",
1122
+ "primaryKey": false,
1123
+ "notNull": true
1124
+ },
1125
+ "block_id": {
1126
+ "name": "block_id",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": true
1130
+ },
1131
+ "state": {
1132
+ "name": "state",
1133
+ "type": "text",
1134
+ "primaryKey": false,
1135
+ "notNull": true
1136
+ },
1137
+ "attempt": {
1138
+ "name": "attempt",
1139
+ "type": "integer",
1140
+ "primaryKey": false,
1141
+ "notNull": true,
1142
+ "default": 1
1143
+ },
1144
+ "summary": {
1145
+ "name": "summary",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": false
1149
+ },
1150
+ "failure_cause": {
1151
+ "name": "failure_cause",
1152
+ "type": "text",
1153
+ "primaryKey": false,
1154
+ "notNull": false
1155
+ },
1156
+ "started_at": {
1157
+ "name": "started_at",
1158
+ "type": "text",
1159
+ "primaryKey": false,
1160
+ "notNull": false
1161
+ },
1162
+ "finished_at": {
1163
+ "name": "finished_at",
1164
+ "type": "text",
1165
+ "primaryKey": false,
1166
+ "notNull": false
1167
+ }
1168
+ },
1169
+ "indexes": {
1170
+ "node_runs_run_idx": {
1171
+ "name": "node_runs_run_idx",
1172
+ "columns": [
1173
+ {
1174
+ "expression": "run_id",
1175
+ "isExpression": false,
1176
+ "asc": true,
1177
+ "nulls": "last"
1178
+ }
1179
+ ],
1180
+ "isUnique": false,
1181
+ "concurrently": false,
1182
+ "method": "btree",
1183
+ "with": {}
1184
+ },
1185
+ "node_runs_run_block_uq": {
1186
+ "name": "node_runs_run_block_uq",
1187
+ "columns": [
1188
+ {
1189
+ "expression": "run_id",
1190
+ "isExpression": false,
1191
+ "asc": true,
1192
+ "nulls": "last"
1193
+ },
1194
+ {
1195
+ "expression": "block_id",
1196
+ "isExpression": false,
1197
+ "asc": true,
1198
+ "nulls": "last"
1199
+ }
1200
+ ],
1201
+ "isUnique": true,
1202
+ "concurrently": false,
1203
+ "method": "btree",
1204
+ "with": {}
1205
+ }
1206
+ },
1207
+ "foreignKeys": {
1208
+ "node_runs_project_id_projects_id_fk": {
1209
+ "name": "node_runs_project_id_projects_id_fk",
1210
+ "tableFrom": "node_runs",
1211
+ "tableTo": "projects",
1212
+ "columnsFrom": [
1213
+ "project_id"
1214
+ ],
1215
+ "columnsTo": [
1216
+ "id"
1217
+ ],
1218
+ "onDelete": "cascade",
1219
+ "onUpdate": "no action"
1220
+ },
1221
+ "node_runs_run_id_runs_id_fk": {
1222
+ "name": "node_runs_run_id_runs_id_fk",
1223
+ "tableFrom": "node_runs",
1224
+ "tableTo": "runs",
1225
+ "columnsFrom": [
1226
+ "run_id"
1227
+ ],
1228
+ "columnsTo": [
1229
+ "id"
1230
+ ],
1231
+ "onDelete": "cascade",
1232
+ "onUpdate": "no action"
1233
+ }
1234
+ },
1235
+ "compositePrimaryKeys": {},
1236
+ "uniqueConstraints": {},
1237
+ "policies": {},
1238
+ "checkConstraints": {},
1239
+ "isRLSEnabled": false
1240
+ },
1241
+ "public.org_databases": {
1242
+ "name": "org_databases",
1243
+ "schema": "",
1244
+ "columns": {
1245
+ "organization_id": {
1246
+ "name": "organization_id",
1247
+ "type": "text",
1248
+ "primaryKey": true,
1249
+ "notNull": true
1250
+ },
1251
+ "database_name": {
1252
+ "name": "database_name",
1253
+ "type": "text",
1254
+ "primaryKey": false,
1255
+ "notNull": true
1256
+ },
1257
+ "role_name": {
1258
+ "name": "role_name",
1259
+ "type": "text",
1260
+ "primaryKey": false,
1261
+ "notNull": true
1262
+ },
1263
+ "url": {
1264
+ "name": "url",
1265
+ "type": "text",
1266
+ "primaryKey": false,
1267
+ "notNull": true
1268
+ },
1269
+ "created_at": {
1270
+ "name": "created_at",
1271
+ "type": "text",
1272
+ "primaryKey": false,
1273
+ "notNull": true
1274
+ }
1275
+ },
1276
+ "indexes": {},
1277
+ "foreignKeys": {
1278
+ "org_databases_organization_id_organizations_id_fk": {
1279
+ "name": "org_databases_organization_id_organizations_id_fk",
1280
+ "tableFrom": "org_databases",
1281
+ "tableTo": "organizations",
1282
+ "columnsFrom": [
1283
+ "organization_id"
1284
+ ],
1285
+ "columnsTo": [
1286
+ "id"
1287
+ ],
1288
+ "onDelete": "cascade",
1289
+ "onUpdate": "no action"
1290
+ }
1291
+ },
1292
+ "compositePrimaryKeys": {},
1293
+ "uniqueConstraints": {},
1294
+ "policies": {},
1295
+ "checkConstraints": {},
1296
+ "isRLSEnabled": false
1297
+ },
1298
+ "public.person_settings": {
1299
+ "name": "person_settings",
1300
+ "schema": "",
1301
+ "columns": {
1302
+ "user_id": {
1303
+ "name": "user_id",
1304
+ "type": "text",
1305
+ "primaryKey": true,
1306
+ "notNull": true
1307
+ },
1308
+ "ai": {
1309
+ "name": "ai",
1310
+ "type": "text",
1311
+ "primaryKey": false,
1312
+ "notNull": false
1313
+ }
1314
+ },
1315
+ "indexes": {},
1316
+ "foreignKeys": {
1317
+ "person_settings_user_id_users_id_fk": {
1318
+ "name": "person_settings_user_id_users_id_fk",
1319
+ "tableFrom": "person_settings",
1320
+ "tableTo": "users",
1321
+ "columnsFrom": [
1322
+ "user_id"
1323
+ ],
1324
+ "columnsTo": [
1325
+ "id"
1326
+ ],
1327
+ "onDelete": "cascade",
1328
+ "onUpdate": "no action"
1329
+ }
1330
+ },
1331
+ "compositePrimaryKeys": {},
1332
+ "uniqueConstraints": {},
1333
+ "policies": {},
1334
+ "checkConstraints": {},
1335
+ "isRLSEnabled": false
1336
+ },
1337
+ "public.project_machines": {
1338
+ "name": "project_machines",
1339
+ "schema": "",
1340
+ "columns": {
1341
+ "project_id": {
1342
+ "name": "project_id",
1343
+ "type": "text",
1344
+ "primaryKey": false,
1345
+ "notNull": true
1346
+ },
1347
+ "machine_id": {
1348
+ "name": "machine_id",
1349
+ "type": "text",
1350
+ "primaryKey": false,
1351
+ "notNull": true
1352
+ },
1353
+ "repo_path": {
1354
+ "name": "repo_path",
1355
+ "type": "text",
1356
+ "primaryKey": false,
1357
+ "notNull": false
1358
+ },
1359
+ "base_status": {
1360
+ "name": "base_status",
1361
+ "type": "text",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "default": "'none'"
1365
+ },
1366
+ "base_commit": {
1367
+ "name": "base_commit",
1368
+ "type": "text",
1369
+ "primaryKey": false,
1370
+ "notNull": false
1371
+ },
1372
+ "base_lock_hash": {
1373
+ "name": "base_lock_hash",
1374
+ "type": "text",
1375
+ "primaryKey": false,
1376
+ "notNull": false
1377
+ },
1378
+ "base_message": {
1379
+ "name": "base_message",
1380
+ "type": "text",
1381
+ "primaryKey": false,
1382
+ "notNull": false
1383
+ },
1384
+ "base_updated_at": {
1385
+ "name": "base_updated_at",
1386
+ "type": "text",
1387
+ "primaryKey": false,
1388
+ "notNull": false
1389
+ }
1390
+ },
1391
+ "indexes": {},
1392
+ "foreignKeys": {
1393
+ "project_machines_project_id_projects_id_fk": {
1394
+ "name": "project_machines_project_id_projects_id_fk",
1395
+ "tableFrom": "project_machines",
1396
+ "tableTo": "projects",
1397
+ "columnsFrom": [
1398
+ "project_id"
1399
+ ],
1400
+ "columnsTo": [
1401
+ "id"
1402
+ ],
1403
+ "onDelete": "cascade",
1404
+ "onUpdate": "no action"
1405
+ }
1406
+ },
1407
+ "compositePrimaryKeys": {
1408
+ "project_machines_project_id_machine_id_pk": {
1409
+ "name": "project_machines_project_id_machine_id_pk",
1410
+ "columns": [
1411
+ "project_id",
1412
+ "machine_id"
1413
+ ]
1414
+ }
1415
+ },
1416
+ "uniqueConstraints": {},
1417
+ "policies": {},
1418
+ "checkConstraints": {},
1419
+ "isRLSEnabled": false
1420
+ },
1421
+ "public.project_notes": {
1422
+ "name": "project_notes",
1423
+ "schema": "",
1424
+ "columns": {
1425
+ "id": {
1426
+ "name": "id",
1427
+ "type": "text",
1428
+ "primaryKey": true,
1429
+ "notNull": true
1430
+ },
1431
+ "project_id": {
1432
+ "name": "project_id",
1433
+ "type": "text",
1434
+ "primaryKey": false,
1435
+ "notNull": true
1436
+ },
1437
+ "text": {
1438
+ "name": "text",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": true
1442
+ },
1443
+ "source": {
1444
+ "name": "source",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true
1448
+ },
1449
+ "run_id": {
1450
+ "name": "run_id",
1451
+ "type": "text",
1452
+ "primaryKey": false,
1453
+ "notNull": false
1454
+ },
1455
+ "enabled": {
1456
+ "name": "enabled",
1457
+ "type": "boolean",
1458
+ "primaryKey": false,
1459
+ "notNull": true,
1460
+ "default": true
1461
+ },
1462
+ "created_at": {
1463
+ "name": "created_at",
1464
+ "type": "text",
1465
+ "primaryKey": false,
1466
+ "notNull": true
1467
+ },
1468
+ "number": {
1469
+ "name": "number",
1470
+ "type": "integer",
1471
+ "primaryKey": false,
1472
+ "notNull": false
1473
+ },
1474
+ "kind": {
1475
+ "name": "kind",
1476
+ "type": "text",
1477
+ "primaryKey": false,
1478
+ "notNull": true,
1479
+ "default": "'rule'"
1480
+ },
1481
+ "paths": {
1482
+ "name": "paths",
1483
+ "type": "text",
1484
+ "primaryKey": false,
1485
+ "notNull": false
1486
+ },
1487
+ "outcome": {
1488
+ "name": "outcome",
1489
+ "type": "text",
1490
+ "primaryKey": false,
1491
+ "notNull": false
1492
+ },
1493
+ "reason": {
1494
+ "name": "reason",
1495
+ "type": "text",
1496
+ "primaryKey": false,
1497
+ "notNull": false
1498
+ }
1499
+ },
1500
+ "indexes": {
1501
+ "project_notes_project_idx": {
1502
+ "name": "project_notes_project_idx",
1503
+ "columns": [
1504
+ {
1505
+ "expression": "project_id",
1506
+ "isExpression": false,
1507
+ "asc": true,
1508
+ "nulls": "last"
1509
+ }
1510
+ ],
1511
+ "isUnique": false,
1512
+ "concurrently": false,
1513
+ "method": "btree",
1514
+ "with": {}
1515
+ },
1516
+ "project_notes_number_idx": {
1517
+ "name": "project_notes_number_idx",
1518
+ "columns": [
1519
+ {
1520
+ "expression": "project_id",
1521
+ "isExpression": false,
1522
+ "asc": true,
1523
+ "nulls": "last"
1524
+ },
1525
+ {
1526
+ "expression": "number",
1527
+ "isExpression": false,
1528
+ "asc": true,
1529
+ "nulls": "last"
1530
+ }
1531
+ ],
1532
+ "isUnique": true,
1533
+ "concurrently": false,
1534
+ "method": "btree",
1535
+ "with": {}
1536
+ }
1537
+ },
1538
+ "foreignKeys": {
1539
+ "project_notes_project_id_projects_id_fk": {
1540
+ "name": "project_notes_project_id_projects_id_fk",
1541
+ "tableFrom": "project_notes",
1542
+ "tableTo": "projects",
1543
+ "columnsFrom": [
1544
+ "project_id"
1545
+ ],
1546
+ "columnsTo": [
1547
+ "id"
1548
+ ],
1549
+ "onDelete": "cascade",
1550
+ "onUpdate": "no action"
1551
+ }
1552
+ },
1553
+ "compositePrimaryKeys": {},
1554
+ "uniqueConstraints": {},
1555
+ "policies": {},
1556
+ "checkConstraints": {},
1557
+ "isRLSEnabled": false
1558
+ },
1559
+ "public.projects": {
1560
+ "name": "projects",
1561
+ "schema": "",
1562
+ "columns": {
1563
+ "id": {
1564
+ "name": "id",
1565
+ "type": "text",
1566
+ "primaryKey": true,
1567
+ "notNull": true
1568
+ },
1569
+ "project_id": {
1570
+ "name": "project_id",
1571
+ "type": "text",
1572
+ "primaryKey": false,
1573
+ "notNull": true
1574
+ },
1575
+ "name": {
1576
+ "name": "name",
1577
+ "type": "text",
1578
+ "primaryKey": false,
1579
+ "notNull": true
1580
+ },
1581
+ "organization_id": {
1582
+ "name": "organization_id",
1583
+ "type": "text",
1584
+ "primaryKey": false,
1585
+ "notNull": false
1586
+ },
1587
+ "repo_path": {
1588
+ "name": "repo_path",
1589
+ "type": "text",
1590
+ "primaryKey": false,
1591
+ "notNull": false
1592
+ },
1593
+ "test_command": {
1594
+ "name": "test_command",
1595
+ "type": "text",
1596
+ "primaryKey": false,
1597
+ "notNull": false
1598
+ },
1599
+ "auto_approve_low_risk": {
1600
+ "name": "auto_approve_low_risk",
1601
+ "type": "boolean",
1602
+ "primaryKey": false,
1603
+ "notNull": true,
1604
+ "default": false
1605
+ },
1606
+ "ask_mode": {
1607
+ "name": "ask_mode",
1608
+ "type": "text",
1609
+ "primaryKey": false,
1610
+ "notNull": false
1611
+ },
1612
+ "base_status": {
1613
+ "name": "base_status",
1614
+ "type": "text",
1615
+ "primaryKey": false,
1616
+ "notNull": true,
1617
+ "default": "'none'"
1618
+ },
1619
+ "base_commit": {
1620
+ "name": "base_commit",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": false
1624
+ },
1625
+ "base_lock_hash": {
1626
+ "name": "base_lock_hash",
1627
+ "type": "text",
1628
+ "primaryKey": false,
1629
+ "notNull": false
1630
+ },
1631
+ "base_message": {
1632
+ "name": "base_message",
1633
+ "type": "text",
1634
+ "primaryKey": false,
1635
+ "notNull": false
1636
+ },
1637
+ "base_updated_at": {
1638
+ "name": "base_updated_at",
1639
+ "type": "text",
1640
+ "primaryKey": false,
1641
+ "notNull": false
1642
+ },
1643
+ "register_seq": {
1644
+ "name": "register_seq",
1645
+ "type": "integer",
1646
+ "primaryKey": false,
1647
+ "notNull": true,
1648
+ "default": 0
1649
+ },
1650
+ "created_at": {
1651
+ "name": "created_at",
1652
+ "type": "text",
1653
+ "primaryKey": false,
1654
+ "notNull": true
1655
+ }
1656
+ },
1657
+ "indexes": {},
1658
+ "foreignKeys": {
1659
+ "projects_organization_id_organizations_id_fk": {
1660
+ "name": "projects_organization_id_organizations_id_fk",
1661
+ "tableFrom": "projects",
1662
+ "tableTo": "organizations",
1663
+ "columnsFrom": [
1664
+ "organization_id"
1665
+ ],
1666
+ "columnsTo": [
1667
+ "id"
1668
+ ],
1669
+ "onDelete": "cascade",
1670
+ "onUpdate": "no action"
1671
+ }
1672
+ },
1673
+ "compositePrimaryKeys": {},
1674
+ "uniqueConstraints": {},
1675
+ "policies": {},
1676
+ "checkConstraints": {},
1677
+ "isRLSEnabled": false
1678
+ },
1679
+ "public.questions": {
1680
+ "name": "questions",
1681
+ "schema": "",
1682
+ "columns": {
1683
+ "id": {
1684
+ "name": "id",
1685
+ "type": "text",
1686
+ "primaryKey": true,
1687
+ "notNull": true
1688
+ },
1689
+ "project_id": {
1690
+ "name": "project_id",
1691
+ "type": "text",
1692
+ "primaryKey": false,
1693
+ "notNull": true
1694
+ },
1695
+ "run_id": {
1696
+ "name": "run_id",
1697
+ "type": "text",
1698
+ "primaryKey": false,
1699
+ "notNull": true
1700
+ },
1701
+ "node_run_id": {
1702
+ "name": "node_run_id",
1703
+ "type": "text",
1704
+ "primaryKey": false,
1705
+ "notNull": true
1706
+ },
1707
+ "finding_id": {
1708
+ "name": "finding_id",
1709
+ "type": "text",
1710
+ "primaryKey": false,
1711
+ "notNull": false
1712
+ },
1713
+ "kind": {
1714
+ "name": "kind",
1715
+ "type": "text",
1716
+ "primaryKey": false,
1717
+ "notNull": true
1718
+ },
1719
+ "text": {
1720
+ "name": "text",
1721
+ "type": "text",
1722
+ "primaryKey": false,
1723
+ "notNull": true
1724
+ },
1725
+ "why": {
1726
+ "name": "why",
1727
+ "type": "text",
1728
+ "primaryKey": false,
1729
+ "notNull": true
1730
+ },
1731
+ "detail": {
1732
+ "name": "detail",
1733
+ "type": "text",
1734
+ "primaryKey": false,
1735
+ "notNull": false
1736
+ },
1737
+ "options_json": {
1738
+ "name": "options_json",
1739
+ "type": "text",
1740
+ "primaryKey": false,
1741
+ "notNull": true
1742
+ },
1743
+ "recommended": {
1744
+ "name": "recommended",
1745
+ "type": "text",
1746
+ "primaryKey": false,
1747
+ "notNull": false
1748
+ },
1749
+ "touches_json": {
1750
+ "name": "touches_json",
1751
+ "type": "text",
1752
+ "primaryKey": false,
1753
+ "notNull": true
1754
+ },
1755
+ "paths": {
1756
+ "name": "paths",
1757
+ "type": "text",
1758
+ "primaryKey": false,
1759
+ "notNull": false
1760
+ },
1761
+ "state": {
1762
+ "name": "state",
1763
+ "type": "text",
1764
+ "primaryKey": false,
1765
+ "notNull": true
1766
+ },
1767
+ "answer_option": {
1768
+ "name": "answer_option",
1769
+ "type": "text",
1770
+ "primaryKey": false,
1771
+ "notNull": false
1772
+ },
1773
+ "answer_text": {
1774
+ "name": "answer_text",
1775
+ "type": "text",
1776
+ "primaryKey": false,
1777
+ "notNull": false
1778
+ },
1779
+ "actor": {
1780
+ "name": "actor",
1781
+ "type": "text",
1782
+ "primaryKey": false,
1783
+ "notNull": false
1784
+ },
1785
+ "answered_at": {
1786
+ "name": "answered_at",
1787
+ "type": "text",
1788
+ "primaryKey": false,
1789
+ "notNull": false
1790
+ },
1791
+ "delivered_at": {
1792
+ "name": "delivered_at",
1793
+ "type": "text",
1794
+ "primaryKey": false,
1795
+ "notNull": false
1796
+ },
1797
+ "consumed_at": {
1798
+ "name": "consumed_at",
1799
+ "type": "text",
1800
+ "primaryKey": false,
1801
+ "notNull": false
1802
+ },
1803
+ "created_at": {
1804
+ "name": "created_at",
1805
+ "type": "text",
1806
+ "primaryKey": false,
1807
+ "notNull": true
1808
+ }
1809
+ },
1810
+ "indexes": {
1811
+ "questions_run_idx": {
1812
+ "name": "questions_run_idx",
1813
+ "columns": [
1814
+ {
1815
+ "expression": "run_id",
1816
+ "isExpression": false,
1817
+ "asc": true,
1818
+ "nulls": "last"
1819
+ }
1820
+ ],
1821
+ "isUnique": false,
1822
+ "concurrently": false,
1823
+ "method": "btree",
1824
+ "with": {}
1825
+ },
1826
+ "questions_asked_once": {
1827
+ "name": "questions_asked_once",
1828
+ "columns": [
1829
+ {
1830
+ "expression": "run_id",
1831
+ "isExpression": false,
1832
+ "asc": true,
1833
+ "nulls": "last"
1834
+ },
1835
+ {
1836
+ "expression": "node_run_id",
1837
+ "isExpression": false,
1838
+ "asc": true,
1839
+ "nulls": "last"
1840
+ },
1841
+ {
1842
+ "expression": "kind",
1843
+ "isExpression": false,
1844
+ "asc": true,
1845
+ "nulls": "last"
1846
+ },
1847
+ {
1848
+ "expression": "coalesce(\"finding_id\", '')",
1849
+ "asc": true,
1850
+ "isExpression": true,
1851
+ "nulls": "last"
1852
+ }
1853
+ ],
1854
+ "isUnique": true,
1855
+ "where": "\"questions\".\"kind\" <> 'plan'",
1856
+ "concurrently": false,
1857
+ "method": "btree",
1858
+ "with": {}
1859
+ },
1860
+ "questions_plan_open_once": {
1861
+ "name": "questions_plan_open_once",
1862
+ "columns": [
1863
+ {
1864
+ "expression": "run_id",
1865
+ "isExpression": false,
1866
+ "asc": true,
1867
+ "nulls": "last"
1868
+ },
1869
+ {
1870
+ "expression": "node_run_id",
1871
+ "isExpression": false,
1872
+ "asc": true,
1873
+ "nulls": "last"
1874
+ }
1875
+ ],
1876
+ "isUnique": true,
1877
+ "where": "\"questions\".\"kind\" = 'plan' and \"questions\".\"consumed_at\" is null",
1878
+ "concurrently": false,
1879
+ "method": "btree",
1880
+ "with": {}
1881
+ }
1882
+ },
1883
+ "foreignKeys": {
1884
+ "questions_project_id_projects_id_fk": {
1885
+ "name": "questions_project_id_projects_id_fk",
1886
+ "tableFrom": "questions",
1887
+ "tableTo": "projects",
1888
+ "columnsFrom": [
1889
+ "project_id"
1890
+ ],
1891
+ "columnsTo": [
1892
+ "id"
1893
+ ],
1894
+ "onDelete": "cascade",
1895
+ "onUpdate": "no action"
1896
+ },
1897
+ "questions_run_id_runs_id_fk": {
1898
+ "name": "questions_run_id_runs_id_fk",
1899
+ "tableFrom": "questions",
1900
+ "tableTo": "runs",
1901
+ "columnsFrom": [
1902
+ "run_id"
1903
+ ],
1904
+ "columnsTo": [
1905
+ "id"
1906
+ ],
1907
+ "onDelete": "cascade",
1908
+ "onUpdate": "no action"
1909
+ },
1910
+ "questions_node_run_id_node_runs_id_fk": {
1911
+ "name": "questions_node_run_id_node_runs_id_fk",
1912
+ "tableFrom": "questions",
1913
+ "tableTo": "node_runs",
1914
+ "columnsFrom": [
1915
+ "node_run_id"
1916
+ ],
1917
+ "columnsTo": [
1918
+ "id"
1919
+ ],
1920
+ "onDelete": "cascade",
1921
+ "onUpdate": "no action"
1922
+ }
1923
+ },
1924
+ "compositePrimaryKeys": {},
1925
+ "uniqueConstraints": {},
1926
+ "policies": {},
1927
+ "checkConstraints": {},
1928
+ "isRLSEnabled": false
1929
+ },
1930
+ "public.run_steps": {
1931
+ "name": "run_steps",
1932
+ "schema": "",
1933
+ "columns": {
1934
+ "run_id": {
1935
+ "name": "run_id",
1936
+ "type": "text",
1937
+ "primaryKey": false,
1938
+ "notNull": true
1939
+ },
1940
+ "step_id": {
1941
+ "name": "step_id",
1942
+ "type": "text",
1943
+ "primaryKey": false,
1944
+ "notNull": true
1945
+ },
1946
+ "result_json": {
1947
+ "name": "result_json",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": true
1951
+ },
1952
+ "created_at": {
1953
+ "name": "created_at",
1954
+ "type": "text",
1955
+ "primaryKey": false,
1956
+ "notNull": true
1957
+ }
1958
+ },
1959
+ "indexes": {},
1960
+ "foreignKeys": {
1961
+ "run_steps_run_id_runs_id_fk": {
1962
+ "name": "run_steps_run_id_runs_id_fk",
1963
+ "tableFrom": "run_steps",
1964
+ "tableTo": "runs",
1965
+ "columnsFrom": [
1966
+ "run_id"
1967
+ ],
1968
+ "columnsTo": [
1969
+ "id"
1970
+ ],
1971
+ "onDelete": "cascade",
1972
+ "onUpdate": "no action"
1973
+ }
1974
+ },
1975
+ "compositePrimaryKeys": {
1976
+ "run_steps_run_id_step_id_pk": {
1977
+ "name": "run_steps_run_id_step_id_pk",
1978
+ "columns": [
1979
+ "run_id",
1980
+ "step_id"
1981
+ ]
1982
+ }
1983
+ },
1984
+ "uniqueConstraints": {},
1985
+ "policies": {},
1986
+ "checkConstraints": {},
1987
+ "isRLSEnabled": false
1988
+ },
1989
+ "public.runs": {
1990
+ "name": "runs",
1991
+ "schema": "",
1992
+ "columns": {
1993
+ "id": {
1994
+ "name": "id",
1995
+ "type": "text",
1996
+ "primaryKey": true,
1997
+ "notNull": true
1998
+ },
1999
+ "project_id": {
2000
+ "name": "project_id",
2001
+ "type": "text",
2002
+ "primaryKey": false,
2003
+ "notNull": true
2004
+ },
2005
+ "workflow_id": {
2006
+ "name": "workflow_id",
2007
+ "type": "text",
2008
+ "primaryKey": false,
2009
+ "notNull": true
2010
+ },
2011
+ "version_id": {
2012
+ "name": "version_id",
2013
+ "type": "text",
2014
+ "primaryKey": false,
2015
+ "notNull": true
2016
+ },
2017
+ "status": {
2018
+ "name": "status",
2019
+ "type": "text",
2020
+ "primaryKey": false,
2021
+ "notNull": true
2022
+ },
2023
+ "request": {
2024
+ "name": "request",
2025
+ "type": "text",
2026
+ "primaryKey": false,
2027
+ "notNull": true
2028
+ },
2029
+ "title": {
2030
+ "name": "title",
2031
+ "type": "text",
2032
+ "primaryKey": false,
2033
+ "notNull": false
2034
+ },
2035
+ "title_by_person": {
2036
+ "name": "title_by_person",
2037
+ "type": "boolean",
2038
+ "primaryKey": false,
2039
+ "notNull": true,
2040
+ "default": false
2041
+ },
2042
+ "stop_for_me": {
2043
+ "name": "stop_for_me",
2044
+ "type": "boolean",
2045
+ "primaryKey": false,
2046
+ "notNull": true,
2047
+ "default": false
2048
+ },
2049
+ "memory_json": {
2050
+ "name": "memory_json",
2051
+ "type": "text",
2052
+ "primaryKey": false,
2053
+ "notNull": false
2054
+ },
2055
+ "provider_id": {
2056
+ "name": "provider_id",
2057
+ "type": "text",
2058
+ "primaryKey": false,
2059
+ "notNull": true
2060
+ },
2061
+ "machine_id": {
2062
+ "name": "machine_id",
2063
+ "type": "text",
2064
+ "primaryKey": false,
2065
+ "notNull": false
2066
+ },
2067
+ "review_json": {
2068
+ "name": "review_json",
2069
+ "type": "text",
2070
+ "primaryKey": false,
2071
+ "notNull": false
2072
+ },
2073
+ "worktree_path": {
2074
+ "name": "worktree_path",
2075
+ "type": "text",
2076
+ "primaryKey": false,
2077
+ "notNull": false
2078
+ },
2079
+ "branch": {
2080
+ "name": "branch",
2081
+ "type": "text",
2082
+ "primaryKey": false,
2083
+ "notNull": false
2084
+ },
2085
+ "base_commit": {
2086
+ "name": "base_commit",
2087
+ "type": "text",
2088
+ "primaryKey": false,
2089
+ "notNull": false
2090
+ },
2091
+ "parent_run_id": {
2092
+ "name": "parent_run_id",
2093
+ "type": "text",
2094
+ "primaryKey": false,
2095
+ "notNull": false
2096
+ },
2097
+ "delivery_base": {
2098
+ "name": "delivery_base",
2099
+ "type": "text",
2100
+ "primaryKey": false,
2101
+ "notNull": false
2102
+ },
2103
+ "created_at": {
2104
+ "name": "created_at",
2105
+ "type": "text",
2106
+ "primaryKey": false,
2107
+ "notNull": true
2108
+ },
2109
+ "started_at": {
2110
+ "name": "started_at",
2111
+ "type": "text",
2112
+ "primaryKey": false,
2113
+ "notNull": false
2114
+ },
2115
+ "finished_at": {
2116
+ "name": "finished_at",
2117
+ "type": "text",
2118
+ "primaryKey": false,
2119
+ "notNull": false
2120
+ }
2121
+ },
2122
+ "indexes": {
2123
+ "runs_workflow_idx": {
2124
+ "name": "runs_workflow_idx",
2125
+ "columns": [
2126
+ {
2127
+ "expression": "workflow_id",
2128
+ "isExpression": false,
2129
+ "asc": true,
2130
+ "nulls": "last"
2131
+ }
2132
+ ],
2133
+ "isUnique": false,
2134
+ "concurrently": false,
2135
+ "method": "btree",
2136
+ "with": {}
2137
+ }
2138
+ },
2139
+ "foreignKeys": {
2140
+ "runs_project_id_projects_id_fk": {
2141
+ "name": "runs_project_id_projects_id_fk",
2142
+ "tableFrom": "runs",
2143
+ "tableTo": "projects",
2144
+ "columnsFrom": [
2145
+ "project_id"
2146
+ ],
2147
+ "columnsTo": [
2148
+ "id"
2149
+ ],
2150
+ "onDelete": "cascade",
2151
+ "onUpdate": "no action"
2152
+ },
2153
+ "runs_workflow_id_workflows_id_fk": {
2154
+ "name": "runs_workflow_id_workflows_id_fk",
2155
+ "tableFrom": "runs",
2156
+ "tableTo": "workflows",
2157
+ "columnsFrom": [
2158
+ "workflow_id"
2159
+ ],
2160
+ "columnsTo": [
2161
+ "id"
2162
+ ],
2163
+ "onDelete": "restrict",
2164
+ "onUpdate": "no action"
2165
+ },
2166
+ "runs_version_id_workflow_versions_id_fk": {
2167
+ "name": "runs_version_id_workflow_versions_id_fk",
2168
+ "tableFrom": "runs",
2169
+ "tableTo": "workflow_versions",
2170
+ "columnsFrom": [
2171
+ "version_id"
2172
+ ],
2173
+ "columnsTo": [
2174
+ "id"
2175
+ ],
2176
+ "onDelete": "restrict",
2177
+ "onUpdate": "no action"
2178
+ }
2179
+ },
2180
+ "compositePrimaryKeys": {},
2181
+ "uniqueConstraints": {},
2182
+ "policies": {},
2183
+ "checkConstraints": {},
2184
+ "isRLSEnabled": false
2185
+ },
2186
+ "public.usage_records": {
2187
+ "name": "usage_records",
2188
+ "schema": "",
2189
+ "columns": {
2190
+ "id": {
2191
+ "name": "id",
2192
+ "type": "text",
2193
+ "primaryKey": true,
2194
+ "notNull": true
2195
+ },
2196
+ "project_id": {
2197
+ "name": "project_id",
2198
+ "type": "text",
2199
+ "primaryKey": false,
2200
+ "notNull": true
2201
+ },
2202
+ "node_run_id": {
2203
+ "name": "node_run_id",
2204
+ "type": "text",
2205
+ "primaryKey": false,
2206
+ "notNull": true
2207
+ },
2208
+ "tokens": {
2209
+ "name": "tokens",
2210
+ "type": "integer",
2211
+ "primaryKey": false,
2212
+ "notNull": false
2213
+ },
2214
+ "cost_cents": {
2215
+ "name": "cost_cents",
2216
+ "type": "integer",
2217
+ "primaryKey": false,
2218
+ "notNull": false
2219
+ },
2220
+ "created_at": {
2221
+ "name": "created_at",
2222
+ "type": "text",
2223
+ "primaryKey": false,
2224
+ "notNull": true
2225
+ }
2226
+ },
2227
+ "indexes": {
2228
+ "usage_records_node_run_idx": {
2229
+ "name": "usage_records_node_run_idx",
2230
+ "columns": [
2231
+ {
2232
+ "expression": "node_run_id",
2233
+ "isExpression": false,
2234
+ "asc": true,
2235
+ "nulls": "last"
2236
+ }
2237
+ ],
2238
+ "isUnique": false,
2239
+ "concurrently": false,
2240
+ "method": "btree",
2241
+ "with": {}
2242
+ }
2243
+ },
2244
+ "foreignKeys": {
2245
+ "usage_records_project_id_projects_id_fk": {
2246
+ "name": "usage_records_project_id_projects_id_fk",
2247
+ "tableFrom": "usage_records",
2248
+ "tableTo": "projects",
2249
+ "columnsFrom": [
2250
+ "project_id"
2251
+ ],
2252
+ "columnsTo": [
2253
+ "id"
2254
+ ],
2255
+ "onDelete": "cascade",
2256
+ "onUpdate": "no action"
2257
+ },
2258
+ "usage_records_node_run_id_node_runs_id_fk": {
2259
+ "name": "usage_records_node_run_id_node_runs_id_fk",
2260
+ "tableFrom": "usage_records",
2261
+ "tableTo": "node_runs",
2262
+ "columnsFrom": [
2263
+ "node_run_id"
2264
+ ],
2265
+ "columnsTo": [
2266
+ "id"
2267
+ ],
2268
+ "onDelete": "cascade",
2269
+ "onUpdate": "no action"
2270
+ }
2271
+ },
2272
+ "compositePrimaryKeys": {},
2273
+ "uniqueConstraints": {},
2274
+ "policies": {},
2275
+ "checkConstraints": {},
2276
+ "isRLSEnabled": false
2277
+ },
2278
+ "public.workflow_versions": {
2279
+ "name": "workflow_versions",
2280
+ "schema": "",
2281
+ "columns": {
2282
+ "id": {
2283
+ "name": "id",
2284
+ "type": "text",
2285
+ "primaryKey": true,
2286
+ "notNull": true
2287
+ },
2288
+ "project_id": {
2289
+ "name": "project_id",
2290
+ "type": "text",
2291
+ "primaryKey": false,
2292
+ "notNull": true
2293
+ },
2294
+ "workflow_id": {
2295
+ "name": "workflow_id",
2296
+ "type": "text",
2297
+ "primaryKey": false,
2298
+ "notNull": true
2299
+ },
2300
+ "graph_json": {
2301
+ "name": "graph_json",
2302
+ "type": "text",
2303
+ "primaryKey": false,
2304
+ "notNull": true
2305
+ },
2306
+ "hash": {
2307
+ "name": "hash",
2308
+ "type": "text",
2309
+ "primaryKey": false,
2310
+ "notNull": true
2311
+ },
2312
+ "created_at": {
2313
+ "name": "created_at",
2314
+ "type": "text",
2315
+ "primaryKey": false,
2316
+ "notNull": true
2317
+ }
2318
+ },
2319
+ "indexes": {
2320
+ "workflow_versions_workflow_idx": {
2321
+ "name": "workflow_versions_workflow_idx",
2322
+ "columns": [
2323
+ {
2324
+ "expression": "workflow_id",
2325
+ "isExpression": false,
2326
+ "asc": true,
2327
+ "nulls": "last"
2328
+ }
2329
+ ],
2330
+ "isUnique": false,
2331
+ "concurrently": false,
2332
+ "method": "btree",
2333
+ "with": {}
2334
+ }
2335
+ },
2336
+ "foreignKeys": {
2337
+ "workflow_versions_project_id_projects_id_fk": {
2338
+ "name": "workflow_versions_project_id_projects_id_fk",
2339
+ "tableFrom": "workflow_versions",
2340
+ "tableTo": "projects",
2341
+ "columnsFrom": [
2342
+ "project_id"
2343
+ ],
2344
+ "columnsTo": [
2345
+ "id"
2346
+ ],
2347
+ "onDelete": "cascade",
2348
+ "onUpdate": "no action"
2349
+ },
2350
+ "workflow_versions_workflow_id_workflows_id_fk": {
2351
+ "name": "workflow_versions_workflow_id_workflows_id_fk",
2352
+ "tableFrom": "workflow_versions",
2353
+ "tableTo": "workflows",
2354
+ "columnsFrom": [
2355
+ "workflow_id"
2356
+ ],
2357
+ "columnsTo": [
2358
+ "id"
2359
+ ],
2360
+ "onDelete": "cascade",
2361
+ "onUpdate": "no action"
2362
+ }
2363
+ },
2364
+ "compositePrimaryKeys": {},
2365
+ "uniqueConstraints": {},
2366
+ "policies": {},
2367
+ "checkConstraints": {},
2368
+ "isRLSEnabled": false
2369
+ },
2370
+ "public.workflows": {
2371
+ "name": "workflows",
2372
+ "schema": "",
2373
+ "columns": {
2374
+ "id": {
2375
+ "name": "id",
2376
+ "type": "text",
2377
+ "primaryKey": true,
2378
+ "notNull": true
2379
+ },
2380
+ "project_id": {
2381
+ "name": "project_id",
2382
+ "type": "text",
2383
+ "primaryKey": false,
2384
+ "notNull": true
2385
+ },
2386
+ "name": {
2387
+ "name": "name",
2388
+ "type": "text",
2389
+ "primaryKey": false,
2390
+ "notNull": true
2391
+ },
2392
+ "draft_json": {
2393
+ "name": "draft_json",
2394
+ "type": "text",
2395
+ "primaryKey": false,
2396
+ "notNull": true
2397
+ },
2398
+ "created_at": {
2399
+ "name": "created_at",
2400
+ "type": "text",
2401
+ "primaryKey": false,
2402
+ "notNull": true
2403
+ },
2404
+ "updated_at": {
2405
+ "name": "updated_at",
2406
+ "type": "text",
2407
+ "primaryKey": false,
2408
+ "notNull": true
2409
+ }
2410
+ },
2411
+ "indexes": {},
2412
+ "foreignKeys": {
2413
+ "workflows_project_id_projects_id_fk": {
2414
+ "name": "workflows_project_id_projects_id_fk",
2415
+ "tableFrom": "workflows",
2416
+ "tableTo": "projects",
2417
+ "columnsFrom": [
2418
+ "project_id"
2419
+ ],
2420
+ "columnsTo": [
2421
+ "id"
2422
+ ],
2423
+ "onDelete": "cascade",
2424
+ "onUpdate": "no action"
2425
+ }
2426
+ },
2427
+ "compositePrimaryKeys": {},
2428
+ "uniqueConstraints": {},
2429
+ "policies": {},
2430
+ "checkConstraints": {},
2431
+ "isRLSEnabled": false
2432
+ },
2433
+ "public.accounts": {
2434
+ "name": "accounts",
2435
+ "schema": "",
2436
+ "columns": {
2437
+ "id": {
2438
+ "name": "id",
2439
+ "type": "text",
2440
+ "primaryKey": true,
2441
+ "notNull": true
2442
+ },
2443
+ "account_id": {
2444
+ "name": "account_id",
2445
+ "type": "text",
2446
+ "primaryKey": false,
2447
+ "notNull": true
2448
+ },
2449
+ "provider_id": {
2450
+ "name": "provider_id",
2451
+ "type": "text",
2452
+ "primaryKey": false,
2453
+ "notNull": true
2454
+ },
2455
+ "user_id": {
2456
+ "name": "user_id",
2457
+ "type": "text",
2458
+ "primaryKey": false,
2459
+ "notNull": true
2460
+ },
2461
+ "access_token": {
2462
+ "name": "access_token",
2463
+ "type": "text",
2464
+ "primaryKey": false,
2465
+ "notNull": false
2466
+ },
2467
+ "refresh_token": {
2468
+ "name": "refresh_token",
2469
+ "type": "text",
2470
+ "primaryKey": false,
2471
+ "notNull": false
2472
+ },
2473
+ "id_token": {
2474
+ "name": "id_token",
2475
+ "type": "text",
2476
+ "primaryKey": false,
2477
+ "notNull": false
2478
+ },
2479
+ "access_token_expires_at": {
2480
+ "name": "access_token_expires_at",
2481
+ "type": "timestamp with time zone",
2482
+ "primaryKey": false,
2483
+ "notNull": false
2484
+ },
2485
+ "refresh_token_expires_at": {
2486
+ "name": "refresh_token_expires_at",
2487
+ "type": "timestamp with time zone",
2488
+ "primaryKey": false,
2489
+ "notNull": false
2490
+ },
2491
+ "scope": {
2492
+ "name": "scope",
2493
+ "type": "text",
2494
+ "primaryKey": false,
2495
+ "notNull": false
2496
+ },
2497
+ "password": {
2498
+ "name": "password",
2499
+ "type": "text",
2500
+ "primaryKey": false,
2501
+ "notNull": false
2502
+ },
2503
+ "created_at": {
2504
+ "name": "created_at",
2505
+ "type": "timestamp with time zone",
2506
+ "primaryKey": false,
2507
+ "notNull": true
2508
+ },
2509
+ "updated_at": {
2510
+ "name": "updated_at",
2511
+ "type": "timestamp with time zone",
2512
+ "primaryKey": false,
2513
+ "notNull": true
2514
+ }
2515
+ },
2516
+ "indexes": {
2517
+ "accounts_user_idx": {
2518
+ "name": "accounts_user_idx",
2519
+ "columns": [
2520
+ {
2521
+ "expression": "user_id",
2522
+ "isExpression": false,
2523
+ "asc": true,
2524
+ "nulls": "last"
2525
+ }
2526
+ ],
2527
+ "isUnique": false,
2528
+ "concurrently": false,
2529
+ "method": "btree",
2530
+ "with": {}
2531
+ }
2532
+ },
2533
+ "foreignKeys": {
2534
+ "accounts_user_id_users_id_fk": {
2535
+ "name": "accounts_user_id_users_id_fk",
2536
+ "tableFrom": "accounts",
2537
+ "tableTo": "users",
2538
+ "columnsFrom": [
2539
+ "user_id"
2540
+ ],
2541
+ "columnsTo": [
2542
+ "id"
2543
+ ],
2544
+ "onDelete": "cascade",
2545
+ "onUpdate": "no action"
2546
+ }
2547
+ },
2548
+ "compositePrimaryKeys": {},
2549
+ "uniqueConstraints": {},
2550
+ "policies": {},
2551
+ "checkConstraints": {},
2552
+ "isRLSEnabled": false
2553
+ },
2554
+ "public.invitations": {
2555
+ "name": "invitations",
2556
+ "schema": "",
2557
+ "columns": {
2558
+ "id": {
2559
+ "name": "id",
2560
+ "type": "text",
2561
+ "primaryKey": true,
2562
+ "notNull": true
2563
+ },
2564
+ "organization_id": {
2565
+ "name": "organization_id",
2566
+ "type": "text",
2567
+ "primaryKey": false,
2568
+ "notNull": true
2569
+ },
2570
+ "email": {
2571
+ "name": "email",
2572
+ "type": "text",
2573
+ "primaryKey": false,
2574
+ "notNull": true
2575
+ },
2576
+ "role": {
2577
+ "name": "role",
2578
+ "type": "text",
2579
+ "primaryKey": false,
2580
+ "notNull": false
2581
+ },
2582
+ "status": {
2583
+ "name": "status",
2584
+ "type": "text",
2585
+ "primaryKey": false,
2586
+ "notNull": true,
2587
+ "default": "'pending'"
2588
+ },
2589
+ "expires_at": {
2590
+ "name": "expires_at",
2591
+ "type": "timestamp with time zone",
2592
+ "primaryKey": false,
2593
+ "notNull": true
2594
+ },
2595
+ "created_at": {
2596
+ "name": "created_at",
2597
+ "type": "timestamp with time zone",
2598
+ "primaryKey": false,
2599
+ "notNull": true
2600
+ },
2601
+ "inviter_id": {
2602
+ "name": "inviter_id",
2603
+ "type": "text",
2604
+ "primaryKey": false,
2605
+ "notNull": true
2606
+ }
2607
+ },
2608
+ "indexes": {
2609
+ "invitations_organization_idx": {
2610
+ "name": "invitations_organization_idx",
2611
+ "columns": [
2612
+ {
2613
+ "expression": "organization_id",
2614
+ "isExpression": false,
2615
+ "asc": true,
2616
+ "nulls": "last"
2617
+ }
2618
+ ],
2619
+ "isUnique": false,
2620
+ "concurrently": false,
2621
+ "method": "btree",
2622
+ "with": {}
2623
+ }
2624
+ },
2625
+ "foreignKeys": {
2626
+ "invitations_organization_id_organizations_id_fk": {
2627
+ "name": "invitations_organization_id_organizations_id_fk",
2628
+ "tableFrom": "invitations",
2629
+ "tableTo": "organizations",
2630
+ "columnsFrom": [
2631
+ "organization_id"
2632
+ ],
2633
+ "columnsTo": [
2634
+ "id"
2635
+ ],
2636
+ "onDelete": "cascade",
2637
+ "onUpdate": "no action"
2638
+ },
2639
+ "invitations_inviter_id_users_id_fk": {
2640
+ "name": "invitations_inviter_id_users_id_fk",
2641
+ "tableFrom": "invitations",
2642
+ "tableTo": "users",
2643
+ "columnsFrom": [
2644
+ "inviter_id"
2645
+ ],
2646
+ "columnsTo": [
2647
+ "id"
2648
+ ],
2649
+ "onDelete": "cascade",
2650
+ "onUpdate": "no action"
2651
+ }
2652
+ },
2653
+ "compositePrimaryKeys": {},
2654
+ "uniqueConstraints": {},
2655
+ "policies": {},
2656
+ "checkConstraints": {},
2657
+ "isRLSEnabled": false
2658
+ },
2659
+ "public.members": {
2660
+ "name": "members",
2661
+ "schema": "",
2662
+ "columns": {
2663
+ "id": {
2664
+ "name": "id",
2665
+ "type": "text",
2666
+ "primaryKey": true,
2667
+ "notNull": true
2668
+ },
2669
+ "organization_id": {
2670
+ "name": "organization_id",
2671
+ "type": "text",
2672
+ "primaryKey": false,
2673
+ "notNull": true
2674
+ },
2675
+ "user_id": {
2676
+ "name": "user_id",
2677
+ "type": "text",
2678
+ "primaryKey": false,
2679
+ "notNull": true
2680
+ },
2681
+ "role": {
2682
+ "name": "role",
2683
+ "type": "text",
2684
+ "primaryKey": false,
2685
+ "notNull": true,
2686
+ "default": "'member'"
2687
+ },
2688
+ "created_at": {
2689
+ "name": "created_at",
2690
+ "type": "timestamp with time zone",
2691
+ "primaryKey": false,
2692
+ "notNull": true
2693
+ }
2694
+ },
2695
+ "indexes": {
2696
+ "members_once": {
2697
+ "name": "members_once",
2698
+ "columns": [
2699
+ {
2700
+ "expression": "organization_id",
2701
+ "isExpression": false,
2702
+ "asc": true,
2703
+ "nulls": "last"
2704
+ },
2705
+ {
2706
+ "expression": "user_id",
2707
+ "isExpression": false,
2708
+ "asc": true,
2709
+ "nulls": "last"
2710
+ }
2711
+ ],
2712
+ "isUnique": true,
2713
+ "concurrently": false,
2714
+ "method": "btree",
2715
+ "with": {}
2716
+ },
2717
+ "members_user_idx": {
2718
+ "name": "members_user_idx",
2719
+ "columns": [
2720
+ {
2721
+ "expression": "user_id",
2722
+ "isExpression": false,
2723
+ "asc": true,
2724
+ "nulls": "last"
2725
+ }
2726
+ ],
2727
+ "isUnique": false,
2728
+ "concurrently": false,
2729
+ "method": "btree",
2730
+ "with": {}
2731
+ }
2732
+ },
2733
+ "foreignKeys": {
2734
+ "members_organization_id_organizations_id_fk": {
2735
+ "name": "members_organization_id_organizations_id_fk",
2736
+ "tableFrom": "members",
2737
+ "tableTo": "organizations",
2738
+ "columnsFrom": [
2739
+ "organization_id"
2740
+ ],
2741
+ "columnsTo": [
2742
+ "id"
2743
+ ],
2744
+ "onDelete": "cascade",
2745
+ "onUpdate": "no action"
2746
+ },
2747
+ "members_user_id_users_id_fk": {
2748
+ "name": "members_user_id_users_id_fk",
2749
+ "tableFrom": "members",
2750
+ "tableTo": "users",
2751
+ "columnsFrom": [
2752
+ "user_id"
2753
+ ],
2754
+ "columnsTo": [
2755
+ "id"
2756
+ ],
2757
+ "onDelete": "cascade",
2758
+ "onUpdate": "no action"
2759
+ }
2760
+ },
2761
+ "compositePrimaryKeys": {},
2762
+ "uniqueConstraints": {},
2763
+ "policies": {},
2764
+ "checkConstraints": {},
2765
+ "isRLSEnabled": false
2766
+ },
2767
+ "public.organizations": {
2768
+ "name": "organizations",
2769
+ "schema": "",
2770
+ "columns": {
2771
+ "id": {
2772
+ "name": "id",
2773
+ "type": "text",
2774
+ "primaryKey": true,
2775
+ "notNull": true
2776
+ },
2777
+ "name": {
2778
+ "name": "name",
2779
+ "type": "text",
2780
+ "primaryKey": false,
2781
+ "notNull": true
2782
+ },
2783
+ "slug": {
2784
+ "name": "slug",
2785
+ "type": "text",
2786
+ "primaryKey": false,
2787
+ "notNull": true
2788
+ },
2789
+ "logo": {
2790
+ "name": "logo",
2791
+ "type": "text",
2792
+ "primaryKey": false,
2793
+ "notNull": false
2794
+ },
2795
+ "created_at": {
2796
+ "name": "created_at",
2797
+ "type": "timestamp with time zone",
2798
+ "primaryKey": false,
2799
+ "notNull": true
2800
+ },
2801
+ "metadata": {
2802
+ "name": "metadata",
2803
+ "type": "text",
2804
+ "primaryKey": false,
2805
+ "notNull": false
2806
+ }
2807
+ },
2808
+ "indexes": {},
2809
+ "foreignKeys": {},
2810
+ "compositePrimaryKeys": {},
2811
+ "uniqueConstraints": {
2812
+ "organizations_slug_unique": {
2813
+ "name": "organizations_slug_unique",
2814
+ "nullsNotDistinct": false,
2815
+ "columns": [
2816
+ "slug"
2817
+ ]
2818
+ }
2819
+ },
2820
+ "policies": {},
2821
+ "checkConstraints": {},
2822
+ "isRLSEnabled": false
2823
+ },
2824
+ "public.sessions": {
2825
+ "name": "sessions",
2826
+ "schema": "",
2827
+ "columns": {
2828
+ "id": {
2829
+ "name": "id",
2830
+ "type": "text",
2831
+ "primaryKey": true,
2832
+ "notNull": true
2833
+ },
2834
+ "expires_at": {
2835
+ "name": "expires_at",
2836
+ "type": "timestamp with time zone",
2837
+ "primaryKey": false,
2838
+ "notNull": true
2839
+ },
2840
+ "token": {
2841
+ "name": "token",
2842
+ "type": "text",
2843
+ "primaryKey": false,
2844
+ "notNull": true
2845
+ },
2846
+ "created_at": {
2847
+ "name": "created_at",
2848
+ "type": "timestamp with time zone",
2849
+ "primaryKey": false,
2850
+ "notNull": true
2851
+ },
2852
+ "updated_at": {
2853
+ "name": "updated_at",
2854
+ "type": "timestamp with time zone",
2855
+ "primaryKey": false,
2856
+ "notNull": true
2857
+ },
2858
+ "ip_address": {
2859
+ "name": "ip_address",
2860
+ "type": "text",
2861
+ "primaryKey": false,
2862
+ "notNull": false
2863
+ },
2864
+ "user_agent": {
2865
+ "name": "user_agent",
2866
+ "type": "text",
2867
+ "primaryKey": false,
2868
+ "notNull": false
2869
+ },
2870
+ "user_id": {
2871
+ "name": "user_id",
2872
+ "type": "text",
2873
+ "primaryKey": false,
2874
+ "notNull": true
2875
+ },
2876
+ "active_organization_id": {
2877
+ "name": "active_organization_id",
2878
+ "type": "text",
2879
+ "primaryKey": false,
2880
+ "notNull": false
2881
+ }
2882
+ },
2883
+ "indexes": {
2884
+ "sessions_user_idx": {
2885
+ "name": "sessions_user_idx",
2886
+ "columns": [
2887
+ {
2888
+ "expression": "user_id",
2889
+ "isExpression": false,
2890
+ "asc": true,
2891
+ "nulls": "last"
2892
+ }
2893
+ ],
2894
+ "isUnique": false,
2895
+ "concurrently": false,
2896
+ "method": "btree",
2897
+ "with": {}
2898
+ }
2899
+ },
2900
+ "foreignKeys": {
2901
+ "sessions_user_id_users_id_fk": {
2902
+ "name": "sessions_user_id_users_id_fk",
2903
+ "tableFrom": "sessions",
2904
+ "tableTo": "users",
2905
+ "columnsFrom": [
2906
+ "user_id"
2907
+ ],
2908
+ "columnsTo": [
2909
+ "id"
2910
+ ],
2911
+ "onDelete": "cascade",
2912
+ "onUpdate": "no action"
2913
+ }
2914
+ },
2915
+ "compositePrimaryKeys": {},
2916
+ "uniqueConstraints": {
2917
+ "sessions_token_unique": {
2918
+ "name": "sessions_token_unique",
2919
+ "nullsNotDistinct": false,
2920
+ "columns": [
2921
+ "token"
2922
+ ]
2923
+ }
2924
+ },
2925
+ "policies": {},
2926
+ "checkConstraints": {},
2927
+ "isRLSEnabled": false
2928
+ },
2929
+ "public.users": {
2930
+ "name": "users",
2931
+ "schema": "",
2932
+ "columns": {
2933
+ "id": {
2934
+ "name": "id",
2935
+ "type": "text",
2936
+ "primaryKey": true,
2937
+ "notNull": true
2938
+ },
2939
+ "name": {
2940
+ "name": "name",
2941
+ "type": "text",
2942
+ "primaryKey": false,
2943
+ "notNull": true
2944
+ },
2945
+ "email": {
2946
+ "name": "email",
2947
+ "type": "text",
2948
+ "primaryKey": false,
2949
+ "notNull": true
2950
+ },
2951
+ "email_verified": {
2952
+ "name": "email_verified",
2953
+ "type": "boolean",
2954
+ "primaryKey": false,
2955
+ "notNull": true,
2956
+ "default": false
2957
+ },
2958
+ "image": {
2959
+ "name": "image",
2960
+ "type": "text",
2961
+ "primaryKey": false,
2962
+ "notNull": false
2963
+ },
2964
+ "created_at": {
2965
+ "name": "created_at",
2966
+ "type": "timestamp with time zone",
2967
+ "primaryKey": false,
2968
+ "notNull": true
2969
+ },
2970
+ "updated_at": {
2971
+ "name": "updated_at",
2972
+ "type": "timestamp with time zone",
2973
+ "primaryKey": false,
2974
+ "notNull": true
2975
+ }
2976
+ },
2977
+ "indexes": {},
2978
+ "foreignKeys": {},
2979
+ "compositePrimaryKeys": {},
2980
+ "uniqueConstraints": {
2981
+ "users_email_unique": {
2982
+ "name": "users_email_unique",
2983
+ "nullsNotDistinct": false,
2984
+ "columns": [
2985
+ "email"
2986
+ ]
2987
+ }
2988
+ },
2989
+ "policies": {},
2990
+ "checkConstraints": {},
2991
+ "isRLSEnabled": false
2992
+ },
2993
+ "public.verifications": {
2994
+ "name": "verifications",
2995
+ "schema": "",
2996
+ "columns": {
2997
+ "id": {
2998
+ "name": "id",
2999
+ "type": "text",
3000
+ "primaryKey": true,
3001
+ "notNull": true
3002
+ },
3003
+ "identifier": {
3004
+ "name": "identifier",
3005
+ "type": "text",
3006
+ "primaryKey": false,
3007
+ "notNull": true
3008
+ },
3009
+ "value": {
3010
+ "name": "value",
3011
+ "type": "text",
3012
+ "primaryKey": false,
3013
+ "notNull": true
3014
+ },
3015
+ "expires_at": {
3016
+ "name": "expires_at",
3017
+ "type": "timestamp with time zone",
3018
+ "primaryKey": false,
3019
+ "notNull": true
3020
+ },
3021
+ "created_at": {
3022
+ "name": "created_at",
3023
+ "type": "timestamp with time zone",
3024
+ "primaryKey": false,
3025
+ "notNull": true
3026
+ },
3027
+ "updated_at": {
3028
+ "name": "updated_at",
3029
+ "type": "timestamp with time zone",
3030
+ "primaryKey": false,
3031
+ "notNull": true
3032
+ }
3033
+ },
3034
+ "indexes": {
3035
+ "verifications_identifier_idx": {
3036
+ "name": "verifications_identifier_idx",
3037
+ "columns": [
3038
+ {
3039
+ "expression": "identifier",
3040
+ "isExpression": false,
3041
+ "asc": true,
3042
+ "nulls": "last"
3043
+ }
3044
+ ],
3045
+ "isUnique": false,
3046
+ "concurrently": false,
3047
+ "method": "btree",
3048
+ "with": {}
3049
+ }
3050
+ },
3051
+ "foreignKeys": {},
3052
+ "compositePrimaryKeys": {},
3053
+ "uniqueConstraints": {},
3054
+ "policies": {},
3055
+ "checkConstraints": {},
3056
+ "isRLSEnabled": false
3057
+ }
3058
+ },
3059
+ "enums": {},
3060
+ "schemas": {},
3061
+ "sequences": {},
3062
+ "roles": {},
3063
+ "policies": {},
3064
+ "views": {},
3065
+ "_meta": {
3066
+ "columns": {},
3067
+ "schemas": {},
3068
+ "tables": {}
3069
+ }
3070
+ }