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