@kelpie/server 0.1.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 (1146) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +57 -0
  3. package/dist/app.d.ts +36 -0
  4. package/dist/app.d.ts.map +1 -0
  5. package/dist/app.js +98 -0
  6. package/dist/app.js.map +1 -0
  7. package/dist/index.d.ts +46 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +26 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/lib/actor.d.ts +71 -0
  12. package/dist/lib/actor.d.ts.map +1 -0
  13. package/dist/lib/actor.js +48 -0
  14. package/dist/lib/actor.js.map +1 -0
  15. package/dist/lib/changes.d.ts +17 -0
  16. package/dist/lib/changes.d.ts.map +1 -0
  17. package/dist/lib/changes.js +35 -0
  18. package/dist/lib/changes.js.map +1 -0
  19. package/dist/lib/columns.d.ts +152 -0
  20. package/dist/lib/columns.d.ts.map +1 -0
  21. package/dist/lib/columns.js +126 -0
  22. package/dist/lib/columns.js.map +1 -0
  23. package/dist/lib/config.d.ts +36 -0
  24. package/dist/lib/config.d.ts.map +1 -0
  25. package/dist/lib/config.js +52 -0
  26. package/dist/lib/config.js.map +1 -0
  27. package/dist/lib/database.d.ts +57 -0
  28. package/dist/lib/database.d.ts.map +1 -0
  29. package/dist/lib/database.js +91 -0
  30. package/dist/lib/database.js.map +1 -0
  31. package/dist/lib/dates.d.ts +11 -0
  32. package/dist/lib/dates.d.ts.map +1 -0
  33. package/dist/lib/dates.js +17 -0
  34. package/dist/lib/dates.js.map +1 -0
  35. package/dist/lib/email.d.ts +42 -0
  36. package/dist/lib/email.d.ts.map +1 -0
  37. package/dist/lib/email.js +38 -0
  38. package/dist/lib/email.js.map +1 -0
  39. package/dist/lib/errors.d.ts +76 -0
  40. package/dist/lib/errors.d.ts.map +1 -0
  41. package/dist/lib/errors.js +102 -0
  42. package/dist/lib/errors.js.map +1 -0
  43. package/dist/lib/http.d.ts +59 -0
  44. package/dist/lib/http.d.ts.map +1 -0
  45. package/dist/lib/http.js +89 -0
  46. package/dist/lib/http.js.map +1 -0
  47. package/dist/lib/ids.d.ts +55 -0
  48. package/dist/lib/ids.d.ts.map +1 -0
  49. package/dist/lib/ids.js +56 -0
  50. package/dist/lib/ids.js.map +1 -0
  51. package/dist/lib/logger.d.ts +22 -0
  52. package/dist/lib/logger.d.ts.map +1 -0
  53. package/dist/lib/logger.js +43 -0
  54. package/dist/lib/logger.js.map +1 -0
  55. package/dist/lib/moduleConfig.d.ts +14 -0
  56. package/dist/lib/moduleConfig.d.ts.map +1 -0
  57. package/dist/lib/moduleConfig.js +56 -0
  58. package/dist/lib/moduleConfig.js.map +1 -0
  59. package/dist/lib/normalisation.d.ts +19 -0
  60. package/dist/lib/normalisation.d.ts.map +1 -0
  61. package/dist/lib/normalisation.js +32 -0
  62. package/dist/lib/normalisation.js.map +1 -0
  63. package/dist/lib/pagination.d.ts +104 -0
  64. package/dist/lib/pagination.d.ts.map +1 -0
  65. package/dist/lib/pagination.js +189 -0
  66. package/dist/lib/pagination.js.map +1 -0
  67. package/dist/lib/passwords.d.ts +32 -0
  68. package/dist/lib/passwords.d.ts.map +1 -0
  69. package/dist/lib/passwords.js +51 -0
  70. package/dist/lib/passwords.js.map +1 -0
  71. package/dist/lib/search.d.ts +11 -0
  72. package/dist/lib/search.d.ts.map +1 -0
  73. package/dist/lib/search.js +25 -0
  74. package/dist/lib/search.js.map +1 -0
  75. package/dist/lib/secrets.d.ts +40 -0
  76. package/dist/lib/secrets.d.ts.map +1 -0
  77. package/dist/lib/secrets.js +152 -0
  78. package/dist/lib/secrets.js.map +1 -0
  79. package/dist/lib/timezones.d.ts +38 -0
  80. package/dist/lib/timezones.d.ts.map +1 -0
  81. package/dist/lib/timezones.js +55 -0
  82. package/dist/lib/timezones.js.map +1 -0
  83. package/dist/lib/tokens.d.ts +10 -0
  84. package/dist/lib/tokens.d.ts.map +1 -0
  85. package/dist/lib/tokens.js +31 -0
  86. package/dist/lib/tokens.js.map +1 -0
  87. package/dist/lib/url.d.ts +25 -0
  88. package/dist/lib/url.d.ts.map +1 -0
  89. package/dist/lib/url.js +41 -0
  90. package/dist/lib/url.js.map +1 -0
  91. package/dist/modules/activities/index.d.ts +18 -0
  92. package/dist/modules/activities/index.d.ts.map +1 -0
  93. package/dist/modules/activities/index.js +34 -0
  94. package/dist/modules/activities/index.js.map +1 -0
  95. package/dist/modules/activities/recorder.d.ts +53 -0
  96. package/dist/modules/activities/recorder.d.ts.map +1 -0
  97. package/dist/modules/activities/recorder.js +36 -0
  98. package/dist/modules/activities/recorder.js.map +1 -0
  99. package/dist/modules/activities/repository.d.ts +52 -0
  100. package/dist/modules/activities/repository.d.ts.map +1 -0
  101. package/dist/modules/activities/repository.js +127 -0
  102. package/dist/modules/activities/repository.js.map +1 -0
  103. package/dist/modules/activities/routes.d.ts +17 -0
  104. package/dist/modules/activities/routes.d.ts.map +1 -0
  105. package/dist/modules/activities/routes.js +45 -0
  106. package/dist/modules/activities/routes.js.map +1 -0
  107. package/dist/modules/activities/schema.d.ts +188 -0
  108. package/dist/modules/activities/schema.d.ts.map +1 -0
  109. package/dist/modules/activities/schema.js +34 -0
  110. package/dist/modules/activities/schema.js.map +1 -0
  111. package/dist/modules/activities/service.d.ts +32 -0
  112. package/dist/modules/activities/service.d.ts.map +1 -0
  113. package/dist/modules/activities/service.js +28 -0
  114. package/dist/modules/activities/service.js.map +1 -0
  115. package/dist/modules/activities/tools.d.ts +4 -0
  116. package/dist/modules/activities/tools.d.ts.map +1 -0
  117. package/dist/modules/activities/tools.js +26 -0
  118. package/dist/modules/activities/tools.js.map +1 -0
  119. package/dist/modules/activities/wording.d.ts +79 -0
  120. package/dist/modules/activities/wording.d.ts.map +1 -0
  121. package/dist/modules/activities/wording.js +134 -0
  122. package/dist/modules/activities/wording.js.map +1 -0
  123. package/dist/modules/agent-tasks/catalog.d.ts +16 -0
  124. package/dist/modules/agent-tasks/catalog.d.ts.map +1 -0
  125. package/dist/modules/agent-tasks/catalog.js +694 -0
  126. package/dist/modules/agent-tasks/catalog.js.map +1 -0
  127. package/dist/modules/agent-tasks/dispatch.d.ts +61 -0
  128. package/dist/modules/agent-tasks/dispatch.d.ts.map +1 -0
  129. package/dist/modules/agent-tasks/dispatch.js +139 -0
  130. package/dist/modules/agent-tasks/dispatch.js.map +1 -0
  131. package/dist/modules/agent-tasks/index.d.ts +17 -0
  132. package/dist/modules/agent-tasks/index.d.ts.map +1 -0
  133. package/dist/modules/agent-tasks/index.js +54 -0
  134. package/dist/modules/agent-tasks/index.js.map +1 -0
  135. package/dist/modules/agent-tasks/prompt.d.ts +41 -0
  136. package/dist/modules/agent-tasks/prompt.d.ts.map +1 -0
  137. package/dist/modules/agent-tasks/prompt.js +78 -0
  138. package/dist/modules/agent-tasks/prompt.js.map +1 -0
  139. package/dist/modules/agent-tasks/repository.d.ts +32 -0
  140. package/dist/modules/agent-tasks/repository.d.ts.map +1 -0
  141. package/dist/modules/agent-tasks/repository.js +83 -0
  142. package/dist/modules/agent-tasks/repository.js.map +1 -0
  143. package/dist/modules/agent-tasks/resolve.d.ts +44 -0
  144. package/dist/modules/agent-tasks/resolve.d.ts.map +1 -0
  145. package/dist/modules/agent-tasks/resolve.js +396 -0
  146. package/dist/modules/agent-tasks/resolve.js.map +1 -0
  147. package/dist/modules/agent-tasks/routes.d.ts +55 -0
  148. package/dist/modules/agent-tasks/routes.d.ts.map +1 -0
  149. package/dist/modules/agent-tasks/routes.js +173 -0
  150. package/dist/modules/agent-tasks/routes.js.map +1 -0
  151. package/dist/modules/agent-tasks/schema.d.ts +346 -0
  152. package/dist/modules/agent-tasks/schema.d.ts.map +1 -0
  153. package/dist/modules/agent-tasks/schema.js +47 -0
  154. package/dist/modules/agent-tasks/schema.js.map +1 -0
  155. package/dist/modules/agent-tasks/service.d.ts +79 -0
  156. package/dist/modules/agent-tasks/service.d.ts.map +1 -0
  157. package/dist/modules/agent-tasks/service.js +210 -0
  158. package/dist/modules/agent-tasks/service.js.map +1 -0
  159. package/dist/modules/agent-tasks/wire.d.ts +35 -0
  160. package/dist/modules/agent-tasks/wire.d.ts.map +1 -0
  161. package/dist/modules/agent-tasks/wire.js +31 -0
  162. package/dist/modules/agent-tasks/wire.js.map +1 -0
  163. package/dist/modules/api-keys/index.d.ts +9 -0
  164. package/dist/modules/api-keys/index.d.ts.map +1 -0
  165. package/dist/modules/api-keys/index.js +29 -0
  166. package/dist/modules/api-keys/index.js.map +1 -0
  167. package/dist/modules/api-keys/keys.d.ts +25 -0
  168. package/dist/modules/api-keys/keys.d.ts.map +1 -0
  169. package/dist/modules/api-keys/keys.js +40 -0
  170. package/dist/modules/api-keys/keys.js.map +1 -0
  171. package/dist/modules/api-keys/repository.d.ts +15 -0
  172. package/dist/modules/api-keys/repository.d.ts.map +1 -0
  173. package/dist/modules/api-keys/repository.js +48 -0
  174. package/dist/modules/api-keys/repository.js.map +1 -0
  175. package/dist/modules/api-keys/routes.d.ts +8 -0
  176. package/dist/modules/api-keys/routes.d.ts.map +1 -0
  177. package/dist/modules/api-keys/routes.js +52 -0
  178. package/dist/modules/api-keys/routes.js.map +1 -0
  179. package/dist/modules/api-keys/schema.d.ts +166 -0
  180. package/dist/modules/api-keys/schema.d.ts.map +1 -0
  181. package/dist/modules/api-keys/schema.js +23 -0
  182. package/dist/modules/api-keys/schema.js.map +1 -0
  183. package/dist/modules/api-keys/service.d.ts +37 -0
  184. package/dist/modules/api-keys/service.d.ts.map +1 -0
  185. package/dist/modules/api-keys/service.js +95 -0
  186. package/dist/modules/api-keys/service.js.map +1 -0
  187. package/dist/modules/attachedRecords.d.ts +39 -0
  188. package/dist/modules/attachedRecords.d.ts.map +1 -0
  189. package/dist/modules/attachedRecords.js +52 -0
  190. package/dist/modules/attachedRecords.js.map +1 -0
  191. package/dist/modules/auth/actor.d.ts +11 -0
  192. package/dist/modules/auth/actor.d.ts.map +1 -0
  193. package/dist/modules/auth/actor.js +10 -0
  194. package/dist/modules/auth/actor.js.map +1 -0
  195. package/dist/modules/auth/credentials.d.ts +18 -0
  196. package/dist/modules/auth/credentials.d.ts.map +1 -0
  197. package/dist/modules/auth/credentials.js +105 -0
  198. package/dist/modules/auth/credentials.js.map +1 -0
  199. package/dist/modules/auth/index.d.ts +3 -0
  200. package/dist/modules/auth/index.d.ts.map +1 -0
  201. package/dist/modules/auth/index.js +41 -0
  202. package/dist/modules/auth/index.js.map +1 -0
  203. package/dist/modules/auth/preferences.d.ts +34 -0
  204. package/dist/modules/auth/preferences.d.ts.map +1 -0
  205. package/dist/modules/auth/preferences.js +30 -0
  206. package/dist/modules/auth/preferences.js.map +1 -0
  207. package/dist/modules/auth/repository.d.ts +54 -0
  208. package/dist/modules/auth/repository.d.ts.map +1 -0
  209. package/dist/modules/auth/repository.js +137 -0
  210. package/dist/modules/auth/repository.js.map +1 -0
  211. package/dist/modules/auth/routes.d.ts +10 -0
  212. package/dist/modules/auth/routes.d.ts.map +1 -0
  213. package/dist/modules/auth/routes.js +181 -0
  214. package/dist/modules/auth/routes.js.map +1 -0
  215. package/dist/modules/auth/schema.d.ts +530 -0
  216. package/dist/modules/auth/schema.d.ts.map +1 -0
  217. package/dist/modules/auth/schema.js +67 -0
  218. package/dist/modules/auth/schema.js.map +1 -0
  219. package/dist/modules/auth/service.d.ts +73 -0
  220. package/dist/modules/auth/service.d.ts.map +1 -0
  221. package/dist/modules/auth/service.js +288 -0
  222. package/dist/modules/auth/service.js.map +1 -0
  223. package/dist/modules/auth/session.d.ts +16 -0
  224. package/dist/modules/auth/session.d.ts.map +1 -0
  225. package/dist/modules/auth/session.js +30 -0
  226. package/dist/modules/auth/session.js.map +1 -0
  227. package/dist/modules/companies/index.d.ts +9 -0
  228. package/dist/modules/companies/index.d.ts.map +1 -0
  229. package/dist/modules/companies/index.js +37 -0
  230. package/dist/modules/companies/index.js.map +1 -0
  231. package/dist/modules/companies/repository.d.ts +40 -0
  232. package/dist/modules/companies/repository.d.ts.map +1 -0
  233. package/dist/modules/companies/repository.js +112 -0
  234. package/dist/modules/companies/repository.js.map +1 -0
  235. package/dist/modules/companies/routes.d.ts +89 -0
  236. package/dist/modules/companies/routes.d.ts.map +1 -0
  237. package/dist/modules/companies/routes.js +125 -0
  238. package/dist/modules/companies/routes.js.map +1 -0
  239. package/dist/modules/companies/schema.d.ts +381 -0
  240. package/dist/modules/companies/schema.d.ts.map +1 -0
  241. package/dist/modules/companies/schema.js +51 -0
  242. package/dist/modules/companies/schema.js.map +1 -0
  243. package/dist/modules/companies/service.d.ts +49 -0
  244. package/dist/modules/companies/service.d.ts.map +1 -0
  245. package/dist/modules/companies/service.js +184 -0
  246. package/dist/modules/companies/service.js.map +1 -0
  247. package/dist/modules/companies/tools.d.ts +4 -0
  248. package/dist/modules/companies/tools.d.ts.map +1 -0
  249. package/dist/modules/companies/tools.js +27 -0
  250. package/dist/modules/companies/tools.js.map +1 -0
  251. package/dist/modules/core.d.ts +21 -0
  252. package/dist/modules/core.d.ts.map +1 -0
  253. package/dist/modules/core.js +82 -0
  254. package/dist/modules/core.js.map +1 -0
  255. package/dist/modules/crudTools.d.ts +99 -0
  256. package/dist/modules/crudTools.d.ts.map +1 -0
  257. package/dist/modules/crudTools.js +123 -0
  258. package/dist/modules/crudTools.js.map +1 -0
  259. package/dist/modules/dashboard/attention.d.ts +39 -0
  260. package/dist/modules/dashboard/attention.d.ts.map +1 -0
  261. package/dist/modules/dashboard/attention.js +57 -0
  262. package/dist/modules/dashboard/attention.js.map +1 -0
  263. package/dist/modules/dashboard/index.d.ts +15 -0
  264. package/dist/modules/dashboard/index.d.ts.map +1 -0
  265. package/dist/modules/dashboard/index.js +44 -0
  266. package/dist/modules/dashboard/index.js.map +1 -0
  267. package/dist/modules/dashboard/repository.d.ts +83 -0
  268. package/dist/modules/dashboard/repository.d.ts.map +1 -0
  269. package/dist/modules/dashboard/repository.js +217 -0
  270. package/dist/modules/dashboard/repository.js.map +1 -0
  271. package/dist/modules/dashboard/routes.d.ts +21 -0
  272. package/dist/modules/dashboard/routes.d.ts.map +1 -0
  273. package/dist/modules/dashboard/routes.js +116 -0
  274. package/dist/modules/dashboard/routes.js.map +1 -0
  275. package/dist/modules/dashboard/service.d.ts +122 -0
  276. package/dist/modules/dashboard/service.d.ts.map +1 -0
  277. package/dist/modules/dashboard/service.js +215 -0
  278. package/dist/modules/dashboard/service.js.map +1 -0
  279. package/dist/modules/dashboard/tools.d.ts +4 -0
  280. package/dist/modules/dashboard/tools.d.ts.map +1 -0
  281. package/dist/modules/dashboard/tools.js +33 -0
  282. package/dist/modules/dashboard/tools.js.map +1 -0
  283. package/dist/modules/deals/index.d.ts +11 -0
  284. package/dist/modules/deals/index.d.ts.map +1 -0
  285. package/dist/modules/deals/index.js +38 -0
  286. package/dist/modules/deals/index.js.map +1 -0
  287. package/dist/modules/deals/repository.d.ts +44 -0
  288. package/dist/modules/deals/repository.d.ts.map +1 -0
  289. package/dist/modules/deals/repository.js +160 -0
  290. package/dist/modules/deals/repository.js.map +1 -0
  291. package/dist/modules/deals/routes.d.ts +50 -0
  292. package/dist/modules/deals/routes.d.ts.map +1 -0
  293. package/dist/modules/deals/routes.js +132 -0
  294. package/dist/modules/deals/routes.js.map +1 -0
  295. package/dist/modules/deals/schema.d.ts +419 -0
  296. package/dist/modules/deals/schema.d.ts.map +1 -0
  297. package/dist/modules/deals/schema.js +61 -0
  298. package/dist/modules/deals/schema.js.map +1 -0
  299. package/dist/modules/deals/service.d.ts +71 -0
  300. package/dist/modules/deals/service.d.ts.map +1 -0
  301. package/dist/modules/deals/service.js +277 -0
  302. package/dist/modules/deals/service.js.map +1 -0
  303. package/dist/modules/deals/tools.d.ts +4 -0
  304. package/dist/modules/deals/tools.d.ts.map +1 -0
  305. package/dist/modules/deals/tools.js +33 -0
  306. package/dist/modules/deals/tools.js.map +1 -0
  307. package/dist/modules/decisions/index.d.ts +11 -0
  308. package/dist/modules/decisions/index.d.ts.map +1 -0
  309. package/dist/modules/decisions/index.js +34 -0
  310. package/dist/modules/decisions/index.js.map +1 -0
  311. package/dist/modules/decisions/repository.d.ts +38 -0
  312. package/dist/modules/decisions/repository.d.ts.map +1 -0
  313. package/dist/modules/decisions/repository.js +126 -0
  314. package/dist/modules/decisions/repository.js.map +1 -0
  315. package/dist/modules/decisions/routes.d.ts +42 -0
  316. package/dist/modules/decisions/routes.d.ts.map +1 -0
  317. package/dist/modules/decisions/routes.js +131 -0
  318. package/dist/modules/decisions/routes.js.map +1 -0
  319. package/dist/modules/decisions/schema.d.ts +228 -0
  320. package/dist/modules/decisions/schema.d.ts.map +1 -0
  321. package/dist/modules/decisions/schema.js +41 -0
  322. package/dist/modules/decisions/schema.js.map +1 -0
  323. package/dist/modules/decisions/service.d.ts +60 -0
  324. package/dist/modules/decisions/service.d.ts.map +1 -0
  325. package/dist/modules/decisions/service.js +122 -0
  326. package/dist/modules/decisions/service.js.map +1 -0
  327. package/dist/modules/decisions/tools.d.ts +4 -0
  328. package/dist/modules/decisions/tools.d.ts.map +1 -0
  329. package/dist/modules/decisions/tools.js +32 -0
  330. package/dist/modules/decisions/tools.js.map +1 -0
  331. package/dist/modules/forms/embed.d.ts +50 -0
  332. package/dist/modules/forms/embed.d.ts.map +1 -0
  333. package/dist/modules/forms/embed.js +236 -0
  334. package/dist/modules/forms/embed.js.map +1 -0
  335. package/dist/modules/forms/fields.d.ts +71 -0
  336. package/dist/modules/forms/fields.d.ts.map +1 -0
  337. package/dist/modules/forms/fields.js +122 -0
  338. package/dist/modules/forms/fields.js.map +1 -0
  339. package/dist/modules/forms/index.d.ts +15 -0
  340. package/dist/modules/forms/index.d.ts.map +1 -0
  341. package/dist/modules/forms/index.js +53 -0
  342. package/dist/modules/forms/index.js.map +1 -0
  343. package/dist/modules/forms/mapping.d.ts +99 -0
  344. package/dist/modules/forms/mapping.d.ts.map +1 -0
  345. package/dist/modules/forms/mapping.js +152 -0
  346. package/dist/modules/forms/mapping.js.map +1 -0
  347. package/dist/modules/forms/publicRoutes.d.ts +11 -0
  348. package/dist/modules/forms/publicRoutes.d.ts.map +1 -0
  349. package/dist/modules/forms/publicRoutes.js +68 -0
  350. package/dist/modules/forms/publicRoutes.js.map +1 -0
  351. package/dist/modules/forms/repository.d.ts +65 -0
  352. package/dist/modules/forms/repository.d.ts.map +1 -0
  353. package/dist/modules/forms/repository.js +139 -0
  354. package/dist/modules/forms/repository.js.map +1 -0
  355. package/dist/modules/forms/routes.d.ts +106 -0
  356. package/dist/modules/forms/routes.d.ts.map +1 -0
  357. package/dist/modules/forms/routes.js +204 -0
  358. package/dist/modules/forms/routes.js.map +1 -0
  359. package/dist/modules/forms/schema.d.ts +643 -0
  360. package/dist/modules/forms/schema.d.ts.map +1 -0
  361. package/dist/modules/forms/schema.js +87 -0
  362. package/dist/modules/forms/schema.js.map +1 -0
  363. package/dist/modules/forms/service.d.ts +62 -0
  364. package/dist/modules/forms/service.d.ts.map +1 -0
  365. package/dist/modules/forms/service.js +208 -0
  366. package/dist/modules/forms/service.js.map +1 -0
  367. package/dist/modules/forms/submission.d.ts +30 -0
  368. package/dist/modules/forms/submission.d.ts.map +1 -0
  369. package/dist/modules/forms/submission.js +337 -0
  370. package/dist/modules/forms/submission.js.map +1 -0
  371. package/dist/modules/forms/tools.d.ts +4 -0
  372. package/dist/modules/forms/tools.d.ts.map +1 -0
  373. package/dist/modules/forms/tools.js +46 -0
  374. package/dist/modules/forms/tools.js.map +1 -0
  375. package/dist/modules/handbook/index.d.ts +15 -0
  376. package/dist/modules/handbook/index.d.ts.map +1 -0
  377. package/dist/modules/handbook/index.js +37 -0
  378. package/dist/modules/handbook/index.js.map +1 -0
  379. package/dist/modules/handbook/repository.d.ts +52 -0
  380. package/dist/modules/handbook/repository.d.ts.map +1 -0
  381. package/dist/modules/handbook/repository.js +109 -0
  382. package/dist/modules/handbook/repository.js.map +1 -0
  383. package/dist/modules/handbook/routes.d.ts +38 -0
  384. package/dist/modules/handbook/routes.d.ts.map +1 -0
  385. package/dist/modules/handbook/routes.js +103 -0
  386. package/dist/modules/handbook/routes.js.map +1 -0
  387. package/dist/modules/handbook/schema.d.ts +206 -0
  388. package/dist/modules/handbook/schema.d.ts.map +1 -0
  389. package/dist/modules/handbook/schema.js +37 -0
  390. package/dist/modules/handbook/schema.js.map +1 -0
  391. package/dist/modules/handbook/service.d.ts +59 -0
  392. package/dist/modules/handbook/service.d.ts.map +1 -0
  393. package/dist/modules/handbook/service.js +246 -0
  394. package/dist/modules/handbook/service.js.map +1 -0
  395. package/dist/modules/handbook/slugs.d.ts +28 -0
  396. package/dist/modules/handbook/slugs.d.ts.map +1 -0
  397. package/dist/modules/handbook/slugs.js +48 -0
  398. package/dist/modules/handbook/slugs.js.map +1 -0
  399. package/dist/modules/handbook/tools.d.ts +4 -0
  400. package/dist/modules/handbook/tools.d.ts.map +1 -0
  401. package/dist/modules/handbook/tools.js +26 -0
  402. package/dist/modules/handbook/tools.js.map +1 -0
  403. package/dist/modules/handbook/tree.d.ts +69 -0
  404. package/dist/modules/handbook/tree.d.ts.map +1 -0
  405. package/dist/modules/handbook/tree.js +117 -0
  406. package/dist/modules/handbook/tree.js.map +1 -0
  407. package/dist/modules/hiring/candidates.d.ts +70 -0
  408. package/dist/modules/hiring/candidates.d.ts.map +1 -0
  409. package/dist/modules/hiring/candidates.js +243 -0
  410. package/dist/modules/hiring/candidates.js.map +1 -0
  411. package/dist/modules/hiring/index.d.ts +15 -0
  412. package/dist/modules/hiring/index.d.ts.map +1 -0
  413. package/dist/modules/hiring/index.js +48 -0
  414. package/dist/modules/hiring/index.js.map +1 -0
  415. package/dist/modules/hiring/repository.d.ts +52 -0
  416. package/dist/modules/hiring/repository.d.ts.map +1 -0
  417. package/dist/modules/hiring/repository.js +137 -0
  418. package/dist/modules/hiring/repository.js.map +1 -0
  419. package/dist/modules/hiring/roles.d.ts +42 -0
  420. package/dist/modules/hiring/roles.d.ts.map +1 -0
  421. package/dist/modules/hiring/roles.js +104 -0
  422. package/dist/modules/hiring/roles.js.map +1 -0
  423. package/dist/modules/hiring/routes.d.ts +73 -0
  424. package/dist/modules/hiring/routes.d.ts.map +1 -0
  425. package/dist/modules/hiring/routes.js +170 -0
  426. package/dist/modules/hiring/routes.js.map +1 -0
  427. package/dist/modules/hiring/schema.d.ts +308 -0
  428. package/dist/modules/hiring/schema.d.ts.map +1 -0
  429. package/dist/modules/hiring/schema.js +62 -0
  430. package/dist/modules/hiring/schema.js.map +1 -0
  431. package/dist/modules/hiring/tools.d.ts +8 -0
  432. package/dist/modules/hiring/tools.d.ts.map +1 -0
  433. package/dist/modules/hiring/tools.js +50 -0
  434. package/dist/modules/hiring/tools.js.map +1 -0
  435. package/dist/modules/import-export/csv.d.ts +47 -0
  436. package/dist/modules/import-export/csv.d.ts.map +1 -0
  437. package/dist/modules/import-export/csv.js +138 -0
  438. package/dist/modules/import-export/csv.js.map +1 -0
  439. package/dist/modules/import-export/drafts.d.ts +83 -0
  440. package/dist/modules/import-export/drafts.d.ts.map +1 -0
  441. package/dist/modules/import-export/drafts.js +97 -0
  442. package/dist/modules/import-export/drafts.js.map +1 -0
  443. package/dist/modules/import-export/exportRows.d.ts +8 -0
  444. package/dist/modules/import-export/exportRows.d.ts.map +1 -0
  445. package/dist/modules/import-export/exportRows.js +71 -0
  446. package/dist/modules/import-export/exportRows.js.map +1 -0
  447. package/dist/modules/import-export/index.d.ts +15 -0
  448. package/dist/modules/import-export/index.d.ts.map +1 -0
  449. package/dist/modules/import-export/index.js +43 -0
  450. package/dist/modules/import-export/index.js.map +1 -0
  451. package/dist/modules/import-export/mapping.d.ts +46 -0
  452. package/dist/modules/import-export/mapping.d.ts.map +1 -0
  453. package/dist/modules/import-export/mapping.js +115 -0
  454. package/dist/modules/import-export/mapping.js.map +1 -0
  455. package/dist/modules/import-export/plan.d.ts +107 -0
  456. package/dist/modules/import-export/plan.d.ts.map +1 -0
  457. package/dist/modules/import-export/plan.js +178 -0
  458. package/dist/modules/import-export/plan.js.map +1 -0
  459. package/dist/modules/import-export/presets.d.ts +39 -0
  460. package/dist/modules/import-export/presets.d.ts.map +1 -0
  461. package/dist/modules/import-export/presets.js +151 -0
  462. package/dist/modules/import-export/presets.js.map +1 -0
  463. package/dist/modules/import-export/repository.d.ts +171 -0
  464. package/dist/modules/import-export/repository.d.ts.map +1 -0
  465. package/dist/modules/import-export/repository.js +343 -0
  466. package/dist/modules/import-export/repository.js.map +1 -0
  467. package/dist/modules/import-export/routes.d.ts +9 -0
  468. package/dist/modules/import-export/routes.d.ts.map +1 -0
  469. package/dist/modules/import-export/routes.js +199 -0
  470. package/dist/modules/import-export/routes.js.map +1 -0
  471. package/dist/modules/import-export/schema.d.ts +494 -0
  472. package/dist/modules/import-export/schema.d.ts.map +1 -0
  473. package/dist/modules/import-export/schema.js +99 -0
  474. package/dist/modules/import-export/schema.js.map +1 -0
  475. package/dist/modules/import-export/service.d.ts +74 -0
  476. package/dist/modules/import-export/service.d.ts.map +1 -0
  477. package/dist/modules/import-export/service.js +561 -0
  478. package/dist/modules/import-export/service.js.map +1 -0
  479. package/dist/modules/import-export/streams.d.ts +4 -0
  480. package/dist/modules/import-export/streams.d.ts.map +1 -0
  481. package/dist/modules/import-export/streams.js +55 -0
  482. package/dist/modules/import-export/streams.js.map +1 -0
  483. package/dist/modules/import-export/tools.d.ts +22 -0
  484. package/dist/modules/import-export/tools.d.ts.map +1 -0
  485. package/dist/modules/import-export/tools.js +116 -0
  486. package/dist/modules/import-export/tools.js.map +1 -0
  487. package/dist/modules/import-export/validation.d.ts +7 -0
  488. package/dist/modules/import-export/validation.d.ts.map +1 -0
  489. package/dist/modules/import-export/validation.js +114 -0
  490. package/dist/modules/import-export/validation.js.map +1 -0
  491. package/dist/modules/import-export/writes.d.ts +45 -0
  492. package/dist/modules/import-export/writes.d.ts.map +1 -0
  493. package/dist/modules/import-export/writes.js +247 -0
  494. package/dist/modules/import-export/writes.js.map +1 -0
  495. package/dist/modules/integrations/schema.d.ts +185 -0
  496. package/dist/modules/integrations/schema.d.ts.map +1 -0
  497. package/dist/modules/integrations/schema.js +26 -0
  498. package/dist/modules/integrations/schema.js.map +1 -0
  499. package/dist/modules/mcp/index.d.ts +26 -0
  500. package/dist/modules/mcp/index.d.ts.map +1 -0
  501. package/dist/modules/mcp/index.js +45 -0
  502. package/dist/modules/mcp/index.js.map +1 -0
  503. package/dist/modules/mcp/protocol.d.ts +166 -0
  504. package/dist/modules/mcp/protocol.d.ts.map +1 -0
  505. package/dist/modules/mcp/protocol.js +292 -0
  506. package/dist/modules/mcp/protocol.js.map +1 -0
  507. package/dist/modules/mcp/router.d.ts +23 -0
  508. package/dist/modules/mcp/router.d.ts.map +1 -0
  509. package/dist/modules/mcp/router.js +298 -0
  510. package/dist/modules/mcp/router.js.map +1 -0
  511. package/dist/modules/notes/index.d.ts +9 -0
  512. package/dist/modules/notes/index.d.ts.map +1 -0
  513. package/dist/modules/notes/index.js +37 -0
  514. package/dist/modules/notes/index.js.map +1 -0
  515. package/dist/modules/notes/repository.d.ts +34 -0
  516. package/dist/modules/notes/repository.d.ts.map +1 -0
  517. package/dist/modules/notes/repository.js +70 -0
  518. package/dist/modules/notes/repository.js.map +1 -0
  519. package/dist/modules/notes/routes.d.ts +37 -0
  520. package/dist/modules/notes/routes.d.ts.map +1 -0
  521. package/dist/modules/notes/routes.js +124 -0
  522. package/dist/modules/notes/routes.js.map +1 -0
  523. package/dist/modules/notes/schema.d.ts +176 -0
  524. package/dist/modules/notes/schema.d.ts.map +1 -0
  525. package/dist/modules/notes/schema.js +35 -0
  526. package/dist/modules/notes/schema.js.map +1 -0
  527. package/dist/modules/notes/service.d.ts +49 -0
  528. package/dist/modules/notes/service.d.ts.map +1 -0
  529. package/dist/modules/notes/service.js +118 -0
  530. package/dist/modules/notes/service.js.map +1 -0
  531. package/dist/modules/notes/tools.d.ts +4 -0
  532. package/dist/modules/notes/tools.d.ts.map +1 -0
  533. package/dist/modules/notes/tools.js +41 -0
  534. package/dist/modules/notes/tools.js.map +1 -0
  535. package/dist/modules/opportunities/index.d.ts +11 -0
  536. package/dist/modules/opportunities/index.d.ts.map +1 -0
  537. package/dist/modules/opportunities/index.js +38 -0
  538. package/dist/modules/opportunities/index.js.map +1 -0
  539. package/dist/modules/opportunities/repository.d.ts +28 -0
  540. package/dist/modules/opportunities/repository.d.ts.map +1 -0
  541. package/dist/modules/opportunities/repository.js +89 -0
  542. package/dist/modules/opportunities/repository.js.map +1 -0
  543. package/dist/modules/opportunities/routes.d.ts +39 -0
  544. package/dist/modules/opportunities/routes.d.ts.map +1 -0
  545. package/dist/modules/opportunities/routes.js +104 -0
  546. package/dist/modules/opportunities/routes.js.map +1 -0
  547. package/dist/modules/opportunities/schema.d.ts +266 -0
  548. package/dist/modules/opportunities/schema.d.ts.map +1 -0
  549. package/dist/modules/opportunities/schema.js +41 -0
  550. package/dist/modules/opportunities/schema.js.map +1 -0
  551. package/dist/modules/opportunities/service.d.ts +60 -0
  552. package/dist/modules/opportunities/service.d.ts.map +1 -0
  553. package/dist/modules/opportunities/service.js +212 -0
  554. package/dist/modules/opportunities/service.js.map +1 -0
  555. package/dist/modules/opportunities/tools.d.ts +4 -0
  556. package/dist/modules/opportunities/tools.d.ts.map +1 -0
  557. package/dist/modules/opportunities/tools.js +33 -0
  558. package/dist/modules/opportunities/tools.js.map +1 -0
  559. package/dist/modules/partnerships/index.d.ts +11 -0
  560. package/dist/modules/partnerships/index.d.ts.map +1 -0
  561. package/dist/modules/partnerships/index.js +38 -0
  562. package/dist/modules/partnerships/index.js.map +1 -0
  563. package/dist/modules/partnerships/repository.d.ts +47 -0
  564. package/dist/modules/partnerships/repository.d.ts.map +1 -0
  565. package/dist/modules/partnerships/repository.js +169 -0
  566. package/dist/modules/partnerships/repository.js.map +1 -0
  567. package/dist/modules/partnerships/routes.d.ts +46 -0
  568. package/dist/modules/partnerships/routes.d.ts.map +1 -0
  569. package/dist/modules/partnerships/routes.js +122 -0
  570. package/dist/modules/partnerships/routes.js.map +1 -0
  571. package/dist/modules/partnerships/schema.d.ts +338 -0
  572. package/dist/modules/partnerships/schema.d.ts.map +1 -0
  573. package/dist/modules/partnerships/schema.js +54 -0
  574. package/dist/modules/partnerships/schema.js.map +1 -0
  575. package/dist/modules/partnerships/service.d.ts +71 -0
  576. package/dist/modules/partnerships/service.d.ts.map +1 -0
  577. package/dist/modules/partnerships/service.js +273 -0
  578. package/dist/modules/partnerships/service.js.map +1 -0
  579. package/dist/modules/partnerships/tools.d.ts +4 -0
  580. package/dist/modules/partnerships/tools.d.ts.map +1 -0
  581. package/dist/modules/partnerships/tools.js +35 -0
  582. package/dist/modules/partnerships/tools.js.map +1 -0
  583. package/dist/modules/people/index.d.ts +9 -0
  584. package/dist/modules/people/index.d.ts.map +1 -0
  585. package/dist/modules/people/index.js +37 -0
  586. package/dist/modules/people/index.js.map +1 -0
  587. package/dist/modules/people/repository.d.ts +31 -0
  588. package/dist/modules/people/repository.d.ts.map +1 -0
  589. package/dist/modules/people/repository.js +109 -0
  590. package/dist/modules/people/repository.js.map +1 -0
  591. package/dist/modules/people/routes.d.ts +111 -0
  592. package/dist/modules/people/routes.d.ts.map +1 -0
  593. package/dist/modules/people/routes.js +134 -0
  594. package/dist/modules/people/routes.js.map +1 -0
  595. package/dist/modules/people/schema.d.ts +354 -0
  596. package/dist/modules/people/schema.d.ts.map +1 -0
  597. package/dist/modules/people/schema.js +61 -0
  598. package/dist/modules/people/schema.js.map +1 -0
  599. package/dist/modules/people/service.d.ts +56 -0
  600. package/dist/modules/people/service.d.ts.map +1 -0
  601. package/dist/modules/people/service.js +190 -0
  602. package/dist/modules/people/service.js.map +1 -0
  603. package/dist/modules/people/tools.d.ts +4 -0
  604. package/dist/modules/people/tools.d.ts.map +1 -0
  605. package/dist/modules/people/tools.js +27 -0
  606. package/dist/modules/people/tools.js.map +1 -0
  607. package/dist/modules/pipelines/index.d.ts +9 -0
  608. package/dist/modules/pipelines/index.d.ts.map +1 -0
  609. package/dist/modules/pipelines/index.js +37 -0
  610. package/dist/modules/pipelines/index.js.map +1 -0
  611. package/dist/modules/pipelines/repository.d.ts +26 -0
  612. package/dist/modules/pipelines/repository.d.ts.map +1 -0
  613. package/dist/modules/pipelines/repository.js +67 -0
  614. package/dist/modules/pipelines/repository.js.map +1 -0
  615. package/dist/modules/pipelines/routes.d.ts +33 -0
  616. package/dist/modules/pipelines/routes.d.ts.map +1 -0
  617. package/dist/modules/pipelines/routes.js +98 -0
  618. package/dist/modules/pipelines/routes.js.map +1 -0
  619. package/dist/modules/pipelines/schema.d.ts +170 -0
  620. package/dist/modules/pipelines/schema.d.ts.map +1 -0
  621. package/dist/modules/pipelines/schema.js +30 -0
  622. package/dist/modules/pipelines/schema.js.map +1 -0
  623. package/dist/modules/pipelines/service.d.ts +49 -0
  624. package/dist/modules/pipelines/service.d.ts.map +1 -0
  625. package/dist/modules/pipelines/service.js +227 -0
  626. package/dist/modules/pipelines/service.js.map +1 -0
  627. package/dist/modules/pipelines/tools.d.ts +4 -0
  628. package/dist/modules/pipelines/tools.d.ts.map +1 -0
  629. package/dist/modules/pipelines/tools.js +43 -0
  630. package/dist/modules/pipelines/tools.js.map +1 -0
  631. package/dist/modules/plans/index.d.ts +10 -0
  632. package/dist/modules/plans/index.d.ts.map +1 -0
  633. package/dist/modules/plans/index.js +33 -0
  634. package/dist/modules/plans/index.js.map +1 -0
  635. package/dist/modules/plans/repository.d.ts +49 -0
  636. package/dist/modules/plans/repository.d.ts.map +1 -0
  637. package/dist/modules/plans/repository.js +94 -0
  638. package/dist/modules/plans/repository.js.map +1 -0
  639. package/dist/modules/plans/routes.d.ts +46 -0
  640. package/dist/modules/plans/routes.d.ts.map +1 -0
  641. package/dist/modules/plans/routes.js +152 -0
  642. package/dist/modules/plans/routes.js.map +1 -0
  643. package/dist/modules/plans/schema.d.ts +209 -0
  644. package/dist/modules/plans/schema.d.ts.map +1 -0
  645. package/dist/modules/plans/schema.js +37 -0
  646. package/dist/modules/plans/schema.js.map +1 -0
  647. package/dist/modules/plans/service.d.ts +57 -0
  648. package/dist/modules/plans/service.d.ts.map +1 -0
  649. package/dist/modules/plans/service.js +125 -0
  650. package/dist/modules/plans/service.js.map +1 -0
  651. package/dist/modules/plans/tools.d.ts +4 -0
  652. package/dist/modules/plans/tools.d.ts.map +1 -0
  653. package/dist/modules/plans/tools.js +39 -0
  654. package/dist/modules/plans/tools.js.map +1 -0
  655. package/dist/modules/positions/index.d.ts +9 -0
  656. package/dist/modules/positions/index.d.ts.map +1 -0
  657. package/dist/modules/positions/index.js +36 -0
  658. package/dist/modules/positions/index.js.map +1 -0
  659. package/dist/modules/positions/repository.d.ts +34 -0
  660. package/dist/modules/positions/repository.d.ts.map +1 -0
  661. package/dist/modules/positions/repository.js +71 -0
  662. package/dist/modules/positions/repository.js.map +1 -0
  663. package/dist/modules/positions/routes.d.ts +22 -0
  664. package/dist/modules/positions/routes.d.ts.map +1 -0
  665. package/dist/modules/positions/routes.js +56 -0
  666. package/dist/modules/positions/routes.js.map +1 -0
  667. package/dist/modules/positions/schema.d.ts +154 -0
  668. package/dist/modules/positions/schema.d.ts.map +1 -0
  669. package/dist/modules/positions/schema.js +36 -0
  670. package/dist/modules/positions/schema.js.map +1 -0
  671. package/dist/modules/positions/service.d.ts +46 -0
  672. package/dist/modules/positions/service.d.ts.map +1 -0
  673. package/dist/modules/positions/service.js +159 -0
  674. package/dist/modules/positions/service.js.map +1 -0
  675. package/dist/modules/positions/tools.d.ts +4 -0
  676. package/dist/modules/positions/tools.d.ts.map +1 -0
  677. package/dist/modules/positions/tools.js +26 -0
  678. package/dist/modules/positions/tools.js.map +1 -0
  679. package/dist/modules/raises/index.d.ts +11 -0
  680. package/dist/modules/raises/index.d.ts.map +1 -0
  681. package/dist/modules/raises/index.js +38 -0
  682. package/dist/modules/raises/index.js.map +1 -0
  683. package/dist/modules/raises/repository.d.ts +48 -0
  684. package/dist/modules/raises/repository.d.ts.map +1 -0
  685. package/dist/modules/raises/repository.js +164 -0
  686. package/dist/modules/raises/repository.js.map +1 -0
  687. package/dist/modules/raises/routes.d.ts +48 -0
  688. package/dist/modules/raises/routes.d.ts.map +1 -0
  689. package/dist/modules/raises/routes.js +126 -0
  690. package/dist/modules/raises/routes.js.map +1 -0
  691. package/dist/modules/raises/schema.d.ts +356 -0
  692. package/dist/modules/raises/schema.d.ts.map +1 -0
  693. package/dist/modules/raises/schema.js +55 -0
  694. package/dist/modules/raises/schema.js.map +1 -0
  695. package/dist/modules/raises/service.d.ts +79 -0
  696. package/dist/modules/raises/service.d.ts.map +1 -0
  697. package/dist/modules/raises/service.js +275 -0
  698. package/dist/modules/raises/service.js.map +1 -0
  699. package/dist/modules/raises/tools.d.ts +4 -0
  700. package/dist/modules/raises/tools.d.ts.map +1 -0
  701. package/dist/modules/raises/tools.js +33 -0
  702. package/dist/modules/raises/tools.js.map +1 -0
  703. package/dist/modules/recordTargets.d.ts +55 -0
  704. package/dist/modules/recordTargets.d.ts.map +1 -0
  705. package/dist/modules/recordTargets.js +107 -0
  706. package/dist/modules/recordTargets.js.map +1 -0
  707. package/dist/modules/references.d.ts +8 -0
  708. package/dist/modules/references.d.ts.map +1 -0
  709. package/dist/modules/references.js +40 -0
  710. package/dist/modules/references.js.map +1 -0
  711. package/dist/modules/reseal.d.ts +33 -0
  712. package/dist/modules/reseal.d.ts.map +1 -0
  713. package/dist/modules/reseal.js +108 -0
  714. package/dist/modules/reseal.js.map +1 -0
  715. package/dist/modules/search/index.d.ts +21 -0
  716. package/dist/modules/search/index.d.ts.map +1 -0
  717. package/dist/modules/search/index.js +50 -0
  718. package/dist/modules/search/index.js.map +1 -0
  719. package/dist/modules/search/query.d.ts +44 -0
  720. package/dist/modules/search/query.d.ts.map +1 -0
  721. package/dist/modules/search/query.js +88 -0
  722. package/dist/modules/search/query.js.map +1 -0
  723. package/dist/modules/search/repository.d.ts +44 -0
  724. package/dist/modules/search/repository.d.ts.map +1 -0
  725. package/dist/modules/search/repository.js +252 -0
  726. package/dist/modules/search/repository.js.map +1 -0
  727. package/dist/modules/search/routes.d.ts +17 -0
  728. package/dist/modules/search/routes.d.ts.map +1 -0
  729. package/dist/modules/search/routes.js +93 -0
  730. package/dist/modules/search/routes.js.map +1 -0
  731. package/dist/modules/search/service.d.ts +55 -0
  732. package/dist/modules/search/service.d.ts.map +1 -0
  733. package/dist/modules/search/service.js +69 -0
  734. package/dist/modules/search/service.js.map +1 -0
  735. package/dist/modules/search/tools.d.ts +4 -0
  736. package/dist/modules/search/tools.d.ts.map +1 -0
  737. package/dist/modules/search/tools.js +52 -0
  738. package/dist/modules/search/tools.js.map +1 -0
  739. package/dist/modules/stagedRecords.d.ts +28 -0
  740. package/dist/modules/stagedRecords.d.ts.map +1 -0
  741. package/dist/modules/stagedRecords.js +50 -0
  742. package/dist/modules/stagedRecords.js.map +1 -0
  743. package/dist/modules/webhooks/delivery.d.ts +98 -0
  744. package/dist/modules/webhooks/delivery.d.ts.map +1 -0
  745. package/dist/modules/webhooks/delivery.js +237 -0
  746. package/dist/modules/webhooks/delivery.js.map +1 -0
  747. package/dist/modules/webhooks/index.d.ts +23 -0
  748. package/dist/modules/webhooks/index.d.ts.map +1 -0
  749. package/dist/modules/webhooks/index.js +48 -0
  750. package/dist/modules/webhooks/index.js.map +1 -0
  751. package/dist/modules/webhooks/payloads.d.ts +31 -0
  752. package/dist/modules/webhooks/payloads.d.ts.map +1 -0
  753. package/dist/modules/webhooks/payloads.js +52 -0
  754. package/dist/modules/webhooks/payloads.js.map +1 -0
  755. package/dist/modules/webhooks/repository.d.ts +70 -0
  756. package/dist/modules/webhooks/repository.d.ts.map +1 -0
  757. package/dist/modules/webhooks/repository.js +140 -0
  758. package/dist/modules/webhooks/repository.js.map +1 -0
  759. package/dist/modules/webhooks/routes.d.ts +47 -0
  760. package/dist/modules/webhooks/routes.d.ts.map +1 -0
  761. package/dist/modules/webhooks/routes.js +170 -0
  762. package/dist/modules/webhooks/routes.js.map +1 -0
  763. package/dist/modules/webhooks/schema.d.ts +396 -0
  764. package/dist/modules/webhooks/schema.d.ts.map +1 -0
  765. package/dist/modules/webhooks/schema.js +61 -0
  766. package/dist/modules/webhooks/schema.js.map +1 -0
  767. package/dist/modules/webhooks/service.d.ts +65 -0
  768. package/dist/modules/webhooks/service.d.ts.map +1 -0
  769. package/dist/modules/webhooks/service.js +202 -0
  770. package/dist/modules/webhooks/service.js.map +1 -0
  771. package/dist/modules/webhooks/signing.d.ts +57 -0
  772. package/dist/modules/webhooks/signing.d.ts.map +1 -0
  773. package/dist/modules/webhooks/signing.js +69 -0
  774. package/dist/modules/webhooks/signing.js.map +1 -0
  775. package/dist/modules/webhooks/tools.d.ts +4 -0
  776. package/dist/modules/webhooks/tools.d.ts.map +1 -0
  777. package/dist/modules/webhooks/tools.js +77 -0
  778. package/dist/modules/webhooks/tools.js.map +1 -0
  779. package/dist/modules/webhooks/url.d.ts +10 -0
  780. package/dist/modules/webhooks/url.d.ts.map +1 -0
  781. package/dist/modules/webhooks/url.js +9 -0
  782. package/dist/modules/webhooks/url.js.map +1 -0
  783. package/dist/modules/workspace/capabilities.d.ts +9 -0
  784. package/dist/modules/workspace/capabilities.d.ts.map +1 -0
  785. package/dist/modules/workspace/capabilities.js +12 -0
  786. package/dist/modules/workspace/capabilities.js.map +1 -0
  787. package/dist/modules/workspace/idempotencyMiddleware.d.ts +16 -0
  788. package/dist/modules/workspace/idempotencyMiddleware.d.ts.map +1 -0
  789. package/dist/modules/workspace/idempotencyMiddleware.js +142 -0
  790. package/dist/modules/workspace/idempotencyMiddleware.js.map +1 -0
  791. package/dist/modules/workspace/idempotencyRepository.d.ts +43 -0
  792. package/dist/modules/workspace/idempotencyRepository.d.ts.map +1 -0
  793. package/dist/modules/workspace/idempotencyRepository.js +75 -0
  794. package/dist/modules/workspace/idempotencyRepository.js.map +1 -0
  795. package/dist/modules/workspace/index.d.ts +9 -0
  796. package/dist/modules/workspace/index.d.ts.map +1 -0
  797. package/dist/modules/workspace/index.js +53 -0
  798. package/dist/modules/workspace/index.js.map +1 -0
  799. package/dist/modules/workspace/repository.d.ts +112 -0
  800. package/dist/modules/workspace/repository.d.ts.map +1 -0
  801. package/dist/modules/workspace/repository.js +266 -0
  802. package/dist/modules/workspace/repository.js.map +1 -0
  803. package/dist/modules/workspace/roles.d.ts +22 -0
  804. package/dist/modules/workspace/roles.d.ts.map +1 -0
  805. package/dist/modules/workspace/roles.js +31 -0
  806. package/dist/modules/workspace/roles.js.map +1 -0
  807. package/dist/modules/workspace/routes.d.ts +41 -0
  808. package/dist/modules/workspace/routes.d.ts.map +1 -0
  809. package/dist/modules/workspace/routes.js +158 -0
  810. package/dist/modules/workspace/routes.js.map +1 -0
  811. package/dist/modules/workspace/schema.d.ts +719 -0
  812. package/dist/modules/workspace/schema.d.ts.map +1 -0
  813. package/dist/modules/workspace/schema.js +102 -0
  814. package/dist/modules/workspace/schema.js.map +1 -0
  815. package/dist/modules/workspace/service.d.ts +94 -0
  816. package/dist/modules/workspace/service.d.ts.map +1 -0
  817. package/dist/modules/workspace/service.js +528 -0
  818. package/dist/modules/workspace/service.js.map +1 -0
  819. package/dist/modules/workspace/starters.d.ts +22 -0
  820. package/dist/modules/workspace/starters.d.ts.map +1 -0
  821. package/dist/modules/workspace/starters.js +56 -0
  822. package/dist/modules/workspace/starters.js.map +1 -0
  823. package/dist/modules/workspace/tools.d.ts +4 -0
  824. package/dist/modules/workspace/tools.d.ts.map +1 -0
  825. package/dist/modules/workspace/tools.js +95 -0
  826. package/dist/modules/workspace/tools.js.map +1 -0
  827. package/dist/runtime/entitlements.d.ts +66 -0
  828. package/dist/runtime/entitlements.d.ts.map +1 -0
  829. package/dist/runtime/entitlements.js +62 -0
  830. package/dist/runtime/entitlements.js.map +1 -0
  831. package/dist/runtime/events.d.ts +139 -0
  832. package/dist/runtime/events.d.ts.map +1 -0
  833. package/dist/runtime/events.js +98 -0
  834. package/dist/runtime/events.js.map +1 -0
  835. package/dist/runtime/migrate.d.ts +28 -0
  836. package/dist/runtime/migrate.d.ts.map +1 -0
  837. package/dist/runtime/migrate.js +43 -0
  838. package/dist/runtime/migrate.js.map +1 -0
  839. package/dist/runtime/module.d.ts +138 -0
  840. package/dist/runtime/module.d.ts.map +1 -0
  841. package/dist/runtime/module.js +2 -0
  842. package/dist/runtime/module.js.map +1 -0
  843. package/dist/runtime/moduleConfig.d.ts +21 -0
  844. package/dist/runtime/moduleConfig.d.ts.map +1 -0
  845. package/dist/runtime/moduleConfig.js +54 -0
  846. package/dist/runtime/moduleConfig.js.map +1 -0
  847. package/dist/runtime/order.d.ts +21 -0
  848. package/dist/runtime/order.d.ts.map +1 -0
  849. package/dist/runtime/order.js +72 -0
  850. package/dist/runtime/order.js.map +1 -0
  851. package/dist/runtime/registry.d.ts +66 -0
  852. package/dist/runtime/registry.d.ts.map +1 -0
  853. package/dist/runtime/registry.js +148 -0
  854. package/dist/runtime/registry.js.map +1 -0
  855. package/dist/runtime/transaction.d.ts +34 -0
  856. package/dist/runtime/transaction.d.ts.map +1 -0
  857. package/dist/runtime/transaction.js +24 -0
  858. package/dist/runtime/transaction.js.map +1 -0
  859. package/dist/schema/index.d.ts +30 -0
  860. package/dist/schema/index.d.ts.map +1 -0
  861. package/dist/schema/index.js +30 -0
  862. package/dist/schema/index.js.map +1 -0
  863. package/dist/testing/app.d.ts +42 -0
  864. package/dist/testing/app.d.ts.map +1 -0
  865. package/dist/testing/app.js +31 -0
  866. package/dist/testing/app.js.map +1 -0
  867. package/dist/testing/client.d.ts +34 -0
  868. package/dist/testing/client.d.ts.map +1 -0
  869. package/dist/testing/client.js +70 -0
  870. package/dist/testing/client.js.map +1 -0
  871. package/dist/testing/database.d.ts +17 -0
  872. package/dist/testing/database.d.ts.map +1 -0
  873. package/dist/testing/database.js +84 -0
  874. package/dist/testing/database.js.map +1 -0
  875. package/dist/testing/environment.d.ts +17 -0
  876. package/dist/testing/environment.d.ts.map +1 -0
  877. package/dist/testing/environment.js +19 -0
  878. package/dist/testing/environment.js.map +1 -0
  879. package/dist/testing/fixtures.d.ts +22 -0
  880. package/dist/testing/fixtures.d.ts.map +1 -0
  881. package/dist/testing/fixtures.js +55 -0
  882. package/dist/testing/fixtures.js.map +1 -0
  883. package/dist/testing/index.d.ts +10 -0
  884. package/dist/testing/index.d.ts.map +1 -0
  885. package/dist/testing/index.js +6 -0
  886. package/dist/testing/index.js.map +1 -0
  887. package/dist/testing/services.d.ts +18 -0
  888. package/dist/testing/services.d.ts.map +1 -0
  889. package/dist/testing/services.js +43 -0
  890. package/dist/testing/services.js.map +1 -0
  891. package/migrations/0000_initial_schema.sql +597 -0
  892. package/migrations/0001_uneven_lockjaw.sql +11 -0
  893. package/migrations/0002_neat_madame_web.sql +2 -0
  894. package/migrations/0003_bright_shockwave.sql +1 -0
  895. package/migrations/0004_drop_unused_import_columns.sql +2 -0
  896. package/migrations/0005_import_job_rows.sql +23 -0
  897. package/migrations/0006_drop_webhook_secret_hash.sql +1 -0
  898. package/migrations/0007_add_webhook_secret_encrypted.sql +1 -0
  899. package/migrations/0008_rich_mister_sinister.sql +3 -0
  900. package/migrations/0009_natural_proemial_gods.sql +1 -0
  901. package/migrations/0010_fine_brood.sql +1 -0
  902. package/migrations/0011_add_webhook_previous_secret.sql +2 -0
  903. package/migrations/0012_idempotency_keys_response_nullable.sql +1 -0
  904. package/migrations/0013_add_agent_run_failure_reason.sql +1 -0
  905. package/migrations/0014_right_shinko_yamashiro.sql +12 -0
  906. package/migrations/0015_peaceful_chimera.sql +33 -0
  907. package/migrations/meta/0000_snapshot.json +4467 -0
  908. package/migrations/meta/0001_snapshot.json +4539 -0
  909. package/migrations/meta/0002_snapshot.json +4539 -0
  910. package/migrations/meta/0003_snapshot.json +4544 -0
  911. package/migrations/meta/0004_snapshot.json +4531 -0
  912. package/migrations/meta/0005_snapshot.json +4674 -0
  913. package/migrations/meta/0006_snapshot.json +4668 -0
  914. package/migrations/meta/0007_snapshot.json +4674 -0
  915. package/migrations/meta/0008_snapshot.json +4694 -0
  916. package/migrations/meta/0009_snapshot.json +4700 -0
  917. package/migrations/meta/0010_snapshot.json +4694 -0
  918. package/migrations/meta/0011_snapshot.json +4706 -0
  919. package/migrations/meta/0012_snapshot.json +4706 -0
  920. package/migrations/meta/0013_snapshot.json +4712 -0
  921. package/migrations/meta/0014_snapshot.json +4802 -0
  922. package/migrations/meta/0015_snapshot.json +5077 -0
  923. package/migrations/meta/_journal.json +118 -0
  924. package/package.json +68 -0
  925. package/src/app.ts +157 -0
  926. package/src/index.ts +113 -0
  927. package/src/lib/actor.ts +99 -0
  928. package/src/lib/changes.ts +43 -0
  929. package/src/lib/columns.ts +170 -0
  930. package/src/lib/config.ts +86 -0
  931. package/src/lib/database.ts +118 -0
  932. package/src/lib/dates.ts +18 -0
  933. package/src/lib/email.ts +65 -0
  934. package/src/lib/errors.ts +156 -0
  935. package/src/lib/http.ts +109 -0
  936. package/src/lib/ids.ts +61 -0
  937. package/src/lib/logger.ts +73 -0
  938. package/src/lib/moduleConfig.ts +65 -0
  939. package/src/lib/normalisation.ts +36 -0
  940. package/src/lib/pagination.ts +291 -0
  941. package/src/lib/passwords.ts +56 -0
  942. package/src/lib/search.ts +29 -0
  943. package/src/lib/secrets.ts +223 -0
  944. package/src/lib/timezones.ts +59 -0
  945. package/src/lib/tokens.ts +37 -0
  946. package/src/lib/url.ts +52 -0
  947. package/src/modules/activities/index.ts +43 -0
  948. package/src/modules/activities/recorder.ts +108 -0
  949. package/src/modules/activities/repository.ts +196 -0
  950. package/src/modules/activities/routes.ts +78 -0
  951. package/src/modules/activities/schema.ts +41 -0
  952. package/src/modules/activities/service.ts +93 -0
  953. package/src/modules/activities/tools.ts +40 -0
  954. package/src/modules/activities/wording.ts +168 -0
  955. package/src/modules/agent-tasks/catalog.ts +712 -0
  956. package/src/modules/agent-tasks/dispatch.ts +188 -0
  957. package/src/modules/agent-tasks/index.ts +79 -0
  958. package/src/modules/agent-tasks/prompt.ts +140 -0
  959. package/src/modules/agent-tasks/repository.ts +152 -0
  960. package/src/modules/agent-tasks/resolve.ts +704 -0
  961. package/src/modules/agent-tasks/routes.ts +260 -0
  962. package/src/modules/agent-tasks/schema.ts +57 -0
  963. package/src/modules/agent-tasks/service.ts +370 -0
  964. package/src/modules/agent-tasks/wire.ts +61 -0
  965. package/src/modules/api-keys/index.ts +34 -0
  966. package/src/modules/api-keys/keys.ts +59 -0
  967. package/src/modules/api-keys/repository.ts +82 -0
  968. package/src/modules/api-keys/routes.ts +83 -0
  969. package/src/modules/api-keys/schema.ts +28 -0
  970. package/src/modules/api-keys/service.ts +152 -0
  971. package/src/modules/attachedRecords.ts +85 -0
  972. package/src/modules/auth/actor.ts +17 -0
  973. package/src/modules/auth/credentials.ts +153 -0
  974. package/src/modules/auth/index.ts +49 -0
  975. package/src/modules/auth/preferences.ts +57 -0
  976. package/src/modules/auth/repository.ts +240 -0
  977. package/src/modules/auth/routes.ts +247 -0
  978. package/src/modules/auth/schema.ts +77 -0
  979. package/src/modules/auth/service.ts +441 -0
  980. package/src/modules/auth/session.ts +40 -0
  981. package/src/modules/companies/index.ts +43 -0
  982. package/src/modules/companies/repository.ts +185 -0
  983. package/src/modules/companies/routes.ts +170 -0
  984. package/src/modules/companies/schema.ts +66 -0
  985. package/src/modules/companies/service.ts +267 -0
  986. package/src/modules/companies/tools.ts +32 -0
  987. package/src/modules/core.ts +93 -0
  988. package/src/modules/crudTools.ts +226 -0
  989. package/src/modules/dashboard/attention.ts +67 -0
  990. package/src/modules/dashboard/index.ts +49 -0
  991. package/src/modules/dashboard/repository.ts +360 -0
  992. package/src/modules/dashboard/routes.ts +171 -0
  993. package/src/modules/dashboard/service.ts +449 -0
  994. package/src/modules/dashboard/tools.ts +39 -0
  995. package/src/modules/deals/index.ts +44 -0
  996. package/src/modules/deals/repository.ts +251 -0
  997. package/src/modules/deals/routes.ts +166 -0
  998. package/src/modules/deals/schema.ts +72 -0
  999. package/src/modules/deals/service.ts +433 -0
  1000. package/src/modules/deals/tools.ts +39 -0
  1001. package/src/modules/decisions/index.ts +40 -0
  1002. package/src/modules/decisions/repository.ts +204 -0
  1003. package/src/modules/decisions/routes.ts +184 -0
  1004. package/src/modules/decisions/schema.ts +56 -0
  1005. package/src/modules/decisions/service.ts +223 -0
  1006. package/src/modules/decisions/tools.ts +38 -0
  1007. package/src/modules/forms/embed.ts +274 -0
  1008. package/src/modules/forms/fields.ts +206 -0
  1009. package/src/modules/forms/index.ts +61 -0
  1010. package/src/modules/forms/mapping.ts +222 -0
  1011. package/src/modules/forms/publicRoutes.ts +92 -0
  1012. package/src/modules/forms/repository.ts +223 -0
  1013. package/src/modules/forms/routes.ts +276 -0
  1014. package/src/modules/forms/schema.ts +135 -0
  1015. package/src/modules/forms/service.ts +362 -0
  1016. package/src/modules/forms/submission.ts +496 -0
  1017. package/src/modules/forms/tools.ts +66 -0
  1018. package/src/modules/handbook/index.ts +43 -0
  1019. package/src/modules/handbook/repository.ts +173 -0
  1020. package/src/modules/handbook/routes.ts +145 -0
  1021. package/src/modules/handbook/schema.ts +43 -0
  1022. package/src/modules/handbook/service.ts +399 -0
  1023. package/src/modules/handbook/slugs.ts +54 -0
  1024. package/src/modules/handbook/tools.ts +32 -0
  1025. package/src/modules/handbook/tree.ts +158 -0
  1026. package/src/modules/hiring/candidates.ts +391 -0
  1027. package/src/modules/hiring/index.ts +55 -0
  1028. package/src/modules/hiring/repository.ts +244 -0
  1029. package/src/modules/hiring/roles.ts +174 -0
  1030. package/src/modules/hiring/routes.ts +257 -0
  1031. package/src/modules/hiring/schema.ts +93 -0
  1032. package/src/modules/hiring/tools.ts +73 -0
  1033. package/src/modules/import-export/csv.ts +180 -0
  1034. package/src/modules/import-export/drafts.ts +182 -0
  1035. package/src/modules/import-export/exportRows.ts +85 -0
  1036. package/src/modules/import-export/index.ts +49 -0
  1037. package/src/modules/import-export/mapping.ts +154 -0
  1038. package/src/modules/import-export/plan.ts +311 -0
  1039. package/src/modules/import-export/presets.ts +183 -0
  1040. package/src/modules/import-export/repository.ts +603 -0
  1041. package/src/modules/import-export/routes.ts +276 -0
  1042. package/src/modules/import-export/schema.ts +142 -0
  1043. package/src/modules/import-export/service.ts +842 -0
  1044. package/src/modules/import-export/streams.ts +98 -0
  1045. package/src/modules/import-export/tools.ts +153 -0
  1046. package/src/modules/import-export/validation.ts +163 -0
  1047. package/src/modules/import-export/writes.ts +365 -0
  1048. package/src/modules/integrations/schema.ts +31 -0
  1049. package/src/modules/mcp/index.ts +52 -0
  1050. package/src/modules/mcp/protocol.ts +442 -0
  1051. package/src/modules/mcp/router.ts +425 -0
  1052. package/src/modules/notes/index.ts +43 -0
  1053. package/src/modules/notes/repository.ts +130 -0
  1054. package/src/modules/notes/routes.ts +170 -0
  1055. package/src/modules/notes/schema.ts +42 -0
  1056. package/src/modules/notes/service.ts +204 -0
  1057. package/src/modules/notes/tools.ts +46 -0
  1058. package/src/modules/opportunities/index.ts +44 -0
  1059. package/src/modules/opportunities/repository.ts +157 -0
  1060. package/src/modules/opportunities/routes.ts +152 -0
  1061. package/src/modules/opportunities/schema.ts +47 -0
  1062. package/src/modules/opportunities/service.ts +342 -0
  1063. package/src/modules/opportunities/tools.ts +39 -0
  1064. package/src/modules/partnerships/index.ts +44 -0
  1065. package/src/modules/partnerships/repository.ts +274 -0
  1066. package/src/modules/partnerships/routes.ts +170 -0
  1067. package/src/modules/partnerships/schema.ts +65 -0
  1068. package/src/modules/partnerships/service.ts +442 -0
  1069. package/src/modules/partnerships/tools.ts +41 -0
  1070. package/src/modules/people/index.ts +43 -0
  1071. package/src/modules/people/repository.ts +167 -0
  1072. package/src/modules/people/routes.ts +175 -0
  1073. package/src/modules/people/schema.ts +89 -0
  1074. package/src/modules/people/service.ts +284 -0
  1075. package/src/modules/people/tools.ts +32 -0
  1076. package/src/modules/pipelines/index.ts +43 -0
  1077. package/src/modules/pipelines/repository.ts +116 -0
  1078. package/src/modules/pipelines/routes.ts +157 -0
  1079. package/src/modules/pipelines/schema.ts +37 -0
  1080. package/src/modules/pipelines/service.ts +339 -0
  1081. package/src/modules/pipelines/tools.ts +52 -0
  1082. package/src/modules/plans/index.ts +39 -0
  1083. package/src/modules/plans/repository.ts +174 -0
  1084. package/src/modules/plans/routes.ts +212 -0
  1085. package/src/modules/plans/schema.ts +45 -0
  1086. package/src/modules/plans/service.ts +223 -0
  1087. package/src/modules/plans/tools.ts +45 -0
  1088. package/src/modules/positions/index.ts +42 -0
  1089. package/src/modules/positions/repository.ts +136 -0
  1090. package/src/modules/positions/routes.ts +97 -0
  1091. package/src/modules/positions/schema.ts +42 -0
  1092. package/src/modules/positions/service.ts +253 -0
  1093. package/src/modules/positions/tools.ts +32 -0
  1094. package/src/modules/raises/index.ts +44 -0
  1095. package/src/modules/raises/repository.ts +254 -0
  1096. package/src/modules/raises/routes.ts +160 -0
  1097. package/src/modules/raises/schema.ts +66 -0
  1098. package/src/modules/raises/service.ts +442 -0
  1099. package/src/modules/raises/tools.ts +39 -0
  1100. package/src/modules/recordTargets.ts +194 -0
  1101. package/src/modules/references.ts +44 -0
  1102. package/src/modules/reseal.ts +178 -0
  1103. package/src/modules/search/index.ts +55 -0
  1104. package/src/modules/search/query.ts +104 -0
  1105. package/src/modules/search/repository.ts +388 -0
  1106. package/src/modules/search/routes.ts +131 -0
  1107. package/src/modules/search/service.ts +153 -0
  1108. package/src/modules/search/tools.ts +60 -0
  1109. package/src/modules/stagedRecords.ts +91 -0
  1110. package/src/modules/webhooks/delivery.ts +349 -0
  1111. package/src/modules/webhooks/index.ts +85 -0
  1112. package/src/modules/webhooks/payloads.ts +84 -0
  1113. package/src/modules/webhooks/repository.ts +244 -0
  1114. package/src/modules/webhooks/routes.ts +240 -0
  1115. package/src/modules/webhooks/schema.ts +78 -0
  1116. package/src/modules/webhooks/service.ts +347 -0
  1117. package/src/modules/webhooks/signing.ts +95 -0
  1118. package/src/modules/webhooks/tools.ts +108 -0
  1119. package/src/modules/webhooks/url.ts +21 -0
  1120. package/src/modules/workspace/capabilities.ts +14 -0
  1121. package/src/modules/workspace/idempotencyMiddleware.ts +207 -0
  1122. package/src/modules/workspace/idempotencyRepository.ts +111 -0
  1123. package/src/modules/workspace/index.ts +64 -0
  1124. package/src/modules/workspace/repository.ts +420 -0
  1125. package/src/modules/workspace/roles.ts +38 -0
  1126. package/src/modules/workspace/routes.ts +255 -0
  1127. package/src/modules/workspace/schema.ts +130 -0
  1128. package/src/modules/workspace/service.ts +798 -0
  1129. package/src/modules/workspace/starters.ts +69 -0
  1130. package/src/modules/workspace/tools.ts +141 -0
  1131. package/src/runtime/entitlements.ts +142 -0
  1132. package/src/runtime/events.ts +185 -0
  1133. package/src/runtime/migrate.ts +75 -0
  1134. package/src/runtime/module.ts +147 -0
  1135. package/src/runtime/moduleConfig.ts +68 -0
  1136. package/src/runtime/order.ts +90 -0
  1137. package/src/runtime/registry.ts +263 -0
  1138. package/src/runtime/transaction.ts +80 -0
  1139. package/src/schema/index.ts +30 -0
  1140. package/src/testing/app.ts +79 -0
  1141. package/src/testing/client.ts +118 -0
  1142. package/src/testing/database.ts +106 -0
  1143. package/src/testing/environment.ts +22 -0
  1144. package/src/testing/fixtures.ts +70 -0
  1145. package/src/testing/index.ts +13 -0
  1146. package/src/testing/services.ts +67 -0
@@ -0,0 +1,4802 @@
1
+ {
2
+ "id": "a1d52d41-207f-4436-8d0f-28b0a6b4f0b3",
3
+ "prevId": "17cb1da1-b076-4508-a15a-683b997edb4b",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.password_reset_tokens": {
8
+ "name": "password_reset_tokens",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "user_id": {
18
+ "name": "user_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "token_hash": {
24
+ "name": "token_hash",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "expires_at": {
30
+ "name": "expires_at",
31
+ "type": "timestamp with time zone",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "used_at": {
36
+ "name": "used_at",
37
+ "type": "timestamp with time zone",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "created_at": {
42
+ "name": "created_at",
43
+ "type": "timestamp with time zone",
44
+ "primaryKey": false,
45
+ "notNull": true,
46
+ "default": "now()"
47
+ }
48
+ },
49
+ "indexes": {},
50
+ "foreignKeys": {
51
+ "password_reset_tokens_user_id_users_id_fk": {
52
+ "name": "password_reset_tokens_user_id_users_id_fk",
53
+ "tableFrom": "password_reset_tokens",
54
+ "tableTo": "users",
55
+ "columnsFrom": [
56
+ "user_id"
57
+ ],
58
+ "columnsTo": [
59
+ "id"
60
+ ],
61
+ "onDelete": "cascade",
62
+ "onUpdate": "no action"
63
+ }
64
+ },
65
+ "compositePrimaryKeys": {},
66
+ "uniqueConstraints": {
67
+ "password_reset_tokens_token_hash_unique": {
68
+ "name": "password_reset_tokens_token_hash_unique",
69
+ "nullsNotDistinct": false,
70
+ "columns": [
71
+ "token_hash"
72
+ ]
73
+ }
74
+ },
75
+ "policies": {},
76
+ "checkConstraints": {},
77
+ "isRLSEnabled": false
78
+ },
79
+ "public.sessions": {
80
+ "name": "sessions",
81
+ "schema": "",
82
+ "columns": {
83
+ "id": {
84
+ "name": "id",
85
+ "type": "text",
86
+ "primaryKey": true,
87
+ "notNull": true
88
+ },
89
+ "user_id": {
90
+ "name": "user_id",
91
+ "type": "text",
92
+ "primaryKey": false,
93
+ "notNull": true
94
+ },
95
+ "active_workspace_id": {
96
+ "name": "active_workspace_id",
97
+ "type": "text",
98
+ "primaryKey": false,
99
+ "notNull": false
100
+ },
101
+ "token_hash": {
102
+ "name": "token_hash",
103
+ "type": "text",
104
+ "primaryKey": false,
105
+ "notNull": true
106
+ },
107
+ "device": {
108
+ "name": "device",
109
+ "type": "text",
110
+ "primaryKey": false,
111
+ "notNull": false
112
+ },
113
+ "location": {
114
+ "name": "location",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": false
118
+ },
119
+ "last_active_at": {
120
+ "name": "last_active_at",
121
+ "type": "timestamp with time zone",
122
+ "primaryKey": false,
123
+ "notNull": true,
124
+ "default": "now()"
125
+ },
126
+ "expires_at": {
127
+ "name": "expires_at",
128
+ "type": "timestamp with time zone",
129
+ "primaryKey": false,
130
+ "notNull": true
131
+ },
132
+ "created_at": {
133
+ "name": "created_at",
134
+ "type": "timestamp with time zone",
135
+ "primaryKey": false,
136
+ "notNull": true,
137
+ "default": "now()"
138
+ }
139
+ },
140
+ "indexes": {},
141
+ "foreignKeys": {
142
+ "sessions_user_id_users_id_fk": {
143
+ "name": "sessions_user_id_users_id_fk",
144
+ "tableFrom": "sessions",
145
+ "tableTo": "users",
146
+ "columnsFrom": [
147
+ "user_id"
148
+ ],
149
+ "columnsTo": [
150
+ "id"
151
+ ],
152
+ "onDelete": "cascade",
153
+ "onUpdate": "no action"
154
+ }
155
+ },
156
+ "compositePrimaryKeys": {},
157
+ "uniqueConstraints": {
158
+ "sessions_token_hash_unique": {
159
+ "name": "sessions_token_hash_unique",
160
+ "nullsNotDistinct": false,
161
+ "columns": [
162
+ "token_hash"
163
+ ]
164
+ }
165
+ },
166
+ "policies": {},
167
+ "checkConstraints": {},
168
+ "isRLSEnabled": false
169
+ },
170
+ "public.user_preferences": {
171
+ "name": "user_preferences",
172
+ "schema": "",
173
+ "columns": {
174
+ "user_id": {
175
+ "name": "user_id",
176
+ "type": "text",
177
+ "primaryKey": true,
178
+ "notNull": true
179
+ },
180
+ "timezone": {
181
+ "name": "timezone",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true
185
+ },
186
+ "theme": {
187
+ "name": "theme",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": true
191
+ },
192
+ "email_digest": {
193
+ "name": "email_digest",
194
+ "type": "boolean",
195
+ "primaryKey": false,
196
+ "notNull": true
197
+ },
198
+ "mention_emails": {
199
+ "name": "mention_emails",
200
+ "type": "boolean",
201
+ "primaryKey": false,
202
+ "notNull": true
203
+ },
204
+ "product_updates": {
205
+ "name": "product_updates",
206
+ "type": "boolean",
207
+ "primaryKey": false,
208
+ "notNull": true
209
+ },
210
+ "updated_at": {
211
+ "name": "updated_at",
212
+ "type": "timestamp with time zone",
213
+ "primaryKey": false,
214
+ "notNull": true,
215
+ "default": "now()"
216
+ }
217
+ },
218
+ "indexes": {},
219
+ "foreignKeys": {
220
+ "user_preferences_user_id_users_id_fk": {
221
+ "name": "user_preferences_user_id_users_id_fk",
222
+ "tableFrom": "user_preferences",
223
+ "tableTo": "users",
224
+ "columnsFrom": [
225
+ "user_id"
226
+ ],
227
+ "columnsTo": [
228
+ "id"
229
+ ],
230
+ "onDelete": "cascade",
231
+ "onUpdate": "no action"
232
+ }
233
+ },
234
+ "compositePrimaryKeys": {},
235
+ "uniqueConstraints": {},
236
+ "policies": {},
237
+ "checkConstraints": {
238
+ "user_preferences_theme_check": {
239
+ "name": "user_preferences_theme_check",
240
+ "value": "\"user_preferences\".\"theme\" in ('system', 'light', 'dark')"
241
+ }
242
+ },
243
+ "isRLSEnabled": false
244
+ },
245
+ "public.users": {
246
+ "name": "users",
247
+ "schema": "",
248
+ "columns": {
249
+ "id": {
250
+ "name": "id",
251
+ "type": "text",
252
+ "primaryKey": true,
253
+ "notNull": true
254
+ },
255
+ "email": {
256
+ "name": "email",
257
+ "type": "citext",
258
+ "primaryKey": false,
259
+ "notNull": true
260
+ },
261
+ "name": {
262
+ "name": "name",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": true
266
+ },
267
+ "password_hash": {
268
+ "name": "password_hash",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": true
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
+ "updated_at": {
281
+ "name": "updated_at",
282
+ "type": "timestamp with time zone",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "default": "now()"
286
+ }
287
+ },
288
+ "indexes": {},
289
+ "foreignKeys": {},
290
+ "compositePrimaryKeys": {},
291
+ "uniqueConstraints": {
292
+ "users_email_unique": {
293
+ "name": "users_email_unique",
294
+ "nullsNotDistinct": false,
295
+ "columns": [
296
+ "email"
297
+ ]
298
+ }
299
+ },
300
+ "policies": {},
301
+ "checkConstraints": {},
302
+ "isRLSEnabled": false
303
+ },
304
+ "public.idempotency_keys": {
305
+ "name": "idempotency_keys",
306
+ "schema": "",
307
+ "columns": {
308
+ "id": {
309
+ "name": "id",
310
+ "type": "text",
311
+ "primaryKey": true,
312
+ "notNull": true
313
+ },
314
+ "workspace_id": {
315
+ "name": "workspace_id",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": true
319
+ },
320
+ "key": {
321
+ "name": "key",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": true
325
+ },
326
+ "request_hash": {
327
+ "name": "request_hash",
328
+ "type": "text",
329
+ "primaryKey": false,
330
+ "notNull": true
331
+ },
332
+ "response": {
333
+ "name": "response",
334
+ "type": "jsonb",
335
+ "primaryKey": false,
336
+ "notNull": false
337
+ },
338
+ "expires_at": {
339
+ "name": "expires_at",
340
+ "type": "timestamp with time zone",
341
+ "primaryKey": false,
342
+ "notNull": true
343
+ },
344
+ "created_at": {
345
+ "name": "created_at",
346
+ "type": "timestamp with time zone",
347
+ "primaryKey": false,
348
+ "notNull": true,
349
+ "default": "now()"
350
+ }
351
+ },
352
+ "indexes": {},
353
+ "foreignKeys": {
354
+ "idempotency_keys_workspace_id_workspaces_id_fk": {
355
+ "name": "idempotency_keys_workspace_id_workspaces_id_fk",
356
+ "tableFrom": "idempotency_keys",
357
+ "tableTo": "workspaces",
358
+ "columnsFrom": [
359
+ "workspace_id"
360
+ ],
361
+ "columnsTo": [
362
+ "id"
363
+ ],
364
+ "onDelete": "cascade",
365
+ "onUpdate": "no action"
366
+ }
367
+ },
368
+ "compositePrimaryKeys": {},
369
+ "uniqueConstraints": {
370
+ "idempotency_keys_workspace_key_key": {
371
+ "name": "idempotency_keys_workspace_key_key",
372
+ "nullsNotDistinct": false,
373
+ "columns": [
374
+ "workspace_id",
375
+ "key"
376
+ ]
377
+ }
378
+ },
379
+ "policies": {},
380
+ "checkConstraints": {},
381
+ "isRLSEnabled": false
382
+ },
383
+ "public.invites": {
384
+ "name": "invites",
385
+ "schema": "",
386
+ "columns": {
387
+ "id": {
388
+ "name": "id",
389
+ "type": "text",
390
+ "primaryKey": true,
391
+ "notNull": true
392
+ },
393
+ "workspace_id": {
394
+ "name": "workspace_id",
395
+ "type": "text",
396
+ "primaryKey": false,
397
+ "notNull": true
398
+ },
399
+ "email": {
400
+ "name": "email",
401
+ "type": "citext",
402
+ "primaryKey": false,
403
+ "notNull": true
404
+ },
405
+ "role": {
406
+ "name": "role",
407
+ "type": "text",
408
+ "primaryKey": false,
409
+ "notNull": true
410
+ },
411
+ "invited_by": {
412
+ "name": "invited_by",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": false
416
+ },
417
+ "status": {
418
+ "name": "status",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": true
422
+ },
423
+ "token_hash": {
424
+ "name": "token_hash",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": true
428
+ },
429
+ "expires_at": {
430
+ "name": "expires_at",
431
+ "type": "timestamp with time zone",
432
+ "primaryKey": false,
433
+ "notNull": true
434
+ },
435
+ "created_at": {
436
+ "name": "created_at",
437
+ "type": "timestamp with time zone",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "default": "now()"
441
+ },
442
+ "updated_at": {
443
+ "name": "updated_at",
444
+ "type": "timestamp with time zone",
445
+ "primaryKey": false,
446
+ "notNull": true,
447
+ "default": "now()"
448
+ }
449
+ },
450
+ "indexes": {
451
+ "invites_workspace_idx": {
452
+ "name": "invites_workspace_idx",
453
+ "columns": [
454
+ {
455
+ "expression": "workspace_id",
456
+ "isExpression": false,
457
+ "asc": true,
458
+ "nulls": "last"
459
+ }
460
+ ],
461
+ "isUnique": false,
462
+ "concurrently": false,
463
+ "method": "btree",
464
+ "with": {}
465
+ }
466
+ },
467
+ "foreignKeys": {
468
+ "invites_workspace_id_workspaces_id_fk": {
469
+ "name": "invites_workspace_id_workspaces_id_fk",
470
+ "tableFrom": "invites",
471
+ "tableTo": "workspaces",
472
+ "columnsFrom": [
473
+ "workspace_id"
474
+ ],
475
+ "columnsTo": [
476
+ "id"
477
+ ],
478
+ "onDelete": "cascade",
479
+ "onUpdate": "no action"
480
+ },
481
+ "invites_invited_by_workspace_members_id_fk": {
482
+ "name": "invites_invited_by_workspace_members_id_fk",
483
+ "tableFrom": "invites",
484
+ "tableTo": "workspace_members",
485
+ "columnsFrom": [
486
+ "invited_by"
487
+ ],
488
+ "columnsTo": [
489
+ "id"
490
+ ],
491
+ "onDelete": "set null",
492
+ "onUpdate": "no action"
493
+ }
494
+ },
495
+ "compositePrimaryKeys": {},
496
+ "uniqueConstraints": {},
497
+ "policies": {},
498
+ "checkConstraints": {
499
+ "invites_role_check": {
500
+ "name": "invites_role_check",
501
+ "value": "\"invites\".\"role\" in ('admin', 'member')"
502
+ },
503
+ "invites_status_check": {
504
+ "name": "invites_status_check",
505
+ "value": "\"invites\".\"status\" in ('pending', 'expired')"
506
+ }
507
+ },
508
+ "isRLSEnabled": false
509
+ },
510
+ "public.workspace_members": {
511
+ "name": "workspace_members",
512
+ "schema": "",
513
+ "columns": {
514
+ "id": {
515
+ "name": "id",
516
+ "type": "text",
517
+ "primaryKey": true,
518
+ "notNull": true
519
+ },
520
+ "workspace_id": {
521
+ "name": "workspace_id",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true
525
+ },
526
+ "user_id": {
527
+ "name": "user_id",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true
531
+ },
532
+ "role": {
533
+ "name": "role",
534
+ "type": "text",
535
+ "primaryKey": false,
536
+ "notNull": true
537
+ },
538
+ "joined_at": {
539
+ "name": "joined_at",
540
+ "type": "timestamp with time zone",
541
+ "primaryKey": false,
542
+ "notNull": true,
543
+ "default": "now()"
544
+ },
545
+ "created_at": {
546
+ "name": "created_at",
547
+ "type": "timestamp with time zone",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "default": "now()"
551
+ },
552
+ "updated_at": {
553
+ "name": "updated_at",
554
+ "type": "timestamp with time zone",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "default": "now()"
558
+ }
559
+ },
560
+ "indexes": {
561
+ "workspace_members_workspace_idx": {
562
+ "name": "workspace_members_workspace_idx",
563
+ "columns": [
564
+ {
565
+ "expression": "workspace_id",
566
+ "isExpression": false,
567
+ "asc": true,
568
+ "nulls": "last"
569
+ }
570
+ ],
571
+ "isUnique": false,
572
+ "concurrently": false,
573
+ "method": "btree",
574
+ "with": {}
575
+ }
576
+ },
577
+ "foreignKeys": {
578
+ "workspace_members_workspace_id_workspaces_id_fk": {
579
+ "name": "workspace_members_workspace_id_workspaces_id_fk",
580
+ "tableFrom": "workspace_members",
581
+ "tableTo": "workspaces",
582
+ "columnsFrom": [
583
+ "workspace_id"
584
+ ],
585
+ "columnsTo": [
586
+ "id"
587
+ ],
588
+ "onDelete": "cascade",
589
+ "onUpdate": "no action"
590
+ },
591
+ "workspace_members_user_id_users_id_fk": {
592
+ "name": "workspace_members_user_id_users_id_fk",
593
+ "tableFrom": "workspace_members",
594
+ "tableTo": "users",
595
+ "columnsFrom": [
596
+ "user_id"
597
+ ],
598
+ "columnsTo": [
599
+ "id"
600
+ ],
601
+ "onDelete": "cascade",
602
+ "onUpdate": "no action"
603
+ }
604
+ },
605
+ "compositePrimaryKeys": {},
606
+ "uniqueConstraints": {
607
+ "workspace_members_workspace_user_key": {
608
+ "name": "workspace_members_workspace_user_key",
609
+ "nullsNotDistinct": false,
610
+ "columns": [
611
+ "workspace_id",
612
+ "user_id"
613
+ ]
614
+ }
615
+ },
616
+ "policies": {},
617
+ "checkConstraints": {
618
+ "workspace_members_role_check": {
619
+ "name": "workspace_members_role_check",
620
+ "value": "\"workspace_members\".\"role\" in ('owner', 'admin', 'member')"
621
+ }
622
+ },
623
+ "isRLSEnabled": false
624
+ },
625
+ "public.workspace_module_settings": {
626
+ "name": "workspace_module_settings",
627
+ "schema": "",
628
+ "columns": {
629
+ "id": {
630
+ "name": "id",
631
+ "type": "text",
632
+ "primaryKey": true,
633
+ "notNull": true
634
+ },
635
+ "workspace_id": {
636
+ "name": "workspace_id",
637
+ "type": "text",
638
+ "primaryKey": false,
639
+ "notNull": true
640
+ },
641
+ "module_id": {
642
+ "name": "module_id",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": true
646
+ },
647
+ "enabled": {
648
+ "name": "enabled",
649
+ "type": "boolean",
650
+ "primaryKey": false,
651
+ "notNull": true
652
+ },
653
+ "created_at": {
654
+ "name": "created_at",
655
+ "type": "timestamp with time zone",
656
+ "primaryKey": false,
657
+ "notNull": true,
658
+ "default": "now()"
659
+ },
660
+ "updated_at": {
661
+ "name": "updated_at",
662
+ "type": "timestamp with time zone",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "default": "now()"
666
+ }
667
+ },
668
+ "indexes": {
669
+ "workspace_module_settings_workspace_idx": {
670
+ "name": "workspace_module_settings_workspace_idx",
671
+ "columns": [
672
+ {
673
+ "expression": "workspace_id",
674
+ "isExpression": false,
675
+ "asc": true,
676
+ "nulls": "last"
677
+ }
678
+ ],
679
+ "isUnique": false,
680
+ "concurrently": false,
681
+ "method": "btree",
682
+ "with": {}
683
+ }
684
+ },
685
+ "foreignKeys": {
686
+ "workspace_module_settings_workspace_id_workspaces_id_fk": {
687
+ "name": "workspace_module_settings_workspace_id_workspaces_id_fk",
688
+ "tableFrom": "workspace_module_settings",
689
+ "tableTo": "workspaces",
690
+ "columnsFrom": [
691
+ "workspace_id"
692
+ ],
693
+ "columnsTo": [
694
+ "id"
695
+ ],
696
+ "onDelete": "cascade",
697
+ "onUpdate": "no action"
698
+ }
699
+ },
700
+ "compositePrimaryKeys": {},
701
+ "uniqueConstraints": {
702
+ "workspace_module_settings_workspace_module_key": {
703
+ "name": "workspace_module_settings_workspace_module_key",
704
+ "nullsNotDistinct": false,
705
+ "columns": [
706
+ "workspace_id",
707
+ "module_id"
708
+ ]
709
+ }
710
+ },
711
+ "policies": {},
712
+ "checkConstraints": {},
713
+ "isRLSEnabled": false
714
+ },
715
+ "public.workspaces": {
716
+ "name": "workspaces",
717
+ "schema": "",
718
+ "columns": {
719
+ "id": {
720
+ "name": "id",
721
+ "type": "text",
722
+ "primaryKey": true,
723
+ "notNull": true
724
+ },
725
+ "name": {
726
+ "name": "name",
727
+ "type": "text",
728
+ "primaryKey": false,
729
+ "notNull": true
730
+ },
731
+ "slug": {
732
+ "name": "slug",
733
+ "type": "text",
734
+ "primaryKey": false,
735
+ "notNull": true
736
+ },
737
+ "timezone": {
738
+ "name": "timezone",
739
+ "type": "text",
740
+ "primaryKey": false,
741
+ "notNull": true
742
+ },
743
+ "tagline": {
744
+ "name": "tagline",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": false
748
+ },
749
+ "one_liner": {
750
+ "name": "one_liner",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": false
754
+ },
755
+ "created_at": {
756
+ "name": "created_at",
757
+ "type": "timestamp with time zone",
758
+ "primaryKey": false,
759
+ "notNull": true,
760
+ "default": "now()"
761
+ },
762
+ "updated_at": {
763
+ "name": "updated_at",
764
+ "type": "timestamp with time zone",
765
+ "primaryKey": false,
766
+ "notNull": true,
767
+ "default": "now()"
768
+ }
769
+ },
770
+ "indexes": {},
771
+ "foreignKeys": {},
772
+ "compositePrimaryKeys": {},
773
+ "uniqueConstraints": {
774
+ "workspaces_slug_unique": {
775
+ "name": "workspaces_slug_unique",
776
+ "nullsNotDistinct": false,
777
+ "columns": [
778
+ "slug"
779
+ ]
780
+ }
781
+ },
782
+ "policies": {},
783
+ "checkConstraints": {},
784
+ "isRLSEnabled": false
785
+ },
786
+ "public.api_keys": {
787
+ "name": "api_keys",
788
+ "schema": "",
789
+ "columns": {
790
+ "id": {
791
+ "name": "id",
792
+ "type": "text",
793
+ "primaryKey": true,
794
+ "notNull": true
795
+ },
796
+ "workspace_id": {
797
+ "name": "workspace_id",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": true
801
+ },
802
+ "user_id": {
803
+ "name": "user_id",
804
+ "type": "text",
805
+ "primaryKey": false,
806
+ "notNull": false
807
+ },
808
+ "name": {
809
+ "name": "name",
810
+ "type": "text",
811
+ "primaryKey": false,
812
+ "notNull": true
813
+ },
814
+ "secret_hash": {
815
+ "name": "secret_hash",
816
+ "type": "text",
817
+ "primaryKey": false,
818
+ "notNull": true
819
+ },
820
+ "display_prefix": {
821
+ "name": "display_prefix",
822
+ "type": "text",
823
+ "primaryKey": false,
824
+ "notNull": true
825
+ },
826
+ "last_used_at": {
827
+ "name": "last_used_at",
828
+ "type": "timestamp with time zone",
829
+ "primaryKey": false,
830
+ "notNull": false
831
+ },
832
+ "created_at": {
833
+ "name": "created_at",
834
+ "type": "timestamp with time zone",
835
+ "primaryKey": false,
836
+ "notNull": true,
837
+ "default": "now()"
838
+ },
839
+ "updated_at": {
840
+ "name": "updated_at",
841
+ "type": "timestamp with time zone",
842
+ "primaryKey": false,
843
+ "notNull": true,
844
+ "default": "now()"
845
+ }
846
+ },
847
+ "indexes": {
848
+ "api_keys_workspace_idx": {
849
+ "name": "api_keys_workspace_idx",
850
+ "columns": [
851
+ {
852
+ "expression": "workspace_id",
853
+ "isExpression": false,
854
+ "asc": true,
855
+ "nulls": "last"
856
+ }
857
+ ],
858
+ "isUnique": false,
859
+ "concurrently": false,
860
+ "method": "btree",
861
+ "with": {}
862
+ }
863
+ },
864
+ "foreignKeys": {
865
+ "api_keys_workspace_id_workspaces_id_fk": {
866
+ "name": "api_keys_workspace_id_workspaces_id_fk",
867
+ "tableFrom": "api_keys",
868
+ "tableTo": "workspaces",
869
+ "columnsFrom": [
870
+ "workspace_id"
871
+ ],
872
+ "columnsTo": [
873
+ "id"
874
+ ],
875
+ "onDelete": "cascade",
876
+ "onUpdate": "no action"
877
+ },
878
+ "api_keys_user_id_users_id_fk": {
879
+ "name": "api_keys_user_id_users_id_fk",
880
+ "tableFrom": "api_keys",
881
+ "tableTo": "users",
882
+ "columnsFrom": [
883
+ "user_id"
884
+ ],
885
+ "columnsTo": [
886
+ "id"
887
+ ],
888
+ "onDelete": "cascade",
889
+ "onUpdate": "no action"
890
+ }
891
+ },
892
+ "compositePrimaryKeys": {},
893
+ "uniqueConstraints": {
894
+ "api_keys_secret_hash_unique": {
895
+ "name": "api_keys_secret_hash_unique",
896
+ "nullsNotDistinct": false,
897
+ "columns": [
898
+ "secret_hash"
899
+ ]
900
+ }
901
+ },
902
+ "policies": {},
903
+ "checkConstraints": {},
904
+ "isRLSEnabled": false
905
+ },
906
+ "public.people": {
907
+ "name": "people",
908
+ "schema": "",
909
+ "columns": {
910
+ "id": {
911
+ "name": "id",
912
+ "type": "text",
913
+ "primaryKey": true,
914
+ "notNull": true
915
+ },
916
+ "workspace_id": {
917
+ "name": "workspace_id",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": true
921
+ },
922
+ "name": {
923
+ "name": "name",
924
+ "type": "text",
925
+ "primaryKey": false,
926
+ "notNull": true
927
+ },
928
+ "email": {
929
+ "name": "email",
930
+ "type": "citext",
931
+ "primaryKey": false,
932
+ "notNull": false
933
+ },
934
+ "phones": {
935
+ "name": "phones",
936
+ "type": "jsonb",
937
+ "primaryKey": false,
938
+ "notNull": true,
939
+ "default": "'[]'::jsonb"
940
+ },
941
+ "social_profiles": {
942
+ "name": "social_profiles",
943
+ "type": "jsonb",
944
+ "primaryKey": false,
945
+ "notNull": true,
946
+ "default": "'[]'::jsonb"
947
+ },
948
+ "timezone": {
949
+ "name": "timezone",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": false
953
+ },
954
+ "location": {
955
+ "name": "location",
956
+ "type": "text",
957
+ "primaryKey": false,
958
+ "notNull": false
959
+ },
960
+ "preferred_channel": {
961
+ "name": "preferred_channel",
962
+ "type": "text",
963
+ "primaryKey": false,
964
+ "notNull": true
965
+ },
966
+ "influence": {
967
+ "name": "influence",
968
+ "type": "text",
969
+ "primaryKey": false,
970
+ "notNull": true
971
+ },
972
+ "relationship": {
973
+ "name": "relationship",
974
+ "type": "text",
975
+ "primaryKey": false,
976
+ "notNull": true
977
+ },
978
+ "summary": {
979
+ "name": "summary",
980
+ "type": "text",
981
+ "primaryKey": false,
982
+ "notNull": true,
983
+ "default": "''"
984
+ },
985
+ "tags": {
986
+ "name": "tags",
987
+ "type": "text[]",
988
+ "primaryKey": false,
989
+ "notNull": true,
990
+ "default": "'{}'"
991
+ },
992
+ "last_contacted_at": {
993
+ "name": "last_contacted_at",
994
+ "type": "timestamp with time zone",
995
+ "primaryKey": false,
996
+ "notNull": false
997
+ },
998
+ "created_at": {
999
+ "name": "created_at",
1000
+ "type": "timestamp with time zone",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "default": "now()"
1004
+ },
1005
+ "updated_at": {
1006
+ "name": "updated_at",
1007
+ "type": "timestamp with time zone",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "default": "now()"
1011
+ }
1012
+ },
1013
+ "indexes": {
1014
+ "people_workspace_idx": {
1015
+ "name": "people_workspace_idx",
1016
+ "columns": [
1017
+ {
1018
+ "expression": "workspace_id",
1019
+ "isExpression": false,
1020
+ "asc": true,
1021
+ "nulls": "last"
1022
+ }
1023
+ ],
1024
+ "isUnique": false,
1025
+ "concurrently": false,
1026
+ "method": "btree",
1027
+ "with": {}
1028
+ }
1029
+ },
1030
+ "foreignKeys": {
1031
+ "people_workspace_id_workspaces_id_fk": {
1032
+ "name": "people_workspace_id_workspaces_id_fk",
1033
+ "tableFrom": "people",
1034
+ "tableTo": "workspaces",
1035
+ "columnsFrom": [
1036
+ "workspace_id"
1037
+ ],
1038
+ "columnsTo": [
1039
+ "id"
1040
+ ],
1041
+ "onDelete": "cascade",
1042
+ "onUpdate": "no action"
1043
+ }
1044
+ },
1045
+ "compositePrimaryKeys": {},
1046
+ "uniqueConstraints": {
1047
+ "people_workspace_email_key": {
1048
+ "name": "people_workspace_email_key",
1049
+ "nullsNotDistinct": false,
1050
+ "columns": [
1051
+ "workspace_id",
1052
+ "email"
1053
+ ]
1054
+ }
1055
+ },
1056
+ "policies": {},
1057
+ "checkConstraints": {
1058
+ "people_preferred_channel_check": {
1059
+ "name": "people_preferred_channel_check",
1060
+ "value": "\"people\".\"preferred_channel\" in ('email', 'call', 'linkedin')"
1061
+ },
1062
+ "people_influence_check": {
1063
+ "name": "people_influence_check",
1064
+ "value": "\"people\".\"influence\" in ('champion', 'decision_maker', 'influencer', 'blocker', 'end_user')"
1065
+ },
1066
+ "people_relationship_check": {
1067
+ "name": "people_relationship_check",
1068
+ "value": "\"people\".\"relationship\" in ('cold', 'warm', 'strong')"
1069
+ }
1070
+ },
1071
+ "isRLSEnabled": false
1072
+ },
1073
+ "public.companies": {
1074
+ "name": "companies",
1075
+ "schema": "",
1076
+ "columns": {
1077
+ "id": {
1078
+ "name": "id",
1079
+ "type": "text",
1080
+ "primaryKey": true,
1081
+ "notNull": true
1082
+ },
1083
+ "workspace_id": {
1084
+ "name": "workspace_id",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": true
1088
+ },
1089
+ "name": {
1090
+ "name": "name",
1091
+ "type": "text",
1092
+ "primaryKey": false,
1093
+ "notNull": true
1094
+ },
1095
+ "domain": {
1096
+ "name": "domain",
1097
+ "type": "citext",
1098
+ "primaryKey": false,
1099
+ "notNull": false
1100
+ },
1101
+ "industry": {
1102
+ "name": "industry",
1103
+ "type": "text",
1104
+ "primaryKey": false,
1105
+ "notNull": false
1106
+ },
1107
+ "description": {
1108
+ "name": "description",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true,
1112
+ "default": "''"
1113
+ },
1114
+ "stage": {
1115
+ "name": "stage",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": true
1119
+ },
1120
+ "size_band": {
1121
+ "name": "size_band",
1122
+ "type": "text",
1123
+ "primaryKey": false,
1124
+ "notNull": true
1125
+ },
1126
+ "hq": {
1127
+ "name": "hq",
1128
+ "type": "text",
1129
+ "primaryKey": false,
1130
+ "notNull": false
1131
+ },
1132
+ "website": {
1133
+ "name": "website",
1134
+ "type": "text",
1135
+ "primaryKey": false,
1136
+ "notNull": false
1137
+ },
1138
+ "account_type": {
1139
+ "name": "account_type",
1140
+ "type": "text",
1141
+ "primaryKey": false,
1142
+ "notNull": true
1143
+ },
1144
+ "icp_fit": {
1145
+ "name": "icp_fit",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": true
1149
+ },
1150
+ "tech_stack": {
1151
+ "name": "tech_stack",
1152
+ "type": "text[]",
1153
+ "primaryKey": false,
1154
+ "notNull": true,
1155
+ "default": "'{}'"
1156
+ },
1157
+ "summary": {
1158
+ "name": "summary",
1159
+ "type": "text",
1160
+ "primaryKey": false,
1161
+ "notNull": true,
1162
+ "default": "''"
1163
+ },
1164
+ "tags": {
1165
+ "name": "tags",
1166
+ "type": "text[]",
1167
+ "primaryKey": false,
1168
+ "notNull": true,
1169
+ "default": "'{}'"
1170
+ },
1171
+ "created_at": {
1172
+ "name": "created_at",
1173
+ "type": "timestamp with time zone",
1174
+ "primaryKey": false,
1175
+ "notNull": true,
1176
+ "default": "now()"
1177
+ },
1178
+ "updated_at": {
1179
+ "name": "updated_at",
1180
+ "type": "timestamp with time zone",
1181
+ "primaryKey": false,
1182
+ "notNull": true,
1183
+ "default": "now()"
1184
+ }
1185
+ },
1186
+ "indexes": {
1187
+ "companies_workspace_idx": {
1188
+ "name": "companies_workspace_idx",
1189
+ "columns": [
1190
+ {
1191
+ "expression": "workspace_id",
1192
+ "isExpression": false,
1193
+ "asc": true,
1194
+ "nulls": "last"
1195
+ }
1196
+ ],
1197
+ "isUnique": false,
1198
+ "concurrently": false,
1199
+ "method": "btree",
1200
+ "with": {}
1201
+ }
1202
+ },
1203
+ "foreignKeys": {
1204
+ "companies_workspace_id_workspaces_id_fk": {
1205
+ "name": "companies_workspace_id_workspaces_id_fk",
1206
+ "tableFrom": "companies",
1207
+ "tableTo": "workspaces",
1208
+ "columnsFrom": [
1209
+ "workspace_id"
1210
+ ],
1211
+ "columnsTo": [
1212
+ "id"
1213
+ ],
1214
+ "onDelete": "cascade",
1215
+ "onUpdate": "no action"
1216
+ }
1217
+ },
1218
+ "compositePrimaryKeys": {},
1219
+ "uniqueConstraints": {
1220
+ "companies_workspace_domain_key": {
1221
+ "name": "companies_workspace_domain_key",
1222
+ "nullsNotDistinct": false,
1223
+ "columns": [
1224
+ "workspace_id",
1225
+ "domain"
1226
+ ]
1227
+ }
1228
+ },
1229
+ "policies": {},
1230
+ "checkConstraints": {
1231
+ "companies_stage_check": {
1232
+ "name": "companies_stage_check",
1233
+ "value": "\"companies\".\"stage\" in ('startup', 'growth', 'enterprise', 'other')"
1234
+ },
1235
+ "companies_size_band_check": {
1236
+ "name": "companies_size_band_check",
1237
+ "value": "\"companies\".\"size_band\" in ('1-10', '11-50', '51-200', '201+')"
1238
+ },
1239
+ "companies_account_type_check": {
1240
+ "name": "companies_account_type_check",
1241
+ "value": "\"companies\".\"account_type\" in ('prospect', 'customer', 'partner', 'investor', 'other')"
1242
+ },
1243
+ "companies_icp_fit_check": {
1244
+ "name": "companies_icp_fit_check",
1245
+ "value": "\"companies\".\"icp_fit\" in ('high', 'medium', 'low', 'unknown')"
1246
+ }
1247
+ },
1248
+ "isRLSEnabled": false
1249
+ },
1250
+ "public.positions": {
1251
+ "name": "positions",
1252
+ "schema": "",
1253
+ "columns": {
1254
+ "id": {
1255
+ "name": "id",
1256
+ "type": "text",
1257
+ "primaryKey": true,
1258
+ "notNull": true
1259
+ },
1260
+ "workspace_id": {
1261
+ "name": "workspace_id",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": true
1265
+ },
1266
+ "person_id": {
1267
+ "name": "person_id",
1268
+ "type": "text",
1269
+ "primaryKey": false,
1270
+ "notNull": true
1271
+ },
1272
+ "company_id": {
1273
+ "name": "company_id",
1274
+ "type": "text",
1275
+ "primaryKey": false,
1276
+ "notNull": true
1277
+ },
1278
+ "title": {
1279
+ "name": "title",
1280
+ "type": "text",
1281
+ "primaryKey": false,
1282
+ "notNull": true
1283
+ },
1284
+ "created_at": {
1285
+ "name": "created_at",
1286
+ "type": "timestamp with time zone",
1287
+ "primaryKey": false,
1288
+ "notNull": true,
1289
+ "default": "now()"
1290
+ },
1291
+ "updated_at": {
1292
+ "name": "updated_at",
1293
+ "type": "timestamp with time zone",
1294
+ "primaryKey": false,
1295
+ "notNull": true,
1296
+ "default": "now()"
1297
+ }
1298
+ },
1299
+ "indexes": {
1300
+ "positions_workspace_idx": {
1301
+ "name": "positions_workspace_idx",
1302
+ "columns": [
1303
+ {
1304
+ "expression": "workspace_id",
1305
+ "isExpression": false,
1306
+ "asc": true,
1307
+ "nulls": "last"
1308
+ }
1309
+ ],
1310
+ "isUnique": false,
1311
+ "concurrently": false,
1312
+ "method": "btree",
1313
+ "with": {}
1314
+ },
1315
+ "positions_company_idx": {
1316
+ "name": "positions_company_idx",
1317
+ "columns": [
1318
+ {
1319
+ "expression": "company_id",
1320
+ "isExpression": false,
1321
+ "asc": true,
1322
+ "nulls": "last"
1323
+ }
1324
+ ],
1325
+ "isUnique": false,
1326
+ "concurrently": false,
1327
+ "method": "btree",
1328
+ "with": {}
1329
+ }
1330
+ },
1331
+ "foreignKeys": {
1332
+ "positions_workspace_id_workspaces_id_fk": {
1333
+ "name": "positions_workspace_id_workspaces_id_fk",
1334
+ "tableFrom": "positions",
1335
+ "tableTo": "workspaces",
1336
+ "columnsFrom": [
1337
+ "workspace_id"
1338
+ ],
1339
+ "columnsTo": [
1340
+ "id"
1341
+ ],
1342
+ "onDelete": "cascade",
1343
+ "onUpdate": "no action"
1344
+ },
1345
+ "positions_person_id_people_id_fk": {
1346
+ "name": "positions_person_id_people_id_fk",
1347
+ "tableFrom": "positions",
1348
+ "tableTo": "people",
1349
+ "columnsFrom": [
1350
+ "person_id"
1351
+ ],
1352
+ "columnsTo": [
1353
+ "id"
1354
+ ],
1355
+ "onDelete": "cascade",
1356
+ "onUpdate": "no action"
1357
+ },
1358
+ "positions_company_id_companies_id_fk": {
1359
+ "name": "positions_company_id_companies_id_fk",
1360
+ "tableFrom": "positions",
1361
+ "tableTo": "companies",
1362
+ "columnsFrom": [
1363
+ "company_id"
1364
+ ],
1365
+ "columnsTo": [
1366
+ "id"
1367
+ ],
1368
+ "onDelete": "cascade",
1369
+ "onUpdate": "no action"
1370
+ }
1371
+ },
1372
+ "compositePrimaryKeys": {},
1373
+ "uniqueConstraints": {
1374
+ "positions_person_company_title_key": {
1375
+ "name": "positions_person_company_title_key",
1376
+ "nullsNotDistinct": false,
1377
+ "columns": [
1378
+ "person_id",
1379
+ "company_id",
1380
+ "title"
1381
+ ]
1382
+ }
1383
+ },
1384
+ "policies": {},
1385
+ "checkConstraints": {},
1386
+ "isRLSEnabled": false
1387
+ },
1388
+ "public.pipeline_stages": {
1389
+ "name": "pipeline_stages",
1390
+ "schema": "",
1391
+ "columns": {
1392
+ "id": {
1393
+ "name": "id",
1394
+ "type": "text",
1395
+ "primaryKey": true,
1396
+ "notNull": true
1397
+ },
1398
+ "workspace_id": {
1399
+ "name": "workspace_id",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": true
1403
+ },
1404
+ "kind": {
1405
+ "name": "kind",
1406
+ "type": "text",
1407
+ "primaryKey": false,
1408
+ "notNull": true
1409
+ },
1410
+ "slug": {
1411
+ "name": "slug",
1412
+ "type": "text",
1413
+ "primaryKey": false,
1414
+ "notNull": true
1415
+ },
1416
+ "label": {
1417
+ "name": "label",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": true
1421
+ },
1422
+ "open": {
1423
+ "name": "open",
1424
+ "type": "boolean",
1425
+ "primaryKey": false,
1426
+ "notNull": true,
1427
+ "default": true
1428
+ },
1429
+ "sort_order": {
1430
+ "name": "sort_order",
1431
+ "type": "integer",
1432
+ "primaryKey": false,
1433
+ "notNull": true
1434
+ },
1435
+ "created_at": {
1436
+ "name": "created_at",
1437
+ "type": "timestamp with time zone",
1438
+ "primaryKey": false,
1439
+ "notNull": true,
1440
+ "default": "now()"
1441
+ },
1442
+ "updated_at": {
1443
+ "name": "updated_at",
1444
+ "type": "timestamp with time zone",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "default": "now()"
1448
+ }
1449
+ },
1450
+ "indexes": {
1451
+ "pipeline_stages_workspace_kind_idx": {
1452
+ "name": "pipeline_stages_workspace_kind_idx",
1453
+ "columns": [
1454
+ {
1455
+ "expression": "workspace_id",
1456
+ "isExpression": false,
1457
+ "asc": true,
1458
+ "nulls": "last"
1459
+ },
1460
+ {
1461
+ "expression": "kind",
1462
+ "isExpression": false,
1463
+ "asc": true,
1464
+ "nulls": "last"
1465
+ }
1466
+ ],
1467
+ "isUnique": false,
1468
+ "concurrently": false,
1469
+ "method": "btree",
1470
+ "with": {}
1471
+ }
1472
+ },
1473
+ "foreignKeys": {
1474
+ "pipeline_stages_workspace_id_workspaces_id_fk": {
1475
+ "name": "pipeline_stages_workspace_id_workspaces_id_fk",
1476
+ "tableFrom": "pipeline_stages",
1477
+ "tableTo": "workspaces",
1478
+ "columnsFrom": [
1479
+ "workspace_id"
1480
+ ],
1481
+ "columnsTo": [
1482
+ "id"
1483
+ ],
1484
+ "onDelete": "cascade",
1485
+ "onUpdate": "no action"
1486
+ }
1487
+ },
1488
+ "compositePrimaryKeys": {},
1489
+ "uniqueConstraints": {
1490
+ "pipeline_stages_workspace_kind_slug_key": {
1491
+ "name": "pipeline_stages_workspace_kind_slug_key",
1492
+ "nullsNotDistinct": false,
1493
+ "columns": [
1494
+ "workspace_id",
1495
+ "kind",
1496
+ "slug"
1497
+ ]
1498
+ }
1499
+ },
1500
+ "policies": {},
1501
+ "checkConstraints": {
1502
+ "pipeline_stages_kind_check": {
1503
+ "name": "pipeline_stages_kind_check",
1504
+ "value": "\"pipeline_stages\".\"kind\" in ('deal', 'opportunity', 'raise', 'partnership')"
1505
+ }
1506
+ },
1507
+ "isRLSEnabled": false
1508
+ },
1509
+ "public.deal_people": {
1510
+ "name": "deal_people",
1511
+ "schema": "",
1512
+ "columns": {
1513
+ "deal_id": {
1514
+ "name": "deal_id",
1515
+ "type": "text",
1516
+ "primaryKey": false,
1517
+ "notNull": true
1518
+ },
1519
+ "person_id": {
1520
+ "name": "person_id",
1521
+ "type": "text",
1522
+ "primaryKey": false,
1523
+ "notNull": true
1524
+ }
1525
+ },
1526
+ "indexes": {},
1527
+ "foreignKeys": {
1528
+ "deal_people_deal_id_deals_id_fk": {
1529
+ "name": "deal_people_deal_id_deals_id_fk",
1530
+ "tableFrom": "deal_people",
1531
+ "tableTo": "deals",
1532
+ "columnsFrom": [
1533
+ "deal_id"
1534
+ ],
1535
+ "columnsTo": [
1536
+ "id"
1537
+ ],
1538
+ "onDelete": "cascade",
1539
+ "onUpdate": "no action"
1540
+ },
1541
+ "deal_people_person_id_people_id_fk": {
1542
+ "name": "deal_people_person_id_people_id_fk",
1543
+ "tableFrom": "deal_people",
1544
+ "tableTo": "people",
1545
+ "columnsFrom": [
1546
+ "person_id"
1547
+ ],
1548
+ "columnsTo": [
1549
+ "id"
1550
+ ],
1551
+ "onDelete": "restrict",
1552
+ "onUpdate": "no action"
1553
+ }
1554
+ },
1555
+ "compositePrimaryKeys": {
1556
+ "deal_people_deal_id_person_id_pk": {
1557
+ "name": "deal_people_deal_id_person_id_pk",
1558
+ "columns": [
1559
+ "deal_id",
1560
+ "person_id"
1561
+ ]
1562
+ }
1563
+ },
1564
+ "uniqueConstraints": {},
1565
+ "policies": {},
1566
+ "checkConstraints": {},
1567
+ "isRLSEnabled": false
1568
+ },
1569
+ "public.deals": {
1570
+ "name": "deals",
1571
+ "schema": "",
1572
+ "columns": {
1573
+ "id": {
1574
+ "name": "id",
1575
+ "type": "text",
1576
+ "primaryKey": true,
1577
+ "notNull": true
1578
+ },
1579
+ "workspace_id": {
1580
+ "name": "workspace_id",
1581
+ "type": "text",
1582
+ "primaryKey": false,
1583
+ "notNull": true
1584
+ },
1585
+ "name": {
1586
+ "name": "name",
1587
+ "type": "text",
1588
+ "primaryKey": false,
1589
+ "notNull": true
1590
+ },
1591
+ "company_id": {
1592
+ "name": "company_id",
1593
+ "type": "text",
1594
+ "primaryKey": false,
1595
+ "notNull": true
1596
+ },
1597
+ "stage_id": {
1598
+ "name": "stage_id",
1599
+ "type": "text",
1600
+ "primaryKey": false,
1601
+ "notNull": true
1602
+ },
1603
+ "value_cents": {
1604
+ "name": "value_cents",
1605
+ "type": "bigint",
1606
+ "primaryKey": false,
1607
+ "notNull": false
1608
+ },
1609
+ "currency": {
1610
+ "name": "currency",
1611
+ "type": "text",
1612
+ "primaryKey": false,
1613
+ "notNull": false
1614
+ },
1615
+ "owner_id": {
1616
+ "name": "owner_id",
1617
+ "type": "text",
1618
+ "primaryKey": false,
1619
+ "notNull": false
1620
+ },
1621
+ "expected_close": {
1622
+ "name": "expected_close",
1623
+ "type": "date",
1624
+ "primaryKey": false,
1625
+ "notNull": false
1626
+ },
1627
+ "competitors": {
1628
+ "name": "competitors",
1629
+ "type": "text[]",
1630
+ "primaryKey": false,
1631
+ "notNull": true,
1632
+ "default": "'{}'"
1633
+ },
1634
+ "risks": {
1635
+ "name": "risks",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "default": "''"
1640
+ },
1641
+ "why_win": {
1642
+ "name": "why_win",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "default": "''"
1647
+ },
1648
+ "summary": {
1649
+ "name": "summary",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "default": "''"
1654
+ },
1655
+ "tags": {
1656
+ "name": "tags",
1657
+ "type": "text[]",
1658
+ "primaryKey": false,
1659
+ "notNull": true,
1660
+ "default": "'{}'"
1661
+ },
1662
+ "external_id": {
1663
+ "name": "external_id",
1664
+ "type": "text",
1665
+ "primaryKey": false,
1666
+ "notNull": false
1667
+ },
1668
+ "created_at": {
1669
+ "name": "created_at",
1670
+ "type": "timestamp with time zone",
1671
+ "primaryKey": false,
1672
+ "notNull": true,
1673
+ "default": "now()"
1674
+ },
1675
+ "updated_at": {
1676
+ "name": "updated_at",
1677
+ "type": "timestamp with time zone",
1678
+ "primaryKey": false,
1679
+ "notNull": true,
1680
+ "default": "now()"
1681
+ }
1682
+ },
1683
+ "indexes": {
1684
+ "deals_workspace_idx": {
1685
+ "name": "deals_workspace_idx",
1686
+ "columns": [
1687
+ {
1688
+ "expression": "workspace_id",
1689
+ "isExpression": false,
1690
+ "asc": true,
1691
+ "nulls": "last"
1692
+ }
1693
+ ],
1694
+ "isUnique": false,
1695
+ "concurrently": false,
1696
+ "method": "btree",
1697
+ "with": {}
1698
+ },
1699
+ "deals_company_idx": {
1700
+ "name": "deals_company_idx",
1701
+ "columns": [
1702
+ {
1703
+ "expression": "company_id",
1704
+ "isExpression": false,
1705
+ "asc": true,
1706
+ "nulls": "last"
1707
+ }
1708
+ ],
1709
+ "isUnique": false,
1710
+ "concurrently": false,
1711
+ "method": "btree",
1712
+ "with": {}
1713
+ },
1714
+ "deals_stage_idx": {
1715
+ "name": "deals_stage_idx",
1716
+ "columns": [
1717
+ {
1718
+ "expression": "stage_id",
1719
+ "isExpression": false,
1720
+ "asc": true,
1721
+ "nulls": "last"
1722
+ }
1723
+ ],
1724
+ "isUnique": false,
1725
+ "concurrently": false,
1726
+ "method": "btree",
1727
+ "with": {}
1728
+ }
1729
+ },
1730
+ "foreignKeys": {
1731
+ "deals_workspace_id_workspaces_id_fk": {
1732
+ "name": "deals_workspace_id_workspaces_id_fk",
1733
+ "tableFrom": "deals",
1734
+ "tableTo": "workspaces",
1735
+ "columnsFrom": [
1736
+ "workspace_id"
1737
+ ],
1738
+ "columnsTo": [
1739
+ "id"
1740
+ ],
1741
+ "onDelete": "cascade",
1742
+ "onUpdate": "no action"
1743
+ },
1744
+ "deals_company_id_companies_id_fk": {
1745
+ "name": "deals_company_id_companies_id_fk",
1746
+ "tableFrom": "deals",
1747
+ "tableTo": "companies",
1748
+ "columnsFrom": [
1749
+ "company_id"
1750
+ ],
1751
+ "columnsTo": [
1752
+ "id"
1753
+ ],
1754
+ "onDelete": "restrict",
1755
+ "onUpdate": "no action"
1756
+ },
1757
+ "deals_stage_id_pipeline_stages_id_fk": {
1758
+ "name": "deals_stage_id_pipeline_stages_id_fk",
1759
+ "tableFrom": "deals",
1760
+ "tableTo": "pipeline_stages",
1761
+ "columnsFrom": [
1762
+ "stage_id"
1763
+ ],
1764
+ "columnsTo": [
1765
+ "id"
1766
+ ],
1767
+ "onDelete": "restrict",
1768
+ "onUpdate": "no action"
1769
+ },
1770
+ "deals_owner_id_workspace_members_id_fk": {
1771
+ "name": "deals_owner_id_workspace_members_id_fk",
1772
+ "tableFrom": "deals",
1773
+ "tableTo": "workspace_members",
1774
+ "columnsFrom": [
1775
+ "owner_id"
1776
+ ],
1777
+ "columnsTo": [
1778
+ "id"
1779
+ ],
1780
+ "onDelete": "restrict",
1781
+ "onUpdate": "no action"
1782
+ }
1783
+ },
1784
+ "compositePrimaryKeys": {},
1785
+ "uniqueConstraints": {},
1786
+ "policies": {},
1787
+ "checkConstraints": {},
1788
+ "isRLSEnabled": false
1789
+ },
1790
+ "public.opportunities": {
1791
+ "name": "opportunities",
1792
+ "schema": "",
1793
+ "columns": {
1794
+ "id": {
1795
+ "name": "id",
1796
+ "type": "text",
1797
+ "primaryKey": true,
1798
+ "notNull": true
1799
+ },
1800
+ "workspace_id": {
1801
+ "name": "workspace_id",
1802
+ "type": "text",
1803
+ "primaryKey": false,
1804
+ "notNull": true
1805
+ },
1806
+ "name": {
1807
+ "name": "name",
1808
+ "type": "text",
1809
+ "primaryKey": false,
1810
+ "notNull": true
1811
+ },
1812
+ "kind": {
1813
+ "name": "kind",
1814
+ "type": "text",
1815
+ "primaryKey": false,
1816
+ "notNull": true
1817
+ },
1818
+ "stage_id": {
1819
+ "name": "stage_id",
1820
+ "type": "text",
1821
+ "primaryKey": false,
1822
+ "notNull": true
1823
+ },
1824
+ "company_id": {
1825
+ "name": "company_id",
1826
+ "type": "text",
1827
+ "primaryKey": false,
1828
+ "notNull": false
1829
+ },
1830
+ "owner_id": {
1831
+ "name": "owner_id",
1832
+ "type": "text",
1833
+ "primaryKey": false,
1834
+ "notNull": false
1835
+ },
1836
+ "expected_close": {
1837
+ "name": "expected_close",
1838
+ "type": "date",
1839
+ "primaryKey": false,
1840
+ "notNull": false
1841
+ },
1842
+ "summary": {
1843
+ "name": "summary",
1844
+ "type": "text",
1845
+ "primaryKey": false,
1846
+ "notNull": true,
1847
+ "default": "''"
1848
+ },
1849
+ "tags": {
1850
+ "name": "tags",
1851
+ "type": "text[]",
1852
+ "primaryKey": false,
1853
+ "notNull": true,
1854
+ "default": "'{}'"
1855
+ },
1856
+ "created_at": {
1857
+ "name": "created_at",
1858
+ "type": "timestamp with time zone",
1859
+ "primaryKey": false,
1860
+ "notNull": true,
1861
+ "default": "now()"
1862
+ },
1863
+ "updated_at": {
1864
+ "name": "updated_at",
1865
+ "type": "timestamp with time zone",
1866
+ "primaryKey": false,
1867
+ "notNull": true,
1868
+ "default": "now()"
1869
+ }
1870
+ },
1871
+ "indexes": {
1872
+ "opportunities_workspace_idx": {
1873
+ "name": "opportunities_workspace_idx",
1874
+ "columns": [
1875
+ {
1876
+ "expression": "workspace_id",
1877
+ "isExpression": false,
1878
+ "asc": true,
1879
+ "nulls": "last"
1880
+ }
1881
+ ],
1882
+ "isUnique": false,
1883
+ "concurrently": false,
1884
+ "method": "btree",
1885
+ "with": {}
1886
+ },
1887
+ "opportunities_stage_idx": {
1888
+ "name": "opportunities_stage_idx",
1889
+ "columns": [
1890
+ {
1891
+ "expression": "stage_id",
1892
+ "isExpression": false,
1893
+ "asc": true,
1894
+ "nulls": "last"
1895
+ }
1896
+ ],
1897
+ "isUnique": false,
1898
+ "concurrently": false,
1899
+ "method": "btree",
1900
+ "with": {}
1901
+ }
1902
+ },
1903
+ "foreignKeys": {
1904
+ "opportunities_workspace_id_workspaces_id_fk": {
1905
+ "name": "opportunities_workspace_id_workspaces_id_fk",
1906
+ "tableFrom": "opportunities",
1907
+ "tableTo": "workspaces",
1908
+ "columnsFrom": [
1909
+ "workspace_id"
1910
+ ],
1911
+ "columnsTo": [
1912
+ "id"
1913
+ ],
1914
+ "onDelete": "cascade",
1915
+ "onUpdate": "no action"
1916
+ },
1917
+ "opportunities_stage_id_pipeline_stages_id_fk": {
1918
+ "name": "opportunities_stage_id_pipeline_stages_id_fk",
1919
+ "tableFrom": "opportunities",
1920
+ "tableTo": "pipeline_stages",
1921
+ "columnsFrom": [
1922
+ "stage_id"
1923
+ ],
1924
+ "columnsTo": [
1925
+ "id"
1926
+ ],
1927
+ "onDelete": "restrict",
1928
+ "onUpdate": "no action"
1929
+ },
1930
+ "opportunities_company_id_companies_id_fk": {
1931
+ "name": "opportunities_company_id_companies_id_fk",
1932
+ "tableFrom": "opportunities",
1933
+ "tableTo": "companies",
1934
+ "columnsFrom": [
1935
+ "company_id"
1936
+ ],
1937
+ "columnsTo": [
1938
+ "id"
1939
+ ],
1940
+ "onDelete": "restrict",
1941
+ "onUpdate": "no action"
1942
+ },
1943
+ "opportunities_owner_id_workspace_members_id_fk": {
1944
+ "name": "opportunities_owner_id_workspace_members_id_fk",
1945
+ "tableFrom": "opportunities",
1946
+ "tableTo": "workspace_members",
1947
+ "columnsFrom": [
1948
+ "owner_id"
1949
+ ],
1950
+ "columnsTo": [
1951
+ "id"
1952
+ ],
1953
+ "onDelete": "restrict",
1954
+ "onUpdate": "no action"
1955
+ }
1956
+ },
1957
+ "compositePrimaryKeys": {},
1958
+ "uniqueConstraints": {},
1959
+ "policies": {},
1960
+ "checkConstraints": {},
1961
+ "isRLSEnabled": false
1962
+ },
1963
+ "public.partnership_people": {
1964
+ "name": "partnership_people",
1965
+ "schema": "",
1966
+ "columns": {
1967
+ "partnership_id": {
1968
+ "name": "partnership_id",
1969
+ "type": "text",
1970
+ "primaryKey": false,
1971
+ "notNull": true
1972
+ },
1973
+ "person_id": {
1974
+ "name": "person_id",
1975
+ "type": "text",
1976
+ "primaryKey": false,
1977
+ "notNull": true
1978
+ }
1979
+ },
1980
+ "indexes": {},
1981
+ "foreignKeys": {
1982
+ "partnership_people_partnership_id_partnerships_id_fk": {
1983
+ "name": "partnership_people_partnership_id_partnerships_id_fk",
1984
+ "tableFrom": "partnership_people",
1985
+ "tableTo": "partnerships",
1986
+ "columnsFrom": [
1987
+ "partnership_id"
1988
+ ],
1989
+ "columnsTo": [
1990
+ "id"
1991
+ ],
1992
+ "onDelete": "cascade",
1993
+ "onUpdate": "no action"
1994
+ },
1995
+ "partnership_people_person_id_people_id_fk": {
1996
+ "name": "partnership_people_person_id_people_id_fk",
1997
+ "tableFrom": "partnership_people",
1998
+ "tableTo": "people",
1999
+ "columnsFrom": [
2000
+ "person_id"
2001
+ ],
2002
+ "columnsTo": [
2003
+ "id"
2004
+ ],
2005
+ "onDelete": "restrict",
2006
+ "onUpdate": "no action"
2007
+ }
2008
+ },
2009
+ "compositePrimaryKeys": {
2010
+ "partnership_people_partnership_id_person_id_pk": {
2011
+ "name": "partnership_people_partnership_id_person_id_pk",
2012
+ "columns": [
2013
+ "partnership_id",
2014
+ "person_id"
2015
+ ]
2016
+ }
2017
+ },
2018
+ "uniqueConstraints": {},
2019
+ "policies": {},
2020
+ "checkConstraints": {},
2021
+ "isRLSEnabled": false
2022
+ },
2023
+ "public.partnerships": {
2024
+ "name": "partnerships",
2025
+ "schema": "",
2026
+ "columns": {
2027
+ "id": {
2028
+ "name": "id",
2029
+ "type": "text",
2030
+ "primaryKey": true,
2031
+ "notNull": true
2032
+ },
2033
+ "workspace_id": {
2034
+ "name": "workspace_id",
2035
+ "type": "text",
2036
+ "primaryKey": false,
2037
+ "notNull": true
2038
+ },
2039
+ "name": {
2040
+ "name": "name",
2041
+ "type": "text",
2042
+ "primaryKey": false,
2043
+ "notNull": true
2044
+ },
2045
+ "company_id": {
2046
+ "name": "company_id",
2047
+ "type": "text",
2048
+ "primaryKey": false,
2049
+ "notNull": true
2050
+ },
2051
+ "stage_id": {
2052
+ "name": "stage_id",
2053
+ "type": "text",
2054
+ "primaryKey": false,
2055
+ "notNull": true
2056
+ },
2057
+ "kind": {
2058
+ "name": "kind",
2059
+ "type": "text",
2060
+ "primaryKey": false,
2061
+ "notNull": true
2062
+ },
2063
+ "next_touchpoint": {
2064
+ "name": "next_touchpoint",
2065
+ "type": "date",
2066
+ "primaryKey": false,
2067
+ "notNull": false
2068
+ },
2069
+ "owner_id": {
2070
+ "name": "owner_id",
2071
+ "type": "text",
2072
+ "primaryKey": false,
2073
+ "notNull": false
2074
+ },
2075
+ "goals": {
2076
+ "name": "goals",
2077
+ "type": "text",
2078
+ "primaryKey": false,
2079
+ "notNull": true,
2080
+ "default": "''"
2081
+ },
2082
+ "success_looks_like": {
2083
+ "name": "success_looks_like",
2084
+ "type": "text",
2085
+ "primaryKey": false,
2086
+ "notNull": true,
2087
+ "default": "''"
2088
+ },
2089
+ "summary": {
2090
+ "name": "summary",
2091
+ "type": "text",
2092
+ "primaryKey": false,
2093
+ "notNull": true,
2094
+ "default": "''"
2095
+ },
2096
+ "tags": {
2097
+ "name": "tags",
2098
+ "type": "text[]",
2099
+ "primaryKey": false,
2100
+ "notNull": true,
2101
+ "default": "'{}'"
2102
+ },
2103
+ "created_at": {
2104
+ "name": "created_at",
2105
+ "type": "timestamp with time zone",
2106
+ "primaryKey": false,
2107
+ "notNull": true,
2108
+ "default": "now()"
2109
+ },
2110
+ "updated_at": {
2111
+ "name": "updated_at",
2112
+ "type": "timestamp with time zone",
2113
+ "primaryKey": false,
2114
+ "notNull": true,
2115
+ "default": "now()"
2116
+ }
2117
+ },
2118
+ "indexes": {
2119
+ "partnerships_workspace_idx": {
2120
+ "name": "partnerships_workspace_idx",
2121
+ "columns": [
2122
+ {
2123
+ "expression": "workspace_id",
2124
+ "isExpression": false,
2125
+ "asc": true,
2126
+ "nulls": "last"
2127
+ }
2128
+ ],
2129
+ "isUnique": false,
2130
+ "concurrently": false,
2131
+ "method": "btree",
2132
+ "with": {}
2133
+ },
2134
+ "partnerships_company_idx": {
2135
+ "name": "partnerships_company_idx",
2136
+ "columns": [
2137
+ {
2138
+ "expression": "company_id",
2139
+ "isExpression": false,
2140
+ "asc": true,
2141
+ "nulls": "last"
2142
+ }
2143
+ ],
2144
+ "isUnique": false,
2145
+ "concurrently": false,
2146
+ "method": "btree",
2147
+ "with": {}
2148
+ },
2149
+ "partnerships_stage_idx": {
2150
+ "name": "partnerships_stage_idx",
2151
+ "columns": [
2152
+ {
2153
+ "expression": "stage_id",
2154
+ "isExpression": false,
2155
+ "asc": true,
2156
+ "nulls": "last"
2157
+ }
2158
+ ],
2159
+ "isUnique": false,
2160
+ "concurrently": false,
2161
+ "method": "btree",
2162
+ "with": {}
2163
+ }
2164
+ },
2165
+ "foreignKeys": {
2166
+ "partnerships_workspace_id_workspaces_id_fk": {
2167
+ "name": "partnerships_workspace_id_workspaces_id_fk",
2168
+ "tableFrom": "partnerships",
2169
+ "tableTo": "workspaces",
2170
+ "columnsFrom": [
2171
+ "workspace_id"
2172
+ ],
2173
+ "columnsTo": [
2174
+ "id"
2175
+ ],
2176
+ "onDelete": "cascade",
2177
+ "onUpdate": "no action"
2178
+ },
2179
+ "partnerships_company_id_companies_id_fk": {
2180
+ "name": "partnerships_company_id_companies_id_fk",
2181
+ "tableFrom": "partnerships",
2182
+ "tableTo": "companies",
2183
+ "columnsFrom": [
2184
+ "company_id"
2185
+ ],
2186
+ "columnsTo": [
2187
+ "id"
2188
+ ],
2189
+ "onDelete": "restrict",
2190
+ "onUpdate": "no action"
2191
+ },
2192
+ "partnerships_stage_id_pipeline_stages_id_fk": {
2193
+ "name": "partnerships_stage_id_pipeline_stages_id_fk",
2194
+ "tableFrom": "partnerships",
2195
+ "tableTo": "pipeline_stages",
2196
+ "columnsFrom": [
2197
+ "stage_id"
2198
+ ],
2199
+ "columnsTo": [
2200
+ "id"
2201
+ ],
2202
+ "onDelete": "restrict",
2203
+ "onUpdate": "no action"
2204
+ },
2205
+ "partnerships_owner_id_workspace_members_id_fk": {
2206
+ "name": "partnerships_owner_id_workspace_members_id_fk",
2207
+ "tableFrom": "partnerships",
2208
+ "tableTo": "workspace_members",
2209
+ "columnsFrom": [
2210
+ "owner_id"
2211
+ ],
2212
+ "columnsTo": [
2213
+ "id"
2214
+ ],
2215
+ "onDelete": "restrict",
2216
+ "onUpdate": "no action"
2217
+ }
2218
+ },
2219
+ "compositePrimaryKeys": {},
2220
+ "uniqueConstraints": {},
2221
+ "policies": {},
2222
+ "checkConstraints": {},
2223
+ "isRLSEnabled": false
2224
+ },
2225
+ "public.raise_people": {
2226
+ "name": "raise_people",
2227
+ "schema": "",
2228
+ "columns": {
2229
+ "raise_id": {
2230
+ "name": "raise_id",
2231
+ "type": "text",
2232
+ "primaryKey": false,
2233
+ "notNull": true
2234
+ },
2235
+ "person_id": {
2236
+ "name": "person_id",
2237
+ "type": "text",
2238
+ "primaryKey": false,
2239
+ "notNull": true
2240
+ }
2241
+ },
2242
+ "indexes": {},
2243
+ "foreignKeys": {
2244
+ "raise_people_raise_id_raises_id_fk": {
2245
+ "name": "raise_people_raise_id_raises_id_fk",
2246
+ "tableFrom": "raise_people",
2247
+ "tableTo": "raises",
2248
+ "columnsFrom": [
2249
+ "raise_id"
2250
+ ],
2251
+ "columnsTo": [
2252
+ "id"
2253
+ ],
2254
+ "onDelete": "cascade",
2255
+ "onUpdate": "no action"
2256
+ },
2257
+ "raise_people_person_id_people_id_fk": {
2258
+ "name": "raise_people_person_id_people_id_fk",
2259
+ "tableFrom": "raise_people",
2260
+ "tableTo": "people",
2261
+ "columnsFrom": [
2262
+ "person_id"
2263
+ ],
2264
+ "columnsTo": [
2265
+ "id"
2266
+ ],
2267
+ "onDelete": "restrict",
2268
+ "onUpdate": "no action"
2269
+ }
2270
+ },
2271
+ "compositePrimaryKeys": {
2272
+ "raise_people_raise_id_person_id_pk": {
2273
+ "name": "raise_people_raise_id_person_id_pk",
2274
+ "columns": [
2275
+ "raise_id",
2276
+ "person_id"
2277
+ ]
2278
+ }
2279
+ },
2280
+ "uniqueConstraints": {},
2281
+ "policies": {},
2282
+ "checkConstraints": {},
2283
+ "isRLSEnabled": false
2284
+ },
2285
+ "public.raises": {
2286
+ "name": "raises",
2287
+ "schema": "",
2288
+ "columns": {
2289
+ "id": {
2290
+ "name": "id",
2291
+ "type": "text",
2292
+ "primaryKey": true,
2293
+ "notNull": true
2294
+ },
2295
+ "workspace_id": {
2296
+ "name": "workspace_id",
2297
+ "type": "text",
2298
+ "primaryKey": false,
2299
+ "notNull": true
2300
+ },
2301
+ "name": {
2302
+ "name": "name",
2303
+ "type": "text",
2304
+ "primaryKey": false,
2305
+ "notNull": true
2306
+ },
2307
+ "company_id": {
2308
+ "name": "company_id",
2309
+ "type": "text",
2310
+ "primaryKey": false,
2311
+ "notNull": true
2312
+ },
2313
+ "stage_id": {
2314
+ "name": "stage_id",
2315
+ "type": "text",
2316
+ "primaryKey": false,
2317
+ "notNull": true
2318
+ },
2319
+ "check_size_cents": {
2320
+ "name": "check_size_cents",
2321
+ "type": "bigint",
2322
+ "primaryKey": false,
2323
+ "notNull": false
2324
+ },
2325
+ "currency": {
2326
+ "name": "currency",
2327
+ "type": "text",
2328
+ "primaryKey": false,
2329
+ "notNull": false
2330
+ },
2331
+ "thesis_fit": {
2332
+ "name": "thesis_fit",
2333
+ "type": "text",
2334
+ "primaryKey": false,
2335
+ "notNull": true,
2336
+ "default": "''"
2337
+ },
2338
+ "pass_reason": {
2339
+ "name": "pass_reason",
2340
+ "type": "text",
2341
+ "primaryKey": false,
2342
+ "notNull": false
2343
+ },
2344
+ "owner_id": {
2345
+ "name": "owner_id",
2346
+ "type": "text",
2347
+ "primaryKey": false,
2348
+ "notNull": false
2349
+ },
2350
+ "expected_close": {
2351
+ "name": "expected_close",
2352
+ "type": "date",
2353
+ "primaryKey": false,
2354
+ "notNull": false
2355
+ },
2356
+ "summary": {
2357
+ "name": "summary",
2358
+ "type": "text",
2359
+ "primaryKey": false,
2360
+ "notNull": true,
2361
+ "default": "''"
2362
+ },
2363
+ "tags": {
2364
+ "name": "tags",
2365
+ "type": "text[]",
2366
+ "primaryKey": false,
2367
+ "notNull": true,
2368
+ "default": "'{}'"
2369
+ },
2370
+ "created_at": {
2371
+ "name": "created_at",
2372
+ "type": "timestamp with time zone",
2373
+ "primaryKey": false,
2374
+ "notNull": true,
2375
+ "default": "now()"
2376
+ },
2377
+ "updated_at": {
2378
+ "name": "updated_at",
2379
+ "type": "timestamp with time zone",
2380
+ "primaryKey": false,
2381
+ "notNull": true,
2382
+ "default": "now()"
2383
+ }
2384
+ },
2385
+ "indexes": {
2386
+ "raises_workspace_idx": {
2387
+ "name": "raises_workspace_idx",
2388
+ "columns": [
2389
+ {
2390
+ "expression": "workspace_id",
2391
+ "isExpression": false,
2392
+ "asc": true,
2393
+ "nulls": "last"
2394
+ }
2395
+ ],
2396
+ "isUnique": false,
2397
+ "concurrently": false,
2398
+ "method": "btree",
2399
+ "with": {}
2400
+ },
2401
+ "raises_company_idx": {
2402
+ "name": "raises_company_idx",
2403
+ "columns": [
2404
+ {
2405
+ "expression": "company_id",
2406
+ "isExpression": false,
2407
+ "asc": true,
2408
+ "nulls": "last"
2409
+ }
2410
+ ],
2411
+ "isUnique": false,
2412
+ "concurrently": false,
2413
+ "method": "btree",
2414
+ "with": {}
2415
+ },
2416
+ "raises_stage_idx": {
2417
+ "name": "raises_stage_idx",
2418
+ "columns": [
2419
+ {
2420
+ "expression": "stage_id",
2421
+ "isExpression": false,
2422
+ "asc": true,
2423
+ "nulls": "last"
2424
+ }
2425
+ ],
2426
+ "isUnique": false,
2427
+ "concurrently": false,
2428
+ "method": "btree",
2429
+ "with": {}
2430
+ }
2431
+ },
2432
+ "foreignKeys": {
2433
+ "raises_workspace_id_workspaces_id_fk": {
2434
+ "name": "raises_workspace_id_workspaces_id_fk",
2435
+ "tableFrom": "raises",
2436
+ "tableTo": "workspaces",
2437
+ "columnsFrom": [
2438
+ "workspace_id"
2439
+ ],
2440
+ "columnsTo": [
2441
+ "id"
2442
+ ],
2443
+ "onDelete": "cascade",
2444
+ "onUpdate": "no action"
2445
+ },
2446
+ "raises_company_id_companies_id_fk": {
2447
+ "name": "raises_company_id_companies_id_fk",
2448
+ "tableFrom": "raises",
2449
+ "tableTo": "companies",
2450
+ "columnsFrom": [
2451
+ "company_id"
2452
+ ],
2453
+ "columnsTo": [
2454
+ "id"
2455
+ ],
2456
+ "onDelete": "restrict",
2457
+ "onUpdate": "no action"
2458
+ },
2459
+ "raises_stage_id_pipeline_stages_id_fk": {
2460
+ "name": "raises_stage_id_pipeline_stages_id_fk",
2461
+ "tableFrom": "raises",
2462
+ "tableTo": "pipeline_stages",
2463
+ "columnsFrom": [
2464
+ "stage_id"
2465
+ ],
2466
+ "columnsTo": [
2467
+ "id"
2468
+ ],
2469
+ "onDelete": "restrict",
2470
+ "onUpdate": "no action"
2471
+ },
2472
+ "raises_owner_id_workspace_members_id_fk": {
2473
+ "name": "raises_owner_id_workspace_members_id_fk",
2474
+ "tableFrom": "raises",
2475
+ "tableTo": "workspace_members",
2476
+ "columnsFrom": [
2477
+ "owner_id"
2478
+ ],
2479
+ "columnsTo": [
2480
+ "id"
2481
+ ],
2482
+ "onDelete": "restrict",
2483
+ "onUpdate": "no action"
2484
+ }
2485
+ },
2486
+ "compositePrimaryKeys": {},
2487
+ "uniqueConstraints": {},
2488
+ "policies": {},
2489
+ "checkConstraints": {},
2490
+ "isRLSEnabled": false
2491
+ },
2492
+ "public.candidates": {
2493
+ "name": "candidates",
2494
+ "schema": "",
2495
+ "columns": {
2496
+ "id": {
2497
+ "name": "id",
2498
+ "type": "text",
2499
+ "primaryKey": true,
2500
+ "notNull": true
2501
+ },
2502
+ "workspace_id": {
2503
+ "name": "workspace_id",
2504
+ "type": "text",
2505
+ "primaryKey": false,
2506
+ "notNull": true
2507
+ },
2508
+ "role_id": {
2509
+ "name": "role_id",
2510
+ "type": "text",
2511
+ "primaryKey": false,
2512
+ "notNull": true
2513
+ },
2514
+ "person_id": {
2515
+ "name": "person_id",
2516
+ "type": "text",
2517
+ "primaryKey": false,
2518
+ "notNull": true
2519
+ },
2520
+ "status": {
2521
+ "name": "status",
2522
+ "type": "text",
2523
+ "primaryKey": false,
2524
+ "notNull": true
2525
+ },
2526
+ "interview_stage": {
2527
+ "name": "interview_stage",
2528
+ "type": "text",
2529
+ "primaryKey": false,
2530
+ "notNull": false
2531
+ },
2532
+ "referrer_person_id": {
2533
+ "name": "referrer_person_id",
2534
+ "type": "text",
2535
+ "primaryKey": false,
2536
+ "notNull": false
2537
+ },
2538
+ "created_at": {
2539
+ "name": "created_at",
2540
+ "type": "timestamp with time zone",
2541
+ "primaryKey": false,
2542
+ "notNull": true,
2543
+ "default": "now()"
2544
+ },
2545
+ "updated_at": {
2546
+ "name": "updated_at",
2547
+ "type": "timestamp with time zone",
2548
+ "primaryKey": false,
2549
+ "notNull": true,
2550
+ "default": "now()"
2551
+ }
2552
+ },
2553
+ "indexes": {
2554
+ "candidates_workspace_idx": {
2555
+ "name": "candidates_workspace_idx",
2556
+ "columns": [
2557
+ {
2558
+ "expression": "workspace_id",
2559
+ "isExpression": false,
2560
+ "asc": true,
2561
+ "nulls": "last"
2562
+ }
2563
+ ],
2564
+ "isUnique": false,
2565
+ "concurrently": false,
2566
+ "method": "btree",
2567
+ "with": {}
2568
+ }
2569
+ },
2570
+ "foreignKeys": {
2571
+ "candidates_workspace_id_workspaces_id_fk": {
2572
+ "name": "candidates_workspace_id_workspaces_id_fk",
2573
+ "tableFrom": "candidates",
2574
+ "tableTo": "workspaces",
2575
+ "columnsFrom": [
2576
+ "workspace_id"
2577
+ ],
2578
+ "columnsTo": [
2579
+ "id"
2580
+ ],
2581
+ "onDelete": "cascade",
2582
+ "onUpdate": "no action"
2583
+ },
2584
+ "candidates_role_id_roles_id_fk": {
2585
+ "name": "candidates_role_id_roles_id_fk",
2586
+ "tableFrom": "candidates",
2587
+ "tableTo": "roles",
2588
+ "columnsFrom": [
2589
+ "role_id"
2590
+ ],
2591
+ "columnsTo": [
2592
+ "id"
2593
+ ],
2594
+ "onDelete": "cascade",
2595
+ "onUpdate": "no action"
2596
+ },
2597
+ "candidates_person_id_people_id_fk": {
2598
+ "name": "candidates_person_id_people_id_fk",
2599
+ "tableFrom": "candidates",
2600
+ "tableTo": "people",
2601
+ "columnsFrom": [
2602
+ "person_id"
2603
+ ],
2604
+ "columnsTo": [
2605
+ "id"
2606
+ ],
2607
+ "onDelete": "cascade",
2608
+ "onUpdate": "no action"
2609
+ },
2610
+ "candidates_referrer_person_id_people_id_fk": {
2611
+ "name": "candidates_referrer_person_id_people_id_fk",
2612
+ "tableFrom": "candidates",
2613
+ "tableTo": "people",
2614
+ "columnsFrom": [
2615
+ "referrer_person_id"
2616
+ ],
2617
+ "columnsTo": [
2618
+ "id"
2619
+ ],
2620
+ "onDelete": "restrict",
2621
+ "onUpdate": "no action"
2622
+ }
2623
+ },
2624
+ "compositePrimaryKeys": {},
2625
+ "uniqueConstraints": {
2626
+ "candidates_role_person_key": {
2627
+ "name": "candidates_role_person_key",
2628
+ "nullsNotDistinct": false,
2629
+ "columns": [
2630
+ "role_id",
2631
+ "person_id"
2632
+ ]
2633
+ }
2634
+ },
2635
+ "policies": {},
2636
+ "checkConstraints": {
2637
+ "candidates_status_check": {
2638
+ "name": "candidates_status_check",
2639
+ "value": "\"candidates\".\"status\" in ('in_process', 'nurture', 'hired', 'passed', 'withdrawn')"
2640
+ },
2641
+ "candidates_interview_stage_check": {
2642
+ "name": "candidates_interview_stage_check",
2643
+ "value": "\"candidates\".\"interview_stage\" is null or \"candidates\".\"interview_stage\" in ('sourced', 'screen', 'interview', 'offer')"
2644
+ }
2645
+ },
2646
+ "isRLSEnabled": false
2647
+ },
2648
+ "public.roles": {
2649
+ "name": "roles",
2650
+ "schema": "",
2651
+ "columns": {
2652
+ "id": {
2653
+ "name": "id",
2654
+ "type": "text",
2655
+ "primaryKey": true,
2656
+ "notNull": true
2657
+ },
2658
+ "workspace_id": {
2659
+ "name": "workspace_id",
2660
+ "type": "text",
2661
+ "primaryKey": false,
2662
+ "notNull": true
2663
+ },
2664
+ "title": {
2665
+ "name": "title",
2666
+ "type": "text",
2667
+ "primaryKey": false,
2668
+ "notNull": true
2669
+ },
2670
+ "status": {
2671
+ "name": "status",
2672
+ "type": "text",
2673
+ "primaryKey": false,
2674
+ "notNull": true
2675
+ },
2676
+ "created_at": {
2677
+ "name": "created_at",
2678
+ "type": "timestamp with time zone",
2679
+ "primaryKey": false,
2680
+ "notNull": true,
2681
+ "default": "now()"
2682
+ },
2683
+ "updated_at": {
2684
+ "name": "updated_at",
2685
+ "type": "timestamp with time zone",
2686
+ "primaryKey": false,
2687
+ "notNull": true,
2688
+ "default": "now()"
2689
+ }
2690
+ },
2691
+ "indexes": {
2692
+ "roles_workspace_idx": {
2693
+ "name": "roles_workspace_idx",
2694
+ "columns": [
2695
+ {
2696
+ "expression": "workspace_id",
2697
+ "isExpression": false,
2698
+ "asc": true,
2699
+ "nulls": "last"
2700
+ }
2701
+ ],
2702
+ "isUnique": false,
2703
+ "concurrently": false,
2704
+ "method": "btree",
2705
+ "with": {}
2706
+ }
2707
+ },
2708
+ "foreignKeys": {
2709
+ "roles_workspace_id_workspaces_id_fk": {
2710
+ "name": "roles_workspace_id_workspaces_id_fk",
2711
+ "tableFrom": "roles",
2712
+ "tableTo": "workspaces",
2713
+ "columnsFrom": [
2714
+ "workspace_id"
2715
+ ],
2716
+ "columnsTo": [
2717
+ "id"
2718
+ ],
2719
+ "onDelete": "cascade",
2720
+ "onUpdate": "no action"
2721
+ }
2722
+ },
2723
+ "compositePrimaryKeys": {},
2724
+ "uniqueConstraints": {},
2725
+ "policies": {},
2726
+ "checkConstraints": {
2727
+ "roles_status_check": {
2728
+ "name": "roles_status_check",
2729
+ "value": "\"roles\".\"status\" in ('open', 'closed')"
2730
+ }
2731
+ },
2732
+ "isRLSEnabled": false
2733
+ },
2734
+ "public.plan_items": {
2735
+ "name": "plan_items",
2736
+ "schema": "",
2737
+ "columns": {
2738
+ "id": {
2739
+ "name": "id",
2740
+ "type": "text",
2741
+ "primaryKey": true,
2742
+ "notNull": true
2743
+ },
2744
+ "workspace_id": {
2745
+ "name": "workspace_id",
2746
+ "type": "text",
2747
+ "primaryKey": false,
2748
+ "notNull": true
2749
+ },
2750
+ "target_type": {
2751
+ "name": "target_type",
2752
+ "type": "text",
2753
+ "primaryKey": false,
2754
+ "notNull": true
2755
+ },
2756
+ "target_id": {
2757
+ "name": "target_id",
2758
+ "type": "text",
2759
+ "primaryKey": false,
2760
+ "notNull": true
2761
+ },
2762
+ "date": {
2763
+ "name": "date",
2764
+ "type": "date",
2765
+ "primaryKey": false,
2766
+ "notNull": true
2767
+ },
2768
+ "title": {
2769
+ "name": "title",
2770
+ "type": "text",
2771
+ "primaryKey": false,
2772
+ "notNull": true
2773
+ },
2774
+ "owner_id": {
2775
+ "name": "owner_id",
2776
+ "type": "text",
2777
+ "primaryKey": false,
2778
+ "notNull": false
2779
+ },
2780
+ "status": {
2781
+ "name": "status",
2782
+ "type": "text",
2783
+ "primaryKey": false,
2784
+ "notNull": true,
2785
+ "default": "'todo'"
2786
+ },
2787
+ "created_at": {
2788
+ "name": "created_at",
2789
+ "type": "timestamp with time zone",
2790
+ "primaryKey": false,
2791
+ "notNull": true,
2792
+ "default": "now()"
2793
+ },
2794
+ "updated_at": {
2795
+ "name": "updated_at",
2796
+ "type": "timestamp with time zone",
2797
+ "primaryKey": false,
2798
+ "notNull": true,
2799
+ "default": "now()"
2800
+ }
2801
+ },
2802
+ "indexes": {
2803
+ "plan_items_target_idx": {
2804
+ "name": "plan_items_target_idx",
2805
+ "columns": [
2806
+ {
2807
+ "expression": "workspace_id",
2808
+ "isExpression": false,
2809
+ "asc": true,
2810
+ "nulls": "last"
2811
+ },
2812
+ {
2813
+ "expression": "target_type",
2814
+ "isExpression": false,
2815
+ "asc": true,
2816
+ "nulls": "last"
2817
+ },
2818
+ {
2819
+ "expression": "target_id",
2820
+ "isExpression": false,
2821
+ "asc": true,
2822
+ "nulls": "last"
2823
+ }
2824
+ ],
2825
+ "isUnique": false,
2826
+ "concurrently": false,
2827
+ "method": "btree",
2828
+ "with": {}
2829
+ },
2830
+ "plan_items_date_idx": {
2831
+ "name": "plan_items_date_idx",
2832
+ "columns": [
2833
+ {
2834
+ "expression": "workspace_id",
2835
+ "isExpression": false,
2836
+ "asc": true,
2837
+ "nulls": "last"
2838
+ },
2839
+ {
2840
+ "expression": "date",
2841
+ "isExpression": false,
2842
+ "asc": true,
2843
+ "nulls": "last"
2844
+ }
2845
+ ],
2846
+ "isUnique": false,
2847
+ "concurrently": false,
2848
+ "method": "btree",
2849
+ "with": {}
2850
+ }
2851
+ },
2852
+ "foreignKeys": {
2853
+ "plan_items_workspace_id_workspaces_id_fk": {
2854
+ "name": "plan_items_workspace_id_workspaces_id_fk",
2855
+ "tableFrom": "plan_items",
2856
+ "tableTo": "workspaces",
2857
+ "columnsFrom": [
2858
+ "workspace_id"
2859
+ ],
2860
+ "columnsTo": [
2861
+ "id"
2862
+ ],
2863
+ "onDelete": "cascade",
2864
+ "onUpdate": "no action"
2865
+ },
2866
+ "plan_items_owner_id_workspace_members_id_fk": {
2867
+ "name": "plan_items_owner_id_workspace_members_id_fk",
2868
+ "tableFrom": "plan_items",
2869
+ "tableTo": "workspace_members",
2870
+ "columnsFrom": [
2871
+ "owner_id"
2872
+ ],
2873
+ "columnsTo": [
2874
+ "id"
2875
+ ],
2876
+ "onDelete": "restrict",
2877
+ "onUpdate": "no action"
2878
+ }
2879
+ },
2880
+ "compositePrimaryKeys": {},
2881
+ "uniqueConstraints": {},
2882
+ "policies": {},
2883
+ "checkConstraints": {
2884
+ "plan_items_target_type_check": {
2885
+ "name": "plan_items_target_type_check",
2886
+ "value": "\"plan_items\".\"target_type\" in ('deal', 'opportunity', 'raise', 'partnership')"
2887
+ },
2888
+ "plan_items_status_check": {
2889
+ "name": "plan_items_status_check",
2890
+ "value": "\"plan_items\".\"status\" in ('todo', 'in_progress', 'done')"
2891
+ }
2892
+ },
2893
+ "isRLSEnabled": false
2894
+ },
2895
+ "public.decisions": {
2896
+ "name": "decisions",
2897
+ "schema": "",
2898
+ "columns": {
2899
+ "id": {
2900
+ "name": "id",
2901
+ "type": "text",
2902
+ "primaryKey": true,
2903
+ "notNull": true
2904
+ },
2905
+ "workspace_id": {
2906
+ "name": "workspace_id",
2907
+ "type": "text",
2908
+ "primaryKey": false,
2909
+ "notNull": true
2910
+ },
2911
+ "target_type": {
2912
+ "name": "target_type",
2913
+ "type": "text",
2914
+ "primaryKey": false,
2915
+ "notNull": true
2916
+ },
2917
+ "target_id": {
2918
+ "name": "target_id",
2919
+ "type": "text",
2920
+ "primaryKey": false,
2921
+ "notNull": true
2922
+ },
2923
+ "body": {
2924
+ "name": "body",
2925
+ "type": "text",
2926
+ "primaryKey": false,
2927
+ "notNull": true
2928
+ },
2929
+ "rationale": {
2930
+ "name": "rationale",
2931
+ "type": "text",
2932
+ "primaryKey": false,
2933
+ "notNull": false
2934
+ },
2935
+ "decided_at": {
2936
+ "name": "decided_at",
2937
+ "type": "timestamp with time zone",
2938
+ "primaryKey": false,
2939
+ "notNull": true,
2940
+ "default": "now()"
2941
+ },
2942
+ "owner_id": {
2943
+ "name": "owner_id",
2944
+ "type": "text",
2945
+ "primaryKey": false,
2946
+ "notNull": false
2947
+ },
2948
+ "due_at": {
2949
+ "name": "due_at",
2950
+ "type": "timestamp with time zone",
2951
+ "primaryKey": false,
2952
+ "notNull": false
2953
+ },
2954
+ "created_at": {
2955
+ "name": "created_at",
2956
+ "type": "timestamp with time zone",
2957
+ "primaryKey": false,
2958
+ "notNull": true,
2959
+ "default": "now()"
2960
+ },
2961
+ "updated_at": {
2962
+ "name": "updated_at",
2963
+ "type": "timestamp with time zone",
2964
+ "primaryKey": false,
2965
+ "notNull": true,
2966
+ "default": "now()"
2967
+ }
2968
+ },
2969
+ "indexes": {
2970
+ "decisions_target_idx": {
2971
+ "name": "decisions_target_idx",
2972
+ "columns": [
2973
+ {
2974
+ "expression": "workspace_id",
2975
+ "isExpression": false,
2976
+ "asc": true,
2977
+ "nulls": "last"
2978
+ },
2979
+ {
2980
+ "expression": "target_type",
2981
+ "isExpression": false,
2982
+ "asc": true,
2983
+ "nulls": "last"
2984
+ },
2985
+ {
2986
+ "expression": "target_id",
2987
+ "isExpression": false,
2988
+ "asc": true,
2989
+ "nulls": "last"
2990
+ }
2991
+ ],
2992
+ "isUnique": false,
2993
+ "concurrently": false,
2994
+ "method": "btree",
2995
+ "with": {}
2996
+ }
2997
+ },
2998
+ "foreignKeys": {
2999
+ "decisions_workspace_id_workspaces_id_fk": {
3000
+ "name": "decisions_workspace_id_workspaces_id_fk",
3001
+ "tableFrom": "decisions",
3002
+ "tableTo": "workspaces",
3003
+ "columnsFrom": [
3004
+ "workspace_id"
3005
+ ],
3006
+ "columnsTo": [
3007
+ "id"
3008
+ ],
3009
+ "onDelete": "cascade",
3010
+ "onUpdate": "no action"
3011
+ },
3012
+ "decisions_owner_id_workspace_members_id_fk": {
3013
+ "name": "decisions_owner_id_workspace_members_id_fk",
3014
+ "tableFrom": "decisions",
3015
+ "tableTo": "workspace_members",
3016
+ "columnsFrom": [
3017
+ "owner_id"
3018
+ ],
3019
+ "columnsTo": [
3020
+ "id"
3021
+ ],
3022
+ "onDelete": "restrict",
3023
+ "onUpdate": "no action"
3024
+ }
3025
+ },
3026
+ "compositePrimaryKeys": {},
3027
+ "uniqueConstraints": {},
3028
+ "policies": {},
3029
+ "checkConstraints": {
3030
+ "decisions_target_type_check": {
3031
+ "name": "decisions_target_type_check",
3032
+ "value": "\"decisions\".\"target_type\" in ('person', 'company', 'deal', 'opportunity', 'partnership', 'raise', 'candidate')"
3033
+ }
3034
+ },
3035
+ "isRLSEnabled": false
3036
+ },
3037
+ "public.notes": {
3038
+ "name": "notes",
3039
+ "schema": "",
3040
+ "columns": {
3041
+ "id": {
3042
+ "name": "id",
3043
+ "type": "text",
3044
+ "primaryKey": true,
3045
+ "notNull": true
3046
+ },
3047
+ "workspace_id": {
3048
+ "name": "workspace_id",
3049
+ "type": "text",
3050
+ "primaryKey": false,
3051
+ "notNull": true
3052
+ },
3053
+ "target_type": {
3054
+ "name": "target_type",
3055
+ "type": "text",
3056
+ "primaryKey": false,
3057
+ "notNull": true
3058
+ },
3059
+ "target_id": {
3060
+ "name": "target_id",
3061
+ "type": "text",
3062
+ "primaryKey": false,
3063
+ "notNull": true
3064
+ },
3065
+ "body": {
3066
+ "name": "body",
3067
+ "type": "text",
3068
+ "primaryKey": false,
3069
+ "notNull": true
3070
+ },
3071
+ "author_id": {
3072
+ "name": "author_id",
3073
+ "type": "text",
3074
+ "primaryKey": false,
3075
+ "notNull": false
3076
+ },
3077
+ "pinned": {
3078
+ "name": "pinned",
3079
+ "type": "boolean",
3080
+ "primaryKey": false,
3081
+ "notNull": true,
3082
+ "default": false
3083
+ },
3084
+ "created_at": {
3085
+ "name": "created_at",
3086
+ "type": "timestamp with time zone",
3087
+ "primaryKey": false,
3088
+ "notNull": true,
3089
+ "default": "now()"
3090
+ },
3091
+ "updated_at": {
3092
+ "name": "updated_at",
3093
+ "type": "timestamp with time zone",
3094
+ "primaryKey": false,
3095
+ "notNull": true,
3096
+ "default": "now()"
3097
+ }
3098
+ },
3099
+ "indexes": {
3100
+ "notes_target_idx": {
3101
+ "name": "notes_target_idx",
3102
+ "columns": [
3103
+ {
3104
+ "expression": "workspace_id",
3105
+ "isExpression": false,
3106
+ "asc": true,
3107
+ "nulls": "last"
3108
+ },
3109
+ {
3110
+ "expression": "target_type",
3111
+ "isExpression": false,
3112
+ "asc": true,
3113
+ "nulls": "last"
3114
+ },
3115
+ {
3116
+ "expression": "target_id",
3117
+ "isExpression": false,
3118
+ "asc": true,
3119
+ "nulls": "last"
3120
+ }
3121
+ ],
3122
+ "isUnique": false,
3123
+ "concurrently": false,
3124
+ "method": "btree",
3125
+ "with": {}
3126
+ }
3127
+ },
3128
+ "foreignKeys": {
3129
+ "notes_workspace_id_workspaces_id_fk": {
3130
+ "name": "notes_workspace_id_workspaces_id_fk",
3131
+ "tableFrom": "notes",
3132
+ "tableTo": "workspaces",
3133
+ "columnsFrom": [
3134
+ "workspace_id"
3135
+ ],
3136
+ "columnsTo": [
3137
+ "id"
3138
+ ],
3139
+ "onDelete": "cascade",
3140
+ "onUpdate": "no action"
3141
+ },
3142
+ "notes_author_id_workspace_members_id_fk": {
3143
+ "name": "notes_author_id_workspace_members_id_fk",
3144
+ "tableFrom": "notes",
3145
+ "tableTo": "workspace_members",
3146
+ "columnsFrom": [
3147
+ "author_id"
3148
+ ],
3149
+ "columnsTo": [
3150
+ "id"
3151
+ ],
3152
+ "onDelete": "restrict",
3153
+ "onUpdate": "no action"
3154
+ }
3155
+ },
3156
+ "compositePrimaryKeys": {},
3157
+ "uniqueConstraints": {},
3158
+ "policies": {},
3159
+ "checkConstraints": {
3160
+ "notes_target_type_check": {
3161
+ "name": "notes_target_type_check",
3162
+ "value": "\"notes\".\"target_type\" in ('person', 'company', 'deal', 'opportunity', 'partnership', 'raise', 'candidate')"
3163
+ }
3164
+ },
3165
+ "isRLSEnabled": false
3166
+ },
3167
+ "public.activities": {
3168
+ "name": "activities",
3169
+ "schema": "",
3170
+ "columns": {
3171
+ "id": {
3172
+ "name": "id",
3173
+ "type": "text",
3174
+ "primaryKey": true,
3175
+ "notNull": true
3176
+ },
3177
+ "workspace_id": {
3178
+ "name": "workspace_id",
3179
+ "type": "text",
3180
+ "primaryKey": false,
3181
+ "notNull": true
3182
+ },
3183
+ "target_type": {
3184
+ "name": "target_type",
3185
+ "type": "text",
3186
+ "primaryKey": false,
3187
+ "notNull": true
3188
+ },
3189
+ "target_id": {
3190
+ "name": "target_id",
3191
+ "type": "text",
3192
+ "primaryKey": false,
3193
+ "notNull": true
3194
+ },
3195
+ "kind": {
3196
+ "name": "kind",
3197
+ "type": "text",
3198
+ "primaryKey": false,
3199
+ "notNull": true
3200
+ },
3201
+ "actor_member_id": {
3202
+ "name": "actor_member_id",
3203
+ "type": "text",
3204
+ "primaryKey": false,
3205
+ "notNull": false
3206
+ },
3207
+ "actor_label": {
3208
+ "name": "actor_label",
3209
+ "type": "text",
3210
+ "primaryKey": false,
3211
+ "notNull": false
3212
+ },
3213
+ "action": {
3214
+ "name": "action",
3215
+ "type": "text",
3216
+ "primaryKey": false,
3217
+ "notNull": true
3218
+ },
3219
+ "detail": {
3220
+ "name": "detail",
3221
+ "type": "text",
3222
+ "primaryKey": false,
3223
+ "notNull": false
3224
+ },
3225
+ "created_at": {
3226
+ "name": "created_at",
3227
+ "type": "timestamp with time zone",
3228
+ "primaryKey": false,
3229
+ "notNull": true,
3230
+ "default": "now()"
3231
+ }
3232
+ },
3233
+ "indexes": {
3234
+ "activities_target_idx": {
3235
+ "name": "activities_target_idx",
3236
+ "columns": [
3237
+ {
3238
+ "expression": "workspace_id",
3239
+ "isExpression": false,
3240
+ "asc": true,
3241
+ "nulls": "last"
3242
+ },
3243
+ {
3244
+ "expression": "target_type",
3245
+ "isExpression": false,
3246
+ "asc": true,
3247
+ "nulls": "last"
3248
+ },
3249
+ {
3250
+ "expression": "target_id",
3251
+ "isExpression": false,
3252
+ "asc": true,
3253
+ "nulls": "last"
3254
+ }
3255
+ ],
3256
+ "isUnique": false,
3257
+ "concurrently": false,
3258
+ "method": "btree",
3259
+ "with": {}
3260
+ }
3261
+ },
3262
+ "foreignKeys": {
3263
+ "activities_workspace_id_workspaces_id_fk": {
3264
+ "name": "activities_workspace_id_workspaces_id_fk",
3265
+ "tableFrom": "activities",
3266
+ "tableTo": "workspaces",
3267
+ "columnsFrom": [
3268
+ "workspace_id"
3269
+ ],
3270
+ "columnsTo": [
3271
+ "id"
3272
+ ],
3273
+ "onDelete": "cascade",
3274
+ "onUpdate": "no action"
3275
+ },
3276
+ "activities_actor_member_id_workspace_members_id_fk": {
3277
+ "name": "activities_actor_member_id_workspace_members_id_fk",
3278
+ "tableFrom": "activities",
3279
+ "tableTo": "workspace_members",
3280
+ "columnsFrom": [
3281
+ "actor_member_id"
3282
+ ],
3283
+ "columnsTo": [
3284
+ "id"
3285
+ ],
3286
+ "onDelete": "set null",
3287
+ "onUpdate": "no action"
3288
+ }
3289
+ },
3290
+ "compositePrimaryKeys": {},
3291
+ "uniqueConstraints": {},
3292
+ "policies": {},
3293
+ "checkConstraints": {
3294
+ "activities_target_type_check": {
3295
+ "name": "activities_target_type_check",
3296
+ "value": "\"activities\".\"target_type\" in ('person', 'company', 'deal', 'opportunity', 'partnership', 'raise', 'candidate')"
3297
+ },
3298
+ "activities_kind_check": {
3299
+ "name": "activities_kind_check",
3300
+ "value": "\"activities\".\"kind\" in ('created', 'updated', 'stage_changed', 'note_added', 'email', 'call', 'meeting', 'linked', 'unlinked')"
3301
+ }
3302
+ },
3303
+ "isRLSEnabled": false
3304
+ },
3305
+ "public.handbook_pages": {
3306
+ "name": "handbook_pages",
3307
+ "schema": "",
3308
+ "columns": {
3309
+ "id": {
3310
+ "name": "id",
3311
+ "type": "text",
3312
+ "primaryKey": true,
3313
+ "notNull": true
3314
+ },
3315
+ "workspace_id": {
3316
+ "name": "workspace_id",
3317
+ "type": "text",
3318
+ "primaryKey": false,
3319
+ "notNull": true
3320
+ },
3321
+ "title": {
3322
+ "name": "title",
3323
+ "type": "text",
3324
+ "primaryKey": false,
3325
+ "notNull": true
3326
+ },
3327
+ "slug": {
3328
+ "name": "slug",
3329
+ "type": "text",
3330
+ "primaryKey": false,
3331
+ "notNull": true
3332
+ },
3333
+ "parent_id": {
3334
+ "name": "parent_id",
3335
+ "type": "text",
3336
+ "primaryKey": false,
3337
+ "notNull": false
3338
+ },
3339
+ "sort_order": {
3340
+ "name": "sort_order",
3341
+ "type": "integer",
3342
+ "primaryKey": false,
3343
+ "notNull": true
3344
+ },
3345
+ "body": {
3346
+ "name": "body",
3347
+ "type": "text",
3348
+ "primaryKey": false,
3349
+ "notNull": true,
3350
+ "default": "''"
3351
+ },
3352
+ "updated_by": {
3353
+ "name": "updated_by",
3354
+ "type": "text",
3355
+ "primaryKey": false,
3356
+ "notNull": false
3357
+ },
3358
+ "created_at": {
3359
+ "name": "created_at",
3360
+ "type": "timestamp with time zone",
3361
+ "primaryKey": false,
3362
+ "notNull": true,
3363
+ "default": "now()"
3364
+ },
3365
+ "updated_at": {
3366
+ "name": "updated_at",
3367
+ "type": "timestamp with time zone",
3368
+ "primaryKey": false,
3369
+ "notNull": true,
3370
+ "default": "now()"
3371
+ }
3372
+ },
3373
+ "indexes": {
3374
+ "handbook_pages_parent_idx": {
3375
+ "name": "handbook_pages_parent_idx",
3376
+ "columns": [
3377
+ {
3378
+ "expression": "workspace_id",
3379
+ "isExpression": false,
3380
+ "asc": true,
3381
+ "nulls": "last"
3382
+ },
3383
+ {
3384
+ "expression": "parent_id",
3385
+ "isExpression": false,
3386
+ "asc": true,
3387
+ "nulls": "last"
3388
+ }
3389
+ ],
3390
+ "isUnique": false,
3391
+ "concurrently": false,
3392
+ "method": "btree",
3393
+ "with": {}
3394
+ }
3395
+ },
3396
+ "foreignKeys": {
3397
+ "handbook_pages_workspace_id_workspaces_id_fk": {
3398
+ "name": "handbook_pages_workspace_id_workspaces_id_fk",
3399
+ "tableFrom": "handbook_pages",
3400
+ "tableTo": "workspaces",
3401
+ "columnsFrom": [
3402
+ "workspace_id"
3403
+ ],
3404
+ "columnsTo": [
3405
+ "id"
3406
+ ],
3407
+ "onDelete": "cascade",
3408
+ "onUpdate": "no action"
3409
+ },
3410
+ "handbook_pages_parent_id_handbook_pages_id_fk": {
3411
+ "name": "handbook_pages_parent_id_handbook_pages_id_fk",
3412
+ "tableFrom": "handbook_pages",
3413
+ "tableTo": "handbook_pages",
3414
+ "columnsFrom": [
3415
+ "parent_id"
3416
+ ],
3417
+ "columnsTo": [
3418
+ "id"
3419
+ ],
3420
+ "onDelete": "cascade",
3421
+ "onUpdate": "no action"
3422
+ },
3423
+ "handbook_pages_updated_by_workspace_members_id_fk": {
3424
+ "name": "handbook_pages_updated_by_workspace_members_id_fk",
3425
+ "tableFrom": "handbook_pages",
3426
+ "tableTo": "workspace_members",
3427
+ "columnsFrom": [
3428
+ "updated_by"
3429
+ ],
3430
+ "columnsTo": [
3431
+ "id"
3432
+ ],
3433
+ "onDelete": "set null",
3434
+ "onUpdate": "no action"
3435
+ }
3436
+ },
3437
+ "compositePrimaryKeys": {},
3438
+ "uniqueConstraints": {
3439
+ "handbook_pages_workspace_slug_key": {
3440
+ "name": "handbook_pages_workspace_slug_key",
3441
+ "nullsNotDistinct": false,
3442
+ "columns": [
3443
+ "workspace_id",
3444
+ "slug"
3445
+ ]
3446
+ }
3447
+ },
3448
+ "policies": {},
3449
+ "checkConstraints": {},
3450
+ "isRLSEnabled": false
3451
+ },
3452
+ "public.form_fields": {
3453
+ "name": "form_fields",
3454
+ "schema": "",
3455
+ "columns": {
3456
+ "id": {
3457
+ "name": "id",
3458
+ "type": "text",
3459
+ "primaryKey": true,
3460
+ "notNull": true
3461
+ },
3462
+ "workspace_id": {
3463
+ "name": "workspace_id",
3464
+ "type": "text",
3465
+ "primaryKey": false,
3466
+ "notNull": true
3467
+ },
3468
+ "form_id": {
3469
+ "name": "form_id",
3470
+ "type": "text",
3471
+ "primaryKey": false,
3472
+ "notNull": true
3473
+ },
3474
+ "label": {
3475
+ "name": "label",
3476
+ "type": "text",
3477
+ "primaryKey": false,
3478
+ "notNull": true
3479
+ },
3480
+ "type": {
3481
+ "name": "type",
3482
+ "type": "text",
3483
+ "primaryKey": false,
3484
+ "notNull": true
3485
+ },
3486
+ "required": {
3487
+ "name": "required",
3488
+ "type": "boolean",
3489
+ "primaryKey": false,
3490
+ "notNull": true,
3491
+ "default": false
3492
+ },
3493
+ "map_to": {
3494
+ "name": "map_to",
3495
+ "type": "text",
3496
+ "primaryKey": false,
3497
+ "notNull": true
3498
+ },
3499
+ "options": {
3500
+ "name": "options",
3501
+ "type": "jsonb",
3502
+ "primaryKey": false,
3503
+ "notNull": true,
3504
+ "default": "'[]'::jsonb"
3505
+ },
3506
+ "placeholder": {
3507
+ "name": "placeholder",
3508
+ "type": "text",
3509
+ "primaryKey": false,
3510
+ "notNull": false
3511
+ },
3512
+ "sort_order": {
3513
+ "name": "sort_order",
3514
+ "type": "integer",
3515
+ "primaryKey": false,
3516
+ "notNull": true
3517
+ },
3518
+ "created_at": {
3519
+ "name": "created_at",
3520
+ "type": "timestamp with time zone",
3521
+ "primaryKey": false,
3522
+ "notNull": true,
3523
+ "default": "now()"
3524
+ },
3525
+ "updated_at": {
3526
+ "name": "updated_at",
3527
+ "type": "timestamp with time zone",
3528
+ "primaryKey": false,
3529
+ "notNull": true,
3530
+ "default": "now()"
3531
+ }
3532
+ },
3533
+ "indexes": {
3534
+ "form_fields_form_idx": {
3535
+ "name": "form_fields_form_idx",
3536
+ "columns": [
3537
+ {
3538
+ "expression": "form_id",
3539
+ "isExpression": false,
3540
+ "asc": true,
3541
+ "nulls": "last"
3542
+ }
3543
+ ],
3544
+ "isUnique": false,
3545
+ "concurrently": false,
3546
+ "method": "btree",
3547
+ "with": {}
3548
+ }
3549
+ },
3550
+ "foreignKeys": {
3551
+ "form_fields_workspace_id_workspaces_id_fk": {
3552
+ "name": "form_fields_workspace_id_workspaces_id_fk",
3553
+ "tableFrom": "form_fields",
3554
+ "tableTo": "workspaces",
3555
+ "columnsFrom": [
3556
+ "workspace_id"
3557
+ ],
3558
+ "columnsTo": [
3559
+ "id"
3560
+ ],
3561
+ "onDelete": "cascade",
3562
+ "onUpdate": "no action"
3563
+ },
3564
+ "form_fields_form_id_forms_id_fk": {
3565
+ "name": "form_fields_form_id_forms_id_fk",
3566
+ "tableFrom": "form_fields",
3567
+ "tableTo": "forms",
3568
+ "columnsFrom": [
3569
+ "form_id"
3570
+ ],
3571
+ "columnsTo": [
3572
+ "id"
3573
+ ],
3574
+ "onDelete": "cascade",
3575
+ "onUpdate": "no action"
3576
+ }
3577
+ },
3578
+ "compositePrimaryKeys": {},
3579
+ "uniqueConstraints": {},
3580
+ "policies": {},
3581
+ "checkConstraints": {
3582
+ "form_fields_type_check": {
3583
+ "name": "form_fields_type_check",
3584
+ "value": "\"form_fields\".\"type\" in ('text', 'email', 'textarea', 'select')"
3585
+ },
3586
+ "form_fields_map_to_check": {
3587
+ "name": "form_fields_map_to_check",
3588
+ "value": "\"form_fields\".\"map_to\" in ('person.name', 'person.email', 'company.name', 'company.domain', 'position.title', 'deal.name', 'submission')"
3589
+ }
3590
+ },
3591
+ "isRLSEnabled": false
3592
+ },
3593
+ "public.form_submissions": {
3594
+ "name": "form_submissions",
3595
+ "schema": "",
3596
+ "columns": {
3597
+ "id": {
3598
+ "name": "id",
3599
+ "type": "text",
3600
+ "primaryKey": true,
3601
+ "notNull": true
3602
+ },
3603
+ "workspace_id": {
3604
+ "name": "workspace_id",
3605
+ "type": "text",
3606
+ "primaryKey": false,
3607
+ "notNull": true
3608
+ },
3609
+ "form_id": {
3610
+ "name": "form_id",
3611
+ "type": "text",
3612
+ "primaryKey": false,
3613
+ "notNull": true
3614
+ },
3615
+ "submitted_at": {
3616
+ "name": "submitted_at",
3617
+ "type": "timestamp with time zone",
3618
+ "primaryKey": false,
3619
+ "notNull": true,
3620
+ "default": "now()"
3621
+ },
3622
+ "answers": {
3623
+ "name": "answers",
3624
+ "type": "jsonb",
3625
+ "primaryKey": false,
3626
+ "notNull": true
3627
+ },
3628
+ "person_id": {
3629
+ "name": "person_id",
3630
+ "type": "text",
3631
+ "primaryKey": false,
3632
+ "notNull": false
3633
+ },
3634
+ "company_id": {
3635
+ "name": "company_id",
3636
+ "type": "text",
3637
+ "primaryKey": false,
3638
+ "notNull": false
3639
+ },
3640
+ "position_id": {
3641
+ "name": "position_id",
3642
+ "type": "text",
3643
+ "primaryKey": false,
3644
+ "notNull": false
3645
+ },
3646
+ "deal_id": {
3647
+ "name": "deal_id",
3648
+ "type": "text",
3649
+ "primaryKey": false,
3650
+ "notNull": false
3651
+ },
3652
+ "created_at": {
3653
+ "name": "created_at",
3654
+ "type": "timestamp with time zone",
3655
+ "primaryKey": false,
3656
+ "notNull": true,
3657
+ "default": "now()"
3658
+ }
3659
+ },
3660
+ "indexes": {
3661
+ "form_submissions_form_idx": {
3662
+ "name": "form_submissions_form_idx",
3663
+ "columns": [
3664
+ {
3665
+ "expression": "form_id",
3666
+ "isExpression": false,
3667
+ "asc": true,
3668
+ "nulls": "last"
3669
+ }
3670
+ ],
3671
+ "isUnique": false,
3672
+ "concurrently": false,
3673
+ "method": "btree",
3674
+ "with": {}
3675
+ }
3676
+ },
3677
+ "foreignKeys": {
3678
+ "form_submissions_workspace_id_workspaces_id_fk": {
3679
+ "name": "form_submissions_workspace_id_workspaces_id_fk",
3680
+ "tableFrom": "form_submissions",
3681
+ "tableTo": "workspaces",
3682
+ "columnsFrom": [
3683
+ "workspace_id"
3684
+ ],
3685
+ "columnsTo": [
3686
+ "id"
3687
+ ],
3688
+ "onDelete": "cascade",
3689
+ "onUpdate": "no action"
3690
+ },
3691
+ "form_submissions_form_id_forms_id_fk": {
3692
+ "name": "form_submissions_form_id_forms_id_fk",
3693
+ "tableFrom": "form_submissions",
3694
+ "tableTo": "forms",
3695
+ "columnsFrom": [
3696
+ "form_id"
3697
+ ],
3698
+ "columnsTo": [
3699
+ "id"
3700
+ ],
3701
+ "onDelete": "cascade",
3702
+ "onUpdate": "no action"
3703
+ },
3704
+ "form_submissions_person_id_people_id_fk": {
3705
+ "name": "form_submissions_person_id_people_id_fk",
3706
+ "tableFrom": "form_submissions",
3707
+ "tableTo": "people",
3708
+ "columnsFrom": [
3709
+ "person_id"
3710
+ ],
3711
+ "columnsTo": [
3712
+ "id"
3713
+ ],
3714
+ "onDelete": "set null",
3715
+ "onUpdate": "no action"
3716
+ },
3717
+ "form_submissions_company_id_companies_id_fk": {
3718
+ "name": "form_submissions_company_id_companies_id_fk",
3719
+ "tableFrom": "form_submissions",
3720
+ "tableTo": "companies",
3721
+ "columnsFrom": [
3722
+ "company_id"
3723
+ ],
3724
+ "columnsTo": [
3725
+ "id"
3726
+ ],
3727
+ "onDelete": "set null",
3728
+ "onUpdate": "no action"
3729
+ },
3730
+ "form_submissions_position_id_positions_id_fk": {
3731
+ "name": "form_submissions_position_id_positions_id_fk",
3732
+ "tableFrom": "form_submissions",
3733
+ "tableTo": "positions",
3734
+ "columnsFrom": [
3735
+ "position_id"
3736
+ ],
3737
+ "columnsTo": [
3738
+ "id"
3739
+ ],
3740
+ "onDelete": "set null",
3741
+ "onUpdate": "no action"
3742
+ },
3743
+ "form_submissions_deal_id_deals_id_fk": {
3744
+ "name": "form_submissions_deal_id_deals_id_fk",
3745
+ "tableFrom": "form_submissions",
3746
+ "tableTo": "deals",
3747
+ "columnsFrom": [
3748
+ "deal_id"
3749
+ ],
3750
+ "columnsTo": [
3751
+ "id"
3752
+ ],
3753
+ "onDelete": "set null",
3754
+ "onUpdate": "no action"
3755
+ }
3756
+ },
3757
+ "compositePrimaryKeys": {},
3758
+ "uniqueConstraints": {},
3759
+ "policies": {},
3760
+ "checkConstraints": {},
3761
+ "isRLSEnabled": false
3762
+ },
3763
+ "public.forms": {
3764
+ "name": "forms",
3765
+ "schema": "",
3766
+ "columns": {
3767
+ "id": {
3768
+ "name": "id",
3769
+ "type": "text",
3770
+ "primaryKey": true,
3771
+ "notNull": true
3772
+ },
3773
+ "workspace_id": {
3774
+ "name": "workspace_id",
3775
+ "type": "text",
3776
+ "primaryKey": false,
3777
+ "notNull": true
3778
+ },
3779
+ "name": {
3780
+ "name": "name",
3781
+ "type": "text",
3782
+ "primaryKey": false,
3783
+ "notNull": true
3784
+ },
3785
+ "description": {
3786
+ "name": "description",
3787
+ "type": "text",
3788
+ "primaryKey": false,
3789
+ "notNull": false
3790
+ },
3791
+ "status": {
3792
+ "name": "status",
3793
+ "type": "text",
3794
+ "primaryKey": false,
3795
+ "notNull": true,
3796
+ "default": "'active'"
3797
+ },
3798
+ "thank_you_message": {
3799
+ "name": "thank_you_message",
3800
+ "type": "text",
3801
+ "primaryKey": false,
3802
+ "notNull": true,
3803
+ "default": "''"
3804
+ },
3805
+ "create_deal": {
3806
+ "name": "create_deal",
3807
+ "type": "boolean",
3808
+ "primaryKey": false,
3809
+ "notNull": true,
3810
+ "default": false
3811
+ },
3812
+ "deal_stage_id": {
3813
+ "name": "deal_stage_id",
3814
+ "type": "text",
3815
+ "primaryKey": false,
3816
+ "notNull": false
3817
+ },
3818
+ "deal_name_template": {
3819
+ "name": "deal_name_template",
3820
+ "type": "text",
3821
+ "primaryKey": false,
3822
+ "notNull": false
3823
+ },
3824
+ "public_key": {
3825
+ "name": "public_key",
3826
+ "type": "text",
3827
+ "primaryKey": false,
3828
+ "notNull": true
3829
+ },
3830
+ "created_at": {
3831
+ "name": "created_at",
3832
+ "type": "timestamp with time zone",
3833
+ "primaryKey": false,
3834
+ "notNull": true,
3835
+ "default": "now()"
3836
+ },
3837
+ "updated_at": {
3838
+ "name": "updated_at",
3839
+ "type": "timestamp with time zone",
3840
+ "primaryKey": false,
3841
+ "notNull": true,
3842
+ "default": "now()"
3843
+ }
3844
+ },
3845
+ "indexes": {
3846
+ "forms_workspace_idx": {
3847
+ "name": "forms_workspace_idx",
3848
+ "columns": [
3849
+ {
3850
+ "expression": "workspace_id",
3851
+ "isExpression": false,
3852
+ "asc": true,
3853
+ "nulls": "last"
3854
+ }
3855
+ ],
3856
+ "isUnique": false,
3857
+ "concurrently": false,
3858
+ "method": "btree",
3859
+ "with": {}
3860
+ }
3861
+ },
3862
+ "foreignKeys": {
3863
+ "forms_workspace_id_workspaces_id_fk": {
3864
+ "name": "forms_workspace_id_workspaces_id_fk",
3865
+ "tableFrom": "forms",
3866
+ "tableTo": "workspaces",
3867
+ "columnsFrom": [
3868
+ "workspace_id"
3869
+ ],
3870
+ "columnsTo": [
3871
+ "id"
3872
+ ],
3873
+ "onDelete": "cascade",
3874
+ "onUpdate": "no action"
3875
+ },
3876
+ "forms_deal_stage_id_pipeline_stages_id_fk": {
3877
+ "name": "forms_deal_stage_id_pipeline_stages_id_fk",
3878
+ "tableFrom": "forms",
3879
+ "tableTo": "pipeline_stages",
3880
+ "columnsFrom": [
3881
+ "deal_stage_id"
3882
+ ],
3883
+ "columnsTo": [
3884
+ "id"
3885
+ ],
3886
+ "onDelete": "restrict",
3887
+ "onUpdate": "no action"
3888
+ }
3889
+ },
3890
+ "compositePrimaryKeys": {},
3891
+ "uniqueConstraints": {
3892
+ "forms_public_key_unique": {
3893
+ "name": "forms_public_key_unique",
3894
+ "nullsNotDistinct": false,
3895
+ "columns": [
3896
+ "public_key"
3897
+ ]
3898
+ }
3899
+ },
3900
+ "policies": {},
3901
+ "checkConstraints": {
3902
+ "forms_status_check": {
3903
+ "name": "forms_status_check",
3904
+ "value": "\"forms\".\"status\" in ('active', 'paused')"
3905
+ }
3906
+ },
3907
+ "isRLSEnabled": false
3908
+ },
3909
+ "public.import_job_rows": {
3910
+ "name": "import_job_rows",
3911
+ "schema": "",
3912
+ "columns": {
3913
+ "workspace_id": {
3914
+ "name": "workspace_id",
3915
+ "type": "text",
3916
+ "primaryKey": false,
3917
+ "notNull": true
3918
+ },
3919
+ "job_id": {
3920
+ "name": "job_id",
3921
+ "type": "text",
3922
+ "primaryKey": false,
3923
+ "notNull": true
3924
+ },
3925
+ "row_number": {
3926
+ "name": "row_number",
3927
+ "type": "integer",
3928
+ "primaryKey": false,
3929
+ "notNull": true
3930
+ },
3931
+ "values": {
3932
+ "name": "values",
3933
+ "type": "jsonb",
3934
+ "primaryKey": false,
3935
+ "notNull": true,
3936
+ "default": "'{}'::jsonb"
3937
+ },
3938
+ "action": {
3939
+ "name": "action",
3940
+ "type": "text",
3941
+ "primaryKey": false,
3942
+ "notNull": true
3943
+ },
3944
+ "errors": {
3945
+ "name": "errors",
3946
+ "type": "jsonb",
3947
+ "primaryKey": false,
3948
+ "notNull": true,
3949
+ "default": "'[]'::jsonb"
3950
+ },
3951
+ "created_at": {
3952
+ "name": "created_at",
3953
+ "type": "timestamp with time zone",
3954
+ "primaryKey": false,
3955
+ "notNull": true,
3956
+ "default": "now()"
3957
+ },
3958
+ "updated_at": {
3959
+ "name": "updated_at",
3960
+ "type": "timestamp with time zone",
3961
+ "primaryKey": false,
3962
+ "notNull": true,
3963
+ "default": "now()"
3964
+ }
3965
+ },
3966
+ "indexes": {
3967
+ "import_job_rows_workspace_idx": {
3968
+ "name": "import_job_rows_workspace_idx",
3969
+ "columns": [
3970
+ {
3971
+ "expression": "workspace_id",
3972
+ "isExpression": false,
3973
+ "asc": true,
3974
+ "nulls": "last"
3975
+ }
3976
+ ],
3977
+ "isUnique": false,
3978
+ "concurrently": false,
3979
+ "method": "btree",
3980
+ "with": {}
3981
+ }
3982
+ },
3983
+ "foreignKeys": {
3984
+ "import_job_rows_workspace_id_workspaces_id_fk": {
3985
+ "name": "import_job_rows_workspace_id_workspaces_id_fk",
3986
+ "tableFrom": "import_job_rows",
3987
+ "tableTo": "workspaces",
3988
+ "columnsFrom": [
3989
+ "workspace_id"
3990
+ ],
3991
+ "columnsTo": [
3992
+ "id"
3993
+ ],
3994
+ "onDelete": "cascade",
3995
+ "onUpdate": "no action"
3996
+ },
3997
+ "import_job_rows_job_id_import_jobs_id_fk": {
3998
+ "name": "import_job_rows_job_id_import_jobs_id_fk",
3999
+ "tableFrom": "import_job_rows",
4000
+ "tableTo": "import_jobs",
4001
+ "columnsFrom": [
4002
+ "job_id"
4003
+ ],
4004
+ "columnsTo": [
4005
+ "id"
4006
+ ],
4007
+ "onDelete": "cascade",
4008
+ "onUpdate": "no action"
4009
+ }
4010
+ },
4011
+ "compositePrimaryKeys": {
4012
+ "import_job_rows_job_id_row_number_pk": {
4013
+ "name": "import_job_rows_job_id_row_number_pk",
4014
+ "columns": [
4015
+ "job_id",
4016
+ "row_number"
4017
+ ]
4018
+ }
4019
+ },
4020
+ "uniqueConstraints": {},
4021
+ "policies": {},
4022
+ "checkConstraints": {
4023
+ "import_job_rows_action_check": {
4024
+ "name": "import_job_rows_action_check",
4025
+ "value": "\"import_job_rows\".\"action\" in ('pending', 'create', 'update', 'skip', 'error')"
4026
+ }
4027
+ },
4028
+ "isRLSEnabled": false
4029
+ },
4030
+ "public.import_jobs": {
4031
+ "name": "import_jobs",
4032
+ "schema": "",
4033
+ "columns": {
4034
+ "id": {
4035
+ "name": "id",
4036
+ "type": "text",
4037
+ "primaryKey": true,
4038
+ "notNull": true
4039
+ },
4040
+ "workspace_id": {
4041
+ "name": "workspace_id",
4042
+ "type": "text",
4043
+ "primaryKey": false,
4044
+ "notNull": true
4045
+ },
4046
+ "source": {
4047
+ "name": "source",
4048
+ "type": "text",
4049
+ "primaryKey": false,
4050
+ "notNull": true
4051
+ },
4052
+ "object": {
4053
+ "name": "object",
4054
+ "type": "text",
4055
+ "primaryKey": false,
4056
+ "notNull": true
4057
+ },
4058
+ "status": {
4059
+ "name": "status",
4060
+ "type": "text",
4061
+ "primaryKey": false,
4062
+ "notNull": true
4063
+ },
4064
+ "conflict_mode": {
4065
+ "name": "conflict_mode",
4066
+ "type": "text",
4067
+ "primaryKey": false,
4068
+ "notNull": true
4069
+ },
4070
+ "match_key": {
4071
+ "name": "match_key",
4072
+ "type": "text",
4073
+ "primaryKey": false,
4074
+ "notNull": true
4075
+ },
4076
+ "column_map": {
4077
+ "name": "column_map",
4078
+ "type": "jsonb",
4079
+ "primaryKey": false,
4080
+ "notNull": true,
4081
+ "default": "'{}'::jsonb"
4082
+ },
4083
+ "source_headers": {
4084
+ "name": "source_headers",
4085
+ "type": "jsonb",
4086
+ "primaryKey": false,
4087
+ "notNull": true,
4088
+ "default": "'[]'::jsonb"
4089
+ },
4090
+ "counts": {
4091
+ "name": "counts",
4092
+ "type": "jsonb",
4093
+ "primaryKey": false,
4094
+ "notNull": true
4095
+ },
4096
+ "errors": {
4097
+ "name": "errors",
4098
+ "type": "jsonb",
4099
+ "primaryKey": false,
4100
+ "notNull": true,
4101
+ "default": "'[]'::jsonb"
4102
+ },
4103
+ "preview": {
4104
+ "name": "preview",
4105
+ "type": "jsonb",
4106
+ "primaryKey": false,
4107
+ "notNull": true,
4108
+ "default": "'[]'::jsonb"
4109
+ },
4110
+ "file_sha256": {
4111
+ "name": "file_sha256",
4112
+ "type": "text",
4113
+ "primaryKey": false,
4114
+ "notNull": false
4115
+ },
4116
+ "file_name": {
4117
+ "name": "file_name",
4118
+ "type": "text",
4119
+ "primaryKey": false,
4120
+ "notNull": false
4121
+ },
4122
+ "failure_reason": {
4123
+ "name": "failure_reason",
4124
+ "type": "text",
4125
+ "primaryKey": false,
4126
+ "notNull": false
4127
+ },
4128
+ "created_at": {
4129
+ "name": "created_at",
4130
+ "type": "timestamp with time zone",
4131
+ "primaryKey": false,
4132
+ "notNull": true,
4133
+ "default": "now()"
4134
+ },
4135
+ "updated_at": {
4136
+ "name": "updated_at",
4137
+ "type": "timestamp with time zone",
4138
+ "primaryKey": false,
4139
+ "notNull": true,
4140
+ "default": "now()"
4141
+ }
4142
+ },
4143
+ "indexes": {
4144
+ "import_jobs_workspace_idx": {
4145
+ "name": "import_jobs_workspace_idx",
4146
+ "columns": [
4147
+ {
4148
+ "expression": "workspace_id",
4149
+ "isExpression": false,
4150
+ "asc": true,
4151
+ "nulls": "last"
4152
+ }
4153
+ ],
4154
+ "isUnique": false,
4155
+ "concurrently": false,
4156
+ "method": "btree",
4157
+ "with": {}
4158
+ }
4159
+ },
4160
+ "foreignKeys": {
4161
+ "import_jobs_workspace_id_workspaces_id_fk": {
4162
+ "name": "import_jobs_workspace_id_workspaces_id_fk",
4163
+ "tableFrom": "import_jobs",
4164
+ "tableTo": "workspaces",
4165
+ "columnsFrom": [
4166
+ "workspace_id"
4167
+ ],
4168
+ "columnsTo": [
4169
+ "id"
4170
+ ],
4171
+ "onDelete": "cascade",
4172
+ "onUpdate": "no action"
4173
+ }
4174
+ },
4175
+ "compositePrimaryKeys": {},
4176
+ "uniqueConstraints": {},
4177
+ "policies": {},
4178
+ "checkConstraints": {
4179
+ "import_jobs_source_check": {
4180
+ "name": "import_jobs_source_check",
4181
+ "value": "\"import_jobs\".\"source\" in ('custom', 'hubspot', 'salesforce')"
4182
+ },
4183
+ "import_jobs_object_check": {
4184
+ "name": "import_jobs_object_check",
4185
+ "value": "\"import_jobs\".\"object\" in ('companies', 'people', 'positions', 'deals')"
4186
+ },
4187
+ "import_jobs_conflict_mode_check": {
4188
+ "name": "import_jobs_conflict_mode_check",
4189
+ "value": "\"import_jobs\".\"conflict_mode\" in ('skip', 'update')"
4190
+ },
4191
+ "import_jobs_status_check": {
4192
+ "name": "import_jobs_status_check",
4193
+ "value": "\"import_jobs\".\"status\" in ('pending', 'validating', 'ready', 'committing', 'completed', 'failed')"
4194
+ }
4195
+ },
4196
+ "isRLSEnabled": false
4197
+ },
4198
+ "public.agent_registrations": {
4199
+ "name": "agent_registrations",
4200
+ "schema": "",
4201
+ "columns": {
4202
+ "id": {
4203
+ "name": "id",
4204
+ "type": "text",
4205
+ "primaryKey": true,
4206
+ "notNull": true
4207
+ },
4208
+ "workspace_id": {
4209
+ "name": "workspace_id",
4210
+ "type": "text",
4211
+ "primaryKey": false,
4212
+ "notNull": true
4213
+ },
4214
+ "name": {
4215
+ "name": "name",
4216
+ "type": "text",
4217
+ "primaryKey": false,
4218
+ "notNull": true
4219
+ },
4220
+ "endpoint": {
4221
+ "name": "endpoint",
4222
+ "type": "text",
4223
+ "primaryKey": false,
4224
+ "notNull": true
4225
+ },
4226
+ "auth_header_encrypted": {
4227
+ "name": "auth_header_encrypted",
4228
+ "type": "text",
4229
+ "primaryKey": false,
4230
+ "notNull": false
4231
+ },
4232
+ "last_run_at": {
4233
+ "name": "last_run_at",
4234
+ "type": "timestamp with time zone",
4235
+ "primaryKey": false,
4236
+ "notNull": false
4237
+ },
4238
+ "created_at": {
4239
+ "name": "created_at",
4240
+ "type": "timestamp with time zone",
4241
+ "primaryKey": false,
4242
+ "notNull": true,
4243
+ "default": "now()"
4244
+ },
4245
+ "updated_at": {
4246
+ "name": "updated_at",
4247
+ "type": "timestamp with time zone",
4248
+ "primaryKey": false,
4249
+ "notNull": true,
4250
+ "default": "now()"
4251
+ }
4252
+ },
4253
+ "indexes": {
4254
+ "agent_registrations_workspace_idx": {
4255
+ "name": "agent_registrations_workspace_idx",
4256
+ "columns": [
4257
+ {
4258
+ "expression": "workspace_id",
4259
+ "isExpression": false,
4260
+ "asc": true,
4261
+ "nulls": "last"
4262
+ }
4263
+ ],
4264
+ "isUnique": false,
4265
+ "concurrently": false,
4266
+ "method": "btree",
4267
+ "with": {}
4268
+ }
4269
+ },
4270
+ "foreignKeys": {
4271
+ "agent_registrations_workspace_id_workspaces_id_fk": {
4272
+ "name": "agent_registrations_workspace_id_workspaces_id_fk",
4273
+ "tableFrom": "agent_registrations",
4274
+ "tableTo": "workspaces",
4275
+ "columnsFrom": [
4276
+ "workspace_id"
4277
+ ],
4278
+ "columnsTo": [
4279
+ "id"
4280
+ ],
4281
+ "onDelete": "cascade",
4282
+ "onUpdate": "no action"
4283
+ }
4284
+ },
4285
+ "compositePrimaryKeys": {},
4286
+ "uniqueConstraints": {},
4287
+ "policies": {},
4288
+ "checkConstraints": {},
4289
+ "isRLSEnabled": false
4290
+ },
4291
+ "public.agent_runs": {
4292
+ "name": "agent_runs",
4293
+ "schema": "",
4294
+ "columns": {
4295
+ "id": {
4296
+ "name": "id",
4297
+ "type": "text",
4298
+ "primaryKey": true,
4299
+ "notNull": true
4300
+ },
4301
+ "workspace_id": {
4302
+ "name": "workspace_id",
4303
+ "type": "text",
4304
+ "primaryKey": false,
4305
+ "notNull": true
4306
+ },
4307
+ "agent_id": {
4308
+ "name": "agent_id",
4309
+ "type": "text",
4310
+ "primaryKey": false,
4311
+ "notNull": true
4312
+ },
4313
+ "task_id": {
4314
+ "name": "task_id",
4315
+ "type": "text",
4316
+ "primaryKey": false,
4317
+ "notNull": true
4318
+ },
4319
+ "target_type": {
4320
+ "name": "target_type",
4321
+ "type": "text",
4322
+ "primaryKey": false,
4323
+ "notNull": true
4324
+ },
4325
+ "target_id": {
4326
+ "name": "target_id",
4327
+ "type": "text",
4328
+ "primaryKey": false,
4329
+ "notNull": true
4330
+ },
4331
+ "status": {
4332
+ "name": "status",
4333
+ "type": "text",
4334
+ "primaryKey": false,
4335
+ "notNull": true,
4336
+ "default": "'queued'"
4337
+ },
4338
+ "prompt": {
4339
+ "name": "prompt",
4340
+ "type": "text",
4341
+ "primaryKey": false,
4342
+ "notNull": true
4343
+ },
4344
+ "failure_reason": {
4345
+ "name": "failure_reason",
4346
+ "type": "text",
4347
+ "primaryKey": false,
4348
+ "notNull": false
4349
+ },
4350
+ "created_at": {
4351
+ "name": "created_at",
4352
+ "type": "timestamp with time zone",
4353
+ "primaryKey": false,
4354
+ "notNull": true,
4355
+ "default": "now()"
4356
+ },
4357
+ "updated_at": {
4358
+ "name": "updated_at",
4359
+ "type": "timestamp with time zone",
4360
+ "primaryKey": false,
4361
+ "notNull": true,
4362
+ "default": "now()"
4363
+ }
4364
+ },
4365
+ "indexes": {
4366
+ "agent_runs_workspace_idx": {
4367
+ "name": "agent_runs_workspace_idx",
4368
+ "columns": [
4369
+ {
4370
+ "expression": "workspace_id",
4371
+ "isExpression": false,
4372
+ "asc": true,
4373
+ "nulls": "last"
4374
+ }
4375
+ ],
4376
+ "isUnique": false,
4377
+ "concurrently": false,
4378
+ "method": "btree",
4379
+ "with": {}
4380
+ },
4381
+ "agent_runs_agent_idx": {
4382
+ "name": "agent_runs_agent_idx",
4383
+ "columns": [
4384
+ {
4385
+ "expression": "agent_id",
4386
+ "isExpression": false,
4387
+ "asc": true,
4388
+ "nulls": "last"
4389
+ }
4390
+ ],
4391
+ "isUnique": false,
4392
+ "concurrently": false,
4393
+ "method": "btree",
4394
+ "with": {}
4395
+ }
4396
+ },
4397
+ "foreignKeys": {
4398
+ "agent_runs_workspace_id_workspaces_id_fk": {
4399
+ "name": "agent_runs_workspace_id_workspaces_id_fk",
4400
+ "tableFrom": "agent_runs",
4401
+ "tableTo": "workspaces",
4402
+ "columnsFrom": [
4403
+ "workspace_id"
4404
+ ],
4405
+ "columnsTo": [
4406
+ "id"
4407
+ ],
4408
+ "onDelete": "cascade",
4409
+ "onUpdate": "no action"
4410
+ },
4411
+ "agent_runs_agent_id_agent_registrations_id_fk": {
4412
+ "name": "agent_runs_agent_id_agent_registrations_id_fk",
4413
+ "tableFrom": "agent_runs",
4414
+ "tableTo": "agent_registrations",
4415
+ "columnsFrom": [
4416
+ "agent_id"
4417
+ ],
4418
+ "columnsTo": [
4419
+ "id"
4420
+ ],
4421
+ "onDelete": "cascade",
4422
+ "onUpdate": "no action"
4423
+ }
4424
+ },
4425
+ "compositePrimaryKeys": {},
4426
+ "uniqueConstraints": {},
4427
+ "policies": {},
4428
+ "checkConstraints": {
4429
+ "agent_runs_status_check": {
4430
+ "name": "agent_runs_status_check",
4431
+ "value": "\"agent_runs\".\"status\" in ('queued', 'running', 'succeeded', 'failed')"
4432
+ }
4433
+ },
4434
+ "isRLSEnabled": false
4435
+ },
4436
+ "public.webhook_deliveries": {
4437
+ "name": "webhook_deliveries",
4438
+ "schema": "",
4439
+ "columns": {
4440
+ "id": {
4441
+ "name": "id",
4442
+ "type": "text",
4443
+ "primaryKey": true,
4444
+ "notNull": true
4445
+ },
4446
+ "workspace_id": {
4447
+ "name": "workspace_id",
4448
+ "type": "text",
4449
+ "primaryKey": false,
4450
+ "notNull": true
4451
+ },
4452
+ "webhook_id": {
4453
+ "name": "webhook_id",
4454
+ "type": "text",
4455
+ "primaryKey": false,
4456
+ "notNull": true
4457
+ },
4458
+ "event": {
4459
+ "name": "event",
4460
+ "type": "text",
4461
+ "primaryKey": false,
4462
+ "notNull": true
4463
+ },
4464
+ "payload": {
4465
+ "name": "payload",
4466
+ "type": "jsonb",
4467
+ "primaryKey": false,
4468
+ "notNull": true
4469
+ },
4470
+ "status": {
4471
+ "name": "status",
4472
+ "type": "text",
4473
+ "primaryKey": false,
4474
+ "notNull": true
4475
+ },
4476
+ "attempts": {
4477
+ "name": "attempts",
4478
+ "type": "integer",
4479
+ "primaryKey": false,
4480
+ "notNull": true,
4481
+ "default": 0
4482
+ },
4483
+ "delivered_at": {
4484
+ "name": "delivered_at",
4485
+ "type": "timestamp with time zone",
4486
+ "primaryKey": false,
4487
+ "notNull": false
4488
+ },
4489
+ "created_at": {
4490
+ "name": "created_at",
4491
+ "type": "timestamp with time zone",
4492
+ "primaryKey": false,
4493
+ "notNull": true,
4494
+ "default": "now()"
4495
+ }
4496
+ },
4497
+ "indexes": {
4498
+ "webhook_deliveries_webhook_idx": {
4499
+ "name": "webhook_deliveries_webhook_idx",
4500
+ "columns": [
4501
+ {
4502
+ "expression": "webhook_id",
4503
+ "isExpression": false,
4504
+ "asc": true,
4505
+ "nulls": "last"
4506
+ }
4507
+ ],
4508
+ "isUnique": false,
4509
+ "concurrently": false,
4510
+ "method": "btree",
4511
+ "with": {}
4512
+ }
4513
+ },
4514
+ "foreignKeys": {
4515
+ "webhook_deliveries_workspace_id_workspaces_id_fk": {
4516
+ "name": "webhook_deliveries_workspace_id_workspaces_id_fk",
4517
+ "tableFrom": "webhook_deliveries",
4518
+ "tableTo": "workspaces",
4519
+ "columnsFrom": [
4520
+ "workspace_id"
4521
+ ],
4522
+ "columnsTo": [
4523
+ "id"
4524
+ ],
4525
+ "onDelete": "cascade",
4526
+ "onUpdate": "no action"
4527
+ },
4528
+ "webhook_deliveries_webhook_id_webhooks_id_fk": {
4529
+ "name": "webhook_deliveries_webhook_id_webhooks_id_fk",
4530
+ "tableFrom": "webhook_deliveries",
4531
+ "tableTo": "webhooks",
4532
+ "columnsFrom": [
4533
+ "webhook_id"
4534
+ ],
4535
+ "columnsTo": [
4536
+ "id"
4537
+ ],
4538
+ "onDelete": "cascade",
4539
+ "onUpdate": "no action"
4540
+ }
4541
+ },
4542
+ "compositePrimaryKeys": {},
4543
+ "uniqueConstraints": {},
4544
+ "policies": {},
4545
+ "checkConstraints": {
4546
+ "webhook_deliveries_status_check": {
4547
+ "name": "webhook_deliveries_status_check",
4548
+ "value": "\"webhook_deliveries\".\"status\" in ('success', 'failed')"
4549
+ }
4550
+ },
4551
+ "isRLSEnabled": false
4552
+ },
4553
+ "public.webhooks": {
4554
+ "name": "webhooks",
4555
+ "schema": "",
4556
+ "columns": {
4557
+ "id": {
4558
+ "name": "id",
4559
+ "type": "text",
4560
+ "primaryKey": true,
4561
+ "notNull": true
4562
+ },
4563
+ "workspace_id": {
4564
+ "name": "workspace_id",
4565
+ "type": "text",
4566
+ "primaryKey": false,
4567
+ "notNull": true
4568
+ },
4569
+ "url": {
4570
+ "name": "url",
4571
+ "type": "text",
4572
+ "primaryKey": false,
4573
+ "notNull": true
4574
+ },
4575
+ "events": {
4576
+ "name": "events",
4577
+ "type": "text[]",
4578
+ "primaryKey": false,
4579
+ "notNull": true,
4580
+ "default": "'{}'"
4581
+ },
4582
+ "secret_encrypted": {
4583
+ "name": "secret_encrypted",
4584
+ "type": "text",
4585
+ "primaryKey": false,
4586
+ "notNull": true
4587
+ },
4588
+ "secret_prefix": {
4589
+ "name": "secret_prefix",
4590
+ "type": "text",
4591
+ "primaryKey": false,
4592
+ "notNull": true
4593
+ },
4594
+ "previous_secret_encrypted": {
4595
+ "name": "previous_secret_encrypted",
4596
+ "type": "text",
4597
+ "primaryKey": false,
4598
+ "notNull": false
4599
+ },
4600
+ "previous_secret_expires_at": {
4601
+ "name": "previous_secret_expires_at",
4602
+ "type": "timestamp with time zone",
4603
+ "primaryKey": false,
4604
+ "notNull": false
4605
+ },
4606
+ "status": {
4607
+ "name": "status",
4608
+ "type": "text",
4609
+ "primaryKey": false,
4610
+ "notNull": true,
4611
+ "default": "'active'"
4612
+ },
4613
+ "created_at": {
4614
+ "name": "created_at",
4615
+ "type": "timestamp with time zone",
4616
+ "primaryKey": false,
4617
+ "notNull": true,
4618
+ "default": "now()"
4619
+ },
4620
+ "updated_at": {
4621
+ "name": "updated_at",
4622
+ "type": "timestamp with time zone",
4623
+ "primaryKey": false,
4624
+ "notNull": true,
4625
+ "default": "now()"
4626
+ }
4627
+ },
4628
+ "indexes": {
4629
+ "webhooks_workspace_idx": {
4630
+ "name": "webhooks_workspace_idx",
4631
+ "columns": [
4632
+ {
4633
+ "expression": "workspace_id",
4634
+ "isExpression": false,
4635
+ "asc": true,
4636
+ "nulls": "last"
4637
+ }
4638
+ ],
4639
+ "isUnique": false,
4640
+ "concurrently": false,
4641
+ "method": "btree",
4642
+ "with": {}
4643
+ }
4644
+ },
4645
+ "foreignKeys": {
4646
+ "webhooks_workspace_id_workspaces_id_fk": {
4647
+ "name": "webhooks_workspace_id_workspaces_id_fk",
4648
+ "tableFrom": "webhooks",
4649
+ "tableTo": "workspaces",
4650
+ "columnsFrom": [
4651
+ "workspace_id"
4652
+ ],
4653
+ "columnsTo": [
4654
+ "id"
4655
+ ],
4656
+ "onDelete": "cascade",
4657
+ "onUpdate": "no action"
4658
+ }
4659
+ },
4660
+ "compositePrimaryKeys": {},
4661
+ "uniqueConstraints": {},
4662
+ "policies": {},
4663
+ "checkConstraints": {
4664
+ "webhooks_status_check": {
4665
+ "name": "webhooks_status_check",
4666
+ "value": "\"webhooks\".\"status\" in ('active', 'failing', 'paused')"
4667
+ }
4668
+ },
4669
+ "isRLSEnabled": false
4670
+ },
4671
+ "public.integration_connections": {
4672
+ "name": "integration_connections",
4673
+ "schema": "",
4674
+ "columns": {
4675
+ "id": {
4676
+ "name": "id",
4677
+ "type": "text",
4678
+ "primaryKey": true,
4679
+ "notNull": true
4680
+ },
4681
+ "workspace_id": {
4682
+ "name": "workspace_id",
4683
+ "type": "text",
4684
+ "primaryKey": false,
4685
+ "notNull": true
4686
+ },
4687
+ "provider_id": {
4688
+ "name": "provider_id",
4689
+ "type": "text",
4690
+ "primaryKey": false,
4691
+ "notNull": true
4692
+ },
4693
+ "user_id": {
4694
+ "name": "user_id",
4695
+ "type": "text",
4696
+ "primaryKey": false,
4697
+ "notNull": false
4698
+ },
4699
+ "status": {
4700
+ "name": "status",
4701
+ "type": "text",
4702
+ "primaryKey": false,
4703
+ "notNull": true
4704
+ },
4705
+ "config": {
4706
+ "name": "config",
4707
+ "type": "jsonb",
4708
+ "primaryKey": false,
4709
+ "notNull": true,
4710
+ "default": "'{}'::jsonb"
4711
+ },
4712
+ "secrets_encrypted": {
4713
+ "name": "secrets_encrypted",
4714
+ "type": "text",
4715
+ "primaryKey": false,
4716
+ "notNull": false
4717
+ },
4718
+ "last_sync_at": {
4719
+ "name": "last_sync_at",
4720
+ "type": "timestamp with time zone",
4721
+ "primaryKey": false,
4722
+ "notNull": false
4723
+ },
4724
+ "created_at": {
4725
+ "name": "created_at",
4726
+ "type": "timestamp with time zone",
4727
+ "primaryKey": false,
4728
+ "notNull": true,
4729
+ "default": "now()"
4730
+ },
4731
+ "updated_at": {
4732
+ "name": "updated_at",
4733
+ "type": "timestamp with time zone",
4734
+ "primaryKey": false,
4735
+ "notNull": true,
4736
+ "default": "now()"
4737
+ }
4738
+ },
4739
+ "indexes": {
4740
+ "integration_connections_workspace_idx": {
4741
+ "name": "integration_connections_workspace_idx",
4742
+ "columns": [
4743
+ {
4744
+ "expression": "workspace_id",
4745
+ "isExpression": false,
4746
+ "asc": true,
4747
+ "nulls": "last"
4748
+ }
4749
+ ],
4750
+ "isUnique": false,
4751
+ "concurrently": false,
4752
+ "method": "btree",
4753
+ "with": {}
4754
+ }
4755
+ },
4756
+ "foreignKeys": {
4757
+ "integration_connections_workspace_id_workspaces_id_fk": {
4758
+ "name": "integration_connections_workspace_id_workspaces_id_fk",
4759
+ "tableFrom": "integration_connections",
4760
+ "tableTo": "workspaces",
4761
+ "columnsFrom": [
4762
+ "workspace_id"
4763
+ ],
4764
+ "columnsTo": [
4765
+ "id"
4766
+ ],
4767
+ "onDelete": "cascade",
4768
+ "onUpdate": "no action"
4769
+ },
4770
+ "integration_connections_user_id_users_id_fk": {
4771
+ "name": "integration_connections_user_id_users_id_fk",
4772
+ "tableFrom": "integration_connections",
4773
+ "tableTo": "users",
4774
+ "columnsFrom": [
4775
+ "user_id"
4776
+ ],
4777
+ "columnsTo": [
4778
+ "id"
4779
+ ],
4780
+ "onDelete": "cascade",
4781
+ "onUpdate": "no action"
4782
+ }
4783
+ },
4784
+ "compositePrimaryKeys": {},
4785
+ "uniqueConstraints": {},
4786
+ "policies": {},
4787
+ "checkConstraints": {},
4788
+ "isRLSEnabled": false
4789
+ }
4790
+ },
4791
+ "enums": {},
4792
+ "schemas": {},
4793
+ "sequences": {},
4794
+ "roles": {},
4795
+ "policies": {},
4796
+ "views": {},
4797
+ "_meta": {
4798
+ "columns": {},
4799
+ "schemas": {},
4800
+ "tables": {}
4801
+ }
4802
+ }