@antasphere/chassis-server 1.0.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 (798) hide show
  1. package/LICENSE +82 -0
  2. package/dist/accounts/deletion.d.ts +163 -0
  3. package/dist/accounts/deletion.d.ts.map +1 -0
  4. package/dist/accounts/deletion.js +360 -0
  5. package/dist/accounts/deletion.js.map +1 -0
  6. package/dist/accounts/erasure-log.d.ts +66 -0
  7. package/dist/accounts/erasure-log.d.ts.map +1 -0
  8. package/dist/accounts/erasure-log.js +117 -0
  9. package/dist/accounts/erasure-log.js.map +1 -0
  10. package/dist/accounts/index.d.ts +6 -0
  11. package/dist/accounts/index.d.ts.map +1 -0
  12. package/dist/accounts/index.js +6 -0
  13. package/dist/accounts/index.js.map +1 -0
  14. package/dist/accounts/mint-refusal.d.ts +47 -0
  15. package/dist/accounts/mint-refusal.d.ts.map +1 -0
  16. package/dist/accounts/mint-refusal.js +59 -0
  17. package/dist/accounts/mint-refusal.js.map +1 -0
  18. package/dist/accounts/signup-duplicate.d.ts +14 -0
  19. package/dist/accounts/signup-duplicate.d.ts.map +1 -0
  20. package/dist/accounts/signup-duplicate.js +25 -0
  21. package/dist/accounts/signup-duplicate.js.map +1 -0
  22. package/dist/accounts/superadmin.d.ts +27 -0
  23. package/dist/accounts/superadmin.d.ts.map +1 -0
  24. package/dist/accounts/superadmin.js +46 -0
  25. package/dist/accounts/superadmin.js.map +1 -0
  26. package/dist/api/apikeys.d.ts +14 -0
  27. package/dist/api/apikeys.d.ts.map +1 -0
  28. package/dist/api/apikeys.js +124 -0
  29. package/dist/api/apikeys.js.map +1 -0
  30. package/dist/api/audit.d.ts +4 -0
  31. package/dist/api/audit.d.ts.map +1 -0
  32. package/dist/api/audit.js +75 -0
  33. package/dist/api/audit.js.map +1 -0
  34. package/dist/api/break-glass.d.ts +48 -0
  35. package/dist/api/break-glass.d.ts.map +1 -0
  36. package/dist/api/break-glass.js +217 -0
  37. package/dist/api/break-glass.js.map +1 -0
  38. package/dist/api/cli-auth.d.ts +84 -0
  39. package/dist/api/cli-auth.d.ts.map +1 -0
  40. package/dist/api/cli-auth.js +177 -0
  41. package/dist/api/cli-auth.js.map +1 -0
  42. package/dist/api/create-api.d.ts +123 -0
  43. package/dist/api/create-api.d.ts.map +1 -0
  44. package/dist/api/create-api.js +1165 -0
  45. package/dist/api/create-api.js.map +1 -0
  46. package/dist/api/demo-passes.d.ts +45 -0
  47. package/dist/api/demo-passes.d.ts.map +1 -0
  48. package/dist/api/demo-passes.js +143 -0
  49. package/dist/api/demo-passes.js.map +1 -0
  50. package/dist/api/errors.d.ts +5 -0
  51. package/dist/api/errors.d.ts.map +1 -0
  52. package/dist/api/errors.js +5 -0
  53. package/dist/api/errors.js.map +1 -0
  54. package/dist/api/export.d.ts +63 -0
  55. package/dist/api/export.d.ts.map +1 -0
  56. package/dist/api/export.js +393 -0
  57. package/dist/api/export.js.map +1 -0
  58. package/dist/api/files.d.ts +40 -0
  59. package/dist/api/files.d.ts.map +1 -0
  60. package/dist/api/files.js +150 -0
  61. package/dist/api/files.js.map +1 -0
  62. package/dist/api/index.d.ts +17 -0
  63. package/dist/api/index.d.ts.map +1 -0
  64. package/dist/api/index.js +17 -0
  65. package/dist/api/index.js.map +1 -0
  66. package/dist/api/invitations.d.ts +50 -0
  67. package/dist/api/invitations.d.ts.map +1 -0
  68. package/dist/api/invitations.js +313 -0
  69. package/dist/api/invitations.js.map +1 -0
  70. package/dist/api/members.d.ts +25 -0
  71. package/dist/api/members.d.ts.map +1 -0
  72. package/dist/api/members.js +522 -0
  73. package/dist/api/members.js.map +1 -0
  74. package/dist/api/onboarding.d.ts +26 -0
  75. package/dist/api/onboarding.d.ts.map +1 -0
  76. package/dist/api/onboarding.js +23 -0
  77. package/dist/api/onboarding.js.map +1 -0
  78. package/dist/api/openapi-doc.d.ts +21 -0
  79. package/dist/api/openapi-doc.d.ts.map +1 -0
  80. package/dist/api/openapi-doc.js +25 -0
  81. package/dist/api/openapi-doc.js.map +1 -0
  82. package/dist/api/projects.d.ts +24 -0
  83. package/dist/api/projects.d.ts.map +1 -0
  84. package/dist/api/projects.js +624 -0
  85. package/dist/api/projects.js.map +1 -0
  86. package/dist/api/scope-routes.d.ts +12 -0
  87. package/dist/api/scope-routes.d.ts.map +1 -0
  88. package/dist/api/scope-routes.js +2 -0
  89. package/dist/api/scope-routes.js.map +1 -0
  90. package/dist/api/sso-connect.d.ts +70 -0
  91. package/dist/api/sso-connect.d.ts.map +1 -0
  92. package/dist/api/sso-connect.js +164 -0
  93. package/dist/api/sso-connect.js.map +1 -0
  94. package/dist/api/sso-logout.d.ts +41 -0
  95. package/dist/api/sso-logout.d.ts.map +1 -0
  96. package/dist/api/sso-logout.js +34 -0
  97. package/dist/api/sso-logout.js.map +1 -0
  98. package/dist/api/teams.d.ts +43 -0
  99. package/dist/api/teams.d.ts.map +1 -0
  100. package/dist/api/teams.js +447 -0
  101. package/dist/api/teams.js.map +1 -0
  102. package/dist/api/workspaces.d.ts +114 -0
  103. package/dist/api/workspaces.d.ts.map +1 -0
  104. package/dist/api/workspaces.js +462 -0
  105. package/dist/api/workspaces.js.map +1 -0
  106. package/dist/apikeys/index.d.ts +3 -0
  107. package/dist/apikeys/index.d.ts.map +1 -0
  108. package/dist/apikeys/index.js +3 -0
  109. package/dist/apikeys/index.js.map +1 -0
  110. package/dist/apikeys/peppers.d.ts +53 -0
  111. package/dist/apikeys/peppers.d.ts.map +1 -0
  112. package/dist/apikeys/peppers.js +97 -0
  113. package/dist/apikeys/peppers.js.map +1 -0
  114. package/dist/apikeys/service.d.ts +56 -0
  115. package/dist/apikeys/service.d.ts.map +1 -0
  116. package/dist/apikeys/service.js +196 -0
  117. package/dist/apikeys/service.js.map +1 -0
  118. package/dist/app.d.ts +65 -0
  119. package/dist/app.d.ts.map +1 -0
  120. package/dist/app.js +142 -0
  121. package/dist/app.js.map +1 -0
  122. package/dist/audit/filters.d.ts +38 -0
  123. package/dist/audit/filters.d.ts.map +1 -0
  124. package/dist/audit/filters.js +97 -0
  125. package/dist/audit/filters.js.map +1 -0
  126. package/dist/audit/index.d.ts +3 -0
  127. package/dist/audit/index.d.ts.map +1 -0
  128. package/dist/audit/index.js +3 -0
  129. package/dist/audit/index.js.map +1 -0
  130. package/dist/audit/service.d.ts +65 -0
  131. package/dist/audit/service.d.ts.map +1 -0
  132. package/dist/audit/service.js +103 -0
  133. package/dist/audit/service.js.map +1 -0
  134. package/dist/boot.d.ts +8 -0
  135. package/dist/boot.d.ts.map +1 -0
  136. package/dist/boot.js +822 -0
  137. package/dist/boot.js.map +1 -0
  138. package/dist/constant-time.d.ts +3 -0
  139. package/dist/constant-time.d.ts.map +1 -0
  140. package/dist/constant-time.js +10 -0
  141. package/dist/constant-time.js.map +1 -0
  142. package/dist/email/driver.d.ts +16 -0
  143. package/dist/email/driver.d.ts.map +1 -0
  144. package/dist/email/driver.js +136 -0
  145. package/dist/email/driver.js.map +1 -0
  146. package/dist/email/index.d.ts +4 -0
  147. package/dist/email/index.d.ts.map +1 -0
  148. package/dist/email/index.js +4 -0
  149. package/dist/email/index.js.map +1 -0
  150. package/dist/email/shell.d.ts +72 -0
  151. package/dist/email/shell.d.ts.map +1 -0
  152. package/dist/email/shell.js +146 -0
  153. package/dist/email/shell.js.map +1 -0
  154. package/dist/email/templates.d.ts +83 -0
  155. package/dist/email/templates.d.ts.map +1 -0
  156. package/dist/email/templates.js +96 -0
  157. package/dist/email/templates.js.map +1 -0
  158. package/dist/entitlements/check.d.ts +140 -0
  159. package/dist/entitlements/check.d.ts.map +1 -0
  160. package/dist/entitlements/check.js +276 -0
  161. package/dist/entitlements/check.js.map +1 -0
  162. package/dist/entitlements/clock-skew.d.ts +27 -0
  163. package/dist/entitlements/clock-skew.d.ts.map +1 -0
  164. package/dist/entitlements/clock-skew.js +58 -0
  165. package/dist/entitlements/clock-skew.js.map +1 -0
  166. package/dist/entitlements/gate.d.ts +113 -0
  167. package/dist/entitlements/gate.d.ts.map +1 -0
  168. package/dist/entitlements/gate.js +430 -0
  169. package/dist/entitlements/gate.js.map +1 -0
  170. package/dist/entitlements/hub-machine-token.d.ts +83 -0
  171. package/dist/entitlements/hub-machine-token.d.ts.map +1 -0
  172. package/dist/entitlements/hub-machine-token.js +175 -0
  173. package/dist/entitlements/hub-machine-token.js.map +1 -0
  174. package/dist/entitlements/hub-subject.d.ts +32 -0
  175. package/dist/entitlements/hub-subject.d.ts.map +1 -0
  176. package/dist/entitlements/hub-subject.js +68 -0
  177. package/dist/entitlements/hub-subject.js.map +1 -0
  178. package/dist/entitlements/index.d.ts +9 -0
  179. package/dist/entitlements/index.d.ts.map +1 -0
  180. package/dist/entitlements/index.js +9 -0
  181. package/dist/entitlements/index.js.map +1 -0
  182. package/dist/entitlements/poster.d.ts +81 -0
  183. package/dist/entitlements/poster.d.ts.map +1 -0
  184. package/dist/entitlements/poster.js +169 -0
  185. package/dist/entitlements/poster.js.map +1 -0
  186. package/dist/entitlements/profiles.d.ts +121 -0
  187. package/dist/entitlements/profiles.d.ts.map +1 -0
  188. package/dist/entitlements/profiles.js +212 -0
  189. package/dist/entitlements/profiles.js.map +1 -0
  190. package/dist/entitlements/slot.d.ts +33 -0
  191. package/dist/entitlements/slot.d.ts.map +1 -0
  192. package/dist/entitlements/slot.js +75 -0
  193. package/dist/entitlements/slot.js.map +1 -0
  194. package/dist/env.d.ts +293 -0
  195. package/dist/env.d.ts.map +1 -0
  196. package/dist/env.js +383 -0
  197. package/dist/env.js.map +1 -0
  198. package/dist/files/http.d.ts +23 -0
  199. package/dist/files/http.d.ts.map +1 -0
  200. package/dist/files/http.js +66 -0
  201. package/dist/files/http.js.map +1 -0
  202. package/dist/files/index.d.ts +5 -0
  203. package/dist/files/index.d.ts.map +1 -0
  204. package/dist/files/index.js +5 -0
  205. package/dist/files/index.js.map +1 -0
  206. package/dist/files/serve.d.ts +43 -0
  207. package/dist/files/serve.d.ts.map +1 -0
  208. package/dist/files/serve.js +71 -0
  209. package/dist/files/serve.js.map +1 -0
  210. package/dist/files/service.d.ts +69 -0
  211. package/dist/files/service.d.ts.map +1 -0
  212. package/dist/files/service.js +188 -0
  213. package/dist/files/service.js.map +1 -0
  214. package/dist/files/spool.d.ts +21 -0
  215. package/dist/files/spool.d.ts.map +1 -0
  216. package/dist/files/spool.js +47 -0
  217. package/dist/files/spool.js.map +1 -0
  218. package/dist/identity/better-auth.d.ts +3927 -0
  219. package/dist/identity/better-auth.d.ts.map +1 -0
  220. package/dist/identity/better-auth.js +896 -0
  221. package/dist/identity/better-auth.js.map +1 -0
  222. package/dist/identity/demo-pass-plugin.d.ts +29 -0
  223. package/dist/identity/demo-pass-plugin.d.ts.map +1 -0
  224. package/dist/identity/demo-pass-plugin.js +88 -0
  225. package/dist/identity/demo-pass-plugin.js.map +1 -0
  226. package/dist/identity/demo-pass-rules.d.ts +84 -0
  227. package/dist/identity/demo-pass-rules.d.ts.map +1 -0
  228. package/dist/identity/demo-pass-rules.js +223 -0
  229. package/dist/identity/demo-pass-rules.js.map +1 -0
  230. package/dist/identity/demo-pass.d.ts +159 -0
  231. package/dist/identity/demo-pass.d.ts.map +1 -0
  232. package/dist/identity/demo-pass.js +319 -0
  233. package/dist/identity/demo-pass.js.map +1 -0
  234. package/dist/identity/hub-grant.d.ts +182 -0
  235. package/dist/identity/hub-grant.d.ts.map +1 -0
  236. package/dist/identity/hub-grant.js +594 -0
  237. package/dist/identity/hub-grant.js.map +1 -0
  238. package/dist/identity/hub-jwt.d.ts +22 -0
  239. package/dist/identity/hub-jwt.d.ts.map +1 -0
  240. package/dist/identity/hub-jwt.js +77 -0
  241. package/dist/identity/hub-jwt.js.map +1 -0
  242. package/dist/identity/hub-live-gate.d.ts +17 -0
  243. package/dist/identity/hub-live-gate.d.ts.map +1 -0
  244. package/dist/identity/hub-live-gate.js +146 -0
  245. package/dist/identity/hub-live-gate.js.map +1 -0
  246. package/dist/identity/hub-logout.d.ts +88 -0
  247. package/dist/identity/hub-logout.d.ts.map +1 -0
  248. package/dist/identity/hub-logout.js +158 -0
  249. package/dist/identity/hub-logout.js.map +1 -0
  250. package/dist/identity/hub-projection.d.ts +103 -0
  251. package/dist/identity/hub-projection.d.ts.map +1 -0
  252. package/dist/identity/hub-projection.js +130 -0
  253. package/dist/identity/hub-projection.js.map +1 -0
  254. package/dist/identity/hub-reconcile.d.ts +151 -0
  255. package/dist/identity/hub-reconcile.d.ts.map +1 -0
  256. package/dist/identity/hub-reconcile.js +400 -0
  257. package/dist/identity/hub-reconcile.js.map +1 -0
  258. package/dist/identity/hub-sso.d.ts +363 -0
  259. package/dist/identity/hub-sso.d.ts.map +1 -0
  260. package/dist/identity/hub-sso.js +536 -0
  261. package/dist/identity/hub-sso.js.map +1 -0
  262. package/dist/identity/hub-user-client.d.ts +222 -0
  263. package/dist/identity/hub-user-client.d.ts.map +1 -0
  264. package/dist/identity/hub-user-client.js +406 -0
  265. package/dist/identity/hub-user-client.js.map +1 -0
  266. package/dist/identity/index.d.ts +13 -0
  267. package/dist/identity/index.d.ts.map +1 -0
  268. package/dist/identity/index.js +13 -0
  269. package/dist/identity/index.js.map +1 -0
  270. package/dist/identity/oauth-jwt.d.ts +32 -0
  271. package/dist/identity/oauth-jwt.d.ts.map +1 -0
  272. package/dist/identity/oauth-jwt.js +122 -0
  273. package/dist/identity/oauth-jwt.js.map +1 -0
  274. package/dist/identity/resolve-membership.d.ts +28 -0
  275. package/dist/identity/resolve-membership.d.ts.map +1 -0
  276. package/dist/identity/resolve-membership.js +69 -0
  277. package/dist/identity/resolve-membership.js.map +1 -0
  278. package/dist/identity/signing-key.d.ts +49 -0
  279. package/dist/identity/signing-key.d.ts.map +1 -0
  280. package/dist/identity/signing-key.js +144 -0
  281. package/dist/identity/signing-key.js.map +1 -0
  282. package/dist/index.d.ts +21 -0
  283. package/dist/index.d.ts.map +1 -0
  284. package/dist/index.js +11 -0
  285. package/dist/index.js.map +1 -0
  286. package/dist/invitations/index.d.ts +2 -0
  287. package/dist/invitations/index.d.ts.map +1 -0
  288. package/dist/invitations/index.js +2 -0
  289. package/dist/invitations/index.js.map +1 -0
  290. package/dist/invitations/service.d.ts +36 -0
  291. package/dist/invitations/service.d.ts.map +1 -0
  292. package/dist/invitations/service.js +122 -0
  293. package/dist/invitations/service.js.map +1 -0
  294. package/dist/jobs/index.d.ts +3 -0
  295. package/dist/jobs/index.d.ts.map +1 -0
  296. package/dist/jobs/index.js +3 -0
  297. package/dist/jobs/index.js.map +1 -0
  298. package/dist/jobs/pgboss.d.ts +119 -0
  299. package/dist/jobs/pgboss.d.ts.map +1 -0
  300. package/dist/jobs/pgboss.js +521 -0
  301. package/dist/jobs/pgboss.js.map +1 -0
  302. package/dist/jobs/timers.d.ts +127 -0
  303. package/dist/jobs/timers.d.ts.map +1 -0
  304. package/dist/jobs/timers.js +228 -0
  305. package/dist/jobs/timers.js.map +1 -0
  306. package/dist/logger.d.ts +17 -0
  307. package/dist/logger.d.ts.map +1 -0
  308. package/dist/logger.js +64 -0
  309. package/dist/logger.js.map +1 -0
  310. package/dist/mcp/errors.d.ts +37 -0
  311. package/dist/mcp/errors.d.ts.map +1 -0
  312. package/dist/mcp/errors.js +77 -0
  313. package/dist/mcp/errors.js.map +1 -0
  314. package/dist/mcp/http.d.ts +35 -0
  315. package/dist/mcp/http.d.ts.map +1 -0
  316. package/dist/mcp/http.js +80 -0
  317. package/dist/mcp/http.js.map +1 -0
  318. package/dist/mcp/index.d.ts +8 -0
  319. package/dist/mcp/index.d.ts.map +1 -0
  320. package/dist/mcp/index.js +8 -0
  321. package/dist/mcp/index.js.map +1 -0
  322. package/dist/mcp/inputs.d.ts +19 -0
  323. package/dist/mcp/inputs.d.ts.map +1 -0
  324. package/dist/mcp/inputs.js +28 -0
  325. package/dist/mcp/inputs.js.map +1 -0
  326. package/dist/mcp/projects.d.ts +31 -0
  327. package/dist/mcp/projects.d.ts.map +1 -0
  328. package/dist/mcp/projects.js +315 -0
  329. package/dist/mcp/projects.js.map +1 -0
  330. package/dist/mcp/server.d.ts +52 -0
  331. package/dist/mcp/server.d.ts.map +1 -0
  332. package/dist/mcp/server.js +93 -0
  333. package/dist/mcp/server.js.map +1 -0
  334. package/dist/mcp/teams.d.ts +7 -0
  335. package/dist/mcp/teams.d.ts.map +1 -0
  336. package/dist/mcp/teams.js +62 -0
  337. package/dist/mcp/teams.js.map +1 -0
  338. package/dist/mcp/tool-kit.d.ts +67 -0
  339. package/dist/mcp/tool-kit.d.ts.map +1 -0
  340. package/dist/mcp/tool-kit.js +74 -0
  341. package/dist/mcp/tool-kit.js.map +1 -0
  342. package/dist/members/removal.d.ts +95 -0
  343. package/dist/members/removal.d.ts.map +1 -0
  344. package/dist/members/removal.js +143 -0
  345. package/dist/members/removal.js.map +1 -0
  346. package/dist/middleware/auth-body.d.ts +25 -0
  347. package/dist/middleware/auth-body.d.ts.map +1 -0
  348. package/dist/middleware/auth-body.js +55 -0
  349. package/dist/middleware/auth-body.js.map +1 -0
  350. package/dist/middleware/auth-context.d.ts +170 -0
  351. package/dist/middleware/auth-context.d.ts.map +1 -0
  352. package/dist/middleware/auth-context.js +251 -0
  353. package/dist/middleware/auth-context.js.map +1 -0
  354. package/dist/middleware/body-cap.d.ts +17 -0
  355. package/dist/middleware/body-cap.d.ts.map +1 -0
  356. package/dist/middleware/body-cap.js +31 -0
  357. package/dist/middleware/body-cap.js.map +1 -0
  358. package/dist/middleware/body-refusal.d.ts +20 -0
  359. package/dist/middleware/body-refusal.d.ts.map +1 -0
  360. package/dist/middleware/body-refusal.js +5 -0
  361. package/dist/middleware/body-refusal.js.map +1 -0
  362. package/dist/middleware/cross-site.d.ts +61 -0
  363. package/dist/middleware/cross-site.d.ts.map +1 -0
  364. package/dist/middleware/cross-site.js +59 -0
  365. package/dist/middleware/cross-site.js.map +1 -0
  366. package/dist/middleware/hub-managed.d.ts +45 -0
  367. package/dist/middleware/hub-managed.d.ts.map +1 -0
  368. package/dist/middleware/hub-managed.js +56 -0
  369. package/dist/middleware/hub-managed.js.map +1 -0
  370. package/dist/middleware/idempotency.d.ts +14 -0
  371. package/dist/middleware/idempotency.d.ts.map +1 -0
  372. package/dist/middleware/idempotency.js +222 -0
  373. package/dist/middleware/idempotency.js.map +1 -0
  374. package/dist/middleware/index.d.ts +12 -0
  375. package/dist/middleware/index.d.ts.map +1 -0
  376. package/dist/middleware/index.js +12 -0
  377. package/dist/middleware/index.js.map +1 -0
  378. package/dist/middleware/json-depth.d.ts +32 -0
  379. package/dist/middleware/json-depth.d.ts.map +1 -0
  380. package/dist/middleware/json-depth.js +80 -0
  381. package/dist/middleware/json-depth.js.map +1 -0
  382. package/dist/middleware/no-store.d.ts +21 -0
  383. package/dist/middleware/no-store.d.ts.map +1 -0
  384. package/dist/middleware/no-store.js +32 -0
  385. package/dist/middleware/no-store.js.map +1 -0
  386. package/dist/middleware/oauth-public.d.ts +16 -0
  387. package/dist/middleware/oauth-public.d.ts.map +1 -0
  388. package/dist/middleware/oauth-public.js +50 -0
  389. package/dist/middleware/oauth-public.js.map +1 -0
  390. package/dist/middleware/rate-limit.d.ts +182 -0
  391. package/dist/middleware/rate-limit.d.ts.map +1 -0
  392. package/dist/middleware/rate-limit.js +277 -0
  393. package/dist/middleware/rate-limit.js.map +1 -0
  394. package/dist/middleware/request-id.d.ts +10 -0
  395. package/dist/middleware/request-id.d.ts.map +1 -0
  396. package/dist/middleware/request-id.js +42 -0
  397. package/dist/middleware/request-id.js.map +1 -0
  398. package/dist/middleware/scopes.d.ts +33 -0
  399. package/dist/middleware/scopes.d.ts.map +1 -0
  400. package/dist/middleware/scopes.js +139 -0
  401. package/dist/middleware/scopes.js.map +1 -0
  402. package/dist/middleware/security-headers.d.ts +53 -0
  403. package/dist/middleware/security-headers.d.ts.map +1 -0
  404. package/dist/middleware/security-headers.js +96 -0
  405. package/dist/middleware/security-headers.js.map +1 -0
  406. package/dist/observability/index.d.ts +3 -0
  407. package/dist/observability/index.d.ts.map +1 -0
  408. package/dist/observability/index.js +3 -0
  409. package/dist/observability/index.js.map +1 -0
  410. package/dist/observability/metrics.d.ts +17 -0
  411. package/dist/observability/metrics.d.ts.map +1 -0
  412. package/dist/observability/metrics.js +82 -0
  413. package/dist/observability/metrics.js.map +1 -0
  414. package/dist/observability/otel.d.ts +20 -0
  415. package/dist/observability/otel.d.ts.map +1 -0
  416. package/dist/observability/otel.js +54 -0
  417. package/dist/observability/otel.js.map +1 -0
  418. package/dist/pagination.d.ts +57 -0
  419. package/dist/pagination.d.ts.map +1 -0
  420. package/dist/pagination.js +90 -0
  421. package/dist/pagination.js.map +1 -0
  422. package/dist/platform/edition.d.ts +57 -0
  423. package/dist/platform/edition.d.ts.map +1 -0
  424. package/dist/platform/edition.js +90 -0
  425. package/dist/platform/edition.js.map +1 -0
  426. package/dist/platform/entitlements.d.ts +26 -0
  427. package/dist/platform/entitlements.d.ts.map +1 -0
  428. package/dist/platform/entitlements.js +28 -0
  429. package/dist/platform/entitlements.js.map +1 -0
  430. package/dist/platform/events.d.ts +87 -0
  431. package/dist/platform/events.d.ts.map +1 -0
  432. package/dist/platform/events.js +32 -0
  433. package/dist/platform/events.js.map +1 -0
  434. package/dist/platform/index.d.ts +8 -0
  435. package/dist/platform/index.d.ts.map +1 -0
  436. package/dist/platform/index.js +8 -0
  437. package/dist/platform/index.js.map +1 -0
  438. package/dist/platform/local-identity.d.ts +39 -0
  439. package/dist/platform/local-identity.d.ts.map +1 -0
  440. package/dist/platform/local-identity.js +87 -0
  441. package/dist/platform/local-identity.js.map +1 -0
  442. package/dist/platform/registry.d.ts +23 -0
  443. package/dist/platform/registry.d.ts.map +1 -0
  444. package/dist/platform/registry.js +5 -0
  445. package/dist/platform/registry.js.map +1 -0
  446. package/dist/platform/usage.d.ts +11 -0
  447. package/dist/platform/usage.d.ts.map +1 -0
  448. package/dist/platform/usage.js +12 -0
  449. package/dist/platform/usage.js.map +1 -0
  450. package/dist/platform/workspaces.d.ts +25 -0
  451. package/dist/platform/workspaces.d.ts.map +1 -0
  452. package/dist/platform/workspaces.js +44 -0
  453. package/dist/platform/workspaces.js.map +1 -0
  454. package/dist/projects/access.d.ts +40 -0
  455. package/dist/projects/access.d.ts.map +1 -0
  456. package/dist/projects/access.js +133 -0
  457. package/dist/projects/access.js.map +1 -0
  458. package/dist/projects/index.d.ts +2 -0
  459. package/dist/projects/index.d.ts.map +1 -0
  460. package/dist/projects/index.js +2 -0
  461. package/dist/projects/index.js.map +1 -0
  462. package/dist/route-label.d.ts +23 -0
  463. package/dist/route-label.d.ts.map +1 -0
  464. package/dist/route-label.js +29 -0
  465. package/dist/route-label.js.map +1 -0
  466. package/dist/routes/health.d.ts +30 -0
  467. package/dist/routes/health.d.ts.map +1 -0
  468. package/dist/routes/health.js +54 -0
  469. package/dist/routes/health.js.map +1 -0
  470. package/dist/routes/index.d.ts +3 -0
  471. package/dist/routes/index.d.ts.map +1 -0
  472. package/dist/routes/index.js +3 -0
  473. package/dist/routes/index.js.map +1 -0
  474. package/dist/routes/wellknown.d.ts +11 -0
  475. package/dist/routes/wellknown.d.ts.map +1 -0
  476. package/dist/routes/wellknown.js +45 -0
  477. package/dist/routes/wellknown.js.map +1 -0
  478. package/dist/secret.d.ts +30 -0
  479. package/dist/secret.d.ts.map +1 -0
  480. package/dist/secret.js +97 -0
  481. package/dist/secret.js.map +1 -0
  482. package/dist/setup-transport.d.ts +23 -0
  483. package/dist/setup-transport.d.ts.map +1 -0
  484. package/dist/setup-transport.js +52 -0
  485. package/dist/setup-transport.js.map +1 -0
  486. package/dist/state.d.ts +21 -0
  487. package/dist/state.d.ts.map +1 -0
  488. package/dist/state.js +4 -0
  489. package/dist/state.js.map +1 -0
  490. package/dist/storage/driver.d.ts +38 -0
  491. package/dist/storage/driver.d.ts.map +1 -0
  492. package/dist/storage/driver.js +14 -0
  493. package/dist/storage/driver.js.map +1 -0
  494. package/dist/storage/factory.d.ts +4 -0
  495. package/dist/storage/factory.d.ts.map +1 -0
  496. package/dist/storage/factory.js +20 -0
  497. package/dist/storage/factory.js.map +1 -0
  498. package/dist/storage/index.d.ts +4 -0
  499. package/dist/storage/index.d.ts.map +1 -0
  500. package/dist/storage/index.js +4 -0
  501. package/dist/storage/index.js.map +1 -0
  502. package/dist/storage/local.d.ts +21 -0
  503. package/dist/storage/local.d.ts.map +1 -0
  504. package/dist/storage/local.js +88 -0
  505. package/dist/storage/local.js.map +1 -0
  506. package/dist/storage/s3.d.ts +29 -0
  507. package/dist/storage/s3.d.ts.map +1 -0
  508. package/dist/storage/s3.js +82 -0
  509. package/dist/storage/s3.js.map +1 -0
  510. package/dist/testing/fake-hub.d.ts +425 -0
  511. package/dist/testing/fake-hub.d.ts.map +1 -0
  512. package/dist/testing/fake-hub.js +1074 -0
  513. package/dist/testing/fake-hub.js.map +1 -0
  514. package/dist/testing/helpers.d.ts +124 -0
  515. package/dist/testing/helpers.d.ts.map +1 -0
  516. package/dist/testing/helpers.js +174 -0
  517. package/dist/testing/helpers.js.map +1 -0
  518. package/dist/testing/index.d.ts +12 -0
  519. package/dist/testing/index.d.ts.map +1 -0
  520. package/dist/testing/index.js +12 -0
  521. package/dist/testing/index.js.map +1 -0
  522. package/dist/testing/setup-origins.d.ts +21 -0
  523. package/dist/testing/setup-origins.d.ts.map +1 -0
  524. package/dist/testing/setup-origins.js +57 -0
  525. package/dist/testing/setup-origins.js.map +1 -0
  526. package/dist/testing/sso-helpers.d.ts +43 -0
  527. package/dist/testing/sso-helpers.d.ts.map +1 -0
  528. package/dist/testing/sso-helpers.js +159 -0
  529. package/dist/testing/sso-helpers.js.map +1 -0
  530. package/dist/tool-definition.d.ts +382 -0
  531. package/dist/tool-definition.d.ts.map +1 -0
  532. package/dist/tool-definition.js +46 -0
  533. package/dist/tool-definition.js.map +1 -0
  534. package/dist/util/index.d.ts +8 -0
  535. package/dist/util/index.d.ts.map +1 -0
  536. package/dist/util/index.js +8 -0
  537. package/dist/util/index.js.map +1 -0
  538. package/package.json +161 -0
  539. package/src/accounts/deletion.ts +389 -0
  540. package/src/accounts/erasure-log.ts +140 -0
  541. package/src/accounts/index.ts +5 -0
  542. package/src/accounts/mint-refusal.ts +67 -0
  543. package/src/accounts/signup-duplicate.ts +21 -0
  544. package/src/accounts/superadmin.ts +46 -0
  545. package/src/api/apikeys.ts +147 -0
  546. package/src/api/audit.ts +83 -0
  547. package/src/api/break-glass.ts +294 -0
  548. package/src/api/cli-auth.ts +308 -0
  549. package/src/api/create-api.ts +1403 -0
  550. package/src/api/demo-passes.ts +207 -0
  551. package/src/api/errors.ts +13 -0
  552. package/src/api/export.ts +482 -0
  553. package/src/api/files.ts +200 -0
  554. package/src/api/index.ts +29 -0
  555. package/src/api/invitations.ts +396 -0
  556. package/src/api/members.ts +617 -0
  557. package/src/api/onboarding.ts +50 -0
  558. package/src/api/openapi-doc.ts +34 -0
  559. package/src/api/projects.ts +788 -0
  560. package/src/api/scope-routes.ts +12 -0
  561. package/src/api/sso-connect.ts +246 -0
  562. package/src/api/sso-logout.ts +76 -0
  563. package/src/api/teams.ts +575 -0
  564. package/src/api/workspaces.ts +649 -0
  565. package/src/apikeys/index.ts +2 -0
  566. package/src/apikeys/peppers.ts +118 -0
  567. package/src/apikeys/service.ts +223 -0
  568. package/src/app.ts +228 -0
  569. package/src/audit/filters.ts +101 -0
  570. package/src/audit/index.ts +9 -0
  571. package/src/audit/service.ts +154 -0
  572. package/src/boot.ts +953 -0
  573. package/src/constant-time.ts +9 -0
  574. package/src/email/driver.ts +139 -0
  575. package/src/email/index.ts +26 -0
  576. package/src/email/shell.ts +201 -0
  577. package/src/email/templates.ts +184 -0
  578. package/src/entitlements/check.ts +435 -0
  579. package/src/entitlements/clock-skew.ts +58 -0
  580. package/src/entitlements/gate.ts +636 -0
  581. package/src/entitlements/hub-machine-token.ts +205 -0
  582. package/src/entitlements/hub-subject.ts +77 -0
  583. package/src/entitlements/index.ts +37 -0
  584. package/src/entitlements/poster.ts +265 -0
  585. package/src/entitlements/profiles.ts +303 -0
  586. package/src/entitlements/slot.ts +105 -0
  587. package/src/env.ts +456 -0
  588. package/src/files/http.ts +77 -0
  589. package/src/files/index.ts +4 -0
  590. package/src/files/serve.ts +115 -0
  591. package/src/files/service.ts +209 -0
  592. package/src/files/spool.ts +58 -0
  593. package/src/identity/better-auth.ts +1103 -0
  594. package/src/identity/demo-pass-plugin.ts +121 -0
  595. package/src/identity/demo-pass-rules.ts +229 -0
  596. package/src/identity/demo-pass.ts +390 -0
  597. package/src/identity/hub-grant.ts +704 -0
  598. package/src/identity/hub-jwt.ts +78 -0
  599. package/src/identity/hub-live-gate.ts +167 -0
  600. package/src/identity/hub-logout.ts +174 -0
  601. package/src/identity/hub-projection.ts +251 -0
  602. package/src/identity/hub-reconcile.ts +572 -0
  603. package/src/identity/hub-sso.ts +696 -0
  604. package/src/identity/hub-user-client.ts +554 -0
  605. package/src/identity/index.ts +56 -0
  606. package/src/identity/oauth-jwt.ts +128 -0
  607. package/src/identity/resolve-membership.ts +104 -0
  608. package/src/identity/signing-key.ts +164 -0
  609. package/src/index.ts +65 -0
  610. package/src/invitations/index.ts +1 -0
  611. package/src/invitations/service.ts +171 -0
  612. package/src/jobs/index.ts +25 -0
  613. package/src/jobs/pgboss.ts +594 -0
  614. package/src/jobs/timers.ts +287 -0
  615. package/src/logger.ts +67 -0
  616. package/src/mcp/errors.ts +111 -0
  617. package/src/mcp/http.ts +129 -0
  618. package/src/mcp/index.ts +28 -0
  619. package/src/mcp/inputs.ts +33 -0
  620. package/src/mcp/projects.ts +480 -0
  621. package/src/mcp/server.ts +174 -0
  622. package/src/mcp/teams.ts +97 -0
  623. package/src/mcp/tool-kit.ts +148 -0
  624. package/src/members/removal.ts +216 -0
  625. package/src/middleware/auth-body.ts +58 -0
  626. package/src/middleware/auth-context.ts +384 -0
  627. package/src/middleware/body-cap.ts +33 -0
  628. package/src/middleware/body-refusal.ts +23 -0
  629. package/src/middleware/cross-site.ts +122 -0
  630. package/src/middleware/hub-managed.ts +61 -0
  631. package/src/middleware/idempotency.ts +264 -0
  632. package/src/middleware/index.ts +33 -0
  633. package/src/middleware/json-depth.ts +74 -0
  634. package/src/middleware/no-store.ts +30 -0
  635. package/src/middleware/oauth-public.ts +54 -0
  636. package/src/middleware/rate-limit.ts +432 -0
  637. package/src/middleware/request-id.ts +54 -0
  638. package/src/middleware/scopes.ts +150 -0
  639. package/src/middleware/security-headers.ts +129 -0
  640. package/src/observability/index.ts +2 -0
  641. package/src/observability/metrics.ts +102 -0
  642. package/src/observability/otel.ts +79 -0
  643. package/src/pagination.ts +118 -0
  644. package/src/platform/edition.ts +140 -0
  645. package/src/platform/entitlements.ts +47 -0
  646. package/src/platform/events.ts +71 -0
  647. package/src/platform/index.ts +7 -0
  648. package/src/platform/local-identity.ts +90 -0
  649. package/src/platform/registry.ts +28 -0
  650. package/src/platform/usage.ts +13 -0
  651. package/src/platform/workspaces.ts +41 -0
  652. package/src/projects/access.ts +160 -0
  653. package/src/projects/index.ts +7 -0
  654. package/src/route-label.ts +29 -0
  655. package/src/routes/health.ts +79 -0
  656. package/src/routes/index.ts +2 -0
  657. package/src/routes/wellknown.ts +67 -0
  658. package/src/secret.ts +115 -0
  659. package/src/setup-transport.ts +46 -0
  660. package/src/state.ts +23 -0
  661. package/src/storage/driver.ts +48 -0
  662. package/src/storage/factory.ts +34 -0
  663. package/src/storage/index.ts +3 -0
  664. package/src/storage/local.ts +93 -0
  665. package/src/storage/s3.ts +109 -0
  666. package/src/testing/fake-hub.ts +1316 -0
  667. package/src/testing/helpers.ts +254 -0
  668. package/src/testing/index.ts +11 -0
  669. package/src/testing/setup-origins.ts +58 -0
  670. package/src/testing/sso-helpers.ts +178 -0
  671. package/src/tool-definition.ts +463 -0
  672. package/src/util/index.ts +17 -0
  673. package/test/fixtures/onboarding-backfill.sql +13 -0
  674. package/test/fixtures/operator-user-id-backfill.sql +18 -0
  675. package/test/host/dr-lib.sh +253 -0
  676. package/test/host/drizzle/0000_chassis_baseline.sql +438 -0
  677. package/test/host/drizzle/0001_last_owner_guard.sql +42 -0
  678. package/test/host/drizzle/meta/0000_snapshot.json +3566 -0
  679. package/test/host/drizzle/meta/_journal.json +20 -0
  680. package/test/host/drizzle.config.ts +17 -0
  681. package/test/host/identity.ts +41 -0
  682. package/test/host/minimal-host.ts +35 -0
  683. package/test/host/minimal-tool.ts +123 -0
  684. package/test/integration/account-oracle-uniformity.test.ts +284 -0
  685. package/test/integration/account-recovery.test.ts +236 -0
  686. package/test/integration/account.test.ts +120 -0
  687. package/test/integration/api-quota.test.ts +208 -0
  688. package/test/integration/apikey-expiry.test.ts +178 -0
  689. package/test/integration/apikey-pepper-rotation.test.ts +190 -0
  690. package/test/integration/boot-posture.test.ts +169 -0
  691. package/test/integration/break-glass.test.ts +484 -0
  692. package/test/integration/cloud-lifecycle.test.ts +233 -0
  693. package/test/integration/credential-boundaries.test.ts +195 -0
  694. package/test/integration/default-workspace.test.ts +414 -0
  695. package/test/integration/demo-pass-rules.test.ts +332 -0
  696. package/test/integration/demo-pass.test.ts +1222 -0
  697. package/test/integration/dr-verify-real-dump.test.ts +154 -0
  698. package/test/integration/edition.test.ts +868 -0
  699. package/test/integration/email-change.test.ts +394 -0
  700. package/test/integration/empty-tool.test.ts +267 -0
  701. package/test/integration/entitlements-null-hook.test.ts +187 -0
  702. package/test/integration/entitlements.test.ts +693 -0
  703. package/test/integration/export-entries.test.ts +321 -0
  704. package/test/integration/files.test.ts +320 -0
  705. package/test/integration/first-boot-claim.test.ts +131 -0
  706. package/test/integration/gdpr.test.ts +532 -0
  707. package/test/integration/helpers.ts +29 -0
  708. package/test/integration/hub-grant.test.ts +505 -0
  709. package/test/integration/hub-live-gate.test.ts +612 -0
  710. package/test/integration/hub-managed-membership.test.ts +559 -0
  711. package/test/integration/hub-org-selector.test.ts +281 -0
  712. package/test/integration/hub-reconcile.test.ts +646 -0
  713. package/test/integration/hub-sso.test.ts +704 -0
  714. package/test/integration/hub-teams.test.ts +771 -0
  715. package/test/integration/idempotency.test.ts +261 -0
  716. package/test/integration/invite-verification.test.ts +210 -0
  717. package/test/integration/last-owner-race.test.ts +263 -0
  718. package/test/integration/m9-fixes.test.ts +290 -0
  719. package/test/integration/mcp-projects.test.ts +463 -0
  720. package/test/integration/member-removal-race.test.ts +466 -0
  721. package/test/integration/member-removal.test.ts +794 -0
  722. package/test/integration/oauth-mcp.test.ts +477 -0
  723. package/test/integration/oauth-workspace.test.ts +371 -0
  724. package/test/integration/observability.test.ts +183 -0
  725. package/test/integration/onboarding.test.ts +268 -0
  726. package/test/integration/orphan-purge.test.ts +451 -0
  727. package/test/integration/pagination.test.ts +344 -0
  728. package/test/integration/platform-core.test.ts +305 -0
  729. package/test/integration/platform.test.ts +246 -0
  730. package/test/integration/pool-survives-restart.test.ts +80 -0
  731. package/test/integration/projects-cloud.test.ts +193 -0
  732. package/test/integration/projects.test.ts +1310 -0
  733. package/test/integration/security-fixes.test.ts +190 -0
  734. package/test/integration/setup-transport.test.ts +118 -0
  735. package/test/integration/signin-wall.test.ts +103 -0
  736. package/test/integration/signing-key-rotation.test.ts +349 -0
  737. package/test/integration/sso-helpers.ts +15 -0
  738. package/test/integration/sso-logout.test.ts +283 -0
  739. package/test/integration/teams-cloud.test.ts +194 -0
  740. package/test/integration/teams.test.ts +551 -0
  741. package/test/integration/timers.test.ts +377 -0
  742. package/test/integration/two-factor.test.ts +301 -0
  743. package/test/integration/usage-window.test.ts +161 -0
  744. package/test/integration/workspace-create-cloud.test.ts +523 -0
  745. package/test/integration/workspace-create.test.ts +510 -0
  746. package/test/integration/workspace-scoping.test.ts +530 -0
  747. package/test/integration/zz-adv-replay-owner.test.ts +205 -0
  748. package/test/unit/apikey-peppers.test.ts +110 -0
  749. package/test/unit/apikey-prefix.test.ts +34 -0
  750. package/test/unit/audit-filters.test.ts +135 -0
  751. package/test/unit/auth-origins.test.ts +92 -0
  752. package/test/unit/body-cap.test.ts +84 -0
  753. package/test/unit/clock-skew.test.ts +68 -0
  754. package/test/unit/cross-site.test.ts +166 -0
  755. package/test/unit/declared-credits.test.ts +13 -0
  756. package/test/unit/demo-pass-rules.test.ts +192 -0
  757. package/test/unit/email-driver.test.ts +127 -0
  758. package/test/unit/end-pool.test.ts +181 -0
  759. package/test/unit/entitlement-check.test.ts +492 -0
  760. package/test/unit/entitlement-gate.test.ts +1333 -0
  761. package/test/unit/entitlement-profiles.test.ts +289 -0
  762. package/test/unit/erasure-log.test.ts +72 -0
  763. package/test/unit/error-mapping.test.ts +89 -0
  764. package/test/unit/export-entries.test.ts +85 -0
  765. package/test/unit/export-sanitize.test.ts +27 -0
  766. package/test/unit/files-head-route.test.ts +155 -0
  767. package/test/unit/files-http.test.ts +97 -0
  768. package/test/unit/head-rewrite.test.ts +72 -0
  769. package/test/unit/hub-create-org.test.ts +181 -0
  770. package/test/unit/hub-jwt.test.ts +93 -0
  771. package/test/unit/hub-sso-params.test.ts +39 -0
  772. package/test/unit/hub-subject.test.ts +83 -0
  773. package/test/unit/idempotency-crypto.test.ts +45 -0
  774. package/test/unit/json-depth.test.ts +88 -0
  775. package/test/unit/logger-redaction.test.ts +66 -0
  776. package/test/unit/mcp-errors.test.ts +110 -0
  777. package/test/unit/mcp-inputs.test.ts +106 -0
  778. package/test/unit/mcp-project-hints.test.ts +26 -0
  779. package/test/unit/no-store.test.ts +49 -0
  780. package/test/unit/no-tool-migration-filename.test.ts +70 -0
  781. package/test/unit/observability.test.ts +64 -0
  782. package/test/unit/openapi-doc.test.ts +93 -0
  783. package/test/unit/rate-limit-consume-on.test.ts +76 -0
  784. package/test/unit/rate-limit.test.ts +39 -0
  785. package/test/unit/readyz-storage.test.ts +157 -0
  786. package/test/unit/request-quota.test.ts +146 -0
  787. package/test/unit/scopes.test.ts +66 -0
  788. package/test/unit/security-headers.test.ts +131 -0
  789. package/test/unit/serve-content-type.test.ts +74 -0
  790. package/test/unit/setup-transport.test.ts +29 -0
  791. package/test/unit/storage-local.test.ts +53 -0
  792. package/test/unit/superadmin.test.ts +32 -0
  793. package/test/unit/timers.test.ts +287 -0
  794. package/test/unit/tool-definition-guards.test.ts +166 -0
  795. package/test/unit/tool-entitlements-guard.test.ts +168 -0
  796. package/test/unit/usage-poster.test.ts +542 -0
  797. package/test/unit/usage-window.test.ts +48 -0
  798. package/test/unit/workspace-create-audit.test.ts +48 -0
@@ -0,0 +1,3566 @@
1
+ {
2
+ "id": "3a3d4c33-f7aa-4abc-9000-85a3d8118196",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.api_keys": {
8
+ "name": "api_keys",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "workspace_id": {
19
+ "name": "workspace_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": false
23
+ },
24
+ "key_id": {
25
+ "name": "key_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "secret_hash": {
31
+ "name": "secret_hash",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "pepper_version": {
37
+ "name": "pepper_version",
38
+ "type": "smallint",
39
+ "primaryKey": false,
40
+ "notNull": true,
41
+ "default": 1
42
+ },
43
+ "name": {
44
+ "name": "name",
45
+ "type": "text",
46
+ "primaryKey": false,
47
+ "notNull": true
48
+ },
49
+ "scopes": {
50
+ "name": "scopes",
51
+ "type": "text[]",
52
+ "primaryKey": false,
53
+ "notNull": true
54
+ },
55
+ "created_by": {
56
+ "name": "created_by",
57
+ "type": "text",
58
+ "primaryKey": false,
59
+ "notNull": true
60
+ },
61
+ "created_at": {
62
+ "name": "created_at",
63
+ "type": "timestamp with time zone",
64
+ "primaryKey": false,
65
+ "notNull": true,
66
+ "default": "now()"
67
+ },
68
+ "last_used_at": {
69
+ "name": "last_used_at",
70
+ "type": "timestamp with time zone",
71
+ "primaryKey": false,
72
+ "notNull": false
73
+ },
74
+ "revoked_at": {
75
+ "name": "revoked_at",
76
+ "type": "timestamp with time zone",
77
+ "primaryKey": false,
78
+ "notNull": false
79
+ },
80
+ "expires_at": {
81
+ "name": "expires_at",
82
+ "type": "timestamp with time zone",
83
+ "primaryKey": false,
84
+ "notNull": false
85
+ }
86
+ },
87
+ "indexes": {
88
+ "api_keys_key_id_uniq": {
89
+ "name": "api_keys_key_id_uniq",
90
+ "columns": [
91
+ {
92
+ "expression": "key_id",
93
+ "isExpression": false,
94
+ "asc": true,
95
+ "nulls": "last"
96
+ }
97
+ ],
98
+ "isUnique": true,
99
+ "concurrently": false,
100
+ "method": "btree",
101
+ "with": {}
102
+ },
103
+ "api_keys_workspace_created_id_idx": {
104
+ "name": "api_keys_workspace_created_id_idx",
105
+ "columns": [
106
+ {
107
+ "expression": "workspace_id",
108
+ "isExpression": false,
109
+ "asc": true,
110
+ "nulls": "last"
111
+ },
112
+ {
113
+ "expression": "created_at",
114
+ "isExpression": false,
115
+ "asc": true,
116
+ "nulls": "last"
117
+ },
118
+ {
119
+ "expression": "id",
120
+ "isExpression": false,
121
+ "asc": true,
122
+ "nulls": "last"
123
+ }
124
+ ],
125
+ "isUnique": false,
126
+ "concurrently": false,
127
+ "method": "btree",
128
+ "with": {}
129
+ },
130
+ "api_keys_created_by_created_id_idx": {
131
+ "name": "api_keys_created_by_created_id_idx",
132
+ "columns": [
133
+ {
134
+ "expression": "created_by",
135
+ "isExpression": false,
136
+ "asc": true,
137
+ "nulls": "last"
138
+ },
139
+ {
140
+ "expression": "created_at",
141
+ "isExpression": false,
142
+ "asc": true,
143
+ "nulls": "last"
144
+ },
145
+ {
146
+ "expression": "id",
147
+ "isExpression": false,
148
+ "asc": true,
149
+ "nulls": "last"
150
+ }
151
+ ],
152
+ "isUnique": false,
153
+ "concurrently": false,
154
+ "method": "btree",
155
+ "with": {}
156
+ }
157
+ },
158
+ "foreignKeys": {
159
+ "api_keys_workspace_id_workspaces_id_fk": {
160
+ "name": "api_keys_workspace_id_workspaces_id_fk",
161
+ "tableFrom": "api_keys",
162
+ "tableTo": "workspaces",
163
+ "columnsFrom": [
164
+ "workspace_id"
165
+ ],
166
+ "columnsTo": [
167
+ "id"
168
+ ],
169
+ "onDelete": "cascade",
170
+ "onUpdate": "no action"
171
+ },
172
+ "api_keys_created_by_user_id_fk": {
173
+ "name": "api_keys_created_by_user_id_fk",
174
+ "tableFrom": "api_keys",
175
+ "tableTo": "user",
176
+ "columnsFrom": [
177
+ "created_by"
178
+ ],
179
+ "columnsTo": [
180
+ "id"
181
+ ],
182
+ "onDelete": "cascade",
183
+ "onUpdate": "no action"
184
+ }
185
+ },
186
+ "compositePrimaryKeys": {},
187
+ "uniqueConstraints": {},
188
+ "policies": {},
189
+ "checkConstraints": {},
190
+ "isRLSEnabled": false
191
+ },
192
+ "public.audit_log": {
193
+ "name": "audit_log",
194
+ "schema": "",
195
+ "columns": {
196
+ "id": {
197
+ "name": "id",
198
+ "type": "bigint",
199
+ "primaryKey": true,
200
+ "notNull": true,
201
+ "identity": {
202
+ "type": "always",
203
+ "name": "audit_log_id_seq",
204
+ "schema": "public",
205
+ "increment": "1",
206
+ "startWith": "1",
207
+ "minValue": "1",
208
+ "maxValue": "9223372036854775807",
209
+ "cache": "1",
210
+ "cycle": false
211
+ }
212
+ },
213
+ "workspace_id": {
214
+ "name": "workspace_id",
215
+ "type": "uuid",
216
+ "primaryKey": false,
217
+ "notNull": false
218
+ },
219
+ "actor_user_id": {
220
+ "name": "actor_user_id",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": false
224
+ },
225
+ "actor_via": {
226
+ "name": "actor_via",
227
+ "type": "text",
228
+ "primaryKey": false,
229
+ "notNull": true
230
+ },
231
+ "api_key_id": {
232
+ "name": "api_key_id",
233
+ "type": "uuid",
234
+ "primaryKey": false,
235
+ "notNull": false
236
+ },
237
+ "action": {
238
+ "name": "action",
239
+ "type": "text",
240
+ "primaryKey": false,
241
+ "notNull": true
242
+ },
243
+ "resource_type": {
244
+ "name": "resource_type",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": true
248
+ },
249
+ "resource_id": {
250
+ "name": "resource_id",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": false
254
+ },
255
+ "request_id": {
256
+ "name": "request_id",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": false
260
+ },
261
+ "ip": {
262
+ "name": "ip",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": false
266
+ },
267
+ "metadata": {
268
+ "name": "metadata",
269
+ "type": "jsonb",
270
+ "primaryKey": false,
271
+ "notNull": false
272
+ },
273
+ "created_at": {
274
+ "name": "created_at",
275
+ "type": "timestamp with time zone",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "default": "now()"
279
+ }
280
+ },
281
+ "indexes": {
282
+ "audit_log_workspace_created_idx": {
283
+ "name": "audit_log_workspace_created_idx",
284
+ "columns": [
285
+ {
286
+ "expression": "workspace_id",
287
+ "isExpression": false,
288
+ "asc": true,
289
+ "nulls": "last"
290
+ },
291
+ {
292
+ "expression": "created_at",
293
+ "isExpression": false,
294
+ "asc": true,
295
+ "nulls": "last"
296
+ }
297
+ ],
298
+ "isUnique": false,
299
+ "concurrently": false,
300
+ "method": "btree",
301
+ "with": {}
302
+ },
303
+ "audit_log_workspace_id_idx": {
304
+ "name": "audit_log_workspace_id_idx",
305
+ "columns": [
306
+ {
307
+ "expression": "workspace_id",
308
+ "isExpression": false,
309
+ "asc": true,
310
+ "nulls": "last"
311
+ },
312
+ {
313
+ "expression": "id",
314
+ "isExpression": false,
315
+ "asc": true,
316
+ "nulls": "last"
317
+ }
318
+ ],
319
+ "isUnique": false,
320
+ "concurrently": false,
321
+ "method": "btree",
322
+ "with": {}
323
+ },
324
+ "audit_log_created_idx": {
325
+ "name": "audit_log_created_idx",
326
+ "columns": [
327
+ {
328
+ "expression": "created_at",
329
+ "isExpression": false,
330
+ "asc": true,
331
+ "nulls": "last"
332
+ }
333
+ ],
334
+ "isUnique": false,
335
+ "concurrently": false,
336
+ "method": "btree",
337
+ "with": {}
338
+ }
339
+ },
340
+ "foreignKeys": {
341
+ "audit_log_workspace_id_workspaces_id_fk": {
342
+ "name": "audit_log_workspace_id_workspaces_id_fk",
343
+ "tableFrom": "audit_log",
344
+ "tableTo": "workspaces",
345
+ "columnsFrom": [
346
+ "workspace_id"
347
+ ],
348
+ "columnsTo": [
349
+ "id"
350
+ ],
351
+ "onDelete": "cascade",
352
+ "onUpdate": "no action"
353
+ },
354
+ "audit_log_actor_user_id_user_id_fk": {
355
+ "name": "audit_log_actor_user_id_user_id_fk",
356
+ "tableFrom": "audit_log",
357
+ "tableTo": "user",
358
+ "columnsFrom": [
359
+ "actor_user_id"
360
+ ],
361
+ "columnsTo": [
362
+ "id"
363
+ ],
364
+ "onDelete": "set null",
365
+ "onUpdate": "no action"
366
+ },
367
+ "audit_log_api_key_id_api_keys_id_fk": {
368
+ "name": "audit_log_api_key_id_api_keys_id_fk",
369
+ "tableFrom": "audit_log",
370
+ "tableTo": "api_keys",
371
+ "columnsFrom": [
372
+ "api_key_id"
373
+ ],
374
+ "columnsTo": [
375
+ "id"
376
+ ],
377
+ "onDelete": "set null",
378
+ "onUpdate": "no action"
379
+ }
380
+ },
381
+ "compositePrimaryKeys": {},
382
+ "uniqueConstraints": {},
383
+ "policies": {},
384
+ "checkConstraints": {},
385
+ "isRLSEnabled": false
386
+ },
387
+ "public.demo_pass_sessions": {
388
+ "name": "demo_pass_sessions",
389
+ "schema": "",
390
+ "columns": {
391
+ "session_id": {
392
+ "name": "session_id",
393
+ "type": "text",
394
+ "primaryKey": true,
395
+ "notNull": true
396
+ },
397
+ "pass_id": {
398
+ "name": "pass_id",
399
+ "type": "uuid",
400
+ "primaryKey": false,
401
+ "notNull": true
402
+ },
403
+ "created_at": {
404
+ "name": "created_at",
405
+ "type": "timestamp with time zone",
406
+ "primaryKey": false,
407
+ "notNull": true,
408
+ "default": "now()"
409
+ }
410
+ },
411
+ "indexes": {},
412
+ "foreignKeys": {
413
+ "demo_pass_sessions_pass_id_demo_passes_id_fk": {
414
+ "name": "demo_pass_sessions_pass_id_demo_passes_id_fk",
415
+ "tableFrom": "demo_pass_sessions",
416
+ "tableTo": "demo_passes",
417
+ "columnsFrom": [
418
+ "pass_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.demo_passes": {
434
+ "name": "demo_passes",
435
+ "schema": "",
436
+ "columns": {
437
+ "id": {
438
+ "name": "id",
439
+ "type": "uuid",
440
+ "primaryKey": true,
441
+ "notNull": true,
442
+ "default": "gen_random_uuid()"
443
+ },
444
+ "workspace_id": {
445
+ "name": "workspace_id",
446
+ "type": "uuid",
447
+ "primaryKey": false,
448
+ "notNull": true
449
+ },
450
+ "user_id": {
451
+ "name": "user_id",
452
+ "type": "text",
453
+ "primaryKey": false,
454
+ "notNull": true
455
+ },
456
+ "target_path": {
457
+ "name": "target_path",
458
+ "type": "text",
459
+ "primaryKey": false,
460
+ "notNull": true,
461
+ "default": "'/'"
462
+ },
463
+ "secret_hash": {
464
+ "name": "secret_hash",
465
+ "type": "text",
466
+ "primaryKey": false,
467
+ "notNull": true
468
+ },
469
+ "created_by": {
470
+ "name": "created_by",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": false
474
+ },
475
+ "created_at": {
476
+ "name": "created_at",
477
+ "type": "timestamp with time zone",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "default": "now()"
481
+ },
482
+ "expires_at": {
483
+ "name": "expires_at",
484
+ "type": "timestamp with time zone",
485
+ "primaryKey": false,
486
+ "notNull": true
487
+ },
488
+ "revoked_at": {
489
+ "name": "revoked_at",
490
+ "type": "timestamp with time zone",
491
+ "primaryKey": false,
492
+ "notNull": false
493
+ },
494
+ "last_used_at": {
495
+ "name": "last_used_at",
496
+ "type": "timestamp with time zone",
497
+ "primaryKey": false,
498
+ "notNull": false
499
+ },
500
+ "use_count": {
501
+ "name": "use_count",
502
+ "type": "integer",
503
+ "primaryKey": false,
504
+ "notNull": true,
505
+ "default": 0
506
+ }
507
+ },
508
+ "indexes": {
509
+ "demo_passes_secret_hash_uniq": {
510
+ "name": "demo_passes_secret_hash_uniq",
511
+ "columns": [
512
+ {
513
+ "expression": "secret_hash",
514
+ "isExpression": false,
515
+ "asc": true,
516
+ "nulls": "last"
517
+ }
518
+ ],
519
+ "isUnique": true,
520
+ "concurrently": false,
521
+ "method": "btree",
522
+ "with": {}
523
+ },
524
+ "demo_passes_workspace_created_idx": {
525
+ "name": "demo_passes_workspace_created_idx",
526
+ "columns": [
527
+ {
528
+ "expression": "workspace_id",
529
+ "isExpression": false,
530
+ "asc": true,
531
+ "nulls": "last"
532
+ },
533
+ {
534
+ "expression": "created_at",
535
+ "isExpression": false,
536
+ "asc": true,
537
+ "nulls": "last"
538
+ }
539
+ ],
540
+ "isUnique": false,
541
+ "concurrently": false,
542
+ "method": "btree",
543
+ "with": {}
544
+ }
545
+ },
546
+ "foreignKeys": {
547
+ "demo_passes_workspace_id_workspaces_id_fk": {
548
+ "name": "demo_passes_workspace_id_workspaces_id_fk",
549
+ "tableFrom": "demo_passes",
550
+ "tableTo": "workspaces",
551
+ "columnsFrom": [
552
+ "workspace_id"
553
+ ],
554
+ "columnsTo": [
555
+ "id"
556
+ ],
557
+ "onDelete": "cascade",
558
+ "onUpdate": "no action"
559
+ },
560
+ "demo_passes_user_id_user_id_fk": {
561
+ "name": "demo_passes_user_id_user_id_fk",
562
+ "tableFrom": "demo_passes",
563
+ "tableTo": "user",
564
+ "columnsFrom": [
565
+ "user_id"
566
+ ],
567
+ "columnsTo": [
568
+ "id"
569
+ ],
570
+ "onDelete": "cascade",
571
+ "onUpdate": "no action"
572
+ },
573
+ "demo_passes_created_by_user_id_fk": {
574
+ "name": "demo_passes_created_by_user_id_fk",
575
+ "tableFrom": "demo_passes",
576
+ "tableTo": "user",
577
+ "columnsFrom": [
578
+ "created_by"
579
+ ],
580
+ "columnsTo": [
581
+ "id"
582
+ ],
583
+ "onDelete": "set null",
584
+ "onUpdate": "no action"
585
+ }
586
+ },
587
+ "compositePrimaryKeys": {},
588
+ "uniqueConstraints": {},
589
+ "policies": {},
590
+ "checkConstraints": {},
591
+ "isRLSEnabled": false
592
+ },
593
+ "public.file_uploaders": {
594
+ "name": "file_uploaders",
595
+ "schema": "",
596
+ "columns": {
597
+ "file_id": {
598
+ "name": "file_id",
599
+ "type": "uuid",
600
+ "primaryKey": false,
601
+ "notNull": true
602
+ },
603
+ "user_id": {
604
+ "name": "user_id",
605
+ "type": "text",
606
+ "primaryKey": false,
607
+ "notNull": true
608
+ },
609
+ "created_at": {
610
+ "name": "created_at",
611
+ "type": "timestamp with time zone",
612
+ "primaryKey": false,
613
+ "notNull": true,
614
+ "default": "now()"
615
+ }
616
+ },
617
+ "indexes": {
618
+ "file_uploaders_user_idx": {
619
+ "name": "file_uploaders_user_idx",
620
+ "columns": [
621
+ {
622
+ "expression": "user_id",
623
+ "isExpression": false,
624
+ "asc": true,
625
+ "nulls": "last"
626
+ }
627
+ ],
628
+ "isUnique": false,
629
+ "concurrently": false,
630
+ "method": "btree",
631
+ "with": {}
632
+ }
633
+ },
634
+ "foreignKeys": {
635
+ "file_uploaders_file_id_files_id_fk": {
636
+ "name": "file_uploaders_file_id_files_id_fk",
637
+ "tableFrom": "file_uploaders",
638
+ "tableTo": "files",
639
+ "columnsFrom": [
640
+ "file_id"
641
+ ],
642
+ "columnsTo": [
643
+ "id"
644
+ ],
645
+ "onDelete": "cascade",
646
+ "onUpdate": "no action"
647
+ },
648
+ "file_uploaders_user_id_user_id_fk": {
649
+ "name": "file_uploaders_user_id_user_id_fk",
650
+ "tableFrom": "file_uploaders",
651
+ "tableTo": "user",
652
+ "columnsFrom": [
653
+ "user_id"
654
+ ],
655
+ "columnsTo": [
656
+ "id"
657
+ ],
658
+ "onDelete": "cascade",
659
+ "onUpdate": "no action"
660
+ }
661
+ },
662
+ "compositePrimaryKeys": {
663
+ "file_uploaders_file_id_user_id_pk": {
664
+ "name": "file_uploaders_file_id_user_id_pk",
665
+ "columns": [
666
+ "file_id",
667
+ "user_id"
668
+ ]
669
+ }
670
+ },
671
+ "uniqueConstraints": {},
672
+ "policies": {},
673
+ "checkConstraints": {},
674
+ "isRLSEnabled": false
675
+ },
676
+ "public.files": {
677
+ "name": "files",
678
+ "schema": "",
679
+ "columns": {
680
+ "id": {
681
+ "name": "id",
682
+ "type": "uuid",
683
+ "primaryKey": true,
684
+ "notNull": true,
685
+ "default": "gen_random_uuid()"
686
+ },
687
+ "workspace_id": {
688
+ "name": "workspace_id",
689
+ "type": "uuid",
690
+ "primaryKey": false,
691
+ "notNull": true
692
+ },
693
+ "sha256": {
694
+ "name": "sha256",
695
+ "type": "text",
696
+ "primaryKey": false,
697
+ "notNull": true
698
+ },
699
+ "size_bytes": {
700
+ "name": "size_bytes",
701
+ "type": "bigint",
702
+ "primaryKey": false,
703
+ "notNull": true
704
+ },
705
+ "content_type": {
706
+ "name": "content_type",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true
710
+ },
711
+ "original_name": {
712
+ "name": "original_name",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": true
716
+ },
717
+ "created_by": {
718
+ "name": "created_by",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": false
722
+ },
723
+ "created_at": {
724
+ "name": "created_at",
725
+ "type": "timestamp with time zone",
726
+ "primaryKey": false,
727
+ "notNull": true,
728
+ "default": "now()"
729
+ },
730
+ "deleted_at": {
731
+ "name": "deleted_at",
732
+ "type": "timestamp with time zone",
733
+ "primaryKey": false,
734
+ "notNull": false
735
+ }
736
+ },
737
+ "indexes": {
738
+ "files_workspace_sha_uniq": {
739
+ "name": "files_workspace_sha_uniq",
740
+ "columns": [
741
+ {
742
+ "expression": "workspace_id",
743
+ "isExpression": false,
744
+ "asc": true,
745
+ "nulls": "last"
746
+ },
747
+ {
748
+ "expression": "sha256",
749
+ "isExpression": false,
750
+ "asc": true,
751
+ "nulls": "last"
752
+ }
753
+ ],
754
+ "isUnique": true,
755
+ "concurrently": false,
756
+ "method": "btree",
757
+ "with": {}
758
+ },
759
+ "files_workspace_created_id_idx": {
760
+ "name": "files_workspace_created_id_idx",
761
+ "columns": [
762
+ {
763
+ "expression": "workspace_id",
764
+ "isExpression": false,
765
+ "asc": true,
766
+ "nulls": "last"
767
+ },
768
+ {
769
+ "expression": "created_at",
770
+ "isExpression": false,
771
+ "asc": true,
772
+ "nulls": "last"
773
+ },
774
+ {
775
+ "expression": "id",
776
+ "isExpression": false,
777
+ "asc": true,
778
+ "nulls": "last"
779
+ }
780
+ ],
781
+ "isUnique": false,
782
+ "concurrently": false,
783
+ "method": "btree",
784
+ "with": {}
785
+ }
786
+ },
787
+ "foreignKeys": {
788
+ "files_workspace_id_workspaces_id_fk": {
789
+ "name": "files_workspace_id_workspaces_id_fk",
790
+ "tableFrom": "files",
791
+ "tableTo": "workspaces",
792
+ "columnsFrom": [
793
+ "workspace_id"
794
+ ],
795
+ "columnsTo": [
796
+ "id"
797
+ ],
798
+ "onDelete": "cascade",
799
+ "onUpdate": "no action"
800
+ },
801
+ "files_created_by_user_id_fk": {
802
+ "name": "files_created_by_user_id_fk",
803
+ "tableFrom": "files",
804
+ "tableTo": "user",
805
+ "columnsFrom": [
806
+ "created_by"
807
+ ],
808
+ "columnsTo": [
809
+ "id"
810
+ ],
811
+ "onDelete": "set null",
812
+ "onUpdate": "no action"
813
+ }
814
+ },
815
+ "compositePrimaryKeys": {},
816
+ "uniqueConstraints": {},
817
+ "policies": {},
818
+ "checkConstraints": {},
819
+ "isRLSEnabled": false
820
+ },
821
+ "public.hub_grant_presentations": {
822
+ "name": "hub_grant_presentations",
823
+ "schema": "",
824
+ "columns": {
825
+ "account_id": {
826
+ "name": "account_id",
827
+ "type": "text",
828
+ "primaryKey": true,
829
+ "notNull": true
830
+ },
831
+ "refresh_token": {
832
+ "name": "refresh_token",
833
+ "type": "text",
834
+ "primaryKey": false,
835
+ "notNull": true
836
+ },
837
+ "presented_at": {
838
+ "name": "presented_at",
839
+ "type": "timestamp with time zone",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "default": "now()"
843
+ }
844
+ },
845
+ "indexes": {},
846
+ "foreignKeys": {
847
+ "hub_grant_presentations_account_id_account_id_fk": {
848
+ "name": "hub_grant_presentations_account_id_account_id_fk",
849
+ "tableFrom": "hub_grant_presentations",
850
+ "tableTo": "account",
851
+ "columnsFrom": [
852
+ "account_id"
853
+ ],
854
+ "columnsTo": [
855
+ "id"
856
+ ],
857
+ "onDelete": "cascade",
858
+ "onUpdate": "no action"
859
+ }
860
+ },
861
+ "compositePrimaryKeys": {},
862
+ "uniqueConstraints": {},
863
+ "policies": {},
864
+ "checkConstraints": {},
865
+ "isRLSEnabled": false
866
+ },
867
+ "public.idempotency_keys": {
868
+ "name": "idempotency_keys",
869
+ "schema": "",
870
+ "columns": {
871
+ "id": {
872
+ "name": "id",
873
+ "type": "uuid",
874
+ "primaryKey": true,
875
+ "notNull": true,
876
+ "default": "gen_random_uuid()"
877
+ },
878
+ "workspace_id": {
879
+ "name": "workspace_id",
880
+ "type": "uuid",
881
+ "primaryKey": false,
882
+ "notNull": true
883
+ },
884
+ "user_id": {
885
+ "name": "user_id",
886
+ "type": "text",
887
+ "primaryKey": false,
888
+ "notNull": true
889
+ },
890
+ "key": {
891
+ "name": "key",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ },
896
+ "request_hash": {
897
+ "name": "request_hash",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true
901
+ },
902
+ "response_status": {
903
+ "name": "response_status",
904
+ "type": "integer",
905
+ "primaryKey": false,
906
+ "notNull": false
907
+ },
908
+ "response_body_enc": {
909
+ "name": "response_body_enc",
910
+ "type": "text",
911
+ "primaryKey": false,
912
+ "notNull": false
913
+ },
914
+ "created_at": {
915
+ "name": "created_at",
916
+ "type": "timestamp with time zone",
917
+ "primaryKey": false,
918
+ "notNull": true,
919
+ "default": "now()"
920
+ },
921
+ "expires_at": {
922
+ "name": "expires_at",
923
+ "type": "timestamp with time zone",
924
+ "primaryKey": false,
925
+ "notNull": true
926
+ }
927
+ },
928
+ "indexes": {
929
+ "idempotency_keys_ws_user_key_uniq": {
930
+ "name": "idempotency_keys_ws_user_key_uniq",
931
+ "columns": [
932
+ {
933
+ "expression": "workspace_id",
934
+ "isExpression": false,
935
+ "asc": true,
936
+ "nulls": "last"
937
+ },
938
+ {
939
+ "expression": "user_id",
940
+ "isExpression": false,
941
+ "asc": true,
942
+ "nulls": "last"
943
+ },
944
+ {
945
+ "expression": "key",
946
+ "isExpression": false,
947
+ "asc": true,
948
+ "nulls": "last"
949
+ }
950
+ ],
951
+ "isUnique": true,
952
+ "concurrently": false,
953
+ "method": "btree",
954
+ "with": {}
955
+ },
956
+ "idempotency_keys_expires_idx": {
957
+ "name": "idempotency_keys_expires_idx",
958
+ "columns": [
959
+ {
960
+ "expression": "expires_at",
961
+ "isExpression": false,
962
+ "asc": true,
963
+ "nulls": "last"
964
+ }
965
+ ],
966
+ "isUnique": false,
967
+ "concurrently": false,
968
+ "method": "btree",
969
+ "with": {}
970
+ }
971
+ },
972
+ "foreignKeys": {
973
+ "idempotency_keys_workspace_id_workspaces_id_fk": {
974
+ "name": "idempotency_keys_workspace_id_workspaces_id_fk",
975
+ "tableFrom": "idempotency_keys",
976
+ "tableTo": "workspaces",
977
+ "columnsFrom": [
978
+ "workspace_id"
979
+ ],
980
+ "columnsTo": [
981
+ "id"
982
+ ],
983
+ "onDelete": "cascade",
984
+ "onUpdate": "no action"
985
+ },
986
+ "idempotency_keys_user_id_user_id_fk": {
987
+ "name": "idempotency_keys_user_id_user_id_fk",
988
+ "tableFrom": "idempotency_keys",
989
+ "tableTo": "user",
990
+ "columnsFrom": [
991
+ "user_id"
992
+ ],
993
+ "columnsTo": [
994
+ "id"
995
+ ],
996
+ "onDelete": "cascade",
997
+ "onUpdate": "no action"
998
+ }
999
+ },
1000
+ "compositePrimaryKeys": {},
1001
+ "uniqueConstraints": {},
1002
+ "policies": {},
1003
+ "checkConstraints": {},
1004
+ "isRLSEnabled": false
1005
+ },
1006
+ "public.instance_settings": {
1007
+ "name": "instance_settings",
1008
+ "schema": "",
1009
+ "columns": {
1010
+ "id": {
1011
+ "name": "id",
1012
+ "type": "text",
1013
+ "primaryKey": true,
1014
+ "notNull": true
1015
+ },
1016
+ "instance_id": {
1017
+ "name": "instance_id",
1018
+ "type": "text",
1019
+ "primaryKey": false,
1020
+ "notNull": true
1021
+ },
1022
+ "name": {
1023
+ "name": "name",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": true
1027
+ },
1028
+ "setup_completed_at": {
1029
+ "name": "setup_completed_at",
1030
+ "type": "timestamp with time zone",
1031
+ "primaryKey": false,
1032
+ "notNull": true,
1033
+ "default": "now()"
1034
+ },
1035
+ "schema_version": {
1036
+ "name": "schema_version",
1037
+ "type": "integer",
1038
+ "primaryKey": false,
1039
+ "notNull": true,
1040
+ "default": 1
1041
+ },
1042
+ "telemetry_enabled": {
1043
+ "name": "telemetry_enabled",
1044
+ "type": "boolean",
1045
+ "primaryKey": false,
1046
+ "notNull": true,
1047
+ "default": false
1048
+ },
1049
+ "edition": {
1050
+ "name": "edition",
1051
+ "type": "text",
1052
+ "primaryKey": false,
1053
+ "notNull": true,
1054
+ "default": "'oss'"
1055
+ },
1056
+ "operator_user_id": {
1057
+ "name": "operator_user_id",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": false
1061
+ }
1062
+ },
1063
+ "indexes": {},
1064
+ "foreignKeys": {},
1065
+ "compositePrimaryKeys": {},
1066
+ "uniqueConstraints": {},
1067
+ "policies": {},
1068
+ "checkConstraints": {},
1069
+ "isRLSEnabled": false
1070
+ },
1071
+ "public.invitations": {
1072
+ "name": "invitations",
1073
+ "schema": "",
1074
+ "columns": {
1075
+ "id": {
1076
+ "name": "id",
1077
+ "type": "uuid",
1078
+ "primaryKey": true,
1079
+ "notNull": true,
1080
+ "default": "gen_random_uuid()"
1081
+ },
1082
+ "workspace_id": {
1083
+ "name": "workspace_id",
1084
+ "type": "uuid",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "email": {
1089
+ "name": "email",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true
1093
+ },
1094
+ "role": {
1095
+ "name": "role",
1096
+ "type": "text",
1097
+ "primaryKey": false,
1098
+ "notNull": true,
1099
+ "default": "'member'"
1100
+ },
1101
+ "token_hash": {
1102
+ "name": "token_hash",
1103
+ "type": "text",
1104
+ "primaryKey": false,
1105
+ "notNull": true
1106
+ },
1107
+ "email_token_hash": {
1108
+ "name": "email_token_hash",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": false
1112
+ },
1113
+ "invited_by": {
1114
+ "name": "invited_by",
1115
+ "type": "text",
1116
+ "primaryKey": false,
1117
+ "notNull": true
1118
+ },
1119
+ "expires_at": {
1120
+ "name": "expires_at",
1121
+ "type": "timestamp with time zone",
1122
+ "primaryKey": false,
1123
+ "notNull": true
1124
+ },
1125
+ "accepted_at": {
1126
+ "name": "accepted_at",
1127
+ "type": "timestamp with time zone",
1128
+ "primaryKey": false,
1129
+ "notNull": false
1130
+ },
1131
+ "revoked_at": {
1132
+ "name": "revoked_at",
1133
+ "type": "timestamp with time zone",
1134
+ "primaryKey": false,
1135
+ "notNull": false
1136
+ },
1137
+ "created_at": {
1138
+ "name": "created_at",
1139
+ "type": "timestamp with time zone",
1140
+ "primaryKey": false,
1141
+ "notNull": true,
1142
+ "default": "now()"
1143
+ }
1144
+ },
1145
+ "indexes": {
1146
+ "invitations_token_hash_uniq": {
1147
+ "name": "invitations_token_hash_uniq",
1148
+ "columns": [
1149
+ {
1150
+ "expression": "token_hash",
1151
+ "isExpression": false,
1152
+ "asc": true,
1153
+ "nulls": "last"
1154
+ }
1155
+ ],
1156
+ "isUnique": true,
1157
+ "concurrently": false,
1158
+ "method": "btree",
1159
+ "with": {}
1160
+ },
1161
+ "invitations_email_token_hash_uniq": {
1162
+ "name": "invitations_email_token_hash_uniq",
1163
+ "columns": [
1164
+ {
1165
+ "expression": "email_token_hash",
1166
+ "isExpression": false,
1167
+ "asc": true,
1168
+ "nulls": "last"
1169
+ }
1170
+ ],
1171
+ "isUnique": true,
1172
+ "concurrently": false,
1173
+ "method": "btree",
1174
+ "with": {}
1175
+ },
1176
+ "invitations_workspace_created_id_idx": {
1177
+ "name": "invitations_workspace_created_id_idx",
1178
+ "columns": [
1179
+ {
1180
+ "expression": "workspace_id",
1181
+ "isExpression": false,
1182
+ "asc": true,
1183
+ "nulls": "last"
1184
+ },
1185
+ {
1186
+ "expression": "created_at",
1187
+ "isExpression": false,
1188
+ "asc": true,
1189
+ "nulls": "last"
1190
+ },
1191
+ {
1192
+ "expression": "id",
1193
+ "isExpression": false,
1194
+ "asc": true,
1195
+ "nulls": "last"
1196
+ }
1197
+ ],
1198
+ "isUnique": false,
1199
+ "concurrently": false,
1200
+ "method": "btree",
1201
+ "with": {}
1202
+ },
1203
+ "invitations_email_idx": {
1204
+ "name": "invitations_email_idx",
1205
+ "columns": [
1206
+ {
1207
+ "expression": "email",
1208
+ "isExpression": false,
1209
+ "asc": true,
1210
+ "nulls": "last"
1211
+ }
1212
+ ],
1213
+ "isUnique": false,
1214
+ "concurrently": false,
1215
+ "method": "btree",
1216
+ "with": {}
1217
+ }
1218
+ },
1219
+ "foreignKeys": {
1220
+ "invitations_workspace_id_workspaces_id_fk": {
1221
+ "name": "invitations_workspace_id_workspaces_id_fk",
1222
+ "tableFrom": "invitations",
1223
+ "tableTo": "workspaces",
1224
+ "columnsFrom": [
1225
+ "workspace_id"
1226
+ ],
1227
+ "columnsTo": [
1228
+ "id"
1229
+ ],
1230
+ "onDelete": "cascade",
1231
+ "onUpdate": "no action"
1232
+ },
1233
+ "invitations_invited_by_user_id_fk": {
1234
+ "name": "invitations_invited_by_user_id_fk",
1235
+ "tableFrom": "invitations",
1236
+ "tableTo": "user",
1237
+ "columnsFrom": [
1238
+ "invited_by"
1239
+ ],
1240
+ "columnsTo": [
1241
+ "id"
1242
+ ],
1243
+ "onDelete": "cascade",
1244
+ "onUpdate": "no action"
1245
+ }
1246
+ },
1247
+ "compositePrimaryKeys": {},
1248
+ "uniqueConstraints": {},
1249
+ "policies": {},
1250
+ "checkConstraints": {},
1251
+ "isRLSEnabled": false
1252
+ },
1253
+ "public.project_members": {
1254
+ "name": "project_members",
1255
+ "schema": "",
1256
+ "columns": {
1257
+ "id": {
1258
+ "name": "id",
1259
+ "type": "uuid",
1260
+ "primaryKey": true,
1261
+ "notNull": true,
1262
+ "default": "gen_random_uuid()"
1263
+ },
1264
+ "project_id": {
1265
+ "name": "project_id",
1266
+ "type": "uuid",
1267
+ "primaryKey": false,
1268
+ "notNull": true
1269
+ },
1270
+ "member_id": {
1271
+ "name": "member_id",
1272
+ "type": "uuid",
1273
+ "primaryKey": false,
1274
+ "notNull": true
1275
+ },
1276
+ "role": {
1277
+ "name": "role",
1278
+ "type": "text",
1279
+ "primaryKey": false,
1280
+ "notNull": true
1281
+ },
1282
+ "added_by": {
1283
+ "name": "added_by",
1284
+ "type": "text",
1285
+ "primaryKey": false,
1286
+ "notNull": false
1287
+ },
1288
+ "created_at": {
1289
+ "name": "created_at",
1290
+ "type": "timestamp with time zone",
1291
+ "primaryKey": false,
1292
+ "notNull": true,
1293
+ "default": "now()"
1294
+ }
1295
+ },
1296
+ "indexes": {
1297
+ "project_members_project_member_uniq": {
1298
+ "name": "project_members_project_member_uniq",
1299
+ "columns": [
1300
+ {
1301
+ "expression": "project_id",
1302
+ "isExpression": false,
1303
+ "asc": true,
1304
+ "nulls": "last"
1305
+ },
1306
+ {
1307
+ "expression": "member_id",
1308
+ "isExpression": false,
1309
+ "asc": true,
1310
+ "nulls": "last"
1311
+ }
1312
+ ],
1313
+ "isUnique": true,
1314
+ "concurrently": false,
1315
+ "method": "btree",
1316
+ "with": {}
1317
+ },
1318
+ "project_members_member_idx": {
1319
+ "name": "project_members_member_idx",
1320
+ "columns": [
1321
+ {
1322
+ "expression": "member_id",
1323
+ "isExpression": false,
1324
+ "asc": true,
1325
+ "nulls": "last"
1326
+ }
1327
+ ],
1328
+ "isUnique": false,
1329
+ "concurrently": false,
1330
+ "method": "btree",
1331
+ "with": {}
1332
+ },
1333
+ "project_members_project_created_id_idx": {
1334
+ "name": "project_members_project_created_id_idx",
1335
+ "columns": [
1336
+ {
1337
+ "expression": "project_id",
1338
+ "isExpression": false,
1339
+ "asc": true,
1340
+ "nulls": "last"
1341
+ },
1342
+ {
1343
+ "expression": "created_at",
1344
+ "isExpression": false,
1345
+ "asc": true,
1346
+ "nulls": "last"
1347
+ },
1348
+ {
1349
+ "expression": "id",
1350
+ "isExpression": false,
1351
+ "asc": true,
1352
+ "nulls": "last"
1353
+ }
1354
+ ],
1355
+ "isUnique": false,
1356
+ "concurrently": false,
1357
+ "method": "btree",
1358
+ "with": {}
1359
+ }
1360
+ },
1361
+ "foreignKeys": {
1362
+ "project_members_project_id_projects_id_fk": {
1363
+ "name": "project_members_project_id_projects_id_fk",
1364
+ "tableFrom": "project_members",
1365
+ "tableTo": "projects",
1366
+ "columnsFrom": [
1367
+ "project_id"
1368
+ ],
1369
+ "columnsTo": [
1370
+ "id"
1371
+ ],
1372
+ "onDelete": "cascade",
1373
+ "onUpdate": "no action"
1374
+ },
1375
+ "project_members_member_id_workspace_members_id_fk": {
1376
+ "name": "project_members_member_id_workspace_members_id_fk",
1377
+ "tableFrom": "project_members",
1378
+ "tableTo": "workspace_members",
1379
+ "columnsFrom": [
1380
+ "member_id"
1381
+ ],
1382
+ "columnsTo": [
1383
+ "id"
1384
+ ],
1385
+ "onDelete": "cascade",
1386
+ "onUpdate": "no action"
1387
+ },
1388
+ "project_members_added_by_user_id_fk": {
1389
+ "name": "project_members_added_by_user_id_fk",
1390
+ "tableFrom": "project_members",
1391
+ "tableTo": "user",
1392
+ "columnsFrom": [
1393
+ "added_by"
1394
+ ],
1395
+ "columnsTo": [
1396
+ "id"
1397
+ ],
1398
+ "onDelete": "set null",
1399
+ "onUpdate": "no action"
1400
+ }
1401
+ },
1402
+ "compositePrimaryKeys": {},
1403
+ "uniqueConstraints": {},
1404
+ "policies": {},
1405
+ "checkConstraints": {
1406
+ "project_members_role_check": {
1407
+ "name": "project_members_role_check",
1408
+ "value": "\"project_members\".\"role\" IN ('manager', 'editor', 'viewer')"
1409
+ }
1410
+ },
1411
+ "isRLSEnabled": false
1412
+ },
1413
+ "public.project_teams": {
1414
+ "name": "project_teams",
1415
+ "schema": "",
1416
+ "columns": {
1417
+ "id": {
1418
+ "name": "id",
1419
+ "type": "uuid",
1420
+ "primaryKey": true,
1421
+ "notNull": true,
1422
+ "default": "gen_random_uuid()"
1423
+ },
1424
+ "project_id": {
1425
+ "name": "project_id",
1426
+ "type": "uuid",
1427
+ "primaryKey": false,
1428
+ "notNull": true
1429
+ },
1430
+ "team_id": {
1431
+ "name": "team_id",
1432
+ "type": "uuid",
1433
+ "primaryKey": false,
1434
+ "notNull": true
1435
+ },
1436
+ "role": {
1437
+ "name": "role",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": true
1441
+ },
1442
+ "added_by": {
1443
+ "name": "added_by",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": false
1447
+ },
1448
+ "created_at": {
1449
+ "name": "created_at",
1450
+ "type": "timestamp with time zone",
1451
+ "primaryKey": false,
1452
+ "notNull": true,
1453
+ "default": "now()"
1454
+ }
1455
+ },
1456
+ "indexes": {
1457
+ "project_teams_project_team_uniq": {
1458
+ "name": "project_teams_project_team_uniq",
1459
+ "columns": [
1460
+ {
1461
+ "expression": "project_id",
1462
+ "isExpression": false,
1463
+ "asc": true,
1464
+ "nulls": "last"
1465
+ },
1466
+ {
1467
+ "expression": "team_id",
1468
+ "isExpression": false,
1469
+ "asc": true,
1470
+ "nulls": "last"
1471
+ }
1472
+ ],
1473
+ "isUnique": true,
1474
+ "concurrently": false,
1475
+ "method": "btree",
1476
+ "with": {}
1477
+ },
1478
+ "project_teams_team_idx": {
1479
+ "name": "project_teams_team_idx",
1480
+ "columns": [
1481
+ {
1482
+ "expression": "team_id",
1483
+ "isExpression": false,
1484
+ "asc": true,
1485
+ "nulls": "last"
1486
+ }
1487
+ ],
1488
+ "isUnique": false,
1489
+ "concurrently": false,
1490
+ "method": "btree",
1491
+ "with": {}
1492
+ },
1493
+ "project_teams_project_created_id_idx": {
1494
+ "name": "project_teams_project_created_id_idx",
1495
+ "columns": [
1496
+ {
1497
+ "expression": "project_id",
1498
+ "isExpression": false,
1499
+ "asc": true,
1500
+ "nulls": "last"
1501
+ },
1502
+ {
1503
+ "expression": "created_at",
1504
+ "isExpression": false,
1505
+ "asc": true,
1506
+ "nulls": "last"
1507
+ },
1508
+ {
1509
+ "expression": "id",
1510
+ "isExpression": false,
1511
+ "asc": true,
1512
+ "nulls": "last"
1513
+ }
1514
+ ],
1515
+ "isUnique": false,
1516
+ "concurrently": false,
1517
+ "method": "btree",
1518
+ "with": {}
1519
+ }
1520
+ },
1521
+ "foreignKeys": {
1522
+ "project_teams_project_id_projects_id_fk": {
1523
+ "name": "project_teams_project_id_projects_id_fk",
1524
+ "tableFrom": "project_teams",
1525
+ "tableTo": "projects",
1526
+ "columnsFrom": [
1527
+ "project_id"
1528
+ ],
1529
+ "columnsTo": [
1530
+ "id"
1531
+ ],
1532
+ "onDelete": "cascade",
1533
+ "onUpdate": "no action"
1534
+ },
1535
+ "project_teams_team_id_workspace_teams_id_fk": {
1536
+ "name": "project_teams_team_id_workspace_teams_id_fk",
1537
+ "tableFrom": "project_teams",
1538
+ "tableTo": "workspace_teams",
1539
+ "columnsFrom": [
1540
+ "team_id"
1541
+ ],
1542
+ "columnsTo": [
1543
+ "id"
1544
+ ],
1545
+ "onDelete": "cascade",
1546
+ "onUpdate": "no action"
1547
+ },
1548
+ "project_teams_added_by_user_id_fk": {
1549
+ "name": "project_teams_added_by_user_id_fk",
1550
+ "tableFrom": "project_teams",
1551
+ "tableTo": "user",
1552
+ "columnsFrom": [
1553
+ "added_by"
1554
+ ],
1555
+ "columnsTo": [
1556
+ "id"
1557
+ ],
1558
+ "onDelete": "set null",
1559
+ "onUpdate": "no action"
1560
+ }
1561
+ },
1562
+ "compositePrimaryKeys": {},
1563
+ "uniqueConstraints": {},
1564
+ "policies": {},
1565
+ "checkConstraints": {
1566
+ "project_teams_role_check": {
1567
+ "name": "project_teams_role_check",
1568
+ "value": "\"project_teams\".\"role\" IN ('manager', 'editor', 'viewer')"
1569
+ }
1570
+ },
1571
+ "isRLSEnabled": false
1572
+ },
1573
+ "public.projects": {
1574
+ "name": "projects",
1575
+ "schema": "",
1576
+ "columns": {
1577
+ "id": {
1578
+ "name": "id",
1579
+ "type": "uuid",
1580
+ "primaryKey": true,
1581
+ "notNull": true,
1582
+ "default": "gen_random_uuid()"
1583
+ },
1584
+ "workspace_id": {
1585
+ "name": "workspace_id",
1586
+ "type": "uuid",
1587
+ "primaryKey": false,
1588
+ "notNull": true
1589
+ },
1590
+ "name": {
1591
+ "name": "name",
1592
+ "type": "text",
1593
+ "primaryKey": false,
1594
+ "notNull": true
1595
+ },
1596
+ "description": {
1597
+ "name": "description",
1598
+ "type": "text",
1599
+ "primaryKey": false,
1600
+ "notNull": false
1601
+ },
1602
+ "metadata": {
1603
+ "name": "metadata",
1604
+ "type": "jsonb",
1605
+ "primaryKey": false,
1606
+ "notNull": true,
1607
+ "default": "'{}'::jsonb"
1608
+ },
1609
+ "archived_at": {
1610
+ "name": "archived_at",
1611
+ "type": "timestamp with time zone",
1612
+ "primaryKey": false,
1613
+ "notNull": false
1614
+ },
1615
+ "created_by": {
1616
+ "name": "created_by",
1617
+ "type": "text",
1618
+ "primaryKey": false,
1619
+ "notNull": false
1620
+ },
1621
+ "created_at": {
1622
+ "name": "created_at",
1623
+ "type": "timestamp with time zone",
1624
+ "primaryKey": false,
1625
+ "notNull": true,
1626
+ "default": "now()"
1627
+ },
1628
+ "updated_at": {
1629
+ "name": "updated_at",
1630
+ "type": "timestamp with time zone",
1631
+ "primaryKey": false,
1632
+ "notNull": true,
1633
+ "default": "now()"
1634
+ }
1635
+ },
1636
+ "indexes": {
1637
+ "projects_workspace_created_id_idx": {
1638
+ "name": "projects_workspace_created_id_idx",
1639
+ "columns": [
1640
+ {
1641
+ "expression": "workspace_id",
1642
+ "isExpression": false,
1643
+ "asc": true,
1644
+ "nulls": "last"
1645
+ },
1646
+ {
1647
+ "expression": "created_at",
1648
+ "isExpression": false,
1649
+ "asc": true,
1650
+ "nulls": "last"
1651
+ },
1652
+ {
1653
+ "expression": "id",
1654
+ "isExpression": false,
1655
+ "asc": true,
1656
+ "nulls": "last"
1657
+ }
1658
+ ],
1659
+ "isUnique": false,
1660
+ "concurrently": false,
1661
+ "method": "btree",
1662
+ "with": {}
1663
+ }
1664
+ },
1665
+ "foreignKeys": {
1666
+ "projects_workspace_id_workspaces_id_fk": {
1667
+ "name": "projects_workspace_id_workspaces_id_fk",
1668
+ "tableFrom": "projects",
1669
+ "tableTo": "workspaces",
1670
+ "columnsFrom": [
1671
+ "workspace_id"
1672
+ ],
1673
+ "columnsTo": [
1674
+ "id"
1675
+ ],
1676
+ "onDelete": "cascade",
1677
+ "onUpdate": "no action"
1678
+ },
1679
+ "projects_created_by_user_id_fk": {
1680
+ "name": "projects_created_by_user_id_fk",
1681
+ "tableFrom": "projects",
1682
+ "tableTo": "user",
1683
+ "columnsFrom": [
1684
+ "created_by"
1685
+ ],
1686
+ "columnsTo": [
1687
+ "id"
1688
+ ],
1689
+ "onDelete": "set null",
1690
+ "onUpdate": "no action"
1691
+ }
1692
+ },
1693
+ "compositePrimaryKeys": {},
1694
+ "uniqueConstraints": {},
1695
+ "policies": {},
1696
+ "checkConstraints": {},
1697
+ "isRLSEnabled": false
1698
+ },
1699
+ "public.sso_connect_jtis": {
1700
+ "name": "sso_connect_jtis",
1701
+ "schema": "",
1702
+ "columns": {
1703
+ "jti": {
1704
+ "name": "jti",
1705
+ "type": "text",
1706
+ "primaryKey": true,
1707
+ "notNull": true
1708
+ },
1709
+ "expires_at": {
1710
+ "name": "expires_at",
1711
+ "type": "timestamp with time zone",
1712
+ "primaryKey": false,
1713
+ "notNull": true
1714
+ },
1715
+ "created_at": {
1716
+ "name": "created_at",
1717
+ "type": "timestamp with time zone",
1718
+ "primaryKey": false,
1719
+ "notNull": true,
1720
+ "default": "now()"
1721
+ }
1722
+ },
1723
+ "indexes": {},
1724
+ "foreignKeys": {},
1725
+ "compositePrimaryKeys": {},
1726
+ "uniqueConstraints": {},
1727
+ "policies": {},
1728
+ "checkConstraints": {},
1729
+ "isRLSEnabled": false
1730
+ },
1731
+ "public.user_onboarding": {
1732
+ "name": "user_onboarding",
1733
+ "schema": "",
1734
+ "columns": {
1735
+ "user_id": {
1736
+ "name": "user_id",
1737
+ "type": "text",
1738
+ "primaryKey": true,
1739
+ "notNull": true
1740
+ },
1741
+ "first_login_at": {
1742
+ "name": "first_login_at",
1743
+ "type": "timestamp with time zone",
1744
+ "primaryKey": false,
1745
+ "notNull": true,
1746
+ "default": "now()"
1747
+ },
1748
+ "dismissed_at": {
1749
+ "name": "dismissed_at",
1750
+ "type": "timestamp with time zone",
1751
+ "primaryKey": false,
1752
+ "notNull": false
1753
+ }
1754
+ },
1755
+ "indexes": {},
1756
+ "foreignKeys": {
1757
+ "user_onboarding_user_id_user_id_fk": {
1758
+ "name": "user_onboarding_user_id_user_id_fk",
1759
+ "tableFrom": "user_onboarding",
1760
+ "tableTo": "user",
1761
+ "columnsFrom": [
1762
+ "user_id"
1763
+ ],
1764
+ "columnsTo": [
1765
+ "id"
1766
+ ],
1767
+ "onDelete": "cascade",
1768
+ "onUpdate": "no action"
1769
+ }
1770
+ },
1771
+ "compositePrimaryKeys": {},
1772
+ "uniqueConstraints": {},
1773
+ "policies": {},
1774
+ "checkConstraints": {},
1775
+ "isRLSEnabled": false
1776
+ },
1777
+ "public.workspace_members": {
1778
+ "name": "workspace_members",
1779
+ "schema": "",
1780
+ "columns": {
1781
+ "id": {
1782
+ "name": "id",
1783
+ "type": "uuid",
1784
+ "primaryKey": true,
1785
+ "notNull": true,
1786
+ "default": "gen_random_uuid()"
1787
+ },
1788
+ "workspace_id": {
1789
+ "name": "workspace_id",
1790
+ "type": "uuid",
1791
+ "primaryKey": false,
1792
+ "notNull": true
1793
+ },
1794
+ "user_id": {
1795
+ "name": "user_id",
1796
+ "type": "text",
1797
+ "primaryKey": false,
1798
+ "notNull": true
1799
+ },
1800
+ "role": {
1801
+ "name": "role",
1802
+ "type": "text",
1803
+ "primaryKey": false,
1804
+ "notNull": true,
1805
+ "default": "'member'"
1806
+ },
1807
+ "origin": {
1808
+ "name": "origin",
1809
+ "type": "text",
1810
+ "primaryKey": false,
1811
+ "notNull": true,
1812
+ "default": "'local'"
1813
+ },
1814
+ "is_active": {
1815
+ "name": "is_active",
1816
+ "type": "boolean",
1817
+ "primaryKey": false,
1818
+ "notNull": true,
1819
+ "default": true
1820
+ },
1821
+ "is_default": {
1822
+ "name": "is_default",
1823
+ "type": "boolean",
1824
+ "primaryKey": false,
1825
+ "notNull": true,
1826
+ "default": false
1827
+ },
1828
+ "invited_by": {
1829
+ "name": "invited_by",
1830
+ "type": "text",
1831
+ "primaryKey": false,
1832
+ "notNull": false
1833
+ },
1834
+ "created_at": {
1835
+ "name": "created_at",
1836
+ "type": "timestamp with time zone",
1837
+ "primaryKey": false,
1838
+ "notNull": true,
1839
+ "default": "now()"
1840
+ },
1841
+ "last_seen_at": {
1842
+ "name": "last_seen_at",
1843
+ "type": "timestamp with time zone",
1844
+ "primaryKey": false,
1845
+ "notNull": false
1846
+ }
1847
+ },
1848
+ "indexes": {
1849
+ "workspace_members_workspace_user_uniq": {
1850
+ "name": "workspace_members_workspace_user_uniq",
1851
+ "columns": [
1852
+ {
1853
+ "expression": "workspace_id",
1854
+ "isExpression": false,
1855
+ "asc": true,
1856
+ "nulls": "last"
1857
+ },
1858
+ {
1859
+ "expression": "user_id",
1860
+ "isExpression": false,
1861
+ "asc": true,
1862
+ "nulls": "last"
1863
+ }
1864
+ ],
1865
+ "isUnique": true,
1866
+ "concurrently": false,
1867
+ "method": "btree",
1868
+ "with": {}
1869
+ },
1870
+ "workspace_members_user_idx": {
1871
+ "name": "workspace_members_user_idx",
1872
+ "columns": [
1873
+ {
1874
+ "expression": "user_id",
1875
+ "isExpression": false,
1876
+ "asc": true,
1877
+ "nulls": "last"
1878
+ }
1879
+ ],
1880
+ "isUnique": false,
1881
+ "concurrently": false,
1882
+ "method": "btree",
1883
+ "with": {}
1884
+ },
1885
+ "workspace_members_workspace_created_id_idx": {
1886
+ "name": "workspace_members_workspace_created_id_idx",
1887
+ "columns": [
1888
+ {
1889
+ "expression": "workspace_id",
1890
+ "isExpression": false,
1891
+ "asc": true,
1892
+ "nulls": "last"
1893
+ },
1894
+ {
1895
+ "expression": "created_at",
1896
+ "isExpression": false,
1897
+ "asc": true,
1898
+ "nulls": "last"
1899
+ },
1900
+ {
1901
+ "expression": "id",
1902
+ "isExpression": false,
1903
+ "asc": true,
1904
+ "nulls": "last"
1905
+ }
1906
+ ],
1907
+ "isUnique": false,
1908
+ "concurrently": false,
1909
+ "method": "btree",
1910
+ "with": {}
1911
+ },
1912
+ "workspace_members_user_default_uniq": {
1913
+ "name": "workspace_members_user_default_uniq",
1914
+ "columns": [
1915
+ {
1916
+ "expression": "user_id",
1917
+ "isExpression": false,
1918
+ "asc": true,
1919
+ "nulls": "last"
1920
+ }
1921
+ ],
1922
+ "isUnique": true,
1923
+ "where": "\"workspace_members\".\"is_default\"",
1924
+ "concurrently": false,
1925
+ "method": "btree",
1926
+ "with": {}
1927
+ }
1928
+ },
1929
+ "foreignKeys": {
1930
+ "workspace_members_workspace_id_workspaces_id_fk": {
1931
+ "name": "workspace_members_workspace_id_workspaces_id_fk",
1932
+ "tableFrom": "workspace_members",
1933
+ "tableTo": "workspaces",
1934
+ "columnsFrom": [
1935
+ "workspace_id"
1936
+ ],
1937
+ "columnsTo": [
1938
+ "id"
1939
+ ],
1940
+ "onDelete": "cascade",
1941
+ "onUpdate": "no action"
1942
+ },
1943
+ "workspace_members_user_id_user_id_fk": {
1944
+ "name": "workspace_members_user_id_user_id_fk",
1945
+ "tableFrom": "workspace_members",
1946
+ "tableTo": "user",
1947
+ "columnsFrom": [
1948
+ "user_id"
1949
+ ],
1950
+ "columnsTo": [
1951
+ "id"
1952
+ ],
1953
+ "onDelete": "cascade",
1954
+ "onUpdate": "no action"
1955
+ },
1956
+ "workspace_members_invited_by_user_id_fk": {
1957
+ "name": "workspace_members_invited_by_user_id_fk",
1958
+ "tableFrom": "workspace_members",
1959
+ "tableTo": "user",
1960
+ "columnsFrom": [
1961
+ "invited_by"
1962
+ ],
1963
+ "columnsTo": [
1964
+ "id"
1965
+ ],
1966
+ "onDelete": "set null",
1967
+ "onUpdate": "no action"
1968
+ }
1969
+ },
1970
+ "compositePrimaryKeys": {},
1971
+ "uniqueConstraints": {},
1972
+ "policies": {},
1973
+ "checkConstraints": {},
1974
+ "isRLSEnabled": false
1975
+ },
1976
+ "public.workspace_team_members": {
1977
+ "name": "workspace_team_members",
1978
+ "schema": "",
1979
+ "columns": {
1980
+ "id": {
1981
+ "name": "id",
1982
+ "type": "uuid",
1983
+ "primaryKey": true,
1984
+ "notNull": true,
1985
+ "default": "gen_random_uuid()"
1986
+ },
1987
+ "team_id": {
1988
+ "name": "team_id",
1989
+ "type": "uuid",
1990
+ "primaryKey": false,
1991
+ "notNull": true
1992
+ },
1993
+ "member_id": {
1994
+ "name": "member_id",
1995
+ "type": "uuid",
1996
+ "primaryKey": false,
1997
+ "notNull": true
1998
+ },
1999
+ "added_by": {
2000
+ "name": "added_by",
2001
+ "type": "text",
2002
+ "primaryKey": false,
2003
+ "notNull": false
2004
+ },
2005
+ "created_at": {
2006
+ "name": "created_at",
2007
+ "type": "timestamp with time zone",
2008
+ "primaryKey": false,
2009
+ "notNull": true,
2010
+ "default": "now()"
2011
+ }
2012
+ },
2013
+ "indexes": {
2014
+ "workspace_team_members_team_member_uniq": {
2015
+ "name": "workspace_team_members_team_member_uniq",
2016
+ "columns": [
2017
+ {
2018
+ "expression": "team_id",
2019
+ "isExpression": false,
2020
+ "asc": true,
2021
+ "nulls": "last"
2022
+ },
2023
+ {
2024
+ "expression": "member_id",
2025
+ "isExpression": false,
2026
+ "asc": true,
2027
+ "nulls": "last"
2028
+ }
2029
+ ],
2030
+ "isUnique": true,
2031
+ "concurrently": false,
2032
+ "method": "btree",
2033
+ "with": {}
2034
+ },
2035
+ "workspace_team_members_member_idx": {
2036
+ "name": "workspace_team_members_member_idx",
2037
+ "columns": [
2038
+ {
2039
+ "expression": "member_id",
2040
+ "isExpression": false,
2041
+ "asc": true,
2042
+ "nulls": "last"
2043
+ }
2044
+ ],
2045
+ "isUnique": false,
2046
+ "concurrently": false,
2047
+ "method": "btree",
2048
+ "with": {}
2049
+ }
2050
+ },
2051
+ "foreignKeys": {
2052
+ "workspace_team_members_team_id_workspace_teams_id_fk": {
2053
+ "name": "workspace_team_members_team_id_workspace_teams_id_fk",
2054
+ "tableFrom": "workspace_team_members",
2055
+ "tableTo": "workspace_teams",
2056
+ "columnsFrom": [
2057
+ "team_id"
2058
+ ],
2059
+ "columnsTo": [
2060
+ "id"
2061
+ ],
2062
+ "onDelete": "cascade",
2063
+ "onUpdate": "no action"
2064
+ },
2065
+ "workspace_team_members_member_id_workspace_members_id_fk": {
2066
+ "name": "workspace_team_members_member_id_workspace_members_id_fk",
2067
+ "tableFrom": "workspace_team_members",
2068
+ "tableTo": "workspace_members",
2069
+ "columnsFrom": [
2070
+ "member_id"
2071
+ ],
2072
+ "columnsTo": [
2073
+ "id"
2074
+ ],
2075
+ "onDelete": "cascade",
2076
+ "onUpdate": "no action"
2077
+ },
2078
+ "workspace_team_members_added_by_user_id_fk": {
2079
+ "name": "workspace_team_members_added_by_user_id_fk",
2080
+ "tableFrom": "workspace_team_members",
2081
+ "tableTo": "user",
2082
+ "columnsFrom": [
2083
+ "added_by"
2084
+ ],
2085
+ "columnsTo": [
2086
+ "id"
2087
+ ],
2088
+ "onDelete": "set null",
2089
+ "onUpdate": "no action"
2090
+ }
2091
+ },
2092
+ "compositePrimaryKeys": {},
2093
+ "uniqueConstraints": {},
2094
+ "policies": {},
2095
+ "checkConstraints": {},
2096
+ "isRLSEnabled": false
2097
+ },
2098
+ "public.workspace_teams": {
2099
+ "name": "workspace_teams",
2100
+ "schema": "",
2101
+ "columns": {
2102
+ "id": {
2103
+ "name": "id",
2104
+ "type": "uuid",
2105
+ "primaryKey": true,
2106
+ "notNull": true,
2107
+ "default": "gen_random_uuid()"
2108
+ },
2109
+ "workspace_id": {
2110
+ "name": "workspace_id",
2111
+ "type": "uuid",
2112
+ "primaryKey": false,
2113
+ "notNull": true
2114
+ },
2115
+ "hub_team_id": {
2116
+ "name": "hub_team_id",
2117
+ "type": "text",
2118
+ "primaryKey": false,
2119
+ "notNull": false
2120
+ },
2121
+ "slug": {
2122
+ "name": "slug",
2123
+ "type": "text",
2124
+ "primaryKey": false,
2125
+ "notNull": true
2126
+ },
2127
+ "name": {
2128
+ "name": "name",
2129
+ "type": "text",
2130
+ "primaryKey": false,
2131
+ "notNull": true
2132
+ },
2133
+ "created_by": {
2134
+ "name": "created_by",
2135
+ "type": "text",
2136
+ "primaryKey": false,
2137
+ "notNull": false
2138
+ },
2139
+ "created_at": {
2140
+ "name": "created_at",
2141
+ "type": "timestamp with time zone",
2142
+ "primaryKey": false,
2143
+ "notNull": true,
2144
+ "default": "now()"
2145
+ },
2146
+ "updated_at": {
2147
+ "name": "updated_at",
2148
+ "type": "timestamp with time zone",
2149
+ "primaryKey": false,
2150
+ "notNull": true,
2151
+ "default": "now()"
2152
+ }
2153
+ },
2154
+ "indexes": {
2155
+ "workspace_teams_hub_team_uniq": {
2156
+ "name": "workspace_teams_hub_team_uniq",
2157
+ "columns": [
2158
+ {
2159
+ "expression": "hub_team_id",
2160
+ "isExpression": false,
2161
+ "asc": true,
2162
+ "nulls": "last"
2163
+ }
2164
+ ],
2165
+ "isUnique": true,
2166
+ "concurrently": false,
2167
+ "method": "btree",
2168
+ "with": {}
2169
+ },
2170
+ "workspace_teams_workspace_slug_local_uniq": {
2171
+ "name": "workspace_teams_workspace_slug_local_uniq",
2172
+ "columns": [
2173
+ {
2174
+ "expression": "workspace_id",
2175
+ "isExpression": false,
2176
+ "asc": true,
2177
+ "nulls": "last"
2178
+ },
2179
+ {
2180
+ "expression": "slug",
2181
+ "isExpression": false,
2182
+ "asc": true,
2183
+ "nulls": "last"
2184
+ }
2185
+ ],
2186
+ "isUnique": true,
2187
+ "where": "\"workspace_teams\".\"hub_team_id\" IS NULL",
2188
+ "concurrently": false,
2189
+ "method": "btree",
2190
+ "with": {}
2191
+ },
2192
+ "workspace_teams_workspace_idx": {
2193
+ "name": "workspace_teams_workspace_idx",
2194
+ "columns": [
2195
+ {
2196
+ "expression": "workspace_id",
2197
+ "isExpression": false,
2198
+ "asc": true,
2199
+ "nulls": "last"
2200
+ }
2201
+ ],
2202
+ "isUnique": false,
2203
+ "concurrently": false,
2204
+ "method": "btree",
2205
+ "with": {}
2206
+ }
2207
+ },
2208
+ "foreignKeys": {
2209
+ "workspace_teams_workspace_id_workspaces_id_fk": {
2210
+ "name": "workspace_teams_workspace_id_workspaces_id_fk",
2211
+ "tableFrom": "workspace_teams",
2212
+ "tableTo": "workspaces",
2213
+ "columnsFrom": [
2214
+ "workspace_id"
2215
+ ],
2216
+ "columnsTo": [
2217
+ "id"
2218
+ ],
2219
+ "onDelete": "cascade",
2220
+ "onUpdate": "no action"
2221
+ },
2222
+ "workspace_teams_created_by_user_id_fk": {
2223
+ "name": "workspace_teams_created_by_user_id_fk",
2224
+ "tableFrom": "workspace_teams",
2225
+ "tableTo": "user",
2226
+ "columnsFrom": [
2227
+ "created_by"
2228
+ ],
2229
+ "columnsTo": [
2230
+ "id"
2231
+ ],
2232
+ "onDelete": "set null",
2233
+ "onUpdate": "no action"
2234
+ }
2235
+ },
2236
+ "compositePrimaryKeys": {},
2237
+ "uniqueConstraints": {},
2238
+ "policies": {},
2239
+ "checkConstraints": {},
2240
+ "isRLSEnabled": false
2241
+ },
2242
+ "public.workspaces": {
2243
+ "name": "workspaces",
2244
+ "schema": "",
2245
+ "columns": {
2246
+ "id": {
2247
+ "name": "id",
2248
+ "type": "uuid",
2249
+ "primaryKey": true,
2250
+ "notNull": true,
2251
+ "default": "gen_random_uuid()"
2252
+ },
2253
+ "name": {
2254
+ "name": "name",
2255
+ "type": "text",
2256
+ "primaryKey": false,
2257
+ "notNull": true
2258
+ },
2259
+ "central_account_id": {
2260
+ "name": "central_account_id",
2261
+ "type": "text",
2262
+ "primaryKey": false,
2263
+ "notNull": false
2264
+ },
2265
+ "hub_status": {
2266
+ "name": "hub_status",
2267
+ "type": "text",
2268
+ "primaryKey": false,
2269
+ "notNull": true,
2270
+ "default": "'active'"
2271
+ },
2272
+ "look_theme": {
2273
+ "name": "look_theme",
2274
+ "type": "text",
2275
+ "primaryKey": false,
2276
+ "notNull": false
2277
+ },
2278
+ "look_pattern": {
2279
+ "name": "look_pattern",
2280
+ "type": "text",
2281
+ "primaryKey": false,
2282
+ "notNull": false
2283
+ },
2284
+ "look_field": {
2285
+ "name": "look_field",
2286
+ "type": "double precision",
2287
+ "primaryKey": false,
2288
+ "notNull": false
2289
+ },
2290
+ "look_grain": {
2291
+ "name": "look_grain",
2292
+ "type": "double precision",
2293
+ "primaryKey": false,
2294
+ "notNull": false
2295
+ },
2296
+ "created_at": {
2297
+ "name": "created_at",
2298
+ "type": "timestamp with time zone",
2299
+ "primaryKey": false,
2300
+ "notNull": true,
2301
+ "default": "now()"
2302
+ }
2303
+ },
2304
+ "indexes": {
2305
+ "workspaces_central_account_uniq": {
2306
+ "name": "workspaces_central_account_uniq",
2307
+ "columns": [
2308
+ {
2309
+ "expression": "central_account_id",
2310
+ "isExpression": false,
2311
+ "asc": true,
2312
+ "nulls": "last"
2313
+ }
2314
+ ],
2315
+ "isUnique": true,
2316
+ "where": "\"workspaces\".\"central_account_id\" IS NOT NULL",
2317
+ "concurrently": false,
2318
+ "method": "btree",
2319
+ "with": {}
2320
+ }
2321
+ },
2322
+ "foreignKeys": {},
2323
+ "compositePrimaryKeys": {},
2324
+ "uniqueConstraints": {},
2325
+ "policies": {},
2326
+ "checkConstraints": {
2327
+ "workspaces_hub_status_check": {
2328
+ "name": "workspaces_hub_status_check",
2329
+ "value": "\"workspaces\".\"hub_status\" IN ('active', 'suspended')"
2330
+ }
2331
+ },
2332
+ "isRLSEnabled": false
2333
+ },
2334
+ "public.account": {
2335
+ "name": "account",
2336
+ "schema": "",
2337
+ "columns": {
2338
+ "id": {
2339
+ "name": "id",
2340
+ "type": "text",
2341
+ "primaryKey": true,
2342
+ "notNull": true
2343
+ },
2344
+ "account_id": {
2345
+ "name": "account_id",
2346
+ "type": "text",
2347
+ "primaryKey": false,
2348
+ "notNull": true
2349
+ },
2350
+ "provider_id": {
2351
+ "name": "provider_id",
2352
+ "type": "text",
2353
+ "primaryKey": false,
2354
+ "notNull": true
2355
+ },
2356
+ "user_id": {
2357
+ "name": "user_id",
2358
+ "type": "text",
2359
+ "primaryKey": false,
2360
+ "notNull": true
2361
+ },
2362
+ "access_token": {
2363
+ "name": "access_token",
2364
+ "type": "text",
2365
+ "primaryKey": false,
2366
+ "notNull": false
2367
+ },
2368
+ "refresh_token": {
2369
+ "name": "refresh_token",
2370
+ "type": "text",
2371
+ "primaryKey": false,
2372
+ "notNull": false
2373
+ },
2374
+ "id_token": {
2375
+ "name": "id_token",
2376
+ "type": "text",
2377
+ "primaryKey": false,
2378
+ "notNull": false
2379
+ },
2380
+ "access_token_expires_at": {
2381
+ "name": "access_token_expires_at",
2382
+ "type": "timestamp",
2383
+ "primaryKey": false,
2384
+ "notNull": false
2385
+ },
2386
+ "refresh_token_expires_at": {
2387
+ "name": "refresh_token_expires_at",
2388
+ "type": "timestamp",
2389
+ "primaryKey": false,
2390
+ "notNull": false
2391
+ },
2392
+ "scope": {
2393
+ "name": "scope",
2394
+ "type": "text",
2395
+ "primaryKey": false,
2396
+ "notNull": false
2397
+ },
2398
+ "password": {
2399
+ "name": "password",
2400
+ "type": "text",
2401
+ "primaryKey": false,
2402
+ "notNull": false
2403
+ },
2404
+ "created_at": {
2405
+ "name": "created_at",
2406
+ "type": "timestamp",
2407
+ "primaryKey": false,
2408
+ "notNull": true,
2409
+ "default": "now()"
2410
+ },
2411
+ "updated_at": {
2412
+ "name": "updated_at",
2413
+ "type": "timestamp",
2414
+ "primaryKey": false,
2415
+ "notNull": true
2416
+ }
2417
+ },
2418
+ "indexes": {
2419
+ "account_userId_idx": {
2420
+ "name": "account_userId_idx",
2421
+ "columns": [
2422
+ {
2423
+ "expression": "user_id",
2424
+ "isExpression": false,
2425
+ "asc": true,
2426
+ "nulls": "last"
2427
+ }
2428
+ ],
2429
+ "isUnique": false,
2430
+ "concurrently": false,
2431
+ "method": "btree",
2432
+ "with": {}
2433
+ }
2434
+ },
2435
+ "foreignKeys": {
2436
+ "account_user_id_user_id_fk": {
2437
+ "name": "account_user_id_user_id_fk",
2438
+ "tableFrom": "account",
2439
+ "tableTo": "user",
2440
+ "columnsFrom": [
2441
+ "user_id"
2442
+ ],
2443
+ "columnsTo": [
2444
+ "id"
2445
+ ],
2446
+ "onDelete": "cascade",
2447
+ "onUpdate": "no action"
2448
+ }
2449
+ },
2450
+ "compositePrimaryKeys": {},
2451
+ "uniqueConstraints": {},
2452
+ "policies": {},
2453
+ "checkConstraints": {},
2454
+ "isRLSEnabled": false
2455
+ },
2456
+ "public.jwks": {
2457
+ "name": "jwks",
2458
+ "schema": "",
2459
+ "columns": {
2460
+ "id": {
2461
+ "name": "id",
2462
+ "type": "text",
2463
+ "primaryKey": true,
2464
+ "notNull": true
2465
+ },
2466
+ "public_key": {
2467
+ "name": "public_key",
2468
+ "type": "text",
2469
+ "primaryKey": false,
2470
+ "notNull": true
2471
+ },
2472
+ "private_key": {
2473
+ "name": "private_key",
2474
+ "type": "text",
2475
+ "primaryKey": false,
2476
+ "notNull": true
2477
+ },
2478
+ "created_at": {
2479
+ "name": "created_at",
2480
+ "type": "timestamp",
2481
+ "primaryKey": false,
2482
+ "notNull": true
2483
+ },
2484
+ "expires_at": {
2485
+ "name": "expires_at",
2486
+ "type": "timestamp",
2487
+ "primaryKey": false,
2488
+ "notNull": false
2489
+ }
2490
+ },
2491
+ "indexes": {},
2492
+ "foreignKeys": {},
2493
+ "compositePrimaryKeys": {},
2494
+ "uniqueConstraints": {},
2495
+ "policies": {},
2496
+ "checkConstraints": {},
2497
+ "isRLSEnabled": false
2498
+ },
2499
+ "public.oauth_access_token": {
2500
+ "name": "oauth_access_token",
2501
+ "schema": "",
2502
+ "columns": {
2503
+ "id": {
2504
+ "name": "id",
2505
+ "type": "text",
2506
+ "primaryKey": true,
2507
+ "notNull": true
2508
+ },
2509
+ "token": {
2510
+ "name": "token",
2511
+ "type": "text",
2512
+ "primaryKey": false,
2513
+ "notNull": false
2514
+ },
2515
+ "client_id": {
2516
+ "name": "client_id",
2517
+ "type": "text",
2518
+ "primaryKey": false,
2519
+ "notNull": true
2520
+ },
2521
+ "session_id": {
2522
+ "name": "session_id",
2523
+ "type": "text",
2524
+ "primaryKey": false,
2525
+ "notNull": false
2526
+ },
2527
+ "user_id": {
2528
+ "name": "user_id",
2529
+ "type": "text",
2530
+ "primaryKey": false,
2531
+ "notNull": false
2532
+ },
2533
+ "reference_id": {
2534
+ "name": "reference_id",
2535
+ "type": "text",
2536
+ "primaryKey": false,
2537
+ "notNull": false
2538
+ },
2539
+ "refresh_id": {
2540
+ "name": "refresh_id",
2541
+ "type": "text",
2542
+ "primaryKey": false,
2543
+ "notNull": false
2544
+ },
2545
+ "expires_at": {
2546
+ "name": "expires_at",
2547
+ "type": "timestamp",
2548
+ "primaryKey": false,
2549
+ "notNull": false
2550
+ },
2551
+ "created_at": {
2552
+ "name": "created_at",
2553
+ "type": "timestamp",
2554
+ "primaryKey": false,
2555
+ "notNull": false
2556
+ },
2557
+ "scopes": {
2558
+ "name": "scopes",
2559
+ "type": "text[]",
2560
+ "primaryKey": false,
2561
+ "notNull": true
2562
+ }
2563
+ },
2564
+ "indexes": {
2565
+ "oauthAccessToken_clientId_idx": {
2566
+ "name": "oauthAccessToken_clientId_idx",
2567
+ "columns": [
2568
+ {
2569
+ "expression": "client_id",
2570
+ "isExpression": false,
2571
+ "asc": true,
2572
+ "nulls": "last"
2573
+ }
2574
+ ],
2575
+ "isUnique": false,
2576
+ "concurrently": false,
2577
+ "method": "btree",
2578
+ "with": {}
2579
+ },
2580
+ "oauthAccessToken_sessionId_idx": {
2581
+ "name": "oauthAccessToken_sessionId_idx",
2582
+ "columns": [
2583
+ {
2584
+ "expression": "session_id",
2585
+ "isExpression": false,
2586
+ "asc": true,
2587
+ "nulls": "last"
2588
+ }
2589
+ ],
2590
+ "isUnique": false,
2591
+ "concurrently": false,
2592
+ "method": "btree",
2593
+ "with": {}
2594
+ },
2595
+ "oauthAccessToken_userId_idx": {
2596
+ "name": "oauthAccessToken_userId_idx",
2597
+ "columns": [
2598
+ {
2599
+ "expression": "user_id",
2600
+ "isExpression": false,
2601
+ "asc": true,
2602
+ "nulls": "last"
2603
+ }
2604
+ ],
2605
+ "isUnique": false,
2606
+ "concurrently": false,
2607
+ "method": "btree",
2608
+ "with": {}
2609
+ },
2610
+ "oauthAccessToken_refreshId_idx": {
2611
+ "name": "oauthAccessToken_refreshId_idx",
2612
+ "columns": [
2613
+ {
2614
+ "expression": "refresh_id",
2615
+ "isExpression": false,
2616
+ "asc": true,
2617
+ "nulls": "last"
2618
+ }
2619
+ ],
2620
+ "isUnique": false,
2621
+ "concurrently": false,
2622
+ "method": "btree",
2623
+ "with": {}
2624
+ }
2625
+ },
2626
+ "foreignKeys": {
2627
+ "oauth_access_token_client_id_oauth_client_client_id_fk": {
2628
+ "name": "oauth_access_token_client_id_oauth_client_client_id_fk",
2629
+ "tableFrom": "oauth_access_token",
2630
+ "tableTo": "oauth_client",
2631
+ "columnsFrom": [
2632
+ "client_id"
2633
+ ],
2634
+ "columnsTo": [
2635
+ "client_id"
2636
+ ],
2637
+ "onDelete": "cascade",
2638
+ "onUpdate": "no action"
2639
+ },
2640
+ "oauth_access_token_session_id_session_id_fk": {
2641
+ "name": "oauth_access_token_session_id_session_id_fk",
2642
+ "tableFrom": "oauth_access_token",
2643
+ "tableTo": "session",
2644
+ "columnsFrom": [
2645
+ "session_id"
2646
+ ],
2647
+ "columnsTo": [
2648
+ "id"
2649
+ ],
2650
+ "onDelete": "set null",
2651
+ "onUpdate": "no action"
2652
+ },
2653
+ "oauth_access_token_user_id_user_id_fk": {
2654
+ "name": "oauth_access_token_user_id_user_id_fk",
2655
+ "tableFrom": "oauth_access_token",
2656
+ "tableTo": "user",
2657
+ "columnsFrom": [
2658
+ "user_id"
2659
+ ],
2660
+ "columnsTo": [
2661
+ "id"
2662
+ ],
2663
+ "onDelete": "cascade",
2664
+ "onUpdate": "no action"
2665
+ },
2666
+ "oauth_access_token_refresh_id_oauth_refresh_token_id_fk": {
2667
+ "name": "oauth_access_token_refresh_id_oauth_refresh_token_id_fk",
2668
+ "tableFrom": "oauth_access_token",
2669
+ "tableTo": "oauth_refresh_token",
2670
+ "columnsFrom": [
2671
+ "refresh_id"
2672
+ ],
2673
+ "columnsTo": [
2674
+ "id"
2675
+ ],
2676
+ "onDelete": "cascade",
2677
+ "onUpdate": "no action"
2678
+ }
2679
+ },
2680
+ "compositePrimaryKeys": {},
2681
+ "uniqueConstraints": {
2682
+ "oauth_access_token_token_unique": {
2683
+ "name": "oauth_access_token_token_unique",
2684
+ "nullsNotDistinct": false,
2685
+ "columns": [
2686
+ "token"
2687
+ ]
2688
+ }
2689
+ },
2690
+ "policies": {},
2691
+ "checkConstraints": {},
2692
+ "isRLSEnabled": false
2693
+ },
2694
+ "public.oauth_client": {
2695
+ "name": "oauth_client",
2696
+ "schema": "",
2697
+ "columns": {
2698
+ "id": {
2699
+ "name": "id",
2700
+ "type": "text",
2701
+ "primaryKey": true,
2702
+ "notNull": true
2703
+ },
2704
+ "client_id": {
2705
+ "name": "client_id",
2706
+ "type": "text",
2707
+ "primaryKey": false,
2708
+ "notNull": true
2709
+ },
2710
+ "client_secret": {
2711
+ "name": "client_secret",
2712
+ "type": "text",
2713
+ "primaryKey": false,
2714
+ "notNull": false
2715
+ },
2716
+ "disabled": {
2717
+ "name": "disabled",
2718
+ "type": "boolean",
2719
+ "primaryKey": false,
2720
+ "notNull": false,
2721
+ "default": false
2722
+ },
2723
+ "skip_consent": {
2724
+ "name": "skip_consent",
2725
+ "type": "boolean",
2726
+ "primaryKey": false,
2727
+ "notNull": false
2728
+ },
2729
+ "enable_end_session": {
2730
+ "name": "enable_end_session",
2731
+ "type": "boolean",
2732
+ "primaryKey": false,
2733
+ "notNull": false
2734
+ },
2735
+ "subject_type": {
2736
+ "name": "subject_type",
2737
+ "type": "text",
2738
+ "primaryKey": false,
2739
+ "notNull": false
2740
+ },
2741
+ "scopes": {
2742
+ "name": "scopes",
2743
+ "type": "text[]",
2744
+ "primaryKey": false,
2745
+ "notNull": false
2746
+ },
2747
+ "user_id": {
2748
+ "name": "user_id",
2749
+ "type": "text",
2750
+ "primaryKey": false,
2751
+ "notNull": false
2752
+ },
2753
+ "created_at": {
2754
+ "name": "created_at",
2755
+ "type": "timestamp",
2756
+ "primaryKey": false,
2757
+ "notNull": false
2758
+ },
2759
+ "updated_at": {
2760
+ "name": "updated_at",
2761
+ "type": "timestamp",
2762
+ "primaryKey": false,
2763
+ "notNull": false
2764
+ },
2765
+ "name": {
2766
+ "name": "name",
2767
+ "type": "text",
2768
+ "primaryKey": false,
2769
+ "notNull": false
2770
+ },
2771
+ "uri": {
2772
+ "name": "uri",
2773
+ "type": "text",
2774
+ "primaryKey": false,
2775
+ "notNull": false
2776
+ },
2777
+ "icon": {
2778
+ "name": "icon",
2779
+ "type": "text",
2780
+ "primaryKey": false,
2781
+ "notNull": false
2782
+ },
2783
+ "contacts": {
2784
+ "name": "contacts",
2785
+ "type": "text[]",
2786
+ "primaryKey": false,
2787
+ "notNull": false
2788
+ },
2789
+ "tos": {
2790
+ "name": "tos",
2791
+ "type": "text",
2792
+ "primaryKey": false,
2793
+ "notNull": false
2794
+ },
2795
+ "policy": {
2796
+ "name": "policy",
2797
+ "type": "text",
2798
+ "primaryKey": false,
2799
+ "notNull": false
2800
+ },
2801
+ "software_id": {
2802
+ "name": "software_id",
2803
+ "type": "text",
2804
+ "primaryKey": false,
2805
+ "notNull": false
2806
+ },
2807
+ "software_version": {
2808
+ "name": "software_version",
2809
+ "type": "text",
2810
+ "primaryKey": false,
2811
+ "notNull": false
2812
+ },
2813
+ "software_statement": {
2814
+ "name": "software_statement",
2815
+ "type": "text",
2816
+ "primaryKey": false,
2817
+ "notNull": false
2818
+ },
2819
+ "redirect_uris": {
2820
+ "name": "redirect_uris",
2821
+ "type": "text[]",
2822
+ "primaryKey": false,
2823
+ "notNull": true
2824
+ },
2825
+ "post_logout_redirect_uris": {
2826
+ "name": "post_logout_redirect_uris",
2827
+ "type": "text[]",
2828
+ "primaryKey": false,
2829
+ "notNull": false
2830
+ },
2831
+ "token_endpoint_auth_method": {
2832
+ "name": "token_endpoint_auth_method",
2833
+ "type": "text",
2834
+ "primaryKey": false,
2835
+ "notNull": false
2836
+ },
2837
+ "grant_types": {
2838
+ "name": "grant_types",
2839
+ "type": "text[]",
2840
+ "primaryKey": false,
2841
+ "notNull": false
2842
+ },
2843
+ "response_types": {
2844
+ "name": "response_types",
2845
+ "type": "text[]",
2846
+ "primaryKey": false,
2847
+ "notNull": false
2848
+ },
2849
+ "public": {
2850
+ "name": "public",
2851
+ "type": "boolean",
2852
+ "primaryKey": false,
2853
+ "notNull": false
2854
+ },
2855
+ "type": {
2856
+ "name": "type",
2857
+ "type": "text",
2858
+ "primaryKey": false,
2859
+ "notNull": false
2860
+ },
2861
+ "require_pkce": {
2862
+ "name": "require_pkce",
2863
+ "type": "boolean",
2864
+ "primaryKey": false,
2865
+ "notNull": false
2866
+ },
2867
+ "reference_id": {
2868
+ "name": "reference_id",
2869
+ "type": "text",
2870
+ "primaryKey": false,
2871
+ "notNull": false
2872
+ },
2873
+ "metadata": {
2874
+ "name": "metadata",
2875
+ "type": "jsonb",
2876
+ "primaryKey": false,
2877
+ "notNull": false
2878
+ }
2879
+ },
2880
+ "indexes": {
2881
+ "oauthClient_userId_idx": {
2882
+ "name": "oauthClient_userId_idx",
2883
+ "columns": [
2884
+ {
2885
+ "expression": "user_id",
2886
+ "isExpression": false,
2887
+ "asc": true,
2888
+ "nulls": "last"
2889
+ }
2890
+ ],
2891
+ "isUnique": false,
2892
+ "concurrently": false,
2893
+ "method": "btree",
2894
+ "with": {}
2895
+ }
2896
+ },
2897
+ "foreignKeys": {
2898
+ "oauth_client_user_id_user_id_fk": {
2899
+ "name": "oauth_client_user_id_user_id_fk",
2900
+ "tableFrom": "oauth_client",
2901
+ "tableTo": "user",
2902
+ "columnsFrom": [
2903
+ "user_id"
2904
+ ],
2905
+ "columnsTo": [
2906
+ "id"
2907
+ ],
2908
+ "onDelete": "cascade",
2909
+ "onUpdate": "no action"
2910
+ }
2911
+ },
2912
+ "compositePrimaryKeys": {},
2913
+ "uniqueConstraints": {
2914
+ "oauth_client_client_id_unique": {
2915
+ "name": "oauth_client_client_id_unique",
2916
+ "nullsNotDistinct": false,
2917
+ "columns": [
2918
+ "client_id"
2919
+ ]
2920
+ }
2921
+ },
2922
+ "policies": {},
2923
+ "checkConstraints": {},
2924
+ "isRLSEnabled": false
2925
+ },
2926
+ "public.oauth_consent": {
2927
+ "name": "oauth_consent",
2928
+ "schema": "",
2929
+ "columns": {
2930
+ "id": {
2931
+ "name": "id",
2932
+ "type": "text",
2933
+ "primaryKey": true,
2934
+ "notNull": true
2935
+ },
2936
+ "client_id": {
2937
+ "name": "client_id",
2938
+ "type": "text",
2939
+ "primaryKey": false,
2940
+ "notNull": true
2941
+ },
2942
+ "user_id": {
2943
+ "name": "user_id",
2944
+ "type": "text",
2945
+ "primaryKey": false,
2946
+ "notNull": false
2947
+ },
2948
+ "reference_id": {
2949
+ "name": "reference_id",
2950
+ "type": "text",
2951
+ "primaryKey": false,
2952
+ "notNull": false
2953
+ },
2954
+ "scopes": {
2955
+ "name": "scopes",
2956
+ "type": "text[]",
2957
+ "primaryKey": false,
2958
+ "notNull": true
2959
+ },
2960
+ "created_at": {
2961
+ "name": "created_at",
2962
+ "type": "timestamp",
2963
+ "primaryKey": false,
2964
+ "notNull": false
2965
+ },
2966
+ "updated_at": {
2967
+ "name": "updated_at",
2968
+ "type": "timestamp",
2969
+ "primaryKey": false,
2970
+ "notNull": false
2971
+ }
2972
+ },
2973
+ "indexes": {
2974
+ "oauthConsent_clientId_idx": {
2975
+ "name": "oauthConsent_clientId_idx",
2976
+ "columns": [
2977
+ {
2978
+ "expression": "client_id",
2979
+ "isExpression": false,
2980
+ "asc": true,
2981
+ "nulls": "last"
2982
+ }
2983
+ ],
2984
+ "isUnique": false,
2985
+ "concurrently": false,
2986
+ "method": "btree",
2987
+ "with": {}
2988
+ },
2989
+ "oauthConsent_userId_idx": {
2990
+ "name": "oauthConsent_userId_idx",
2991
+ "columns": [
2992
+ {
2993
+ "expression": "user_id",
2994
+ "isExpression": false,
2995
+ "asc": true,
2996
+ "nulls": "last"
2997
+ }
2998
+ ],
2999
+ "isUnique": false,
3000
+ "concurrently": false,
3001
+ "method": "btree",
3002
+ "with": {}
3003
+ }
3004
+ },
3005
+ "foreignKeys": {
3006
+ "oauth_consent_client_id_oauth_client_client_id_fk": {
3007
+ "name": "oauth_consent_client_id_oauth_client_client_id_fk",
3008
+ "tableFrom": "oauth_consent",
3009
+ "tableTo": "oauth_client",
3010
+ "columnsFrom": [
3011
+ "client_id"
3012
+ ],
3013
+ "columnsTo": [
3014
+ "client_id"
3015
+ ],
3016
+ "onDelete": "cascade",
3017
+ "onUpdate": "no action"
3018
+ },
3019
+ "oauth_consent_user_id_user_id_fk": {
3020
+ "name": "oauth_consent_user_id_user_id_fk",
3021
+ "tableFrom": "oauth_consent",
3022
+ "tableTo": "user",
3023
+ "columnsFrom": [
3024
+ "user_id"
3025
+ ],
3026
+ "columnsTo": [
3027
+ "id"
3028
+ ],
3029
+ "onDelete": "cascade",
3030
+ "onUpdate": "no action"
3031
+ }
3032
+ },
3033
+ "compositePrimaryKeys": {},
3034
+ "uniqueConstraints": {},
3035
+ "policies": {},
3036
+ "checkConstraints": {},
3037
+ "isRLSEnabled": false
3038
+ },
3039
+ "public.oauth_refresh_token": {
3040
+ "name": "oauth_refresh_token",
3041
+ "schema": "",
3042
+ "columns": {
3043
+ "id": {
3044
+ "name": "id",
3045
+ "type": "text",
3046
+ "primaryKey": true,
3047
+ "notNull": true
3048
+ },
3049
+ "token": {
3050
+ "name": "token",
3051
+ "type": "text",
3052
+ "primaryKey": false,
3053
+ "notNull": true
3054
+ },
3055
+ "client_id": {
3056
+ "name": "client_id",
3057
+ "type": "text",
3058
+ "primaryKey": false,
3059
+ "notNull": true
3060
+ },
3061
+ "session_id": {
3062
+ "name": "session_id",
3063
+ "type": "text",
3064
+ "primaryKey": false,
3065
+ "notNull": false
3066
+ },
3067
+ "user_id": {
3068
+ "name": "user_id",
3069
+ "type": "text",
3070
+ "primaryKey": false,
3071
+ "notNull": true
3072
+ },
3073
+ "reference_id": {
3074
+ "name": "reference_id",
3075
+ "type": "text",
3076
+ "primaryKey": false,
3077
+ "notNull": false
3078
+ },
3079
+ "expires_at": {
3080
+ "name": "expires_at",
3081
+ "type": "timestamp",
3082
+ "primaryKey": false,
3083
+ "notNull": false
3084
+ },
3085
+ "created_at": {
3086
+ "name": "created_at",
3087
+ "type": "timestamp",
3088
+ "primaryKey": false,
3089
+ "notNull": false
3090
+ },
3091
+ "revoked": {
3092
+ "name": "revoked",
3093
+ "type": "timestamp",
3094
+ "primaryKey": false,
3095
+ "notNull": false
3096
+ },
3097
+ "auth_time": {
3098
+ "name": "auth_time",
3099
+ "type": "timestamp",
3100
+ "primaryKey": false,
3101
+ "notNull": false
3102
+ },
3103
+ "scopes": {
3104
+ "name": "scopes",
3105
+ "type": "text[]",
3106
+ "primaryKey": false,
3107
+ "notNull": true
3108
+ }
3109
+ },
3110
+ "indexes": {
3111
+ "oauthRefreshToken_clientId_idx": {
3112
+ "name": "oauthRefreshToken_clientId_idx",
3113
+ "columns": [
3114
+ {
3115
+ "expression": "client_id",
3116
+ "isExpression": false,
3117
+ "asc": true,
3118
+ "nulls": "last"
3119
+ }
3120
+ ],
3121
+ "isUnique": false,
3122
+ "concurrently": false,
3123
+ "method": "btree",
3124
+ "with": {}
3125
+ },
3126
+ "oauthRefreshToken_sessionId_idx": {
3127
+ "name": "oauthRefreshToken_sessionId_idx",
3128
+ "columns": [
3129
+ {
3130
+ "expression": "session_id",
3131
+ "isExpression": false,
3132
+ "asc": true,
3133
+ "nulls": "last"
3134
+ }
3135
+ ],
3136
+ "isUnique": false,
3137
+ "concurrently": false,
3138
+ "method": "btree",
3139
+ "with": {}
3140
+ },
3141
+ "oauthRefreshToken_userId_idx": {
3142
+ "name": "oauthRefreshToken_userId_idx",
3143
+ "columns": [
3144
+ {
3145
+ "expression": "user_id",
3146
+ "isExpression": false,
3147
+ "asc": true,
3148
+ "nulls": "last"
3149
+ }
3150
+ ],
3151
+ "isUnique": false,
3152
+ "concurrently": false,
3153
+ "method": "btree",
3154
+ "with": {}
3155
+ }
3156
+ },
3157
+ "foreignKeys": {
3158
+ "oauth_refresh_token_client_id_oauth_client_client_id_fk": {
3159
+ "name": "oauth_refresh_token_client_id_oauth_client_client_id_fk",
3160
+ "tableFrom": "oauth_refresh_token",
3161
+ "tableTo": "oauth_client",
3162
+ "columnsFrom": [
3163
+ "client_id"
3164
+ ],
3165
+ "columnsTo": [
3166
+ "client_id"
3167
+ ],
3168
+ "onDelete": "cascade",
3169
+ "onUpdate": "no action"
3170
+ },
3171
+ "oauth_refresh_token_session_id_session_id_fk": {
3172
+ "name": "oauth_refresh_token_session_id_session_id_fk",
3173
+ "tableFrom": "oauth_refresh_token",
3174
+ "tableTo": "session",
3175
+ "columnsFrom": [
3176
+ "session_id"
3177
+ ],
3178
+ "columnsTo": [
3179
+ "id"
3180
+ ],
3181
+ "onDelete": "set null",
3182
+ "onUpdate": "no action"
3183
+ },
3184
+ "oauth_refresh_token_user_id_user_id_fk": {
3185
+ "name": "oauth_refresh_token_user_id_user_id_fk",
3186
+ "tableFrom": "oauth_refresh_token",
3187
+ "tableTo": "user",
3188
+ "columnsFrom": [
3189
+ "user_id"
3190
+ ],
3191
+ "columnsTo": [
3192
+ "id"
3193
+ ],
3194
+ "onDelete": "cascade",
3195
+ "onUpdate": "no action"
3196
+ }
3197
+ },
3198
+ "compositePrimaryKeys": {},
3199
+ "uniqueConstraints": {
3200
+ "oauth_refresh_token_token_unique": {
3201
+ "name": "oauth_refresh_token_token_unique",
3202
+ "nullsNotDistinct": false,
3203
+ "columns": [
3204
+ "token"
3205
+ ]
3206
+ }
3207
+ },
3208
+ "policies": {},
3209
+ "checkConstraints": {},
3210
+ "isRLSEnabled": false
3211
+ },
3212
+ "public.session": {
3213
+ "name": "session",
3214
+ "schema": "",
3215
+ "columns": {
3216
+ "id": {
3217
+ "name": "id",
3218
+ "type": "text",
3219
+ "primaryKey": true,
3220
+ "notNull": true
3221
+ },
3222
+ "expires_at": {
3223
+ "name": "expires_at",
3224
+ "type": "timestamp",
3225
+ "primaryKey": false,
3226
+ "notNull": true
3227
+ },
3228
+ "token": {
3229
+ "name": "token",
3230
+ "type": "text",
3231
+ "primaryKey": false,
3232
+ "notNull": true
3233
+ },
3234
+ "created_at": {
3235
+ "name": "created_at",
3236
+ "type": "timestamp",
3237
+ "primaryKey": false,
3238
+ "notNull": true,
3239
+ "default": "now()"
3240
+ },
3241
+ "updated_at": {
3242
+ "name": "updated_at",
3243
+ "type": "timestamp",
3244
+ "primaryKey": false,
3245
+ "notNull": true
3246
+ },
3247
+ "ip_address": {
3248
+ "name": "ip_address",
3249
+ "type": "text",
3250
+ "primaryKey": false,
3251
+ "notNull": false
3252
+ },
3253
+ "user_agent": {
3254
+ "name": "user_agent",
3255
+ "type": "text",
3256
+ "primaryKey": false,
3257
+ "notNull": false
3258
+ },
3259
+ "user_id": {
3260
+ "name": "user_id",
3261
+ "type": "text",
3262
+ "primaryKey": false,
3263
+ "notNull": true
3264
+ }
3265
+ },
3266
+ "indexes": {
3267
+ "session_userId_idx": {
3268
+ "name": "session_userId_idx",
3269
+ "columns": [
3270
+ {
3271
+ "expression": "user_id",
3272
+ "isExpression": false,
3273
+ "asc": true,
3274
+ "nulls": "last"
3275
+ }
3276
+ ],
3277
+ "isUnique": false,
3278
+ "concurrently": false,
3279
+ "method": "btree",
3280
+ "with": {}
3281
+ }
3282
+ },
3283
+ "foreignKeys": {
3284
+ "session_user_id_user_id_fk": {
3285
+ "name": "session_user_id_user_id_fk",
3286
+ "tableFrom": "session",
3287
+ "tableTo": "user",
3288
+ "columnsFrom": [
3289
+ "user_id"
3290
+ ],
3291
+ "columnsTo": [
3292
+ "id"
3293
+ ],
3294
+ "onDelete": "cascade",
3295
+ "onUpdate": "no action"
3296
+ }
3297
+ },
3298
+ "compositePrimaryKeys": {},
3299
+ "uniqueConstraints": {
3300
+ "session_token_unique": {
3301
+ "name": "session_token_unique",
3302
+ "nullsNotDistinct": false,
3303
+ "columns": [
3304
+ "token"
3305
+ ]
3306
+ }
3307
+ },
3308
+ "policies": {},
3309
+ "checkConstraints": {},
3310
+ "isRLSEnabled": false
3311
+ },
3312
+ "public.two_factor": {
3313
+ "name": "two_factor",
3314
+ "schema": "",
3315
+ "columns": {
3316
+ "id": {
3317
+ "name": "id",
3318
+ "type": "text",
3319
+ "primaryKey": true,
3320
+ "notNull": true
3321
+ },
3322
+ "secret": {
3323
+ "name": "secret",
3324
+ "type": "text",
3325
+ "primaryKey": false,
3326
+ "notNull": true
3327
+ },
3328
+ "backup_codes": {
3329
+ "name": "backup_codes",
3330
+ "type": "text",
3331
+ "primaryKey": false,
3332
+ "notNull": true
3333
+ },
3334
+ "user_id": {
3335
+ "name": "user_id",
3336
+ "type": "text",
3337
+ "primaryKey": false,
3338
+ "notNull": true
3339
+ },
3340
+ "verified": {
3341
+ "name": "verified",
3342
+ "type": "boolean",
3343
+ "primaryKey": false,
3344
+ "notNull": false,
3345
+ "default": true
3346
+ },
3347
+ "failed_verification_count": {
3348
+ "name": "failed_verification_count",
3349
+ "type": "integer",
3350
+ "primaryKey": false,
3351
+ "notNull": false,
3352
+ "default": 0
3353
+ },
3354
+ "locked_until": {
3355
+ "name": "locked_until",
3356
+ "type": "timestamp",
3357
+ "primaryKey": false,
3358
+ "notNull": false
3359
+ }
3360
+ },
3361
+ "indexes": {
3362
+ "twoFactor_secret_idx": {
3363
+ "name": "twoFactor_secret_idx",
3364
+ "columns": [
3365
+ {
3366
+ "expression": "secret",
3367
+ "isExpression": false,
3368
+ "asc": true,
3369
+ "nulls": "last"
3370
+ }
3371
+ ],
3372
+ "isUnique": false,
3373
+ "concurrently": false,
3374
+ "method": "btree",
3375
+ "with": {}
3376
+ },
3377
+ "twoFactor_userId_idx": {
3378
+ "name": "twoFactor_userId_idx",
3379
+ "columns": [
3380
+ {
3381
+ "expression": "user_id",
3382
+ "isExpression": false,
3383
+ "asc": true,
3384
+ "nulls": "last"
3385
+ }
3386
+ ],
3387
+ "isUnique": false,
3388
+ "concurrently": false,
3389
+ "method": "btree",
3390
+ "with": {}
3391
+ }
3392
+ },
3393
+ "foreignKeys": {
3394
+ "two_factor_user_id_user_id_fk": {
3395
+ "name": "two_factor_user_id_user_id_fk",
3396
+ "tableFrom": "two_factor",
3397
+ "tableTo": "user",
3398
+ "columnsFrom": [
3399
+ "user_id"
3400
+ ],
3401
+ "columnsTo": [
3402
+ "id"
3403
+ ],
3404
+ "onDelete": "cascade",
3405
+ "onUpdate": "no action"
3406
+ }
3407
+ },
3408
+ "compositePrimaryKeys": {},
3409
+ "uniqueConstraints": {},
3410
+ "policies": {},
3411
+ "checkConstraints": {},
3412
+ "isRLSEnabled": false
3413
+ },
3414
+ "public.user": {
3415
+ "name": "user",
3416
+ "schema": "",
3417
+ "columns": {
3418
+ "id": {
3419
+ "name": "id",
3420
+ "type": "text",
3421
+ "primaryKey": true,
3422
+ "notNull": true
3423
+ },
3424
+ "name": {
3425
+ "name": "name",
3426
+ "type": "text",
3427
+ "primaryKey": false,
3428
+ "notNull": true
3429
+ },
3430
+ "email": {
3431
+ "name": "email",
3432
+ "type": "text",
3433
+ "primaryKey": false,
3434
+ "notNull": true
3435
+ },
3436
+ "email_verified": {
3437
+ "name": "email_verified",
3438
+ "type": "boolean",
3439
+ "primaryKey": false,
3440
+ "notNull": true,
3441
+ "default": false
3442
+ },
3443
+ "image": {
3444
+ "name": "image",
3445
+ "type": "text",
3446
+ "primaryKey": false,
3447
+ "notNull": false
3448
+ },
3449
+ "created_at": {
3450
+ "name": "created_at",
3451
+ "type": "timestamp",
3452
+ "primaryKey": false,
3453
+ "notNull": true,
3454
+ "default": "now()"
3455
+ },
3456
+ "updated_at": {
3457
+ "name": "updated_at",
3458
+ "type": "timestamp",
3459
+ "primaryKey": false,
3460
+ "notNull": true,
3461
+ "default": "now()"
3462
+ },
3463
+ "two_factor_enabled": {
3464
+ "name": "two_factor_enabled",
3465
+ "type": "boolean",
3466
+ "primaryKey": false,
3467
+ "notNull": false,
3468
+ "default": false
3469
+ }
3470
+ },
3471
+ "indexes": {},
3472
+ "foreignKeys": {},
3473
+ "compositePrimaryKeys": {},
3474
+ "uniqueConstraints": {
3475
+ "user_email_unique": {
3476
+ "name": "user_email_unique",
3477
+ "nullsNotDistinct": false,
3478
+ "columns": [
3479
+ "email"
3480
+ ]
3481
+ }
3482
+ },
3483
+ "policies": {},
3484
+ "checkConstraints": {},
3485
+ "isRLSEnabled": false
3486
+ },
3487
+ "public.verification": {
3488
+ "name": "verification",
3489
+ "schema": "",
3490
+ "columns": {
3491
+ "id": {
3492
+ "name": "id",
3493
+ "type": "text",
3494
+ "primaryKey": true,
3495
+ "notNull": true
3496
+ },
3497
+ "identifier": {
3498
+ "name": "identifier",
3499
+ "type": "text",
3500
+ "primaryKey": false,
3501
+ "notNull": true
3502
+ },
3503
+ "value": {
3504
+ "name": "value",
3505
+ "type": "text",
3506
+ "primaryKey": false,
3507
+ "notNull": true
3508
+ },
3509
+ "expires_at": {
3510
+ "name": "expires_at",
3511
+ "type": "timestamp",
3512
+ "primaryKey": false,
3513
+ "notNull": true
3514
+ },
3515
+ "created_at": {
3516
+ "name": "created_at",
3517
+ "type": "timestamp",
3518
+ "primaryKey": false,
3519
+ "notNull": true,
3520
+ "default": "now()"
3521
+ },
3522
+ "updated_at": {
3523
+ "name": "updated_at",
3524
+ "type": "timestamp",
3525
+ "primaryKey": false,
3526
+ "notNull": true,
3527
+ "default": "now()"
3528
+ }
3529
+ },
3530
+ "indexes": {
3531
+ "verification_identifier_idx": {
3532
+ "name": "verification_identifier_idx",
3533
+ "columns": [
3534
+ {
3535
+ "expression": "identifier",
3536
+ "isExpression": false,
3537
+ "asc": true,
3538
+ "nulls": "last"
3539
+ }
3540
+ ],
3541
+ "isUnique": false,
3542
+ "concurrently": false,
3543
+ "method": "btree",
3544
+ "with": {}
3545
+ }
3546
+ },
3547
+ "foreignKeys": {},
3548
+ "compositePrimaryKeys": {},
3549
+ "uniqueConstraints": {},
3550
+ "policies": {},
3551
+ "checkConstraints": {},
3552
+ "isRLSEnabled": false
3553
+ }
3554
+ },
3555
+ "enums": {},
3556
+ "schemas": {},
3557
+ "sequences": {},
3558
+ "roles": {},
3559
+ "policies": {},
3560
+ "views": {},
3561
+ "_meta": {
3562
+ "columns": {},
3563
+ "schemas": {},
3564
+ "tables": {}
3565
+ }
3566
+ }