@maudecode/kanvil 0.2.0 → 0.3.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 (295) hide show
  1. package/apps/server/.env.example +19 -0
  2. package/apps/server/dist/auth-JcS53IcO.mjs +12424 -0
  3. package/apps/server/dist/{config-CbNqtJEj.mjs → config-D3cAABi7.mjs} +27 -2
  4. package/apps/server/dist/index.mjs +2504 -295
  5. package/apps/server/dist/migrate.mjs +1 -1
  6. package/apps/server/dist/recover.mjs +4 -4
  7. package/apps/server/drizzle/0014_inbox_dismissal.sql +1 -0
  8. package/apps/server/drizzle/0015_notification_categories.sql +14 -0
  9. package/apps/server/drizzle/0016_ticket_resources.sql +19 -0
  10. package/apps/server/drizzle/0017_project_backgrounds.sql +3 -0
  11. package/apps/server/drizzle/0018_delivery_outbox.sql +65 -0
  12. package/apps/server/drizzle/0019_retire_push_deliveries.sql +1 -0
  13. package/apps/server/drizzle/0020_calendar_feeds.sql +16 -0
  14. package/apps/server/drizzle/0021_staged_uploads.sql +14 -0
  15. package/apps/server/drizzle/0022_manual_order.sql +6 -0
  16. package/apps/server/drizzle/0023_workspace_invitations.sql +22 -0
  17. package/apps/server/drizzle/0024_workflow_states.sql +39 -0
  18. package/apps/server/drizzle/0025_workspace_labels.sql +10 -0
  19. package/apps/server/drizzle/0026_public_read.sql +1 -0
  20. package/apps/server/drizzle/0027_custom_fields.sql +16 -0
  21. package/apps/server/drizzle/0028_project_lifecycle.sql +11 -0
  22. package/apps/server/drizzle/0029_ticket_relocation.sql +16 -0
  23. package/apps/server/drizzle/0030_repository_connections.sql +39 -0
  24. package/apps/server/drizzle/0031_repository_providers.sql +3 -0
  25. package/apps/server/drizzle/0032_workspace_ownership.sql +11 -0
  26. package/apps/server/drizzle/0033_import_runs.sql +38 -0
  27. package/apps/server/drizzle/0034_issue_sync.sql +38 -0
  28. package/apps/server/drizzle/0035_account_deletion.sql +9 -0
  29. package/apps/server/drizzle/0036_workspace_roles.sql +16 -0
  30. package/apps/server/drizzle/0037_email_code_owner.sql +14 -0
  31. package/apps/server/drizzle/meta/0014_snapshot.json +4246 -0
  32. package/apps/server/drizzle/meta/0015_snapshot.json +4297 -0
  33. package/apps/server/drizzle/meta/0016_snapshot.json +4443 -0
  34. package/apps/server/drizzle/meta/0017_snapshot.json +4468 -0
  35. package/apps/server/drizzle/meta/0018_snapshot.json +4948 -0
  36. package/apps/server/drizzle/meta/0019_snapshot.json +4826 -0
  37. package/apps/server/drizzle/meta/0020_snapshot.json +4947 -0
  38. package/apps/server/drizzle/meta/0021_snapshot.json +5059 -0
  39. package/apps/server/drizzle/meta/0022_snapshot.json +5094 -0
  40. package/apps/server/drizzle/meta/0023_snapshot.json +5267 -0
  41. package/apps/server/drizzle/meta/0024_snapshot.json +5405 -0
  42. package/apps/server/drizzle/meta/0025_snapshot.json +5474 -0
  43. package/apps/server/drizzle/meta/0026_snapshot.json +5481 -0
  44. package/apps/server/drizzle/meta/0027_snapshot.json +5605 -0
  45. package/apps/server/drizzle/meta/0028_snapshot.json +5699 -0
  46. package/apps/server/drizzle/meta/0029_snapshot.json +5809 -0
  47. package/apps/server/drizzle/meta/0030_snapshot.json +6066 -0
  48. package/apps/server/drizzle/meta/0031_snapshot.json +6074 -0
  49. package/apps/server/drizzle/meta/0032_snapshot.json +6100 -0
  50. package/apps/server/drizzle/meta/0033_snapshot.json +6406 -0
  51. package/apps/server/drizzle/meta/0034_snapshot.json +6698 -0
  52. package/apps/server/drizzle/meta/0035_snapshot.json +6704 -0
  53. package/apps/server/drizzle/meta/0036_snapshot.json +6825 -0
  54. package/apps/server/drizzle/meta/0037_snapshot.json +6825 -0
  55. package/apps/server/drizzle/meta/_journal.json +168 -0
  56. package/apps/web/dist/assets/CompositeItem-BbuEp99X.js +1 -0
  57. package/apps/web/dist/assets/Trans-DJGH63s1.js +1 -0
  58. package/apps/web/dist/assets/abnfDiagram-WEYOIA3C-DTOx8N4B.js +1 -0
  59. package/apps/web/dist/assets/admin-settings-CJG9PMKR.js +1 -0
  60. package/apps/web/dist/assets/arc-Y1ARJVZ4.js +1 -0
  61. package/apps/web/dist/assets/architecture-WOLXFQ4H-DlC3p5z3.js +1 -0
  62. package/apps/web/dist/assets/architectureDiagram-ZHVYKT53-DooN3Z58.js +36 -0
  63. package/apps/web/dist/assets/archive-restore-B6_SsOIP.js +1 -0
  64. package/apps/web/dist/assets/array-BifhSqXX.js +1 -0
  65. package/apps/web/dist/assets/az-AZ-BtrlbgjS.js +1 -0
  66. package/apps/web/dist/assets/az-D-kj4lmf.js +1 -0
  67. package/apps/web/dist/assets/az-DqY__MpS.js +1 -0
  68. package/apps/web/dist/assets/blockDiagram-RJAE7QA3-CD5AgY4U.js +140 -0
  69. package/apps/web/dist/assets/c4Diagram-XDPPPE54-CTDOcLuN.js +38 -0
  70. package/apps/web/dist/assets/channel-BhHvU4I-.js +1 -0
  71. package/apps/web/dist/assets/chunk-2E7WHVMD-D9qnBqTV.js +88 -0
  72. package/apps/web/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  73. package/apps/web/dist/assets/chunk-4EMNKR2T-Kz5JiJ85.js +1 -0
  74. package/apps/web/dist/assets/chunk-55XCU76K-DnKiFpYM.js +1 -0
  75. package/apps/web/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  76. package/apps/web/dist/assets/chunk-7S6XSTFO-CpdNd6Ke.js +2 -0
  77. package/apps/web/dist/assets/chunk-AQDTSKZB-CpyuSWt8.js +72 -0
  78. package/apps/web/dist/assets/chunk-DSNLSHJZ-DTC3y9rb.js +129 -0
  79. package/apps/web/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  80. package/apps/web/dist/assets/chunk-HAGFOTED-Bv8PrMYK.js +62 -0
  81. package/apps/web/dist/assets/chunk-HNE4Q36P-CDDJ_yRa.js +1 -0
  82. package/apps/web/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  83. package/apps/web/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  84. package/apps/web/dist/assets/chunk-NGNAAXSQ-C2Wy9Xmz.js +136 -0
  85. package/apps/web/dist/assets/chunk-NQOKRVIF-lNtnsWHS.js +213 -0
  86. package/apps/web/dist/assets/chunk-UHW7PFBP-D79ptlTN.js +1 -0
  87. package/apps/web/dist/assets/chunk-VQ5W62QI-B8hWFCiM.js +1 -0
  88. package/apps/web/dist/assets/chunk-WQQL4CDK-DAGuWzS3.js +10 -0
  89. package/apps/web/dist/assets/chunk-XXDRQBXY-CnbRkih_.js +1 -0
  90. package/apps/web/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  91. package/apps/web/dist/assets/chunk-YZO67HFG-C0ptzlKO.js +1 -0
  92. package/apps/web/dist/assets/chunk-ZAUX2LTX-ah8U5xoJ.js +1 -0
  93. package/apps/web/dist/assets/chunk-ZCHMQSOR-DYqATOIZ.js +2 -0
  94. package/apps/web/dist/assets/classDiagram-v2-4MYWR3UA-DYytA-ua.js +217 -0
  95. package/apps/web/dist/assets/core-jXc03Sty.js +1 -0
  96. package/apps/web/dist/assets/corner-left-up-DA7MG5uX.js +1 -0
  97. package/apps/web/dist/assets/cose-bilkent-JH36ORCC-lWVj4msc.js +1 -0
  98. package/apps/web/dist/assets/cynefin-EF2NZ3EQ-Xy6e6m1E.js +1 -0
  99. package/apps/web/dist/assets/cynefinDiagram-WF24UDRP-BYarZJSm.js +62 -0
  100. package/apps/web/dist/assets/cytoscape.esm-BegBNzOV.js +321 -0
  101. package/apps/web/dist/assets/dagre-NK4GIZVX-WLvvUY1o.js +4 -0
  102. package/apps/web/dist/assets/de-DAv77-wP.js +1 -0
  103. package/apps/web/dist/assets/de-DE-Bu_Ko2QA.js +1 -0
  104. package/apps/web/dist/assets/de-UHreLwyV.js +1 -0
  105. package/apps/web/dist/assets/default-D5TdIZQS.js +56 -0
  106. package/apps/web/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
  107. package/apps/web/dist/assets/delivery-settings-BE5MW8U0.js +1 -0
  108. package/apps/web/dist/assets/diagram-CBK3MWTC-D6PtxkLg.js +24 -0
  109. package/apps/web/dist/assets/diagram-I5XIIV2D-DTOKQwIY.js +24 -0
  110. package/apps/web/dist/assets/diagram-ODIL2UCW-BmERt0Xu.js +30 -0
  111. package/apps/web/dist/assets/diagram-PFBEJUXE-WDUe08eD.js +3 -0
  112. package/apps/web/dist/assets/diagram-RJA3I4VV-B2K-NLGG.js +41 -0
  113. package/apps/web/dist/assets/diagram-TYUNFSNR-BLf7PpV7.js +200 -0
  114. package/apps/web/dist/assets/dist-CumnGVmJ.js +1 -0
  115. package/apps/web/dist/assets/ebnfDiagram-V4P3TTPT-DwBUQs9p.js +1 -0
  116. package/apps/web/dist/assets/el-D2ypddWn.js +1 -0
  117. package/apps/web/dist/assets/el-EJnrsyVr.js +1 -0
  118. package/apps/web/dist/assets/el-GR-CpKEps47.js +1 -0
  119. package/apps/web/dist/assets/elk-QONTBCTQ-AuT8PinL.js +27 -0
  120. package/apps/web/dist/assets/ellipsis-D6154JKs.js +1 -0
  121. package/apps/web/dist/assets/en-EnSRisMz.js +1 -0
  122. package/apps/web/dist/assets/en-US-DKYSujv3.js +1 -0
  123. package/apps/web/dist/assets/erDiagram-KYQIGQAA-h--u4Eo6.js +99 -0
  124. package/apps/web/dist/assets/es-B_49BMhR.js +1 -0
  125. package/apps/web/dist/assets/es-D2ScuV-5.js +1 -0
  126. package/apps/web/dist/assets/es-ES-DVkfi7H-.js +1 -0
  127. package/apps/web/dist/assets/eventmodeling-K75KTNOO-CW4hDt1j.js +1 -0
  128. package/apps/web/dist/assets/flowDiagram-IUGLLWBU-BGUscnNP.js +1 -0
  129. package/apps/web/dist/assets/forms-BcD6Wwyv.js +1 -0
  130. package/apps/web/dist/assets/fr-B-WmPGZD.js +1 -0
  131. package/apps/web/dist/assets/fr-C_VpS8u6.js +1 -0
  132. package/apps/web/dist/assets/fr-FR-DkHaEHqi.js +1 -0
  133. package/apps/web/dist/assets/ganttDiagram-R7GPNTJY-CB3lsQvj.js +292 -0
  134. package/apps/web/dist/assets/gitGraph-VSP46ZUC-Hu-kvdCR.js +1 -0
  135. package/apps/web/dist/assets/gitGraphDiagram-PDYL7XHY-DCuY3C1Q.js +106 -0
  136. package/apps/web/dist/assets/graphlib-DS17s2tU.js +1 -0
  137. package/apps/web/dist/assets/hi-CW4rdp_m.js +1 -0
  138. package/apps/web/dist/assets/hi-DvoDcUpL.js +1 -0
  139. package/apps/web/dist/assets/hi-IN-CbUDNSTK.js +1 -0
  140. package/apps/web/dist/assets/highlight-CMydIf9M.js +5 -0
  141. package/apps/web/dist/assets/id-CPASBZ2r.js +1 -0
  142. package/apps/web/dist/assets/id-CvL3yBVr.js +1 -0
  143. package/apps/web/dist/assets/id-ID-DLTkxt2j.js +1 -0
  144. package/apps/web/dist/assets/index-DoqlyejP.js +17 -0
  145. package/apps/web/dist/assets/index-DyQNFS69.css +2 -0
  146. package/apps/web/dist/assets/info-OHQRW6UA-Cc8VwTsk.js +1 -0
  147. package/apps/web/dist/assets/infoDiagram-MVDRKAX5-KIMOx55J.js +2 -0
  148. package/apps/web/dist/assets/init-C-OQMol4.js +1 -0
  149. package/apps/web/dist/assets/invitations-BmpelTJu.js +1 -0
  150. package/apps/web/dist/assets/isSameWeek-2ftYGvBT.js +1 -0
  151. package/apps/web/dist/assets/ishikawaDiagram-HPEHV2GE-CAou726L.js +70 -0
  152. package/apps/web/dist/assets/it-Cd7u97Jd.js +1 -0
  153. package/apps/web/dist/assets/it-DOLotXOj.js +1 -0
  154. package/apps/web/dist/assets/it-IT-CIzq0YwC.js +1 -0
  155. package/apps/web/dist/assets/item-Cq_ZbivE.js +1 -0
  156. package/apps/web/dist/assets/ja-B1iJt9qB.js +1 -0
  157. package/apps/web/dist/assets/ja-JP-CIE4-D-v.js +1 -0
  158. package/apps/web/dist/assets/ja-LkOrjegp.js +1 -0
  159. package/apps/web/dist/assets/journeyDiagram-BOSHW7O7-YbJuPYDH.js +139 -0
  160. package/apps/web/dist/assets/kanban-definition-FNSA4HC5-nuRnm9y8.js +89 -0
  161. package/apps/web/dist/assets/katex-B_JcIwqj.js +257 -0
  162. package/apps/web/dist/assets/ko-DPpXw683.js +1 -0
  163. package/apps/web/dist/assets/ko-KR-DYP5Zae6.js +1 -0
  164. package/apps/web/dist/assets/ko-fmUq1-8W.js +1 -0
  165. package/apps/web/dist/assets/label-settings-B3LsJxhk.js +1 -0
  166. package/apps/web/dist/assets/line-WsxZYwZr.js +1 -0
  167. package/apps/web/dist/assets/linear-C9iwaMOi.js +1 -0
  168. package/apps/web/dist/assets/lucide-DIlszs-T.js +1 -0
  169. package/apps/web/dist/assets/markdown-blocks-Bw26pRKB.js +2 -0
  170. package/apps/web/dist/assets/member-directory-CHKUw0u4.js +1 -0
  171. package/apps/web/dist/assets/mermaid-parser.core-B5c-1CnP.js +7 -0
  172. package/apps/web/dist/assets/mermaid.core-vGVkgzA3.js +44 -0
  173. package/apps/web/dist/assets/mindmap-definition-6OY57UG3-uooJyUak.js +98 -0
  174. package/apps/web/dist/assets/mk-CkaQRpqe.js +1 -0
  175. package/apps/web/dist/assets/mk-LWVrR-T-.js +1 -0
  176. package/apps/web/dist/assets/mk-MK-CpOo5Bd8.js +1 -0
  177. package/apps/web/dist/assets/nl-DiEjqOA8.js +1 -0
  178. package/apps/web/dist/assets/nl-NL-Mu8G8RON.js +1 -0
  179. package/apps/web/dist/assets/nl-ro6hbqo5.js +1 -0
  180. package/apps/web/dist/assets/ordinal-BDEzSJ7C.js +1 -0
  181. package/apps/web/dist/assets/packet-JDAUHWVQ-WJpqlH1d.js +1 -0
  182. package/apps/web/dist/assets/path-fybaL0A-.js +1 -0
  183. package/apps/web/dist/assets/pegDiagram-ECIUJNBX-CUvajD93.js +1 -0
  184. package/apps/web/dist/assets/pie-XZMESJXO-DvandPby.js +1 -0
  185. package/apps/web/dist/assets/pieDiagram-GNMPY74T-CqxeyIaP.js +39 -0
  186. package/apps/web/dist/assets/pl-Bx_fYLKY.js +1 -0
  187. package/apps/web/dist/assets/pl-CauoMfkf.js +1 -0
  188. package/apps/web/dist/assets/pl-PL-DGuxe2Aq.js +1 -0
  189. package/apps/web/dist/assets/preload-helper-BLdHbfdN.js +1 -0
  190. package/apps/web/dist/assets/project-lifecycle-Ba7iRF3u.js +1 -0
  191. package/apps/web/dist/assets/project-settings-CtOWgEam.js +1 -0
  192. package/apps/web/dist/assets/pt-BR-BpOhwoDW.js +1 -0
  193. package/apps/web/dist/assets/pt-BR-D-a7F5zJ.js +1 -0
  194. package/apps/web/dist/assets/pt-BR-DwkMPgq1.js +1 -0
  195. package/apps/web/dist/assets/public-project-CHRjhFIn.js +1 -0
  196. package/apps/web/dist/assets/quadrantDiagram-D57K4MC3-DFjNmaZc.js +7 -0
  197. package/apps/web/dist/assets/radar-ABXABTNO-CJhZF9j2.js +1 -0
  198. package/apps/web/dist/assets/railroad-I3PHUGI6-DZC10oBD.js +1 -0
  199. package/apps/web/dist/assets/railroad-abnf-LNEFI6M7-BUJF2n6u.js +1 -0
  200. package/apps/web/dist/assets/railroad-ebnf-DWYD2UWJ-CG7oB02K.js +1 -0
  201. package/apps/web/dist/assets/railroad-peg-JR7BVNR7-DBCZuZJY.js +1 -0
  202. package/apps/web/dist/assets/railroadDiagram-Y72NRBL7-CvN3poBq.js +1 -0
  203. package/apps/web/dist/assets/requirementDiagram-EQYSW5RA-BEItNirc.js +84 -0
  204. package/apps/web/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
  205. package/apps/web/dist/assets/rotate-ccw-Bm0ESNH_.js +1 -0
  206. package/apps/web/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
  207. package/apps/web/dist/assets/ru-D-WIMI5_.js +1 -0
  208. package/apps/web/dist/assets/ru-DOaRp00B.js +1 -0
  209. package/apps/web/dist/assets/ru-RU-DrXnqZbV.js +1 -0
  210. package/apps/web/dist/assets/sankeyDiagram-SY24JHO5-DluLIjax.js +40 -0
  211. package/apps/web/dist/assets/search-D94SZwrC.js +85 -0
  212. package/apps/web/dist/assets/send-D9TETK3s.js +1 -0
  213. package/apps/web/dist/assets/sequenceDiagram-BLEHNHQU-ZcwnsNxK.js +169 -0
  214. package/apps/web/dist/assets/settings-Dd9EVxua.js +1 -0
  215. package/apps/web/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  216. package/apps/web/dist/assets/sliders-horizontal-CiZZFL1o.js +1 -0
  217. package/apps/web/dist/assets/src-BWF7jMDv.js +1 -0
  218. package/apps/web/dist/assets/stateDiagram-v2-A6IESKWZ-DD6vH3rM.js +291 -0
  219. package/apps/web/dist/assets/swimlanes-B3ENRKFQ-pX_qyO4X.js +1 -0
  220. package/apps/web/dist/assets/swimlanesDiagram-AYQRV4AK-CeVsLUsg.js +8 -0
  221. package/apps/web/dist/assets/switch-B_u8n1o6.js +1 -0
  222. package/apps/web/dist/assets/table-DcCLC7fi.js +1 -0
  223. package/apps/web/dist/assets/ticket-detail-C9egaVSf.js +2 -0
  224. package/apps/web/dist/assets/ticket-editor-UlSZgpWF.js +2 -0
  225. package/apps/web/dist/assets/ticket-list-controls-BidzkMOD.js +1 -0
  226. package/apps/web/dist/assets/ticket-list-vNBO8mkk.js +5 -0
  227. package/apps/web/dist/assets/timeline-definition-JXYKGLGB-DLBjAxKq.js +120 -0
  228. package/apps/web/dist/assets/toDate-B3HYxwtT.js +1 -0
  229. package/apps/web/dist/assets/tr-BZEJyY-F.js +1 -0
  230. package/apps/web/dist/assets/tr-DeYojjLx.js +1 -0
  231. package/apps/web/dist/assets/tr-TR-B92YeFW5.js +1 -0
  232. package/apps/web/dist/assets/treeView-D4JQ5SDB-DsJ44q_q.js +1 -0
  233. package/apps/web/dist/assets/treemap-SAJKECNS-BmXoBpVL.js +1 -0
  234. package/apps/web/dist/assets/uk-DACrfgCP.js +1 -0
  235. package/apps/web/dist/assets/uk-UA-DmcDs-MU.js +1 -0
  236. package/apps/web/dist/assets/uk-f8X5q5C_.js +1 -0
  237. package/apps/web/dist/assets/upload-CGpna3R2.js +1 -0
  238. package/apps/web/dist/assets/useQueries-BihXYrAP.js +1 -0
  239. package/apps/web/dist/assets/usecaseDiagram-WPOLBNNX-eU2tr2si.js +328 -0
  240. package/apps/web/dist/assets/vennDiagram-Q3Y3IDCW-CoVTWGNg.js +34 -0
  241. package/apps/web/dist/assets/vi-CSGaJFlR.js +1 -0
  242. package/apps/web/dist/assets/vi-CkqUo4w_.js +1 -0
  243. package/apps/web/dist/assets/vi-VN-DM5JYNuP.js +1 -0
  244. package/apps/web/dist/assets/visual-editor-B6HiiLMg.js +208 -0
  245. package/apps/web/dist/assets/wardley-7MLQ67FV-C6mVVk98.js +1 -0
  246. package/apps/web/dist/assets/wardleyDiagram-IVAIDKWA-m3CeJc7a.js +78 -0
  247. package/apps/web/dist/assets/workspace-settings-CSvVqaL6.js +1 -0
  248. package/apps/web/dist/assets/xychartDiagram-4URNHDU4-Dw6fLaip.js +7 -0
  249. package/apps/web/dist/assets/zh-CN-BdRcimyZ.js +1 -0
  250. package/apps/web/dist/assets/zh-CN-CC7ghLLr.js +1 -0
  251. package/apps/web/dist/assets/zh-CN-CiUOkQXe.js +1 -0
  252. package/apps/web/dist/assets/zh-TW-BH1L9tOt.js +1 -0
  253. package/apps/web/dist/assets/zh-TW-BlIRMi1C.js +1 -0
  254. package/apps/web/dist/assets/zh-TW-Co4UBSfi.js +1 -0
  255. package/apps/web/dist/index.html +14 -8
  256. package/compose.yml +12 -0
  257. package/docs/api.md +285 -10
  258. package/docs/infrastructure.md +2 -2
  259. package/docs/localization.md +25 -0
  260. package/docs/plan.md +28 -10
  261. package/docs/releasing.md +1 -1
  262. package/docs/self-hosting.md +44 -5
  263. package/docs/themes.md +1 -1
  264. package/docs/verification.md +1 -1
  265. package/docs/workspaces.md +18 -2
  266. package/package.json +12 -8
  267. package/apps/server/dist/auth-I1XEr0d4.mjs +0 -2931
  268. package/apps/web/dist/assets/CompositeItem-BWPJ5Mol.js +0 -1
  269. package/apps/web/dist/assets/admin-settings-DZqkC6ju.js +0 -1
  270. package/apps/web/dist/assets/date-picker-6H_iwP6t.js +0 -1
  271. package/apps/web/dist/assets/ellipsis-BT172Uvu.js +0 -1
  272. package/apps/web/dist/assets/forms-B4Vg3CPz.js +0 -92
  273. package/apps/web/dist/assets/image-edit-trigger-DGmVtWLC.js +0 -1
  274. package/apps/web/dist/assets/index-C_a21taR.js +0 -50
  275. package/apps/web/dist/assets/index-DM-D_3Sv.css +0 -2
  276. package/apps/web/dist/assets/kbd-tTQGZxaK.js +0 -1
  277. package/apps/web/dist/assets/link-DoIP9KJ6.js +0 -2
  278. package/apps/web/dist/assets/list-order-Bzsrihyr.js +0 -1
  279. package/apps/web/dist/assets/lucide-U995NW8E.js +0 -1
  280. package/apps/web/dist/assets/member-directory-BiCE8DRq.js +0 -1
  281. package/apps/web/dist/assets/popover-BhzZ0U1d.js +0 -1
  282. package/apps/web/dist/assets/project-label-provider-9L7Uts3_.js +0 -1
  283. package/apps/web/dist/assets/project-settings-Q7Q9Reec.js +0 -1
  284. package/apps/web/dist/assets/rotate-ccw-sjyLwLLy.js +0 -1
  285. package/apps/web/dist/assets/settings-B6qD6q1J.js +0 -1
  286. package/apps/web/dist/assets/settings-layout-B-AwUIMu.js +0 -1
  287. package/apps/web/dist/assets/switch-D0nFHj6l.js +0 -1
  288. package/apps/web/dist/assets/table-CYZiwo9g.js +0 -1
  289. package/apps/web/dist/assets/ticket-detail-B-3vbHSB.js +0 -2
  290. package/apps/web/dist/assets/ticket-editor-C3d8TZIT.js +0 -1
  291. package/apps/web/dist/assets/ticket-list-LtGGOnwN.js +0 -5
  292. package/apps/web/dist/assets/ticket-tags-2rdmkcJV.js +0 -1
  293. package/apps/web/dist/assets/upload-DXPRzAaa.js +0 -1
  294. package/apps/web/dist/assets/useNavigate-DFohfUD3.js +0 -1
  295. package/apps/web/dist/assets/workspace-settings-D3tCm1vH.js +0 -1
@@ -0,0 +1,4947 @@
1
+ {
2
+ "id": "f09c1db9-500b-415b-9b99-47b4ff832283",
3
+ "prevId": "12a405c6-5548-4912-9fc3-554c3afeb807",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "account_id": {
18
+ "name": "account_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "provider_id": {
24
+ "name": "provider_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "user_id": {
30
+ "name": "user_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "id_token": {
48
+ "name": "id_token",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "access_token_expires_at": {
54
+ "name": "access_token_expires_at",
55
+ "type": "timestamp",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "refresh_token_expires_at": {
60
+ "name": "refresh_token_expires_at",
61
+ "type": "timestamp",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "scope": {
66
+ "name": "scope",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ }
90
+ },
91
+ "indexes": {
92
+ "account_userId_idx": {
93
+ "name": "account_userId_idx",
94
+ "columns": [
95
+ {
96
+ "expression": "user_id",
97
+ "isExpression": false,
98
+ "asc": true,
99
+ "nulls": "last"
100
+ }
101
+ ],
102
+ "isUnique": false,
103
+ "concurrently": false,
104
+ "method": "btree",
105
+ "with": {}
106
+ }
107
+ },
108
+ "foreignKeys": {
109
+ "account_user_id_user_id_fk": {
110
+ "name": "account_user_id_user_id_fk",
111
+ "tableFrom": "account",
112
+ "tableTo": "user",
113
+ "columnsFrom": [
114
+ "user_id"
115
+ ],
116
+ "columnsTo": [
117
+ "id"
118
+ ],
119
+ "onDelete": "cascade",
120
+ "onUpdate": "no action"
121
+ }
122
+ },
123
+ "compositePrimaryKeys": {},
124
+ "uniqueConstraints": {},
125
+ "policies": {},
126
+ "checkConstraints": {},
127
+ "isRLSEnabled": false
128
+ },
129
+ "public.apikey": {
130
+ "name": "apikey",
131
+ "schema": "",
132
+ "columns": {
133
+ "id": {
134
+ "name": "id",
135
+ "type": "text",
136
+ "primaryKey": true,
137
+ "notNull": true
138
+ },
139
+ "config_id": {
140
+ "name": "config_id",
141
+ "type": "text",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "default": "'default'"
145
+ },
146
+ "name": {
147
+ "name": "name",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": false
151
+ },
152
+ "start": {
153
+ "name": "start",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false
157
+ },
158
+ "reference_id": {
159
+ "name": "reference_id",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": true
163
+ },
164
+ "prefix": {
165
+ "name": "prefix",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": false
169
+ },
170
+ "key": {
171
+ "name": "key",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true
175
+ },
176
+ "refill_interval": {
177
+ "name": "refill_interval",
178
+ "type": "integer",
179
+ "primaryKey": false,
180
+ "notNull": false
181
+ },
182
+ "refill_amount": {
183
+ "name": "refill_amount",
184
+ "type": "integer",
185
+ "primaryKey": false,
186
+ "notNull": false
187
+ },
188
+ "last_refill_at": {
189
+ "name": "last_refill_at",
190
+ "type": "timestamp",
191
+ "primaryKey": false,
192
+ "notNull": false
193
+ },
194
+ "enabled": {
195
+ "name": "enabled",
196
+ "type": "boolean",
197
+ "primaryKey": false,
198
+ "notNull": false,
199
+ "default": true
200
+ },
201
+ "rate_limit_enabled": {
202
+ "name": "rate_limit_enabled",
203
+ "type": "boolean",
204
+ "primaryKey": false,
205
+ "notNull": false,
206
+ "default": true
207
+ },
208
+ "rate_limit_time_window": {
209
+ "name": "rate_limit_time_window",
210
+ "type": "integer",
211
+ "primaryKey": false,
212
+ "notNull": false,
213
+ "default": 86400000
214
+ },
215
+ "rate_limit_max": {
216
+ "name": "rate_limit_max",
217
+ "type": "integer",
218
+ "primaryKey": false,
219
+ "notNull": false,
220
+ "default": 10
221
+ },
222
+ "request_count": {
223
+ "name": "request_count",
224
+ "type": "integer",
225
+ "primaryKey": false,
226
+ "notNull": false,
227
+ "default": 0
228
+ },
229
+ "remaining": {
230
+ "name": "remaining",
231
+ "type": "integer",
232
+ "primaryKey": false,
233
+ "notNull": false
234
+ },
235
+ "last_request": {
236
+ "name": "last_request",
237
+ "type": "timestamp",
238
+ "primaryKey": false,
239
+ "notNull": false
240
+ },
241
+ "expires_at": {
242
+ "name": "expires_at",
243
+ "type": "timestamp",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "created_at": {
248
+ "name": "created_at",
249
+ "type": "timestamp",
250
+ "primaryKey": false,
251
+ "notNull": true
252
+ },
253
+ "updated_at": {
254
+ "name": "updated_at",
255
+ "type": "timestamp",
256
+ "primaryKey": false,
257
+ "notNull": true
258
+ },
259
+ "permissions": {
260
+ "name": "permissions",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": false
264
+ },
265
+ "metadata": {
266
+ "name": "metadata",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": false
270
+ }
271
+ },
272
+ "indexes": {
273
+ "apikey_configId_idx": {
274
+ "name": "apikey_configId_idx",
275
+ "columns": [
276
+ {
277
+ "expression": "config_id",
278
+ "isExpression": false,
279
+ "asc": true,
280
+ "nulls": "last"
281
+ }
282
+ ],
283
+ "isUnique": false,
284
+ "concurrently": false,
285
+ "method": "btree",
286
+ "with": {}
287
+ },
288
+ "apikey_referenceId_idx": {
289
+ "name": "apikey_referenceId_idx",
290
+ "columns": [
291
+ {
292
+ "expression": "reference_id",
293
+ "isExpression": false,
294
+ "asc": true,
295
+ "nulls": "last"
296
+ }
297
+ ],
298
+ "isUnique": false,
299
+ "concurrently": false,
300
+ "method": "btree",
301
+ "with": {}
302
+ },
303
+ "apikey_key_idx": {
304
+ "name": "apikey_key_idx",
305
+ "columns": [
306
+ {
307
+ "expression": "key",
308
+ "isExpression": false,
309
+ "asc": true,
310
+ "nulls": "last"
311
+ }
312
+ ],
313
+ "isUnique": false,
314
+ "concurrently": false,
315
+ "method": "btree",
316
+ "with": {}
317
+ }
318
+ },
319
+ "foreignKeys": {},
320
+ "compositePrimaryKeys": {},
321
+ "uniqueConstraints": {},
322
+ "policies": {},
323
+ "checkConstraints": {},
324
+ "isRLSEnabled": false
325
+ },
326
+ "public.jwks": {
327
+ "name": "jwks",
328
+ "schema": "",
329
+ "columns": {
330
+ "id": {
331
+ "name": "id",
332
+ "type": "text",
333
+ "primaryKey": true,
334
+ "notNull": true
335
+ },
336
+ "public_key": {
337
+ "name": "public_key",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": true
341
+ },
342
+ "private_key": {
343
+ "name": "private_key",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": true
347
+ },
348
+ "created_at": {
349
+ "name": "created_at",
350
+ "type": "timestamp",
351
+ "primaryKey": false,
352
+ "notNull": true
353
+ },
354
+ "expires_at": {
355
+ "name": "expires_at",
356
+ "type": "timestamp",
357
+ "primaryKey": false,
358
+ "notNull": false
359
+ },
360
+ "alg": {
361
+ "name": "alg",
362
+ "type": "text",
363
+ "primaryKey": false,
364
+ "notNull": false
365
+ },
366
+ "crv": {
367
+ "name": "crv",
368
+ "type": "text",
369
+ "primaryKey": false,
370
+ "notNull": false
371
+ }
372
+ },
373
+ "indexes": {},
374
+ "foreignKeys": {},
375
+ "compositePrimaryKeys": {},
376
+ "uniqueConstraints": {},
377
+ "policies": {},
378
+ "checkConstraints": {},
379
+ "isRLSEnabled": false
380
+ },
381
+ "public.oauth_access_token": {
382
+ "name": "oauth_access_token",
383
+ "schema": "",
384
+ "columns": {
385
+ "id": {
386
+ "name": "id",
387
+ "type": "text",
388
+ "primaryKey": true,
389
+ "notNull": true
390
+ },
391
+ "token": {
392
+ "name": "token",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": true
396
+ },
397
+ "client_id": {
398
+ "name": "client_id",
399
+ "type": "text",
400
+ "primaryKey": false,
401
+ "notNull": true
402
+ },
403
+ "session_id": {
404
+ "name": "session_id",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": false
408
+ },
409
+ "user_id": {
410
+ "name": "user_id",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": false
414
+ },
415
+ "reference_id": {
416
+ "name": "reference_id",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false
420
+ },
421
+ "authorization_code_id": {
422
+ "name": "authorization_code_id",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": false
426
+ },
427
+ "resources": {
428
+ "name": "resources",
429
+ "type": "text[]",
430
+ "primaryKey": false,
431
+ "notNull": false
432
+ },
433
+ "requested_user_info_claims": {
434
+ "name": "requested_user_info_claims",
435
+ "type": "text[]",
436
+ "primaryKey": false,
437
+ "notNull": false
438
+ },
439
+ "refresh_id": {
440
+ "name": "refresh_id",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": false
444
+ },
445
+ "expires_at": {
446
+ "name": "expires_at",
447
+ "type": "timestamp",
448
+ "primaryKey": false,
449
+ "notNull": true
450
+ },
451
+ "created_at": {
452
+ "name": "created_at",
453
+ "type": "timestamp",
454
+ "primaryKey": false,
455
+ "notNull": true
456
+ },
457
+ "revoked": {
458
+ "name": "revoked",
459
+ "type": "timestamp",
460
+ "primaryKey": false,
461
+ "notNull": false
462
+ },
463
+ "confirmation": {
464
+ "name": "confirmation",
465
+ "type": "jsonb",
466
+ "primaryKey": false,
467
+ "notNull": false
468
+ },
469
+ "scopes": {
470
+ "name": "scopes",
471
+ "type": "text[]",
472
+ "primaryKey": false,
473
+ "notNull": true
474
+ }
475
+ },
476
+ "indexes": {
477
+ "oauthAccessToken_clientId_idx": {
478
+ "name": "oauthAccessToken_clientId_idx",
479
+ "columns": [
480
+ {
481
+ "expression": "client_id",
482
+ "isExpression": false,
483
+ "asc": true,
484
+ "nulls": "last"
485
+ }
486
+ ],
487
+ "isUnique": false,
488
+ "concurrently": false,
489
+ "method": "btree",
490
+ "with": {}
491
+ },
492
+ "oauthAccessToken_sessionId_idx": {
493
+ "name": "oauthAccessToken_sessionId_idx",
494
+ "columns": [
495
+ {
496
+ "expression": "session_id",
497
+ "isExpression": false,
498
+ "asc": true,
499
+ "nulls": "last"
500
+ }
501
+ ],
502
+ "isUnique": false,
503
+ "concurrently": false,
504
+ "method": "btree",
505
+ "with": {}
506
+ },
507
+ "oauthAccessToken_userId_idx": {
508
+ "name": "oauthAccessToken_userId_idx",
509
+ "columns": [
510
+ {
511
+ "expression": "user_id",
512
+ "isExpression": false,
513
+ "asc": true,
514
+ "nulls": "last"
515
+ }
516
+ ],
517
+ "isUnique": false,
518
+ "concurrently": false,
519
+ "method": "btree",
520
+ "with": {}
521
+ },
522
+ "oauthAccessToken_authorizationCodeId_idx": {
523
+ "name": "oauthAccessToken_authorizationCodeId_idx",
524
+ "columns": [
525
+ {
526
+ "expression": "authorization_code_id",
527
+ "isExpression": false,
528
+ "asc": true,
529
+ "nulls": "last"
530
+ }
531
+ ],
532
+ "isUnique": false,
533
+ "concurrently": false,
534
+ "method": "btree",
535
+ "with": {}
536
+ },
537
+ "oauthAccessToken_refreshId_idx": {
538
+ "name": "oauthAccessToken_refreshId_idx",
539
+ "columns": [
540
+ {
541
+ "expression": "refresh_id",
542
+ "isExpression": false,
543
+ "asc": true,
544
+ "nulls": "last"
545
+ }
546
+ ],
547
+ "isUnique": false,
548
+ "concurrently": false,
549
+ "method": "btree",
550
+ "with": {}
551
+ }
552
+ },
553
+ "foreignKeys": {
554
+ "oauth_access_token_client_id_oauth_client_client_id_fk": {
555
+ "name": "oauth_access_token_client_id_oauth_client_client_id_fk",
556
+ "tableFrom": "oauth_access_token",
557
+ "tableTo": "oauth_client",
558
+ "columnsFrom": [
559
+ "client_id"
560
+ ],
561
+ "columnsTo": [
562
+ "client_id"
563
+ ],
564
+ "onDelete": "cascade",
565
+ "onUpdate": "no action"
566
+ },
567
+ "oauth_access_token_session_id_session_id_fk": {
568
+ "name": "oauth_access_token_session_id_session_id_fk",
569
+ "tableFrom": "oauth_access_token",
570
+ "tableTo": "session",
571
+ "columnsFrom": [
572
+ "session_id"
573
+ ],
574
+ "columnsTo": [
575
+ "id"
576
+ ],
577
+ "onDelete": "set null",
578
+ "onUpdate": "no action"
579
+ },
580
+ "oauth_access_token_user_id_user_id_fk": {
581
+ "name": "oauth_access_token_user_id_user_id_fk",
582
+ "tableFrom": "oauth_access_token",
583
+ "tableTo": "user",
584
+ "columnsFrom": [
585
+ "user_id"
586
+ ],
587
+ "columnsTo": [
588
+ "id"
589
+ ],
590
+ "onDelete": "cascade",
591
+ "onUpdate": "no action"
592
+ },
593
+ "oauth_access_token_refresh_id_oauth_refresh_token_id_fk": {
594
+ "name": "oauth_access_token_refresh_id_oauth_refresh_token_id_fk",
595
+ "tableFrom": "oauth_access_token",
596
+ "tableTo": "oauth_refresh_token",
597
+ "columnsFrom": [
598
+ "refresh_id"
599
+ ],
600
+ "columnsTo": [
601
+ "id"
602
+ ],
603
+ "onDelete": "cascade",
604
+ "onUpdate": "no action"
605
+ }
606
+ },
607
+ "compositePrimaryKeys": {},
608
+ "uniqueConstraints": {
609
+ "oauth_access_token_token_unique": {
610
+ "name": "oauth_access_token_token_unique",
611
+ "nullsNotDistinct": false,
612
+ "columns": [
613
+ "token"
614
+ ]
615
+ }
616
+ },
617
+ "policies": {},
618
+ "checkConstraints": {},
619
+ "isRLSEnabled": false
620
+ },
621
+ "public.oauth_client": {
622
+ "name": "oauth_client",
623
+ "schema": "",
624
+ "columns": {
625
+ "id": {
626
+ "name": "id",
627
+ "type": "text",
628
+ "primaryKey": true,
629
+ "notNull": true
630
+ },
631
+ "client_id": {
632
+ "name": "client_id",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": true
636
+ },
637
+ "client_secret": {
638
+ "name": "client_secret",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false
642
+ },
643
+ "client_discovery_id": {
644
+ "name": "client_discovery_id",
645
+ "type": "text",
646
+ "primaryKey": false,
647
+ "notNull": false
648
+ },
649
+ "disabled": {
650
+ "name": "disabled",
651
+ "type": "boolean",
652
+ "primaryKey": false,
653
+ "notNull": false,
654
+ "default": false
655
+ },
656
+ "skip_consent": {
657
+ "name": "skip_consent",
658
+ "type": "boolean",
659
+ "primaryKey": false,
660
+ "notNull": false
661
+ },
662
+ "enable_end_session": {
663
+ "name": "enable_end_session",
664
+ "type": "boolean",
665
+ "primaryKey": false,
666
+ "notNull": false
667
+ },
668
+ "subject_type": {
669
+ "name": "subject_type",
670
+ "type": "text",
671
+ "primaryKey": false,
672
+ "notNull": false
673
+ },
674
+ "scopes": {
675
+ "name": "scopes",
676
+ "type": "text[]",
677
+ "primaryKey": false,
678
+ "notNull": false
679
+ },
680
+ "client_credentials_scopes": {
681
+ "name": "client_credentials_scopes",
682
+ "type": "text[]",
683
+ "primaryKey": false,
684
+ "notNull": false,
685
+ "default": "'{}'"
686
+ },
687
+ "user_id": {
688
+ "name": "user_id",
689
+ "type": "text",
690
+ "primaryKey": false,
691
+ "notNull": false
692
+ },
693
+ "created_at": {
694
+ "name": "created_at",
695
+ "type": "timestamp",
696
+ "primaryKey": false,
697
+ "notNull": false
698
+ },
699
+ "updated_at": {
700
+ "name": "updated_at",
701
+ "type": "timestamp",
702
+ "primaryKey": false,
703
+ "notNull": false
704
+ },
705
+ "name": {
706
+ "name": "name",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": false
710
+ },
711
+ "uri": {
712
+ "name": "uri",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": false
716
+ },
717
+ "icon": {
718
+ "name": "icon",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": false
722
+ },
723
+ "contacts": {
724
+ "name": "contacts",
725
+ "type": "text[]",
726
+ "primaryKey": false,
727
+ "notNull": false
728
+ },
729
+ "tos": {
730
+ "name": "tos",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": false
734
+ },
735
+ "policy": {
736
+ "name": "policy",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": false
740
+ },
741
+ "software_id": {
742
+ "name": "software_id",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": false
746
+ },
747
+ "software_version": {
748
+ "name": "software_version",
749
+ "type": "text",
750
+ "primaryKey": false,
751
+ "notNull": false
752
+ },
753
+ "software_statement": {
754
+ "name": "software_statement",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": false
758
+ },
759
+ "redirect_uris": {
760
+ "name": "redirect_uris",
761
+ "type": "text[]",
762
+ "primaryKey": false,
763
+ "notNull": true
764
+ },
765
+ "post_logout_redirect_uris": {
766
+ "name": "post_logout_redirect_uris",
767
+ "type": "text[]",
768
+ "primaryKey": false,
769
+ "notNull": false
770
+ },
771
+ "backchannel_logout_uri": {
772
+ "name": "backchannel_logout_uri",
773
+ "type": "text",
774
+ "primaryKey": false,
775
+ "notNull": false
776
+ },
777
+ "backchannel_logout_session_required": {
778
+ "name": "backchannel_logout_session_required",
779
+ "type": "boolean",
780
+ "primaryKey": false,
781
+ "notNull": false
782
+ },
783
+ "token_endpoint_auth_method": {
784
+ "name": "token_endpoint_auth_method",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": false
788
+ },
789
+ "application_type": {
790
+ "name": "application_type",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false
794
+ },
795
+ "jwks": {
796
+ "name": "jwks",
797
+ "type": "text",
798
+ "primaryKey": false,
799
+ "notNull": false
800
+ },
801
+ "jwks_uri": {
802
+ "name": "jwks_uri",
803
+ "type": "text",
804
+ "primaryKey": false,
805
+ "notNull": false
806
+ },
807
+ "grant_types": {
808
+ "name": "grant_types",
809
+ "type": "text[]",
810
+ "primaryKey": false,
811
+ "notNull": false
812
+ },
813
+ "response_types": {
814
+ "name": "response_types",
815
+ "type": "text[]",
816
+ "primaryKey": false,
817
+ "notNull": false
818
+ },
819
+ "require_pkce": {
820
+ "name": "require_pkce",
821
+ "type": "boolean",
822
+ "primaryKey": false,
823
+ "notNull": false
824
+ },
825
+ "dpop_bound_access_tokens": {
826
+ "name": "dpop_bound_access_tokens",
827
+ "type": "boolean",
828
+ "primaryKey": false,
829
+ "notNull": false,
830
+ "default": false
831
+ },
832
+ "reference_id": {
833
+ "name": "reference_id",
834
+ "type": "text",
835
+ "primaryKey": false,
836
+ "notNull": false
837
+ },
838
+ "metadata": {
839
+ "name": "metadata",
840
+ "type": "jsonb",
841
+ "primaryKey": false,
842
+ "notNull": false
843
+ }
844
+ },
845
+ "indexes": {
846
+ "oauthClient_userId_idx": {
847
+ "name": "oauthClient_userId_idx",
848
+ "columns": [
849
+ {
850
+ "expression": "user_id",
851
+ "isExpression": false,
852
+ "asc": true,
853
+ "nulls": "last"
854
+ }
855
+ ],
856
+ "isUnique": false,
857
+ "concurrently": false,
858
+ "method": "btree",
859
+ "with": {}
860
+ }
861
+ },
862
+ "foreignKeys": {
863
+ "oauth_client_user_id_user_id_fk": {
864
+ "name": "oauth_client_user_id_user_id_fk",
865
+ "tableFrom": "oauth_client",
866
+ "tableTo": "user",
867
+ "columnsFrom": [
868
+ "user_id"
869
+ ],
870
+ "columnsTo": [
871
+ "id"
872
+ ],
873
+ "onDelete": "cascade",
874
+ "onUpdate": "no action"
875
+ }
876
+ },
877
+ "compositePrimaryKeys": {},
878
+ "uniqueConstraints": {
879
+ "oauth_client_client_id_unique": {
880
+ "name": "oauth_client_client_id_unique",
881
+ "nullsNotDistinct": false,
882
+ "columns": [
883
+ "client_id"
884
+ ]
885
+ }
886
+ },
887
+ "policies": {},
888
+ "checkConstraints": {},
889
+ "isRLSEnabled": false
890
+ },
891
+ "public.oauth_client_assertion": {
892
+ "name": "oauth_client_assertion",
893
+ "schema": "",
894
+ "columns": {
895
+ "id": {
896
+ "name": "id",
897
+ "type": "text",
898
+ "primaryKey": true,
899
+ "notNull": true
900
+ },
901
+ "expires_at": {
902
+ "name": "expires_at",
903
+ "type": "timestamp",
904
+ "primaryKey": false,
905
+ "notNull": true
906
+ }
907
+ },
908
+ "indexes": {},
909
+ "foreignKeys": {},
910
+ "compositePrimaryKeys": {},
911
+ "uniqueConstraints": {},
912
+ "policies": {},
913
+ "checkConstraints": {},
914
+ "isRLSEnabled": false
915
+ },
916
+ "public.oauth_client_resource": {
917
+ "name": "oauth_client_resource",
918
+ "schema": "",
919
+ "columns": {
920
+ "id": {
921
+ "name": "id",
922
+ "type": "text",
923
+ "primaryKey": true,
924
+ "notNull": true
925
+ },
926
+ "client_id": {
927
+ "name": "client_id",
928
+ "type": "text",
929
+ "primaryKey": false,
930
+ "notNull": true
931
+ },
932
+ "resource_id": {
933
+ "name": "resource_id",
934
+ "type": "text",
935
+ "primaryKey": false,
936
+ "notNull": true
937
+ },
938
+ "metadata": {
939
+ "name": "metadata",
940
+ "type": "jsonb",
941
+ "primaryKey": false,
942
+ "notNull": false
943
+ },
944
+ "created_at": {
945
+ "name": "created_at",
946
+ "type": "timestamp",
947
+ "primaryKey": false,
948
+ "notNull": false
949
+ }
950
+ },
951
+ "indexes": {
952
+ "oauthClientResource_clientId_resourceId_uidx": {
953
+ "name": "oauthClientResource_clientId_resourceId_uidx",
954
+ "columns": [
955
+ {
956
+ "expression": "client_id",
957
+ "isExpression": false,
958
+ "asc": true,
959
+ "nulls": "last"
960
+ },
961
+ {
962
+ "expression": "resource_id",
963
+ "isExpression": false,
964
+ "asc": true,
965
+ "nulls": "last"
966
+ }
967
+ ],
968
+ "isUnique": true,
969
+ "concurrently": false,
970
+ "method": "btree",
971
+ "with": {}
972
+ },
973
+ "oauthClientResource_clientId_idx": {
974
+ "name": "oauthClientResource_clientId_idx",
975
+ "columns": [
976
+ {
977
+ "expression": "client_id",
978
+ "isExpression": false,
979
+ "asc": true,
980
+ "nulls": "last"
981
+ }
982
+ ],
983
+ "isUnique": false,
984
+ "concurrently": false,
985
+ "method": "btree",
986
+ "with": {}
987
+ },
988
+ "oauthClientResource_resourceId_idx": {
989
+ "name": "oauthClientResource_resourceId_idx",
990
+ "columns": [
991
+ {
992
+ "expression": "resource_id",
993
+ "isExpression": false,
994
+ "asc": true,
995
+ "nulls": "last"
996
+ }
997
+ ],
998
+ "isUnique": false,
999
+ "concurrently": false,
1000
+ "method": "btree",
1001
+ "with": {}
1002
+ }
1003
+ },
1004
+ "foreignKeys": {
1005
+ "oauth_client_resource_client_id_oauth_client_client_id_fk": {
1006
+ "name": "oauth_client_resource_client_id_oauth_client_client_id_fk",
1007
+ "tableFrom": "oauth_client_resource",
1008
+ "tableTo": "oauth_client",
1009
+ "columnsFrom": [
1010
+ "client_id"
1011
+ ],
1012
+ "columnsTo": [
1013
+ "client_id"
1014
+ ],
1015
+ "onDelete": "cascade",
1016
+ "onUpdate": "no action"
1017
+ },
1018
+ "oauth_client_resource_resource_id_oauth_resource_identifier_fk": {
1019
+ "name": "oauth_client_resource_resource_id_oauth_resource_identifier_fk",
1020
+ "tableFrom": "oauth_client_resource",
1021
+ "tableTo": "oauth_resource",
1022
+ "columnsFrom": [
1023
+ "resource_id"
1024
+ ],
1025
+ "columnsTo": [
1026
+ "identifier"
1027
+ ],
1028
+ "onDelete": "cascade",
1029
+ "onUpdate": "no action"
1030
+ }
1031
+ },
1032
+ "compositePrimaryKeys": {},
1033
+ "uniqueConstraints": {},
1034
+ "policies": {},
1035
+ "checkConstraints": {},
1036
+ "isRLSEnabled": false
1037
+ },
1038
+ "public.oauth_consent": {
1039
+ "name": "oauth_consent",
1040
+ "schema": "",
1041
+ "columns": {
1042
+ "id": {
1043
+ "name": "id",
1044
+ "type": "text",
1045
+ "primaryKey": true,
1046
+ "notNull": true
1047
+ },
1048
+ "client_id": {
1049
+ "name": "client_id",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": true
1053
+ },
1054
+ "user_id": {
1055
+ "name": "user_id",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": false
1059
+ },
1060
+ "reference_id": {
1061
+ "name": "reference_id",
1062
+ "type": "text",
1063
+ "primaryKey": false,
1064
+ "notNull": false
1065
+ },
1066
+ "resources": {
1067
+ "name": "resources",
1068
+ "type": "text[]",
1069
+ "primaryKey": false,
1070
+ "notNull": false
1071
+ },
1072
+ "requested_user_info_claims": {
1073
+ "name": "requested_user_info_claims",
1074
+ "type": "text[]",
1075
+ "primaryKey": false,
1076
+ "notNull": false
1077
+ },
1078
+ "scopes": {
1079
+ "name": "scopes",
1080
+ "type": "text[]",
1081
+ "primaryKey": false,
1082
+ "notNull": true
1083
+ },
1084
+ "created_at": {
1085
+ "name": "created_at",
1086
+ "type": "timestamp",
1087
+ "primaryKey": false,
1088
+ "notNull": true
1089
+ },
1090
+ "updated_at": {
1091
+ "name": "updated_at",
1092
+ "type": "timestamp",
1093
+ "primaryKey": false,
1094
+ "notNull": true
1095
+ }
1096
+ },
1097
+ "indexes": {
1098
+ "oauthConsent_clientId_idx": {
1099
+ "name": "oauthConsent_clientId_idx",
1100
+ "columns": [
1101
+ {
1102
+ "expression": "client_id",
1103
+ "isExpression": false,
1104
+ "asc": true,
1105
+ "nulls": "last"
1106
+ }
1107
+ ],
1108
+ "isUnique": false,
1109
+ "concurrently": false,
1110
+ "method": "btree",
1111
+ "with": {}
1112
+ },
1113
+ "oauthConsent_userId_idx": {
1114
+ "name": "oauthConsent_userId_idx",
1115
+ "columns": [
1116
+ {
1117
+ "expression": "user_id",
1118
+ "isExpression": false,
1119
+ "asc": true,
1120
+ "nulls": "last"
1121
+ }
1122
+ ],
1123
+ "isUnique": false,
1124
+ "concurrently": false,
1125
+ "method": "btree",
1126
+ "with": {}
1127
+ }
1128
+ },
1129
+ "foreignKeys": {
1130
+ "oauth_consent_client_id_oauth_client_client_id_fk": {
1131
+ "name": "oauth_consent_client_id_oauth_client_client_id_fk",
1132
+ "tableFrom": "oauth_consent",
1133
+ "tableTo": "oauth_client",
1134
+ "columnsFrom": [
1135
+ "client_id"
1136
+ ],
1137
+ "columnsTo": [
1138
+ "client_id"
1139
+ ],
1140
+ "onDelete": "cascade",
1141
+ "onUpdate": "no action"
1142
+ },
1143
+ "oauth_consent_user_id_user_id_fk": {
1144
+ "name": "oauth_consent_user_id_user_id_fk",
1145
+ "tableFrom": "oauth_consent",
1146
+ "tableTo": "user",
1147
+ "columnsFrom": [
1148
+ "user_id"
1149
+ ],
1150
+ "columnsTo": [
1151
+ "id"
1152
+ ],
1153
+ "onDelete": "cascade",
1154
+ "onUpdate": "no action"
1155
+ }
1156
+ },
1157
+ "compositePrimaryKeys": {},
1158
+ "uniqueConstraints": {},
1159
+ "policies": {},
1160
+ "checkConstraints": {},
1161
+ "isRLSEnabled": false
1162
+ },
1163
+ "public.oauth_refresh_token": {
1164
+ "name": "oauth_refresh_token",
1165
+ "schema": "",
1166
+ "columns": {
1167
+ "id": {
1168
+ "name": "id",
1169
+ "type": "text",
1170
+ "primaryKey": true,
1171
+ "notNull": true
1172
+ },
1173
+ "token": {
1174
+ "name": "token",
1175
+ "type": "text",
1176
+ "primaryKey": false,
1177
+ "notNull": true
1178
+ },
1179
+ "client_id": {
1180
+ "name": "client_id",
1181
+ "type": "text",
1182
+ "primaryKey": false,
1183
+ "notNull": true
1184
+ },
1185
+ "session_id": {
1186
+ "name": "session_id",
1187
+ "type": "text",
1188
+ "primaryKey": false,
1189
+ "notNull": false
1190
+ },
1191
+ "user_id": {
1192
+ "name": "user_id",
1193
+ "type": "text",
1194
+ "primaryKey": false,
1195
+ "notNull": true
1196
+ },
1197
+ "reference_id": {
1198
+ "name": "reference_id",
1199
+ "type": "text",
1200
+ "primaryKey": false,
1201
+ "notNull": false
1202
+ },
1203
+ "authorization_code_id": {
1204
+ "name": "authorization_code_id",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": false
1208
+ },
1209
+ "resources": {
1210
+ "name": "resources",
1211
+ "type": "text[]",
1212
+ "primaryKey": false,
1213
+ "notNull": false
1214
+ },
1215
+ "requested_user_info_claims": {
1216
+ "name": "requested_user_info_claims",
1217
+ "type": "text[]",
1218
+ "primaryKey": false,
1219
+ "notNull": false
1220
+ },
1221
+ "expires_at": {
1222
+ "name": "expires_at",
1223
+ "type": "timestamp",
1224
+ "primaryKey": false,
1225
+ "notNull": true
1226
+ },
1227
+ "created_at": {
1228
+ "name": "created_at",
1229
+ "type": "timestamp",
1230
+ "primaryKey": false,
1231
+ "notNull": true
1232
+ },
1233
+ "revoked": {
1234
+ "name": "revoked",
1235
+ "type": "timestamp",
1236
+ "primaryKey": false,
1237
+ "notNull": false
1238
+ },
1239
+ "rotated_at": {
1240
+ "name": "rotated_at",
1241
+ "type": "timestamp",
1242
+ "primaryKey": false,
1243
+ "notNull": false
1244
+ },
1245
+ "rotation_replay_response": {
1246
+ "name": "rotation_replay_response",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": false
1250
+ },
1251
+ "rotation_replay_expires_at": {
1252
+ "name": "rotation_replay_expires_at",
1253
+ "type": "timestamp",
1254
+ "primaryKey": false,
1255
+ "notNull": false
1256
+ },
1257
+ "auth_time": {
1258
+ "name": "auth_time",
1259
+ "type": "timestamp",
1260
+ "primaryKey": false,
1261
+ "notNull": false
1262
+ },
1263
+ "confirmation": {
1264
+ "name": "confirmation",
1265
+ "type": "jsonb",
1266
+ "primaryKey": false,
1267
+ "notNull": false
1268
+ },
1269
+ "scopes": {
1270
+ "name": "scopes",
1271
+ "type": "text[]",
1272
+ "primaryKey": false,
1273
+ "notNull": true
1274
+ }
1275
+ },
1276
+ "indexes": {
1277
+ "oauthRefreshToken_clientId_idx": {
1278
+ "name": "oauthRefreshToken_clientId_idx",
1279
+ "columns": [
1280
+ {
1281
+ "expression": "client_id",
1282
+ "isExpression": false,
1283
+ "asc": true,
1284
+ "nulls": "last"
1285
+ }
1286
+ ],
1287
+ "isUnique": false,
1288
+ "concurrently": false,
1289
+ "method": "btree",
1290
+ "with": {}
1291
+ },
1292
+ "oauthRefreshToken_sessionId_idx": {
1293
+ "name": "oauthRefreshToken_sessionId_idx",
1294
+ "columns": [
1295
+ {
1296
+ "expression": "session_id",
1297
+ "isExpression": false,
1298
+ "asc": true,
1299
+ "nulls": "last"
1300
+ }
1301
+ ],
1302
+ "isUnique": false,
1303
+ "concurrently": false,
1304
+ "method": "btree",
1305
+ "with": {}
1306
+ },
1307
+ "oauthRefreshToken_userId_idx": {
1308
+ "name": "oauthRefreshToken_userId_idx",
1309
+ "columns": [
1310
+ {
1311
+ "expression": "user_id",
1312
+ "isExpression": false,
1313
+ "asc": true,
1314
+ "nulls": "last"
1315
+ }
1316
+ ],
1317
+ "isUnique": false,
1318
+ "concurrently": false,
1319
+ "method": "btree",
1320
+ "with": {}
1321
+ },
1322
+ "oauthRefreshToken_authorizationCodeId_idx": {
1323
+ "name": "oauthRefreshToken_authorizationCodeId_idx",
1324
+ "columns": [
1325
+ {
1326
+ "expression": "authorization_code_id",
1327
+ "isExpression": false,
1328
+ "asc": true,
1329
+ "nulls": "last"
1330
+ }
1331
+ ],
1332
+ "isUnique": false,
1333
+ "concurrently": false,
1334
+ "method": "btree",
1335
+ "with": {}
1336
+ }
1337
+ },
1338
+ "foreignKeys": {
1339
+ "oauth_refresh_token_client_id_oauth_client_client_id_fk": {
1340
+ "name": "oauth_refresh_token_client_id_oauth_client_client_id_fk",
1341
+ "tableFrom": "oauth_refresh_token",
1342
+ "tableTo": "oauth_client",
1343
+ "columnsFrom": [
1344
+ "client_id"
1345
+ ],
1346
+ "columnsTo": [
1347
+ "client_id"
1348
+ ],
1349
+ "onDelete": "cascade",
1350
+ "onUpdate": "no action"
1351
+ },
1352
+ "oauth_refresh_token_session_id_session_id_fk": {
1353
+ "name": "oauth_refresh_token_session_id_session_id_fk",
1354
+ "tableFrom": "oauth_refresh_token",
1355
+ "tableTo": "session",
1356
+ "columnsFrom": [
1357
+ "session_id"
1358
+ ],
1359
+ "columnsTo": [
1360
+ "id"
1361
+ ],
1362
+ "onDelete": "set null",
1363
+ "onUpdate": "no action"
1364
+ },
1365
+ "oauth_refresh_token_user_id_user_id_fk": {
1366
+ "name": "oauth_refresh_token_user_id_user_id_fk",
1367
+ "tableFrom": "oauth_refresh_token",
1368
+ "tableTo": "user",
1369
+ "columnsFrom": [
1370
+ "user_id"
1371
+ ],
1372
+ "columnsTo": [
1373
+ "id"
1374
+ ],
1375
+ "onDelete": "cascade",
1376
+ "onUpdate": "no action"
1377
+ }
1378
+ },
1379
+ "compositePrimaryKeys": {},
1380
+ "uniqueConstraints": {
1381
+ "oauth_refresh_token_token_unique": {
1382
+ "name": "oauth_refresh_token_token_unique",
1383
+ "nullsNotDistinct": false,
1384
+ "columns": [
1385
+ "token"
1386
+ ]
1387
+ }
1388
+ },
1389
+ "policies": {},
1390
+ "checkConstraints": {},
1391
+ "isRLSEnabled": false
1392
+ },
1393
+ "public.oauth_resource": {
1394
+ "name": "oauth_resource",
1395
+ "schema": "",
1396
+ "columns": {
1397
+ "id": {
1398
+ "name": "id",
1399
+ "type": "text",
1400
+ "primaryKey": true,
1401
+ "notNull": true
1402
+ },
1403
+ "identifier": {
1404
+ "name": "identifier",
1405
+ "type": "text",
1406
+ "primaryKey": false,
1407
+ "notNull": true
1408
+ },
1409
+ "name": {
1410
+ "name": "name",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": true
1414
+ },
1415
+ "access_token_ttl": {
1416
+ "name": "access_token_ttl",
1417
+ "type": "integer",
1418
+ "primaryKey": false,
1419
+ "notNull": false
1420
+ },
1421
+ "refresh_token_ttl": {
1422
+ "name": "refresh_token_ttl",
1423
+ "type": "integer",
1424
+ "primaryKey": false,
1425
+ "notNull": false
1426
+ },
1427
+ "signing_algorithm": {
1428
+ "name": "signing_algorithm",
1429
+ "type": "text",
1430
+ "primaryKey": false,
1431
+ "notNull": false
1432
+ },
1433
+ "signing_key_id": {
1434
+ "name": "signing_key_id",
1435
+ "type": "text",
1436
+ "primaryKey": false,
1437
+ "notNull": false
1438
+ },
1439
+ "allowed_scopes": {
1440
+ "name": "allowed_scopes",
1441
+ "type": "text[]",
1442
+ "primaryKey": false,
1443
+ "notNull": false
1444
+ },
1445
+ "custom_claims": {
1446
+ "name": "custom_claims",
1447
+ "type": "jsonb",
1448
+ "primaryKey": false,
1449
+ "notNull": false
1450
+ },
1451
+ "dpop_bound_access_tokens_required": {
1452
+ "name": "dpop_bound_access_tokens_required",
1453
+ "type": "boolean",
1454
+ "primaryKey": false,
1455
+ "notNull": false,
1456
+ "default": false
1457
+ },
1458
+ "disabled": {
1459
+ "name": "disabled",
1460
+ "type": "boolean",
1461
+ "primaryKey": false,
1462
+ "notNull": false,
1463
+ "default": false
1464
+ },
1465
+ "created_at": {
1466
+ "name": "created_at",
1467
+ "type": "timestamp",
1468
+ "primaryKey": false,
1469
+ "notNull": false
1470
+ },
1471
+ "updated_at": {
1472
+ "name": "updated_at",
1473
+ "type": "timestamp",
1474
+ "primaryKey": false,
1475
+ "notNull": false
1476
+ },
1477
+ "policy_version": {
1478
+ "name": "policy_version",
1479
+ "type": "integer",
1480
+ "primaryKey": false,
1481
+ "notNull": false,
1482
+ "default": 1
1483
+ },
1484
+ "metadata": {
1485
+ "name": "metadata",
1486
+ "type": "jsonb",
1487
+ "primaryKey": false,
1488
+ "notNull": false
1489
+ }
1490
+ },
1491
+ "indexes": {},
1492
+ "foreignKeys": {},
1493
+ "compositePrimaryKeys": {},
1494
+ "uniqueConstraints": {
1495
+ "oauth_resource_identifier_unique": {
1496
+ "name": "oauth_resource_identifier_unique",
1497
+ "nullsNotDistinct": false,
1498
+ "columns": [
1499
+ "identifier"
1500
+ ]
1501
+ }
1502
+ },
1503
+ "policies": {},
1504
+ "checkConstraints": {},
1505
+ "isRLSEnabled": false
1506
+ },
1507
+ "public.session": {
1508
+ "name": "session",
1509
+ "schema": "",
1510
+ "columns": {
1511
+ "id": {
1512
+ "name": "id",
1513
+ "type": "text",
1514
+ "primaryKey": true,
1515
+ "notNull": true
1516
+ },
1517
+ "expires_at": {
1518
+ "name": "expires_at",
1519
+ "type": "timestamp",
1520
+ "primaryKey": false,
1521
+ "notNull": true
1522
+ },
1523
+ "token": {
1524
+ "name": "token",
1525
+ "type": "text",
1526
+ "primaryKey": false,
1527
+ "notNull": true
1528
+ },
1529
+ "created_at": {
1530
+ "name": "created_at",
1531
+ "type": "timestamp",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "default": "now()"
1535
+ },
1536
+ "updated_at": {
1537
+ "name": "updated_at",
1538
+ "type": "timestamp",
1539
+ "primaryKey": false,
1540
+ "notNull": true
1541
+ },
1542
+ "ip_address": {
1543
+ "name": "ip_address",
1544
+ "type": "text",
1545
+ "primaryKey": false,
1546
+ "notNull": false
1547
+ },
1548
+ "user_agent": {
1549
+ "name": "user_agent",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": false
1553
+ },
1554
+ "user_id": {
1555
+ "name": "user_id",
1556
+ "type": "text",
1557
+ "primaryKey": false,
1558
+ "notNull": true
1559
+ },
1560
+ "impersonated_by": {
1561
+ "name": "impersonated_by",
1562
+ "type": "text",
1563
+ "primaryKey": false,
1564
+ "notNull": false
1565
+ }
1566
+ },
1567
+ "indexes": {
1568
+ "session_userId_idx": {
1569
+ "name": "session_userId_idx",
1570
+ "columns": [
1571
+ {
1572
+ "expression": "user_id",
1573
+ "isExpression": false,
1574
+ "asc": true,
1575
+ "nulls": "last"
1576
+ }
1577
+ ],
1578
+ "isUnique": false,
1579
+ "concurrently": false,
1580
+ "method": "btree",
1581
+ "with": {}
1582
+ }
1583
+ },
1584
+ "foreignKeys": {
1585
+ "session_user_id_user_id_fk": {
1586
+ "name": "session_user_id_user_id_fk",
1587
+ "tableFrom": "session",
1588
+ "tableTo": "user",
1589
+ "columnsFrom": [
1590
+ "user_id"
1591
+ ],
1592
+ "columnsTo": [
1593
+ "id"
1594
+ ],
1595
+ "onDelete": "cascade",
1596
+ "onUpdate": "no action"
1597
+ }
1598
+ },
1599
+ "compositePrimaryKeys": {},
1600
+ "uniqueConstraints": {
1601
+ "session_token_unique": {
1602
+ "name": "session_token_unique",
1603
+ "nullsNotDistinct": false,
1604
+ "columns": [
1605
+ "token"
1606
+ ]
1607
+ }
1608
+ },
1609
+ "policies": {},
1610
+ "checkConstraints": {},
1611
+ "isRLSEnabled": false
1612
+ },
1613
+ "public.user": {
1614
+ "name": "user",
1615
+ "schema": "",
1616
+ "columns": {
1617
+ "id": {
1618
+ "name": "id",
1619
+ "type": "text",
1620
+ "primaryKey": true,
1621
+ "notNull": true
1622
+ },
1623
+ "name": {
1624
+ "name": "name",
1625
+ "type": "text",
1626
+ "primaryKey": false,
1627
+ "notNull": true
1628
+ },
1629
+ "email": {
1630
+ "name": "email",
1631
+ "type": "text",
1632
+ "primaryKey": false,
1633
+ "notNull": true
1634
+ },
1635
+ "email_verified": {
1636
+ "name": "email_verified",
1637
+ "type": "boolean",
1638
+ "primaryKey": false,
1639
+ "notNull": true,
1640
+ "default": false
1641
+ },
1642
+ "image": {
1643
+ "name": "image",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": false
1647
+ },
1648
+ "created_at": {
1649
+ "name": "created_at",
1650
+ "type": "timestamp",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "default": "now()"
1654
+ },
1655
+ "updated_at": {
1656
+ "name": "updated_at",
1657
+ "type": "timestamp",
1658
+ "primaryKey": false,
1659
+ "notNull": true,
1660
+ "default": "now()"
1661
+ },
1662
+ "role": {
1663
+ "name": "role",
1664
+ "type": "text",
1665
+ "primaryKey": false,
1666
+ "notNull": false
1667
+ },
1668
+ "banned": {
1669
+ "name": "banned",
1670
+ "type": "boolean",
1671
+ "primaryKey": false,
1672
+ "notNull": false,
1673
+ "default": false
1674
+ },
1675
+ "ban_reason": {
1676
+ "name": "ban_reason",
1677
+ "type": "text",
1678
+ "primaryKey": false,
1679
+ "notNull": false
1680
+ },
1681
+ "ban_expires": {
1682
+ "name": "ban_expires",
1683
+ "type": "timestamp",
1684
+ "primaryKey": false,
1685
+ "notNull": false
1686
+ }
1687
+ },
1688
+ "indexes": {},
1689
+ "foreignKeys": {},
1690
+ "compositePrimaryKeys": {},
1691
+ "uniqueConstraints": {
1692
+ "user_email_unique": {
1693
+ "name": "user_email_unique",
1694
+ "nullsNotDistinct": false,
1695
+ "columns": [
1696
+ "email"
1697
+ ]
1698
+ }
1699
+ },
1700
+ "policies": {},
1701
+ "checkConstraints": {},
1702
+ "isRLSEnabled": false
1703
+ },
1704
+ "public.verification": {
1705
+ "name": "verification",
1706
+ "schema": "",
1707
+ "columns": {
1708
+ "id": {
1709
+ "name": "id",
1710
+ "type": "text",
1711
+ "primaryKey": true,
1712
+ "notNull": true
1713
+ },
1714
+ "identifier": {
1715
+ "name": "identifier",
1716
+ "type": "text",
1717
+ "primaryKey": false,
1718
+ "notNull": true
1719
+ },
1720
+ "value": {
1721
+ "name": "value",
1722
+ "type": "text",
1723
+ "primaryKey": false,
1724
+ "notNull": true
1725
+ },
1726
+ "expires_at": {
1727
+ "name": "expires_at",
1728
+ "type": "timestamp",
1729
+ "primaryKey": false,
1730
+ "notNull": true
1731
+ },
1732
+ "created_at": {
1733
+ "name": "created_at",
1734
+ "type": "timestamp",
1735
+ "primaryKey": false,
1736
+ "notNull": true,
1737
+ "default": "now()"
1738
+ },
1739
+ "updated_at": {
1740
+ "name": "updated_at",
1741
+ "type": "timestamp",
1742
+ "primaryKey": false,
1743
+ "notNull": true,
1744
+ "default": "now()"
1745
+ }
1746
+ },
1747
+ "indexes": {
1748
+ "verification_identifier_idx": {
1749
+ "name": "verification_identifier_idx",
1750
+ "columns": [
1751
+ {
1752
+ "expression": "identifier",
1753
+ "isExpression": false,
1754
+ "asc": true,
1755
+ "nulls": "last"
1756
+ }
1757
+ ],
1758
+ "isUnique": false,
1759
+ "concurrently": false,
1760
+ "method": "btree",
1761
+ "with": {}
1762
+ }
1763
+ },
1764
+ "foreignKeys": {},
1765
+ "compositePrimaryKeys": {},
1766
+ "uniqueConstraints": {},
1767
+ "policies": {},
1768
+ "checkConstraints": {},
1769
+ "isRLSEnabled": false
1770
+ },
1771
+ "public.attachment_content": {
1772
+ "name": "attachment_content",
1773
+ "schema": "",
1774
+ "columns": {
1775
+ "id": {
1776
+ "name": "id",
1777
+ "type": "uuid",
1778
+ "primaryKey": true,
1779
+ "notNull": true
1780
+ },
1781
+ "data": {
1782
+ "name": "data",
1783
+ "type": "bytea",
1784
+ "primaryKey": false,
1785
+ "notNull": true
1786
+ }
1787
+ },
1788
+ "indexes": {},
1789
+ "foreignKeys": {
1790
+ "attachment_content_id_attachments_id_fk": {
1791
+ "name": "attachment_content_id_attachments_id_fk",
1792
+ "tableFrom": "attachment_content",
1793
+ "tableTo": "attachments",
1794
+ "columnsFrom": [
1795
+ "id"
1796
+ ],
1797
+ "columnsTo": [
1798
+ "id"
1799
+ ],
1800
+ "onDelete": "cascade",
1801
+ "onUpdate": "no action"
1802
+ }
1803
+ },
1804
+ "compositePrimaryKeys": {},
1805
+ "uniqueConstraints": {},
1806
+ "policies": {},
1807
+ "checkConstraints": {},
1808
+ "isRLSEnabled": false
1809
+ },
1810
+ "public.attachments": {
1811
+ "name": "attachments",
1812
+ "schema": "",
1813
+ "columns": {
1814
+ "object_id": {
1815
+ "name": "object_id",
1816
+ "type": "uuid",
1817
+ "primaryKey": false,
1818
+ "notNull": false
1819
+ },
1820
+ "id": {
1821
+ "name": "id",
1822
+ "type": "uuid",
1823
+ "primaryKey": true,
1824
+ "notNull": true,
1825
+ "default": "gen_random_uuid()"
1826
+ },
1827
+ "project_id": {
1828
+ "name": "project_id",
1829
+ "type": "uuid",
1830
+ "primaryKey": false,
1831
+ "notNull": true
1832
+ },
1833
+ "ticket_id": {
1834
+ "name": "ticket_id",
1835
+ "type": "uuid",
1836
+ "primaryKey": false,
1837
+ "notNull": true
1838
+ },
1839
+ "actor_id": {
1840
+ "name": "actor_id",
1841
+ "type": "text",
1842
+ "primaryKey": false,
1843
+ "notNull": true
1844
+ },
1845
+ "name": {
1846
+ "name": "name",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": true
1850
+ },
1851
+ "content_type": {
1852
+ "name": "content_type",
1853
+ "type": "text",
1854
+ "primaryKey": false,
1855
+ "notNull": true
1856
+ },
1857
+ "size": {
1858
+ "name": "size",
1859
+ "type": "integer",
1860
+ "primaryKey": false,
1861
+ "notNull": true
1862
+ },
1863
+ "created_at": {
1864
+ "name": "created_at",
1865
+ "type": "timestamp with time zone",
1866
+ "primaryKey": false,
1867
+ "notNull": true,
1868
+ "default": "now()"
1869
+ }
1870
+ },
1871
+ "indexes": {},
1872
+ "foreignKeys": {
1873
+ "attachments_object_id_blob_objects_id_fk": {
1874
+ "name": "attachments_object_id_blob_objects_id_fk",
1875
+ "tableFrom": "attachments",
1876
+ "tableTo": "blob_objects",
1877
+ "columnsFrom": [
1878
+ "object_id"
1879
+ ],
1880
+ "columnsTo": [
1881
+ "id"
1882
+ ],
1883
+ "onDelete": "no action",
1884
+ "onUpdate": "no action"
1885
+ },
1886
+ "attachments_project_id_projects_id_fk": {
1887
+ "name": "attachments_project_id_projects_id_fk",
1888
+ "tableFrom": "attachments",
1889
+ "tableTo": "projects",
1890
+ "columnsFrom": [
1891
+ "project_id"
1892
+ ],
1893
+ "columnsTo": [
1894
+ "id"
1895
+ ],
1896
+ "onDelete": "cascade",
1897
+ "onUpdate": "no action"
1898
+ },
1899
+ "attachments_ticket_id_tickets_id_fk": {
1900
+ "name": "attachments_ticket_id_tickets_id_fk",
1901
+ "tableFrom": "attachments",
1902
+ "tableTo": "tickets",
1903
+ "columnsFrom": [
1904
+ "ticket_id"
1905
+ ],
1906
+ "columnsTo": [
1907
+ "id"
1908
+ ],
1909
+ "onDelete": "cascade",
1910
+ "onUpdate": "no action"
1911
+ },
1912
+ "attachments_actor_id_user_id_fk": {
1913
+ "name": "attachments_actor_id_user_id_fk",
1914
+ "tableFrom": "attachments",
1915
+ "tableTo": "user",
1916
+ "columnsFrom": [
1917
+ "actor_id"
1918
+ ],
1919
+ "columnsTo": [
1920
+ "id"
1921
+ ],
1922
+ "onDelete": "no action",
1923
+ "onUpdate": "no action"
1924
+ }
1925
+ },
1926
+ "compositePrimaryKeys": {},
1927
+ "uniqueConstraints": {},
1928
+ "policies": {},
1929
+ "checkConstraints": {},
1930
+ "isRLSEnabled": false
1931
+ },
1932
+ "public.blob_objects": {
1933
+ "name": "blob_objects",
1934
+ "schema": "",
1935
+ "columns": {
1936
+ "id": {
1937
+ "name": "id",
1938
+ "type": "uuid",
1939
+ "primaryKey": true,
1940
+ "notNull": true
1941
+ },
1942
+ "backend_id": {
1943
+ "name": "backend_id",
1944
+ "type": "uuid",
1945
+ "primaryKey": false,
1946
+ "notNull": false
1947
+ },
1948
+ "object_key": {
1949
+ "name": "object_key",
1950
+ "type": "text",
1951
+ "primaryKey": false,
1952
+ "notNull": false
1953
+ },
1954
+ "data": {
1955
+ "name": "data",
1956
+ "type": "bytea",
1957
+ "primaryKey": false,
1958
+ "notNull": false
1959
+ },
1960
+ "content_type": {
1961
+ "name": "content_type",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": true
1965
+ },
1966
+ "size": {
1967
+ "name": "size",
1968
+ "type": "integer",
1969
+ "primaryKey": false,
1970
+ "notNull": true
1971
+ },
1972
+ "sha256": {
1973
+ "name": "sha256",
1974
+ "type": "text",
1975
+ "primaryKey": false,
1976
+ "notNull": true
1977
+ },
1978
+ "created_at": {
1979
+ "name": "created_at",
1980
+ "type": "timestamp with time zone",
1981
+ "primaryKey": false,
1982
+ "notNull": true,
1983
+ "default": "now()"
1984
+ }
1985
+ },
1986
+ "indexes": {
1987
+ "blob_objects_created": {
1988
+ "name": "blob_objects_created",
1989
+ "columns": [
1990
+ {
1991
+ "expression": "created_at",
1992
+ "isExpression": false,
1993
+ "asc": true,
1994
+ "nulls": "last"
1995
+ }
1996
+ ],
1997
+ "isUnique": false,
1998
+ "concurrently": false,
1999
+ "method": "btree",
2000
+ "with": {}
2001
+ }
2002
+ },
2003
+ "foreignKeys": {
2004
+ "blob_objects_backend_id_storage_backends_id_fk": {
2005
+ "name": "blob_objects_backend_id_storage_backends_id_fk",
2006
+ "tableFrom": "blob_objects",
2007
+ "tableTo": "storage_backends",
2008
+ "columnsFrom": [
2009
+ "backend_id"
2010
+ ],
2011
+ "columnsTo": [
2012
+ "id"
2013
+ ],
2014
+ "onDelete": "no action",
2015
+ "onUpdate": "no action"
2016
+ }
2017
+ },
2018
+ "compositePrimaryKeys": {},
2019
+ "uniqueConstraints": {},
2020
+ "policies": {},
2021
+ "checkConstraints": {},
2022
+ "isRLSEnabled": false
2023
+ },
2024
+ "public.calendar_feeds": {
2025
+ "name": "calendar_feeds",
2026
+ "schema": "",
2027
+ "columns": {
2028
+ "id": {
2029
+ "name": "id",
2030
+ "type": "uuid",
2031
+ "primaryKey": true,
2032
+ "notNull": true,
2033
+ "default": "gen_random_uuid()"
2034
+ },
2035
+ "project_id": {
2036
+ "name": "project_id",
2037
+ "type": "uuid",
2038
+ "primaryKey": false,
2039
+ "notNull": true
2040
+ },
2041
+ "created_by": {
2042
+ "name": "created_by",
2043
+ "type": "text",
2044
+ "primaryKey": false,
2045
+ "notNull": true
2046
+ },
2047
+ "name": {
2048
+ "name": "name",
2049
+ "type": "text",
2050
+ "primaryKey": false,
2051
+ "notNull": true
2052
+ },
2053
+ "labels": {
2054
+ "name": "labels",
2055
+ "type": "text[]",
2056
+ "primaryKey": false,
2057
+ "notNull": true,
2058
+ "default": "'{}'"
2059
+ },
2060
+ "time_zone": {
2061
+ "name": "time_zone",
2062
+ "type": "text",
2063
+ "primaryKey": false,
2064
+ "notNull": true
2065
+ },
2066
+ "token_hash": {
2067
+ "name": "token_hash",
2068
+ "type": "text",
2069
+ "primaryKey": false,
2070
+ "notNull": true
2071
+ },
2072
+ "created_at": {
2073
+ "name": "created_at",
2074
+ "type": "timestamp with time zone",
2075
+ "primaryKey": false,
2076
+ "notNull": true,
2077
+ "default": "now()"
2078
+ }
2079
+ },
2080
+ "indexes": {
2081
+ "calendar_feed_project": {
2082
+ "name": "calendar_feed_project",
2083
+ "columns": [
2084
+ {
2085
+ "expression": "project_id",
2086
+ "isExpression": false,
2087
+ "asc": true,
2088
+ "nulls": "last"
2089
+ }
2090
+ ],
2091
+ "isUnique": false,
2092
+ "concurrently": false,
2093
+ "method": "btree",
2094
+ "with": {}
2095
+ }
2096
+ },
2097
+ "foreignKeys": {
2098
+ "calendar_feeds_project_id_projects_id_fk": {
2099
+ "name": "calendar_feeds_project_id_projects_id_fk",
2100
+ "tableFrom": "calendar_feeds",
2101
+ "tableTo": "projects",
2102
+ "columnsFrom": [
2103
+ "project_id"
2104
+ ],
2105
+ "columnsTo": [
2106
+ "id"
2107
+ ],
2108
+ "onDelete": "cascade",
2109
+ "onUpdate": "no action"
2110
+ },
2111
+ "calendar_feeds_created_by_user_id_fk": {
2112
+ "name": "calendar_feeds_created_by_user_id_fk",
2113
+ "tableFrom": "calendar_feeds",
2114
+ "tableTo": "user",
2115
+ "columnsFrom": [
2116
+ "created_by"
2117
+ ],
2118
+ "columnsTo": [
2119
+ "id"
2120
+ ],
2121
+ "onDelete": "cascade",
2122
+ "onUpdate": "no action"
2123
+ }
2124
+ },
2125
+ "compositePrimaryKeys": {},
2126
+ "uniqueConstraints": {
2127
+ "calendar_feeds_token_hash_unique": {
2128
+ "name": "calendar_feeds_token_hash_unique",
2129
+ "nullsNotDistinct": false,
2130
+ "columns": [
2131
+ "token_hash"
2132
+ ]
2133
+ }
2134
+ },
2135
+ "policies": {},
2136
+ "checkConstraints": {},
2137
+ "isRLSEnabled": false
2138
+ },
2139
+ "public.claims": {
2140
+ "name": "claims",
2141
+ "schema": "",
2142
+ "columns": {
2143
+ "id": {
2144
+ "name": "id",
2145
+ "type": "uuid",
2146
+ "primaryKey": true,
2147
+ "notNull": true,
2148
+ "default": "gen_random_uuid()"
2149
+ },
2150
+ "project_id": {
2151
+ "name": "project_id",
2152
+ "type": "uuid",
2153
+ "primaryKey": false,
2154
+ "notNull": true
2155
+ },
2156
+ "ticket_id": {
2157
+ "name": "ticket_id",
2158
+ "type": "uuid",
2159
+ "primaryKey": false,
2160
+ "notNull": true
2161
+ },
2162
+ "actor_id": {
2163
+ "name": "actor_id",
2164
+ "type": "text",
2165
+ "primaryKey": false,
2166
+ "notNull": true
2167
+ },
2168
+ "owner_id": {
2169
+ "name": "owner_id",
2170
+ "type": "text",
2171
+ "primaryKey": false,
2172
+ "notNull": true
2173
+ },
2174
+ "worker_id": {
2175
+ "name": "worker_id",
2176
+ "type": "text",
2177
+ "primaryKey": false,
2178
+ "notNull": true
2179
+ },
2180
+ "expires_at": {
2181
+ "name": "expires_at",
2182
+ "type": "timestamp with time zone",
2183
+ "primaryKey": false,
2184
+ "notNull": true
2185
+ },
2186
+ "created_at": {
2187
+ "name": "created_at",
2188
+ "type": "timestamp with time zone",
2189
+ "primaryKey": false,
2190
+ "notNull": true,
2191
+ "default": "now()"
2192
+ }
2193
+ },
2194
+ "indexes": {},
2195
+ "foreignKeys": {
2196
+ "claims_project_id_projects_id_fk": {
2197
+ "name": "claims_project_id_projects_id_fk",
2198
+ "tableFrom": "claims",
2199
+ "tableTo": "projects",
2200
+ "columnsFrom": [
2201
+ "project_id"
2202
+ ],
2203
+ "columnsTo": [
2204
+ "id"
2205
+ ],
2206
+ "onDelete": "cascade",
2207
+ "onUpdate": "no action"
2208
+ },
2209
+ "claims_ticket_id_tickets_id_fk": {
2210
+ "name": "claims_ticket_id_tickets_id_fk",
2211
+ "tableFrom": "claims",
2212
+ "tableTo": "tickets",
2213
+ "columnsFrom": [
2214
+ "ticket_id"
2215
+ ],
2216
+ "columnsTo": [
2217
+ "id"
2218
+ ],
2219
+ "onDelete": "cascade",
2220
+ "onUpdate": "no action"
2221
+ },
2222
+ "claims_actor_id_user_id_fk": {
2223
+ "name": "claims_actor_id_user_id_fk",
2224
+ "tableFrom": "claims",
2225
+ "tableTo": "user",
2226
+ "columnsFrom": [
2227
+ "actor_id"
2228
+ ],
2229
+ "columnsTo": [
2230
+ "id"
2231
+ ],
2232
+ "onDelete": "no action",
2233
+ "onUpdate": "no action"
2234
+ }
2235
+ },
2236
+ "compositePrimaryKeys": {},
2237
+ "uniqueConstraints": {
2238
+ "claims_ticket_id_unique": {
2239
+ "name": "claims_ticket_id_unique",
2240
+ "nullsNotDistinct": false,
2241
+ "columns": [
2242
+ "ticket_id"
2243
+ ]
2244
+ }
2245
+ },
2246
+ "policies": {},
2247
+ "checkConstraints": {},
2248
+ "isRLSEnabled": false
2249
+ },
2250
+ "public.comments": {
2251
+ "name": "comments",
2252
+ "schema": "",
2253
+ "columns": {
2254
+ "id": {
2255
+ "name": "id",
2256
+ "type": "uuid",
2257
+ "primaryKey": true,
2258
+ "notNull": true,
2259
+ "default": "gen_random_uuid()"
2260
+ },
2261
+ "project_id": {
2262
+ "name": "project_id",
2263
+ "type": "uuid",
2264
+ "primaryKey": false,
2265
+ "notNull": true
2266
+ },
2267
+ "ticket_id": {
2268
+ "name": "ticket_id",
2269
+ "type": "uuid",
2270
+ "primaryKey": false,
2271
+ "notNull": true
2272
+ },
2273
+ "actor_id": {
2274
+ "name": "actor_id",
2275
+ "type": "text",
2276
+ "primaryKey": false,
2277
+ "notNull": true
2278
+ },
2279
+ "body": {
2280
+ "name": "body",
2281
+ "type": "text",
2282
+ "primaryKey": false,
2283
+ "notNull": true
2284
+ },
2285
+ "version": {
2286
+ "name": "version",
2287
+ "type": "integer",
2288
+ "primaryKey": false,
2289
+ "notNull": true,
2290
+ "default": 1
2291
+ },
2292
+ "created_at": {
2293
+ "name": "created_at",
2294
+ "type": "timestamp with time zone",
2295
+ "primaryKey": false,
2296
+ "notNull": true,
2297
+ "default": "now()"
2298
+ },
2299
+ "updated_at": {
2300
+ "name": "updated_at",
2301
+ "type": "timestamp with time zone",
2302
+ "primaryKey": false,
2303
+ "notNull": true,
2304
+ "default": "now()"
2305
+ }
2306
+ },
2307
+ "indexes": {
2308
+ "comment_ticket": {
2309
+ "name": "comment_ticket",
2310
+ "columns": [
2311
+ {
2312
+ "expression": "ticket_id",
2313
+ "isExpression": false,
2314
+ "asc": true,
2315
+ "nulls": "last"
2316
+ }
2317
+ ],
2318
+ "isUnique": false,
2319
+ "concurrently": false,
2320
+ "method": "btree",
2321
+ "with": {}
2322
+ }
2323
+ },
2324
+ "foreignKeys": {
2325
+ "comments_project_id_projects_id_fk": {
2326
+ "name": "comments_project_id_projects_id_fk",
2327
+ "tableFrom": "comments",
2328
+ "tableTo": "projects",
2329
+ "columnsFrom": [
2330
+ "project_id"
2331
+ ],
2332
+ "columnsTo": [
2333
+ "id"
2334
+ ],
2335
+ "onDelete": "cascade",
2336
+ "onUpdate": "no action"
2337
+ },
2338
+ "comments_ticket_id_tickets_id_fk": {
2339
+ "name": "comments_ticket_id_tickets_id_fk",
2340
+ "tableFrom": "comments",
2341
+ "tableTo": "tickets",
2342
+ "columnsFrom": [
2343
+ "ticket_id"
2344
+ ],
2345
+ "columnsTo": [
2346
+ "id"
2347
+ ],
2348
+ "onDelete": "cascade",
2349
+ "onUpdate": "no action"
2350
+ },
2351
+ "comments_actor_id_user_id_fk": {
2352
+ "name": "comments_actor_id_user_id_fk",
2353
+ "tableFrom": "comments",
2354
+ "tableTo": "user",
2355
+ "columnsFrom": [
2356
+ "actor_id"
2357
+ ],
2358
+ "columnsTo": [
2359
+ "id"
2360
+ ],
2361
+ "onDelete": "no action",
2362
+ "onUpdate": "no action"
2363
+ }
2364
+ },
2365
+ "compositePrimaryKeys": {},
2366
+ "uniqueConstraints": {},
2367
+ "policies": {},
2368
+ "checkConstraints": {},
2369
+ "isRLSEnabled": false
2370
+ },
2371
+ "public.deliveries": {
2372
+ "name": "deliveries",
2373
+ "schema": "",
2374
+ "columns": {
2375
+ "id": {
2376
+ "name": "id",
2377
+ "type": "uuid",
2378
+ "primaryKey": true,
2379
+ "notNull": true,
2380
+ "default": "gen_random_uuid()"
2381
+ },
2382
+ "notification_id": {
2383
+ "name": "notification_id",
2384
+ "type": "uuid",
2385
+ "primaryKey": false,
2386
+ "notNull": false
2387
+ },
2388
+ "event_id": {
2389
+ "name": "event_id",
2390
+ "type": "bigint",
2391
+ "primaryKey": false,
2392
+ "notNull": false
2393
+ },
2394
+ "device_id": {
2395
+ "name": "device_id",
2396
+ "type": "uuid",
2397
+ "primaryKey": false,
2398
+ "notNull": false
2399
+ },
2400
+ "channel_id": {
2401
+ "name": "channel_id",
2402
+ "type": "uuid",
2403
+ "primaryKey": false,
2404
+ "notNull": false
2405
+ },
2406
+ "destination_id": {
2407
+ "name": "destination_id",
2408
+ "type": "uuid",
2409
+ "primaryKey": false,
2410
+ "notNull": false
2411
+ },
2412
+ "attempts": {
2413
+ "name": "attempts",
2414
+ "type": "integer",
2415
+ "primaryKey": false,
2416
+ "notNull": true,
2417
+ "default": 0
2418
+ },
2419
+ "available_at": {
2420
+ "name": "available_at",
2421
+ "type": "timestamp with time zone",
2422
+ "primaryKey": false,
2423
+ "notNull": true,
2424
+ "default": "now()"
2425
+ },
2426
+ "receipt_id": {
2427
+ "name": "receipt_id",
2428
+ "type": "text",
2429
+ "primaryKey": false,
2430
+ "notNull": false
2431
+ },
2432
+ "finished_at": {
2433
+ "name": "finished_at",
2434
+ "type": "timestamp with time zone",
2435
+ "primaryKey": false,
2436
+ "notNull": false
2437
+ },
2438
+ "error": {
2439
+ "name": "error",
2440
+ "type": "text",
2441
+ "primaryKey": false,
2442
+ "notNull": false
2443
+ },
2444
+ "created_at": {
2445
+ "name": "created_at",
2446
+ "type": "timestamp with time zone",
2447
+ "primaryKey": false,
2448
+ "notNull": true,
2449
+ "default": "now()"
2450
+ }
2451
+ },
2452
+ "indexes": {
2453
+ "delivery_pending": {
2454
+ "name": "delivery_pending",
2455
+ "columns": [
2456
+ {
2457
+ "expression": "finished_at",
2458
+ "isExpression": false,
2459
+ "asc": true,
2460
+ "nulls": "last"
2461
+ },
2462
+ {
2463
+ "expression": "available_at",
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
+ "deliveries_notification_id_notifications_id_fk": {
2477
+ "name": "deliveries_notification_id_notifications_id_fk",
2478
+ "tableFrom": "deliveries",
2479
+ "tableTo": "notifications",
2480
+ "columnsFrom": [
2481
+ "notification_id"
2482
+ ],
2483
+ "columnsTo": [
2484
+ "id"
2485
+ ],
2486
+ "onDelete": "cascade",
2487
+ "onUpdate": "no action"
2488
+ },
2489
+ "deliveries_event_id_events_id_fk": {
2490
+ "name": "deliveries_event_id_events_id_fk",
2491
+ "tableFrom": "deliveries",
2492
+ "tableTo": "events",
2493
+ "columnsFrom": [
2494
+ "event_id"
2495
+ ],
2496
+ "columnsTo": [
2497
+ "id"
2498
+ ],
2499
+ "onDelete": "cascade",
2500
+ "onUpdate": "no action"
2501
+ },
2502
+ "deliveries_device_id_push_devices_id_fk": {
2503
+ "name": "deliveries_device_id_push_devices_id_fk",
2504
+ "tableFrom": "deliveries",
2505
+ "tableTo": "push_devices",
2506
+ "columnsFrom": [
2507
+ "device_id"
2508
+ ],
2509
+ "columnsTo": [
2510
+ "id"
2511
+ ],
2512
+ "onDelete": "cascade",
2513
+ "onUpdate": "no action"
2514
+ },
2515
+ "deliveries_channel_id_notification_channels_id_fk": {
2516
+ "name": "deliveries_channel_id_notification_channels_id_fk",
2517
+ "tableFrom": "deliveries",
2518
+ "tableTo": "notification_channels",
2519
+ "columnsFrom": [
2520
+ "channel_id"
2521
+ ],
2522
+ "columnsTo": [
2523
+ "id"
2524
+ ],
2525
+ "onDelete": "cascade",
2526
+ "onUpdate": "no action"
2527
+ },
2528
+ "deliveries_destination_id_project_destinations_id_fk": {
2529
+ "name": "deliveries_destination_id_project_destinations_id_fk",
2530
+ "tableFrom": "deliveries",
2531
+ "tableTo": "project_destinations",
2532
+ "columnsFrom": [
2533
+ "destination_id"
2534
+ ],
2535
+ "columnsTo": [
2536
+ "id"
2537
+ ],
2538
+ "onDelete": "cascade",
2539
+ "onUpdate": "no action"
2540
+ }
2541
+ },
2542
+ "compositePrimaryKeys": {},
2543
+ "uniqueConstraints": {
2544
+ "delivery_device": {
2545
+ "name": "delivery_device",
2546
+ "nullsNotDistinct": false,
2547
+ "columns": [
2548
+ "notification_id",
2549
+ "device_id"
2550
+ ]
2551
+ },
2552
+ "delivery_channel": {
2553
+ "name": "delivery_channel",
2554
+ "nullsNotDistinct": false,
2555
+ "columns": [
2556
+ "notification_id",
2557
+ "channel_id"
2558
+ ]
2559
+ },
2560
+ "delivery_destination": {
2561
+ "name": "delivery_destination",
2562
+ "nullsNotDistinct": false,
2563
+ "columns": [
2564
+ "event_id",
2565
+ "destination_id"
2566
+ ]
2567
+ }
2568
+ },
2569
+ "policies": {},
2570
+ "checkConstraints": {
2571
+ "delivery_one_target": {
2572
+ "name": "delivery_one_target",
2573
+ "value": "num_nonnulls(\"deliveries\".\"device_id\", \"deliveries\".\"channel_id\", \"deliveries\".\"destination_id\") = 1"
2574
+ }
2575
+ },
2576
+ "isRLSEnabled": false
2577
+ },
2578
+ "public.delivery_checkpoints": {
2579
+ "name": "delivery_checkpoints",
2580
+ "schema": "",
2581
+ "columns": {
2582
+ "destination": {
2583
+ "name": "destination",
2584
+ "type": "text",
2585
+ "primaryKey": true,
2586
+ "notNull": true
2587
+ },
2588
+ "cursor": {
2589
+ "name": "cursor",
2590
+ "type": "bigint",
2591
+ "primaryKey": false,
2592
+ "notNull": true,
2593
+ "default": "0"
2594
+ }
2595
+ },
2596
+ "indexes": {},
2597
+ "foreignKeys": {},
2598
+ "compositePrimaryKeys": {},
2599
+ "uniqueConstraints": {},
2600
+ "policies": {},
2601
+ "checkConstraints": {},
2602
+ "isRLSEnabled": false
2603
+ },
2604
+ "public.event_clock": {
2605
+ "name": "event_clock",
2606
+ "schema": "",
2607
+ "columns": {
2608
+ "id": {
2609
+ "name": "id",
2610
+ "type": "integer",
2611
+ "primaryKey": true,
2612
+ "notNull": true
2613
+ },
2614
+ "value": {
2615
+ "name": "value",
2616
+ "type": "bigint",
2617
+ "primaryKey": false,
2618
+ "notNull": true,
2619
+ "default": "0"
2620
+ },
2621
+ "floor": {
2622
+ "name": "floor",
2623
+ "type": "bigint",
2624
+ "primaryKey": false,
2625
+ "notNull": true,
2626
+ "default": "0"
2627
+ }
2628
+ },
2629
+ "indexes": {},
2630
+ "foreignKeys": {},
2631
+ "compositePrimaryKeys": {},
2632
+ "uniqueConstraints": {},
2633
+ "policies": {},
2634
+ "checkConstraints": {},
2635
+ "isRLSEnabled": false
2636
+ },
2637
+ "public.events": {
2638
+ "name": "events",
2639
+ "schema": "",
2640
+ "columns": {
2641
+ "id": {
2642
+ "name": "id",
2643
+ "type": "bigint",
2644
+ "primaryKey": true,
2645
+ "notNull": true
2646
+ },
2647
+ "project_id": {
2648
+ "name": "project_id",
2649
+ "type": "uuid",
2650
+ "primaryKey": false,
2651
+ "notNull": true
2652
+ },
2653
+ "ticket_id": {
2654
+ "name": "ticket_id",
2655
+ "type": "uuid",
2656
+ "primaryKey": false,
2657
+ "notNull": false
2658
+ },
2659
+ "actor_id": {
2660
+ "name": "actor_id",
2661
+ "type": "text",
2662
+ "primaryKey": false,
2663
+ "notNull": false
2664
+ },
2665
+ "type": {
2666
+ "name": "type",
2667
+ "type": "text",
2668
+ "primaryKey": false,
2669
+ "notNull": true
2670
+ },
2671
+ "data": {
2672
+ "name": "data",
2673
+ "type": "jsonb",
2674
+ "primaryKey": false,
2675
+ "notNull": true
2676
+ },
2677
+ "created_at": {
2678
+ "name": "created_at",
2679
+ "type": "timestamp with time zone",
2680
+ "primaryKey": false,
2681
+ "notNull": true,
2682
+ "default": "now()"
2683
+ }
2684
+ },
2685
+ "indexes": {
2686
+ "event_project_cursor": {
2687
+ "name": "event_project_cursor",
2688
+ "columns": [
2689
+ {
2690
+ "expression": "project_id",
2691
+ "isExpression": false,
2692
+ "asc": true,
2693
+ "nulls": "last"
2694
+ },
2695
+ {
2696
+ "expression": "id",
2697
+ "isExpression": false,
2698
+ "asc": true,
2699
+ "nulls": "last"
2700
+ }
2701
+ ],
2702
+ "isUnique": false,
2703
+ "concurrently": false,
2704
+ "method": "btree",
2705
+ "with": {}
2706
+ },
2707
+ "event_ticket": {
2708
+ "name": "event_ticket",
2709
+ "columns": [
2710
+ {
2711
+ "expression": "ticket_id",
2712
+ "isExpression": false,
2713
+ "asc": true,
2714
+ "nulls": "last"
2715
+ },
2716
+ {
2717
+ "expression": "id",
2718
+ "isExpression": false,
2719
+ "asc": true,
2720
+ "nulls": "last"
2721
+ }
2722
+ ],
2723
+ "isUnique": false,
2724
+ "concurrently": false,
2725
+ "method": "btree",
2726
+ "with": {}
2727
+ }
2728
+ },
2729
+ "foreignKeys": {
2730
+ "events_project_id_projects_id_fk": {
2731
+ "name": "events_project_id_projects_id_fk",
2732
+ "tableFrom": "events",
2733
+ "tableTo": "projects",
2734
+ "columnsFrom": [
2735
+ "project_id"
2736
+ ],
2737
+ "columnsTo": [
2738
+ "id"
2739
+ ],
2740
+ "onDelete": "cascade",
2741
+ "onUpdate": "no action"
2742
+ },
2743
+ "events_actor_id_user_id_fk": {
2744
+ "name": "events_actor_id_user_id_fk",
2745
+ "tableFrom": "events",
2746
+ "tableTo": "user",
2747
+ "columnsFrom": [
2748
+ "actor_id"
2749
+ ],
2750
+ "columnsTo": [
2751
+ "id"
2752
+ ],
2753
+ "onDelete": "no action",
2754
+ "onUpdate": "no action"
2755
+ }
2756
+ },
2757
+ "compositePrimaryKeys": {},
2758
+ "uniqueConstraints": {},
2759
+ "policies": {},
2760
+ "checkConstraints": {},
2761
+ "isRLSEnabled": false
2762
+ },
2763
+ "public.evidence": {
2764
+ "name": "evidence",
2765
+ "schema": "",
2766
+ "columns": {
2767
+ "id": {
2768
+ "name": "id",
2769
+ "type": "uuid",
2770
+ "primaryKey": true,
2771
+ "notNull": true,
2772
+ "default": "gen_random_uuid()"
2773
+ },
2774
+ "project_id": {
2775
+ "name": "project_id",
2776
+ "type": "uuid",
2777
+ "primaryKey": false,
2778
+ "notNull": true
2779
+ },
2780
+ "ticket_id": {
2781
+ "name": "ticket_id",
2782
+ "type": "uuid",
2783
+ "primaryKey": false,
2784
+ "notNull": true
2785
+ },
2786
+ "actor_id": {
2787
+ "name": "actor_id",
2788
+ "type": "text",
2789
+ "primaryKey": false,
2790
+ "notNull": true
2791
+ },
2792
+ "title": {
2793
+ "name": "title",
2794
+ "type": "text",
2795
+ "primaryKey": false,
2796
+ "notNull": true
2797
+ },
2798
+ "kind": {
2799
+ "name": "kind",
2800
+ "type": "text",
2801
+ "primaryKey": false,
2802
+ "notNull": true
2803
+ },
2804
+ "url": {
2805
+ "name": "url",
2806
+ "type": "text",
2807
+ "primaryKey": false,
2808
+ "notNull": true
2809
+ },
2810
+ "commit": {
2811
+ "name": "commit",
2812
+ "type": "text",
2813
+ "primaryKey": false,
2814
+ "notNull": false
2815
+ },
2816
+ "outcome": {
2817
+ "name": "outcome",
2818
+ "type": "text",
2819
+ "primaryKey": false,
2820
+ "notNull": true
2821
+ },
2822
+ "note": {
2823
+ "name": "note",
2824
+ "type": "text",
2825
+ "primaryKey": false,
2826
+ "notNull": true
2827
+ },
2828
+ "created_at": {
2829
+ "name": "created_at",
2830
+ "type": "timestamp with time zone",
2831
+ "primaryKey": false,
2832
+ "notNull": true,
2833
+ "default": "now()"
2834
+ }
2835
+ },
2836
+ "indexes": {},
2837
+ "foreignKeys": {
2838
+ "evidence_project_id_projects_id_fk": {
2839
+ "name": "evidence_project_id_projects_id_fk",
2840
+ "tableFrom": "evidence",
2841
+ "tableTo": "projects",
2842
+ "columnsFrom": [
2843
+ "project_id"
2844
+ ],
2845
+ "columnsTo": [
2846
+ "id"
2847
+ ],
2848
+ "onDelete": "cascade",
2849
+ "onUpdate": "no action"
2850
+ },
2851
+ "evidence_ticket_id_tickets_id_fk": {
2852
+ "name": "evidence_ticket_id_tickets_id_fk",
2853
+ "tableFrom": "evidence",
2854
+ "tableTo": "tickets",
2855
+ "columnsFrom": [
2856
+ "ticket_id"
2857
+ ],
2858
+ "columnsTo": [
2859
+ "id"
2860
+ ],
2861
+ "onDelete": "cascade",
2862
+ "onUpdate": "no action"
2863
+ },
2864
+ "evidence_actor_id_user_id_fk": {
2865
+ "name": "evidence_actor_id_user_id_fk",
2866
+ "tableFrom": "evidence",
2867
+ "tableTo": "user",
2868
+ "columnsFrom": [
2869
+ "actor_id"
2870
+ ],
2871
+ "columnsTo": [
2872
+ "id"
2873
+ ],
2874
+ "onDelete": "no action",
2875
+ "onUpdate": "no action"
2876
+ }
2877
+ },
2878
+ "compositePrimaryKeys": {},
2879
+ "uniqueConstraints": {},
2880
+ "policies": {},
2881
+ "checkConstraints": {},
2882
+ "isRLSEnabled": false
2883
+ },
2884
+ "public.instance_settings": {
2885
+ "name": "instance_settings",
2886
+ "schema": "",
2887
+ "columns": {
2888
+ "id": {
2889
+ "name": "id",
2890
+ "type": "integer",
2891
+ "primaryKey": true,
2892
+ "notNull": true,
2893
+ "default": 1
2894
+ },
2895
+ "identity": {
2896
+ "name": "identity",
2897
+ "type": "uuid",
2898
+ "primaryKey": false,
2899
+ "notNull": true,
2900
+ "default": "gen_random_uuid()"
2901
+ },
2902
+ "version": {
2903
+ "name": "version",
2904
+ "type": "integer",
2905
+ "primaryKey": false,
2906
+ "notNull": true,
2907
+ "default": 1
2908
+ },
2909
+ "name": {
2910
+ "name": "name",
2911
+ "type": "text",
2912
+ "primaryKey": false,
2913
+ "notNull": true,
2914
+ "default": "'Kanvil'"
2915
+ },
2916
+ "description": {
2917
+ "name": "description",
2918
+ "type": "text",
2919
+ "primaryKey": false,
2920
+ "notNull": true,
2921
+ "default": "'Ticketing for people and agents'"
2922
+ },
2923
+ "storage_backend_id": {
2924
+ "name": "storage_backend_id",
2925
+ "type": "uuid",
2926
+ "primaryKey": false,
2927
+ "notNull": false
2928
+ },
2929
+ "search_config": {
2930
+ "name": "search_config",
2931
+ "type": "text",
2932
+ "primaryKey": false,
2933
+ "notNull": false
2934
+ },
2935
+ "broker_config": {
2936
+ "name": "broker_config",
2937
+ "type": "text",
2938
+ "primaryKey": false,
2939
+ "notNull": false
2940
+ },
2941
+ "email_password_enabled": {
2942
+ "name": "email_password_enabled",
2943
+ "type": "boolean",
2944
+ "primaryKey": false,
2945
+ "notNull": true,
2946
+ "default": true
2947
+ },
2948
+ "sso_auto_provision": {
2949
+ "name": "sso_auto_provision",
2950
+ "type": "boolean",
2951
+ "primaryKey": false,
2952
+ "notNull": true,
2953
+ "default": false
2954
+ }
2955
+ },
2956
+ "indexes": {},
2957
+ "foreignKeys": {
2958
+ "instance_settings_storage_backend_id_storage_backends_id_fk": {
2959
+ "name": "instance_settings_storage_backend_id_storage_backends_id_fk",
2960
+ "tableFrom": "instance_settings",
2961
+ "tableTo": "storage_backends",
2962
+ "columnsFrom": [
2963
+ "storage_backend_id"
2964
+ ],
2965
+ "columnsTo": [
2966
+ "id"
2967
+ ],
2968
+ "onDelete": "no action",
2969
+ "onUpdate": "no action"
2970
+ }
2971
+ },
2972
+ "compositePrimaryKeys": {},
2973
+ "uniqueConstraints": {},
2974
+ "policies": {},
2975
+ "checkConstraints": {},
2976
+ "isRLSEnabled": false
2977
+ },
2978
+ "public.label_colors": {
2979
+ "name": "label_colors",
2980
+ "schema": "",
2981
+ "columns": {
2982
+ "value": {
2983
+ "name": "value",
2984
+ "type": "text",
2985
+ "primaryKey": true,
2986
+ "notNull": true
2987
+ },
2988
+ "created_by": {
2989
+ "name": "created_by",
2990
+ "type": "text",
2991
+ "primaryKey": false,
2992
+ "notNull": false
2993
+ },
2994
+ "created_at": {
2995
+ "name": "created_at",
2996
+ "type": "timestamp with time zone",
2997
+ "primaryKey": false,
2998
+ "notNull": true,
2999
+ "default": "now()"
3000
+ }
3001
+ },
3002
+ "indexes": {},
3003
+ "foreignKeys": {
3004
+ "label_colors_created_by_user_id_fk": {
3005
+ "name": "label_colors_created_by_user_id_fk",
3006
+ "tableFrom": "label_colors",
3007
+ "tableTo": "user",
3008
+ "columnsFrom": [
3009
+ "created_by"
3010
+ ],
3011
+ "columnsTo": [
3012
+ "id"
3013
+ ],
3014
+ "onDelete": "set null",
3015
+ "onUpdate": "no action"
3016
+ }
3017
+ },
3018
+ "compositePrimaryKeys": {},
3019
+ "uniqueConstraints": {},
3020
+ "policies": {},
3021
+ "checkConstraints": {},
3022
+ "isRLSEnabled": false
3023
+ },
3024
+ "public.project_members": {
3025
+ "name": "project_members",
3026
+ "schema": "",
3027
+ "columns": {
3028
+ "project_id": {
3029
+ "name": "project_id",
3030
+ "type": "uuid",
3031
+ "primaryKey": false,
3032
+ "notNull": true
3033
+ },
3034
+ "user_id": {
3035
+ "name": "user_id",
3036
+ "type": "text",
3037
+ "primaryKey": false,
3038
+ "notNull": true
3039
+ },
3040
+ "role": {
3041
+ "name": "role",
3042
+ "type": "text",
3043
+ "primaryKey": false,
3044
+ "notNull": true
3045
+ }
3046
+ },
3047
+ "indexes": {
3048
+ "member_user": {
3049
+ "name": "member_user",
3050
+ "columns": [
3051
+ {
3052
+ "expression": "user_id",
3053
+ "isExpression": false,
3054
+ "asc": true,
3055
+ "nulls": "last"
3056
+ }
3057
+ ],
3058
+ "isUnique": false,
3059
+ "concurrently": false,
3060
+ "method": "btree",
3061
+ "with": {}
3062
+ }
3063
+ },
3064
+ "foreignKeys": {
3065
+ "project_members_project_id_projects_id_fk": {
3066
+ "name": "project_members_project_id_projects_id_fk",
3067
+ "tableFrom": "project_members",
3068
+ "tableTo": "projects",
3069
+ "columnsFrom": [
3070
+ "project_id"
3071
+ ],
3072
+ "columnsTo": [
3073
+ "id"
3074
+ ],
3075
+ "onDelete": "cascade",
3076
+ "onUpdate": "no action"
3077
+ },
3078
+ "project_members_user_id_user_id_fk": {
3079
+ "name": "project_members_user_id_user_id_fk",
3080
+ "tableFrom": "project_members",
3081
+ "tableTo": "user",
3082
+ "columnsFrom": [
3083
+ "user_id"
3084
+ ],
3085
+ "columnsTo": [
3086
+ "id"
3087
+ ],
3088
+ "onDelete": "cascade",
3089
+ "onUpdate": "no action"
3090
+ }
3091
+ },
3092
+ "compositePrimaryKeys": {
3093
+ "project_members_project_id_user_id_pk": {
3094
+ "name": "project_members_project_id_user_id_pk",
3095
+ "columns": [
3096
+ "project_id",
3097
+ "user_id"
3098
+ ]
3099
+ }
3100
+ },
3101
+ "uniqueConstraints": {},
3102
+ "policies": {},
3103
+ "checkConstraints": {},
3104
+ "isRLSEnabled": false
3105
+ },
3106
+ "public.notification_channels": {
3107
+ "name": "notification_channels",
3108
+ "schema": "",
3109
+ "columns": {
3110
+ "id": {
3111
+ "name": "id",
3112
+ "type": "uuid",
3113
+ "primaryKey": true,
3114
+ "notNull": true,
3115
+ "default": "gen_random_uuid()"
3116
+ },
3117
+ "user_id": {
3118
+ "name": "user_id",
3119
+ "type": "text",
3120
+ "primaryKey": false,
3121
+ "notNull": true
3122
+ },
3123
+ "kind": {
3124
+ "name": "kind",
3125
+ "type": "text",
3126
+ "primaryKey": false,
3127
+ "notNull": true
3128
+ },
3129
+ "name": {
3130
+ "name": "name",
3131
+ "type": "text",
3132
+ "primaryKey": false,
3133
+ "notNull": true
3134
+ },
3135
+ "settings": {
3136
+ "name": "settings",
3137
+ "type": "text",
3138
+ "primaryKey": false,
3139
+ "notNull": true
3140
+ },
3141
+ "paused": {
3142
+ "name": "paused",
3143
+ "type": "boolean",
3144
+ "primaryKey": false,
3145
+ "notNull": true,
3146
+ "default": false
3147
+ },
3148
+ "routes": {
3149
+ "name": "routes",
3150
+ "type": "jsonb",
3151
+ "primaryKey": false,
3152
+ "notNull": true,
3153
+ "default": "'[]'::jsonb"
3154
+ },
3155
+ "version": {
3156
+ "name": "version",
3157
+ "type": "integer",
3158
+ "primaryKey": false,
3159
+ "notNull": true,
3160
+ "default": 1
3161
+ },
3162
+ "created_at": {
3163
+ "name": "created_at",
3164
+ "type": "timestamp with time zone",
3165
+ "primaryKey": false,
3166
+ "notNull": true,
3167
+ "default": "now()"
3168
+ },
3169
+ "updated_at": {
3170
+ "name": "updated_at",
3171
+ "type": "timestamp with time zone",
3172
+ "primaryKey": false,
3173
+ "notNull": true,
3174
+ "default": "now()"
3175
+ },
3176
+ "last_attempt_at": {
3177
+ "name": "last_attempt_at",
3178
+ "type": "timestamp with time zone",
3179
+ "primaryKey": false,
3180
+ "notNull": false
3181
+ },
3182
+ "last_success_at": {
3183
+ "name": "last_success_at",
3184
+ "type": "timestamp with time zone",
3185
+ "primaryKey": false,
3186
+ "notNull": false
3187
+ },
3188
+ "last_error": {
3189
+ "name": "last_error",
3190
+ "type": "text",
3191
+ "primaryKey": false,
3192
+ "notNull": false
3193
+ }
3194
+ },
3195
+ "indexes": {
3196
+ "notification_channel_user": {
3197
+ "name": "notification_channel_user",
3198
+ "columns": [
3199
+ {
3200
+ "expression": "user_id",
3201
+ "isExpression": false,
3202
+ "asc": true,
3203
+ "nulls": "last"
3204
+ }
3205
+ ],
3206
+ "isUnique": false,
3207
+ "concurrently": false,
3208
+ "method": "btree",
3209
+ "with": {}
3210
+ }
3211
+ },
3212
+ "foreignKeys": {
3213
+ "notification_channels_user_id_user_id_fk": {
3214
+ "name": "notification_channels_user_id_user_id_fk",
3215
+ "tableFrom": "notification_channels",
3216
+ "tableTo": "user",
3217
+ "columnsFrom": [
3218
+ "user_id"
3219
+ ],
3220
+ "columnsTo": [
3221
+ "id"
3222
+ ],
3223
+ "onDelete": "cascade",
3224
+ "onUpdate": "no action"
3225
+ }
3226
+ },
3227
+ "compositePrimaryKeys": {},
3228
+ "uniqueConstraints": {},
3229
+ "policies": {},
3230
+ "checkConstraints": {},
3231
+ "isRLSEnabled": false
3232
+ },
3233
+ "public.notification_preferences": {
3234
+ "name": "notification_preferences",
3235
+ "schema": "",
3236
+ "columns": {
3237
+ "user_id": {
3238
+ "name": "user_id",
3239
+ "type": "text",
3240
+ "primaryKey": true,
3241
+ "notNull": true
3242
+ },
3243
+ "in_app": {
3244
+ "name": "in_app",
3245
+ "type": "boolean",
3246
+ "primaryKey": false,
3247
+ "notNull": true,
3248
+ "default": true
3249
+ },
3250
+ "push": {
3251
+ "name": "push",
3252
+ "type": "boolean",
3253
+ "primaryKey": false,
3254
+ "notNull": true,
3255
+ "default": false
3256
+ },
3257
+ "categories": {
3258
+ "name": "categories",
3259
+ "type": "jsonb",
3260
+ "primaryKey": false,
3261
+ "notNull": true,
3262
+ "default": "'{}'::jsonb"
3263
+ },
3264
+ "reminder_amount": {
3265
+ "name": "reminder_amount",
3266
+ "type": "integer",
3267
+ "primaryKey": false,
3268
+ "notNull": true,
3269
+ "default": 1
3270
+ },
3271
+ "reminder_unit": {
3272
+ "name": "reminder_unit",
3273
+ "type": "text",
3274
+ "primaryKey": false,
3275
+ "notNull": true,
3276
+ "default": "'days'"
3277
+ }
3278
+ },
3279
+ "indexes": {},
3280
+ "foreignKeys": {
3281
+ "notification_preferences_user_id_user_id_fk": {
3282
+ "name": "notification_preferences_user_id_user_id_fk",
3283
+ "tableFrom": "notification_preferences",
3284
+ "tableTo": "user",
3285
+ "columnsFrom": [
3286
+ "user_id"
3287
+ ],
3288
+ "columnsTo": [
3289
+ "id"
3290
+ ],
3291
+ "onDelete": "cascade",
3292
+ "onUpdate": "no action"
3293
+ }
3294
+ },
3295
+ "compositePrimaryKeys": {},
3296
+ "uniqueConstraints": {},
3297
+ "policies": {},
3298
+ "checkConstraints": {},
3299
+ "isRLSEnabled": false
3300
+ },
3301
+ "public.notifications": {
3302
+ "name": "notifications",
3303
+ "schema": "",
3304
+ "columns": {
3305
+ "id": {
3306
+ "name": "id",
3307
+ "type": "uuid",
3308
+ "primaryKey": true,
3309
+ "notNull": true,
3310
+ "default": "gen_random_uuid()"
3311
+ },
3312
+ "user_id": {
3313
+ "name": "user_id",
3314
+ "type": "text",
3315
+ "primaryKey": false,
3316
+ "notNull": true
3317
+ },
3318
+ "project_id": {
3319
+ "name": "project_id",
3320
+ "type": "uuid",
3321
+ "primaryKey": false,
3322
+ "notNull": true
3323
+ },
3324
+ "event_id": {
3325
+ "name": "event_id",
3326
+ "type": "bigint",
3327
+ "primaryKey": false,
3328
+ "notNull": true
3329
+ },
3330
+ "category": {
3331
+ "name": "category",
3332
+ "type": "text",
3333
+ "primaryKey": false,
3334
+ "notNull": true,
3335
+ "default": "'update'"
3336
+ },
3337
+ "reminder_key": {
3338
+ "name": "reminder_key",
3339
+ "type": "text",
3340
+ "primaryKey": false,
3341
+ "notNull": false
3342
+ },
3343
+ "read_at": {
3344
+ "name": "read_at",
3345
+ "type": "timestamp with time zone",
3346
+ "primaryKey": false,
3347
+ "notNull": false
3348
+ },
3349
+ "dismissed_at": {
3350
+ "name": "dismissed_at",
3351
+ "type": "timestamp with time zone",
3352
+ "primaryKey": false,
3353
+ "notNull": false
3354
+ },
3355
+ "inbox": {
3356
+ "name": "inbox",
3357
+ "type": "boolean",
3358
+ "primaryKey": false,
3359
+ "notNull": true,
3360
+ "default": true
3361
+ },
3362
+ "created_at": {
3363
+ "name": "created_at",
3364
+ "type": "timestamp with time zone",
3365
+ "primaryKey": false,
3366
+ "notNull": true,
3367
+ "default": "now()"
3368
+ }
3369
+ },
3370
+ "indexes": {},
3371
+ "foreignKeys": {
3372
+ "notifications_user_id_user_id_fk": {
3373
+ "name": "notifications_user_id_user_id_fk",
3374
+ "tableFrom": "notifications",
3375
+ "tableTo": "user",
3376
+ "columnsFrom": [
3377
+ "user_id"
3378
+ ],
3379
+ "columnsTo": [
3380
+ "id"
3381
+ ],
3382
+ "onDelete": "cascade",
3383
+ "onUpdate": "no action"
3384
+ },
3385
+ "notifications_project_id_projects_id_fk": {
3386
+ "name": "notifications_project_id_projects_id_fk",
3387
+ "tableFrom": "notifications",
3388
+ "tableTo": "projects",
3389
+ "columnsFrom": [
3390
+ "project_id"
3391
+ ],
3392
+ "columnsTo": [
3393
+ "id"
3394
+ ],
3395
+ "onDelete": "cascade",
3396
+ "onUpdate": "no action"
3397
+ }
3398
+ },
3399
+ "compositePrimaryKeys": {},
3400
+ "uniqueConstraints": {
3401
+ "notification_event_user": {
3402
+ "name": "notification_event_user",
3403
+ "nullsNotDistinct": false,
3404
+ "columns": [
3405
+ "event_id",
3406
+ "user_id"
3407
+ ]
3408
+ },
3409
+ "notification_reminder": {
3410
+ "name": "notification_reminder",
3411
+ "nullsNotDistinct": false,
3412
+ "columns": [
3413
+ "user_id",
3414
+ "reminder_key"
3415
+ ]
3416
+ }
3417
+ },
3418
+ "policies": {},
3419
+ "checkConstraints": {},
3420
+ "isRLSEnabled": false
3421
+ },
3422
+ "public.profile_photos": {
3423
+ "name": "profile_photos",
3424
+ "schema": "",
3425
+ "columns": {
3426
+ "user_id": {
3427
+ "name": "user_id",
3428
+ "type": "text",
3429
+ "primaryKey": true,
3430
+ "notNull": true
3431
+ },
3432
+ "object_id": {
3433
+ "name": "object_id",
3434
+ "type": "uuid",
3435
+ "primaryKey": false,
3436
+ "notNull": true
3437
+ }
3438
+ },
3439
+ "indexes": {},
3440
+ "foreignKeys": {
3441
+ "profile_photos_user_id_user_id_fk": {
3442
+ "name": "profile_photos_user_id_user_id_fk",
3443
+ "tableFrom": "profile_photos",
3444
+ "tableTo": "user",
3445
+ "columnsFrom": [
3446
+ "user_id"
3447
+ ],
3448
+ "columnsTo": [
3449
+ "id"
3450
+ ],
3451
+ "onDelete": "cascade",
3452
+ "onUpdate": "no action"
3453
+ },
3454
+ "profile_photos_object_id_blob_objects_id_fk": {
3455
+ "name": "profile_photos_object_id_blob_objects_id_fk",
3456
+ "tableFrom": "profile_photos",
3457
+ "tableTo": "blob_objects",
3458
+ "columnsFrom": [
3459
+ "object_id"
3460
+ ],
3461
+ "columnsTo": [
3462
+ "id"
3463
+ ],
3464
+ "onDelete": "no action",
3465
+ "onUpdate": "no action"
3466
+ }
3467
+ },
3468
+ "compositePrimaryKeys": {},
3469
+ "uniqueConstraints": {},
3470
+ "policies": {},
3471
+ "checkConstraints": {},
3472
+ "isRLSEnabled": false
3473
+ },
3474
+ "public.project_destinations": {
3475
+ "name": "project_destinations",
3476
+ "schema": "",
3477
+ "columns": {
3478
+ "id": {
3479
+ "name": "id",
3480
+ "type": "uuid",
3481
+ "primaryKey": true,
3482
+ "notNull": true,
3483
+ "default": "gen_random_uuid()"
3484
+ },
3485
+ "project_id": {
3486
+ "name": "project_id",
3487
+ "type": "uuid",
3488
+ "primaryKey": false,
3489
+ "notNull": true
3490
+ },
3491
+ "kind": {
3492
+ "name": "kind",
3493
+ "type": "text",
3494
+ "primaryKey": false,
3495
+ "notNull": true
3496
+ },
3497
+ "name": {
3498
+ "name": "name",
3499
+ "type": "text",
3500
+ "primaryKey": false,
3501
+ "notNull": true
3502
+ },
3503
+ "settings": {
3504
+ "name": "settings",
3505
+ "type": "text",
3506
+ "primaryKey": false,
3507
+ "notNull": true
3508
+ },
3509
+ "paused": {
3510
+ "name": "paused",
3511
+ "type": "boolean",
3512
+ "primaryKey": false,
3513
+ "notNull": true,
3514
+ "default": false
3515
+ },
3516
+ "events": {
3517
+ "name": "events",
3518
+ "type": "text[]",
3519
+ "primaryKey": false,
3520
+ "notNull": true,
3521
+ "default": "'{}'"
3522
+ },
3523
+ "created_by": {
3524
+ "name": "created_by",
3525
+ "type": "text",
3526
+ "primaryKey": false,
3527
+ "notNull": false
3528
+ },
3529
+ "version": {
3530
+ "name": "version",
3531
+ "type": "integer",
3532
+ "primaryKey": false,
3533
+ "notNull": true,
3534
+ "default": 1
3535
+ },
3536
+ "created_at": {
3537
+ "name": "created_at",
3538
+ "type": "timestamp with time zone",
3539
+ "primaryKey": false,
3540
+ "notNull": true,
3541
+ "default": "now()"
3542
+ },
3543
+ "updated_at": {
3544
+ "name": "updated_at",
3545
+ "type": "timestamp with time zone",
3546
+ "primaryKey": false,
3547
+ "notNull": true,
3548
+ "default": "now()"
3549
+ },
3550
+ "last_attempt_at": {
3551
+ "name": "last_attempt_at",
3552
+ "type": "timestamp with time zone",
3553
+ "primaryKey": false,
3554
+ "notNull": false
3555
+ },
3556
+ "last_success_at": {
3557
+ "name": "last_success_at",
3558
+ "type": "timestamp with time zone",
3559
+ "primaryKey": false,
3560
+ "notNull": false
3561
+ },
3562
+ "last_error": {
3563
+ "name": "last_error",
3564
+ "type": "text",
3565
+ "primaryKey": false,
3566
+ "notNull": false
3567
+ }
3568
+ },
3569
+ "indexes": {
3570
+ "project_destination_project": {
3571
+ "name": "project_destination_project",
3572
+ "columns": [
3573
+ {
3574
+ "expression": "project_id",
3575
+ "isExpression": false,
3576
+ "asc": true,
3577
+ "nulls": "last"
3578
+ }
3579
+ ],
3580
+ "isUnique": false,
3581
+ "concurrently": false,
3582
+ "method": "btree",
3583
+ "with": {}
3584
+ }
3585
+ },
3586
+ "foreignKeys": {
3587
+ "project_destinations_project_id_projects_id_fk": {
3588
+ "name": "project_destinations_project_id_projects_id_fk",
3589
+ "tableFrom": "project_destinations",
3590
+ "tableTo": "projects",
3591
+ "columnsFrom": [
3592
+ "project_id"
3593
+ ],
3594
+ "columnsTo": [
3595
+ "id"
3596
+ ],
3597
+ "onDelete": "cascade",
3598
+ "onUpdate": "no action"
3599
+ },
3600
+ "project_destinations_created_by_user_id_fk": {
3601
+ "name": "project_destinations_created_by_user_id_fk",
3602
+ "tableFrom": "project_destinations",
3603
+ "tableTo": "user",
3604
+ "columnsFrom": [
3605
+ "created_by"
3606
+ ],
3607
+ "columnsTo": [
3608
+ "id"
3609
+ ],
3610
+ "onDelete": "set null",
3611
+ "onUpdate": "no action"
3612
+ }
3613
+ },
3614
+ "compositePrimaryKeys": {},
3615
+ "uniqueConstraints": {},
3616
+ "policies": {},
3617
+ "checkConstraints": {},
3618
+ "isRLSEnabled": false
3619
+ },
3620
+ "public.project_labels": {
3621
+ "name": "project_labels",
3622
+ "schema": "",
3623
+ "columns": {
3624
+ "id": {
3625
+ "name": "id",
3626
+ "type": "uuid",
3627
+ "primaryKey": true,
3628
+ "notNull": true,
3629
+ "default": "gen_random_uuid()"
3630
+ },
3631
+ "project_id": {
3632
+ "name": "project_id",
3633
+ "type": "uuid",
3634
+ "primaryKey": false,
3635
+ "notNull": true
3636
+ },
3637
+ "name": {
3638
+ "name": "name",
3639
+ "type": "text",
3640
+ "primaryKey": false,
3641
+ "notNull": true
3642
+ },
3643
+ "color": {
3644
+ "name": "color",
3645
+ "type": "text",
3646
+ "primaryKey": false,
3647
+ "notNull": true,
3648
+ "default": "'gray'"
3649
+ },
3650
+ "version": {
3651
+ "name": "version",
3652
+ "type": "integer",
3653
+ "primaryKey": false,
3654
+ "notNull": true,
3655
+ "default": 1
3656
+ }
3657
+ },
3658
+ "indexes": {},
3659
+ "foreignKeys": {
3660
+ "project_labels_project_id_projects_id_fk": {
3661
+ "name": "project_labels_project_id_projects_id_fk",
3662
+ "tableFrom": "project_labels",
3663
+ "tableTo": "projects",
3664
+ "columnsFrom": [
3665
+ "project_id"
3666
+ ],
3667
+ "columnsTo": [
3668
+ "id"
3669
+ ],
3670
+ "onDelete": "cascade",
3671
+ "onUpdate": "no action"
3672
+ }
3673
+ },
3674
+ "compositePrimaryKeys": {},
3675
+ "uniqueConstraints": {
3676
+ "project_label_name": {
3677
+ "name": "project_label_name",
3678
+ "nullsNotDistinct": false,
3679
+ "columns": [
3680
+ "project_id",
3681
+ "name"
3682
+ ]
3683
+ }
3684
+ },
3685
+ "policies": {},
3686
+ "checkConstraints": {},
3687
+ "isRLSEnabled": false
3688
+ },
3689
+ "public.projects": {
3690
+ "name": "projects",
3691
+ "schema": "",
3692
+ "columns": {
3693
+ "icon_name": {
3694
+ "name": "icon_name",
3695
+ "type": "text",
3696
+ "primaryKey": false,
3697
+ "notNull": false
3698
+ },
3699
+ "icon_color": {
3700
+ "name": "icon_color",
3701
+ "type": "text",
3702
+ "primaryKey": false,
3703
+ "notNull": true,
3704
+ "default": "'default'"
3705
+ },
3706
+ "image": {
3707
+ "name": "image",
3708
+ "type": "text",
3709
+ "primaryKey": false,
3710
+ "notNull": false
3711
+ },
3712
+ "icon_object_id": {
3713
+ "name": "icon_object_id",
3714
+ "type": "uuid",
3715
+ "primaryKey": false,
3716
+ "notNull": false
3717
+ },
3718
+ "background": {
3719
+ "name": "background",
3720
+ "type": "text",
3721
+ "primaryKey": false,
3722
+ "notNull": false
3723
+ },
3724
+ "background_object_id": {
3725
+ "name": "background_object_id",
3726
+ "type": "uuid",
3727
+ "primaryKey": false,
3728
+ "notNull": false
3729
+ },
3730
+ "workspace_id": {
3731
+ "name": "workspace_id",
3732
+ "type": "uuid",
3733
+ "primaryKey": false,
3734
+ "notNull": true
3735
+ },
3736
+ "visibility": {
3737
+ "name": "visibility",
3738
+ "type": "text",
3739
+ "primaryKey": false,
3740
+ "notNull": true,
3741
+ "default": "'private'"
3742
+ },
3743
+ "id": {
3744
+ "name": "id",
3745
+ "type": "uuid",
3746
+ "primaryKey": true,
3747
+ "notNull": true,
3748
+ "default": "gen_random_uuid()"
3749
+ },
3750
+ "key": {
3751
+ "name": "key",
3752
+ "type": "text",
3753
+ "primaryKey": false,
3754
+ "notNull": true
3755
+ },
3756
+ "name": {
3757
+ "name": "name",
3758
+ "type": "text",
3759
+ "primaryKey": false,
3760
+ "notNull": true
3761
+ },
3762
+ "description": {
3763
+ "name": "description",
3764
+ "type": "text",
3765
+ "primaryKey": false,
3766
+ "notNull": true,
3767
+ "default": "''"
3768
+ },
3769
+ "next_number": {
3770
+ "name": "next_number",
3771
+ "type": "integer",
3772
+ "primaryKey": false,
3773
+ "notNull": true,
3774
+ "default": 1
3775
+ },
3776
+ "version": {
3777
+ "name": "version",
3778
+ "type": "integer",
3779
+ "primaryKey": false,
3780
+ "notNull": true,
3781
+ "default": 1
3782
+ },
3783
+ "created_at": {
3784
+ "name": "created_at",
3785
+ "type": "timestamp with time zone",
3786
+ "primaryKey": false,
3787
+ "notNull": true,
3788
+ "default": "now()"
3789
+ },
3790
+ "updated_at": {
3791
+ "name": "updated_at",
3792
+ "type": "timestamp with time zone",
3793
+ "primaryKey": false,
3794
+ "notNull": true,
3795
+ "default": "now()"
3796
+ }
3797
+ },
3798
+ "indexes": {
3799
+ "project_workspace": {
3800
+ "name": "project_workspace",
3801
+ "columns": [
3802
+ {
3803
+ "expression": "workspace_id",
3804
+ "isExpression": false,
3805
+ "asc": true,
3806
+ "nulls": "last"
3807
+ }
3808
+ ],
3809
+ "isUnique": false,
3810
+ "concurrently": false,
3811
+ "method": "btree",
3812
+ "with": {}
3813
+ }
3814
+ },
3815
+ "foreignKeys": {
3816
+ "projects_icon_object_id_blob_objects_id_fk": {
3817
+ "name": "projects_icon_object_id_blob_objects_id_fk",
3818
+ "tableFrom": "projects",
3819
+ "tableTo": "blob_objects",
3820
+ "columnsFrom": [
3821
+ "icon_object_id"
3822
+ ],
3823
+ "columnsTo": [
3824
+ "id"
3825
+ ],
3826
+ "onDelete": "no action",
3827
+ "onUpdate": "no action"
3828
+ },
3829
+ "projects_background_object_id_blob_objects_id_fk": {
3830
+ "name": "projects_background_object_id_blob_objects_id_fk",
3831
+ "tableFrom": "projects",
3832
+ "tableTo": "blob_objects",
3833
+ "columnsFrom": [
3834
+ "background_object_id"
3835
+ ],
3836
+ "columnsTo": [
3837
+ "id"
3838
+ ],
3839
+ "onDelete": "no action",
3840
+ "onUpdate": "no action"
3841
+ },
3842
+ "projects_workspace_id_workspaces_id_fk": {
3843
+ "name": "projects_workspace_id_workspaces_id_fk",
3844
+ "tableFrom": "projects",
3845
+ "tableTo": "workspaces",
3846
+ "columnsFrom": [
3847
+ "workspace_id"
3848
+ ],
3849
+ "columnsTo": [
3850
+ "id"
3851
+ ],
3852
+ "onDelete": "no action",
3853
+ "onUpdate": "no action"
3854
+ }
3855
+ },
3856
+ "compositePrimaryKeys": {},
3857
+ "uniqueConstraints": {
3858
+ "projects_key_unique": {
3859
+ "name": "projects_key_unique",
3860
+ "nullsNotDistinct": false,
3861
+ "columns": [
3862
+ "key"
3863
+ ]
3864
+ }
3865
+ },
3866
+ "policies": {},
3867
+ "checkConstraints": {},
3868
+ "isRLSEnabled": false
3869
+ },
3870
+ "public.push_devices": {
3871
+ "name": "push_devices",
3872
+ "schema": "",
3873
+ "columns": {
3874
+ "id": {
3875
+ "name": "id",
3876
+ "type": "uuid",
3877
+ "primaryKey": true,
3878
+ "notNull": true,
3879
+ "default": "gen_random_uuid()"
3880
+ },
3881
+ "user_id": {
3882
+ "name": "user_id",
3883
+ "type": "text",
3884
+ "primaryKey": false,
3885
+ "notNull": true
3886
+ },
3887
+ "session_id": {
3888
+ "name": "session_id",
3889
+ "type": "text",
3890
+ "primaryKey": false,
3891
+ "notNull": true
3892
+ },
3893
+ "token": {
3894
+ "name": "token",
3895
+ "type": "text",
3896
+ "primaryKey": false,
3897
+ "notNull": true
3898
+ },
3899
+ "created_at": {
3900
+ "name": "created_at",
3901
+ "type": "timestamp with time zone",
3902
+ "primaryKey": false,
3903
+ "notNull": true,
3904
+ "default": "now()"
3905
+ }
3906
+ },
3907
+ "indexes": {},
3908
+ "foreignKeys": {
3909
+ "push_devices_user_id_user_id_fk": {
3910
+ "name": "push_devices_user_id_user_id_fk",
3911
+ "tableFrom": "push_devices",
3912
+ "tableTo": "user",
3913
+ "columnsFrom": [
3914
+ "user_id"
3915
+ ],
3916
+ "columnsTo": [
3917
+ "id"
3918
+ ],
3919
+ "onDelete": "cascade",
3920
+ "onUpdate": "no action"
3921
+ },
3922
+ "push_devices_session_id_session_id_fk": {
3923
+ "name": "push_devices_session_id_session_id_fk",
3924
+ "tableFrom": "push_devices",
3925
+ "tableTo": "session",
3926
+ "columnsFrom": [
3927
+ "session_id"
3928
+ ],
3929
+ "columnsTo": [
3930
+ "id"
3931
+ ],
3932
+ "onDelete": "cascade",
3933
+ "onUpdate": "no action"
3934
+ }
3935
+ },
3936
+ "compositePrimaryKeys": {},
3937
+ "uniqueConstraints": {
3938
+ "push_devices_token_unique": {
3939
+ "name": "push_devices_token_unique",
3940
+ "nullsNotDistinct": false,
3941
+ "columns": [
3942
+ "token"
3943
+ ]
3944
+ }
3945
+ },
3946
+ "policies": {},
3947
+ "checkConstraints": {},
3948
+ "isRLSEnabled": false
3949
+ },
3950
+ "public.mutation_receipts": {
3951
+ "name": "mutation_receipts",
3952
+ "schema": "",
3953
+ "columns": {
3954
+ "actor_id": {
3955
+ "name": "actor_id",
3956
+ "type": "text",
3957
+ "primaryKey": false,
3958
+ "notNull": true
3959
+ },
3960
+ "request_id": {
3961
+ "name": "request_id",
3962
+ "type": "uuid",
3963
+ "primaryKey": false,
3964
+ "notNull": true
3965
+ },
3966
+ "operation": {
3967
+ "name": "operation",
3968
+ "type": "text",
3969
+ "primaryKey": false,
3970
+ "notNull": true
3971
+ },
3972
+ "hash": {
3973
+ "name": "hash",
3974
+ "type": "text",
3975
+ "primaryKey": false,
3976
+ "notNull": true
3977
+ },
3978
+ "result": {
3979
+ "name": "result",
3980
+ "type": "jsonb",
3981
+ "primaryKey": false,
3982
+ "notNull": true
3983
+ },
3984
+ "created_at": {
3985
+ "name": "created_at",
3986
+ "type": "timestamp with time zone",
3987
+ "primaryKey": false,
3988
+ "notNull": true,
3989
+ "default": "now()"
3990
+ }
3991
+ },
3992
+ "indexes": {},
3993
+ "foreignKeys": {
3994
+ "mutation_receipts_actor_id_user_id_fk": {
3995
+ "name": "mutation_receipts_actor_id_user_id_fk",
3996
+ "tableFrom": "mutation_receipts",
3997
+ "tableTo": "user",
3998
+ "columnsFrom": [
3999
+ "actor_id"
4000
+ ],
4001
+ "columnsTo": [
4002
+ "id"
4003
+ ],
4004
+ "onDelete": "no action",
4005
+ "onUpdate": "no action"
4006
+ }
4007
+ },
4008
+ "compositePrimaryKeys": {
4009
+ "mutation_receipts_actor_id_request_id_pk": {
4010
+ "name": "mutation_receipts_actor_id_request_id_pk",
4011
+ "columns": [
4012
+ "actor_id",
4013
+ "request_id"
4014
+ ]
4015
+ }
4016
+ },
4017
+ "uniqueConstraints": {},
4018
+ "policies": {},
4019
+ "checkConstraints": {},
4020
+ "isRLSEnabled": false
4021
+ },
4022
+ "public.ticket_relations": {
4023
+ "name": "ticket_relations",
4024
+ "schema": "",
4025
+ "columns": {
4026
+ "id": {
4027
+ "name": "id",
4028
+ "type": "uuid",
4029
+ "primaryKey": true,
4030
+ "notNull": true,
4031
+ "default": "gen_random_uuid()"
4032
+ },
4033
+ "project_id": {
4034
+ "name": "project_id",
4035
+ "type": "uuid",
4036
+ "primaryKey": false,
4037
+ "notNull": true
4038
+ },
4039
+ "source_id": {
4040
+ "name": "source_id",
4041
+ "type": "uuid",
4042
+ "primaryKey": false,
4043
+ "notNull": true
4044
+ },
4045
+ "target_id": {
4046
+ "name": "target_id",
4047
+ "type": "uuid",
4048
+ "primaryKey": false,
4049
+ "notNull": true
4050
+ },
4051
+ "type": {
4052
+ "name": "type",
4053
+ "type": "text",
4054
+ "primaryKey": false,
4055
+ "notNull": true
4056
+ }
4057
+ },
4058
+ "indexes": {
4059
+ "relation_target": {
4060
+ "name": "relation_target",
4061
+ "columns": [
4062
+ {
4063
+ "expression": "target_id",
4064
+ "isExpression": false,
4065
+ "asc": true,
4066
+ "nulls": "last"
4067
+ }
4068
+ ],
4069
+ "isUnique": false,
4070
+ "concurrently": false,
4071
+ "method": "btree",
4072
+ "with": {}
4073
+ }
4074
+ },
4075
+ "foreignKeys": {
4076
+ "ticket_relations_project_id_projects_id_fk": {
4077
+ "name": "ticket_relations_project_id_projects_id_fk",
4078
+ "tableFrom": "ticket_relations",
4079
+ "tableTo": "projects",
4080
+ "columnsFrom": [
4081
+ "project_id"
4082
+ ],
4083
+ "columnsTo": [
4084
+ "id"
4085
+ ],
4086
+ "onDelete": "cascade",
4087
+ "onUpdate": "no action"
4088
+ },
4089
+ "ticket_relations_source_id_tickets_id_fk": {
4090
+ "name": "ticket_relations_source_id_tickets_id_fk",
4091
+ "tableFrom": "ticket_relations",
4092
+ "tableTo": "tickets",
4093
+ "columnsFrom": [
4094
+ "source_id"
4095
+ ],
4096
+ "columnsTo": [
4097
+ "id"
4098
+ ],
4099
+ "onDelete": "cascade",
4100
+ "onUpdate": "no action"
4101
+ },
4102
+ "ticket_relations_target_id_tickets_id_fk": {
4103
+ "name": "ticket_relations_target_id_tickets_id_fk",
4104
+ "tableFrom": "ticket_relations",
4105
+ "tableTo": "tickets",
4106
+ "columnsFrom": [
4107
+ "target_id"
4108
+ ],
4109
+ "columnsTo": [
4110
+ "id"
4111
+ ],
4112
+ "onDelete": "cascade",
4113
+ "onUpdate": "no action"
4114
+ }
4115
+ },
4116
+ "compositePrimaryKeys": {},
4117
+ "uniqueConstraints": {
4118
+ "ticket_relation_edge": {
4119
+ "name": "ticket_relation_edge",
4120
+ "nullsNotDistinct": false,
4121
+ "columns": [
4122
+ "source_id",
4123
+ "target_id",
4124
+ "type"
4125
+ ]
4126
+ }
4127
+ },
4128
+ "policies": {},
4129
+ "checkConstraints": {},
4130
+ "isRLSEnabled": false
4131
+ },
4132
+ "public.resources": {
4133
+ "name": "resources",
4134
+ "schema": "",
4135
+ "columns": {
4136
+ "id": {
4137
+ "name": "id",
4138
+ "type": "uuid",
4139
+ "primaryKey": true,
4140
+ "notNull": true,
4141
+ "default": "gen_random_uuid()"
4142
+ },
4143
+ "project_id": {
4144
+ "name": "project_id",
4145
+ "type": "uuid",
4146
+ "primaryKey": false,
4147
+ "notNull": true
4148
+ },
4149
+ "ticket_id": {
4150
+ "name": "ticket_id",
4151
+ "type": "uuid",
4152
+ "primaryKey": false,
4153
+ "notNull": true
4154
+ },
4155
+ "actor_id": {
4156
+ "name": "actor_id",
4157
+ "type": "text",
4158
+ "primaryKey": false,
4159
+ "notNull": true
4160
+ },
4161
+ "url": {
4162
+ "name": "url",
4163
+ "type": "text",
4164
+ "primaryKey": false,
4165
+ "notNull": true
4166
+ },
4167
+ "title": {
4168
+ "name": "title",
4169
+ "type": "text",
4170
+ "primaryKey": false,
4171
+ "notNull": true,
4172
+ "default": "''"
4173
+ },
4174
+ "provider": {
4175
+ "name": "provider",
4176
+ "type": "text",
4177
+ "primaryKey": false,
4178
+ "notNull": false
4179
+ },
4180
+ "remote_state": {
4181
+ "name": "remote_state",
4182
+ "type": "text",
4183
+ "primaryKey": false,
4184
+ "notNull": false
4185
+ },
4186
+ "remote_checked_at": {
4187
+ "name": "remote_checked_at",
4188
+ "type": "timestamp with time zone",
4189
+ "primaryKey": false,
4190
+ "notNull": false
4191
+ },
4192
+ "version": {
4193
+ "name": "version",
4194
+ "type": "integer",
4195
+ "primaryKey": false,
4196
+ "notNull": true,
4197
+ "default": 1
4198
+ },
4199
+ "created_at": {
4200
+ "name": "created_at",
4201
+ "type": "timestamp with time zone",
4202
+ "primaryKey": false,
4203
+ "notNull": true,
4204
+ "default": "now()"
4205
+ },
4206
+ "updated_at": {
4207
+ "name": "updated_at",
4208
+ "type": "timestamp with time zone",
4209
+ "primaryKey": false,
4210
+ "notNull": true,
4211
+ "default": "now()"
4212
+ }
4213
+ },
4214
+ "indexes": {
4215
+ "resource_ticket": {
4216
+ "name": "resource_ticket",
4217
+ "columns": [
4218
+ {
4219
+ "expression": "ticket_id",
4220
+ "isExpression": false,
4221
+ "asc": true,
4222
+ "nulls": "last"
4223
+ }
4224
+ ],
4225
+ "isUnique": false,
4226
+ "concurrently": false,
4227
+ "method": "btree",
4228
+ "with": {}
4229
+ }
4230
+ },
4231
+ "foreignKeys": {
4232
+ "resources_project_id_projects_id_fk": {
4233
+ "name": "resources_project_id_projects_id_fk",
4234
+ "tableFrom": "resources",
4235
+ "tableTo": "projects",
4236
+ "columnsFrom": [
4237
+ "project_id"
4238
+ ],
4239
+ "columnsTo": [
4240
+ "id"
4241
+ ],
4242
+ "onDelete": "cascade",
4243
+ "onUpdate": "no action"
4244
+ },
4245
+ "resources_ticket_id_tickets_id_fk": {
4246
+ "name": "resources_ticket_id_tickets_id_fk",
4247
+ "tableFrom": "resources",
4248
+ "tableTo": "tickets",
4249
+ "columnsFrom": [
4250
+ "ticket_id"
4251
+ ],
4252
+ "columnsTo": [
4253
+ "id"
4254
+ ],
4255
+ "onDelete": "cascade",
4256
+ "onUpdate": "no action"
4257
+ },
4258
+ "resources_actor_id_user_id_fk": {
4259
+ "name": "resources_actor_id_user_id_fk",
4260
+ "tableFrom": "resources",
4261
+ "tableTo": "user",
4262
+ "columnsFrom": [
4263
+ "actor_id"
4264
+ ],
4265
+ "columnsTo": [
4266
+ "id"
4267
+ ],
4268
+ "onDelete": "no action",
4269
+ "onUpdate": "no action"
4270
+ }
4271
+ },
4272
+ "compositePrimaryKeys": {},
4273
+ "uniqueConstraints": {},
4274
+ "policies": {},
4275
+ "checkConstraints": {},
4276
+ "isRLSEnabled": false
4277
+ },
4278
+ "public.search_state": {
4279
+ "name": "search_state",
4280
+ "schema": "",
4281
+ "columns": {
4282
+ "id": {
4283
+ "name": "id",
4284
+ "type": "integer",
4285
+ "primaryKey": true,
4286
+ "notNull": true,
4287
+ "default": 1
4288
+ },
4289
+ "config_hash": {
4290
+ "name": "config_hash",
4291
+ "type": "text",
4292
+ "primaryKey": false,
4293
+ "notNull": true,
4294
+ "default": "''"
4295
+ },
4296
+ "cursor": {
4297
+ "name": "cursor",
4298
+ "type": "bigint",
4299
+ "primaryKey": false,
4300
+ "notNull": true,
4301
+ "default": "0"
4302
+ },
4303
+ "error": {
4304
+ "name": "error",
4305
+ "type": "text",
4306
+ "primaryKey": false,
4307
+ "notNull": false
4308
+ }
4309
+ },
4310
+ "indexes": {},
4311
+ "foreignKeys": {},
4312
+ "compositePrimaryKeys": {},
4313
+ "uniqueConstraints": {},
4314
+ "policies": {},
4315
+ "checkConstraints": {},
4316
+ "isRLSEnabled": false
4317
+ },
4318
+ "public.storage_backends": {
4319
+ "name": "storage_backends",
4320
+ "schema": "",
4321
+ "columns": {
4322
+ "id": {
4323
+ "name": "id",
4324
+ "type": "uuid",
4325
+ "primaryKey": true,
4326
+ "notNull": true,
4327
+ "default": "gen_random_uuid()"
4328
+ },
4329
+ "identity": {
4330
+ "name": "identity",
4331
+ "type": "text",
4332
+ "primaryKey": false,
4333
+ "notNull": true
4334
+ },
4335
+ "config": {
4336
+ "name": "config",
4337
+ "type": "text",
4338
+ "primaryKey": false,
4339
+ "notNull": true
4340
+ },
4341
+ "created_at": {
4342
+ "name": "created_at",
4343
+ "type": "timestamp with time zone",
4344
+ "primaryKey": false,
4345
+ "notNull": true,
4346
+ "default": "now()"
4347
+ }
4348
+ },
4349
+ "indexes": {},
4350
+ "foreignKeys": {},
4351
+ "compositePrimaryKeys": {},
4352
+ "uniqueConstraints": {
4353
+ "storage_backends_identity_unique": {
4354
+ "name": "storage_backends_identity_unique",
4355
+ "nullsNotDistinct": false,
4356
+ "columns": [
4357
+ "identity"
4358
+ ]
4359
+ }
4360
+ },
4361
+ "policies": {},
4362
+ "checkConstraints": {},
4363
+ "isRLSEnabled": false
4364
+ },
4365
+ "public.subscriptions": {
4366
+ "name": "subscriptions",
4367
+ "schema": "",
4368
+ "columns": {
4369
+ "project_id": {
4370
+ "name": "project_id",
4371
+ "type": "uuid",
4372
+ "primaryKey": false,
4373
+ "notNull": true
4374
+ },
4375
+ "ticket_id": {
4376
+ "name": "ticket_id",
4377
+ "type": "uuid",
4378
+ "primaryKey": false,
4379
+ "notNull": true
4380
+ },
4381
+ "user_id": {
4382
+ "name": "user_id",
4383
+ "type": "text",
4384
+ "primaryKey": false,
4385
+ "notNull": true
4386
+ }
4387
+ },
4388
+ "indexes": {},
4389
+ "foreignKeys": {
4390
+ "subscriptions_project_id_projects_id_fk": {
4391
+ "name": "subscriptions_project_id_projects_id_fk",
4392
+ "tableFrom": "subscriptions",
4393
+ "tableTo": "projects",
4394
+ "columnsFrom": [
4395
+ "project_id"
4396
+ ],
4397
+ "columnsTo": [
4398
+ "id"
4399
+ ],
4400
+ "onDelete": "cascade",
4401
+ "onUpdate": "no action"
4402
+ },
4403
+ "subscriptions_ticket_id_tickets_id_fk": {
4404
+ "name": "subscriptions_ticket_id_tickets_id_fk",
4405
+ "tableFrom": "subscriptions",
4406
+ "tableTo": "tickets",
4407
+ "columnsFrom": [
4408
+ "ticket_id"
4409
+ ],
4410
+ "columnsTo": [
4411
+ "id"
4412
+ ],
4413
+ "onDelete": "cascade",
4414
+ "onUpdate": "no action"
4415
+ },
4416
+ "subscriptions_user_id_user_id_fk": {
4417
+ "name": "subscriptions_user_id_user_id_fk",
4418
+ "tableFrom": "subscriptions",
4419
+ "tableTo": "user",
4420
+ "columnsFrom": [
4421
+ "user_id"
4422
+ ],
4423
+ "columnsTo": [
4424
+ "id"
4425
+ ],
4426
+ "onDelete": "cascade",
4427
+ "onUpdate": "no action"
4428
+ }
4429
+ },
4430
+ "compositePrimaryKeys": {
4431
+ "subscriptions_ticket_id_user_id_pk": {
4432
+ "name": "subscriptions_ticket_id_user_id_pk",
4433
+ "columns": [
4434
+ "ticket_id",
4435
+ "user_id"
4436
+ ]
4437
+ }
4438
+ },
4439
+ "uniqueConstraints": {},
4440
+ "policies": {},
4441
+ "checkConstraints": {},
4442
+ "isRLSEnabled": false
4443
+ },
4444
+ "public.tickets": {
4445
+ "name": "tickets",
4446
+ "schema": "",
4447
+ "columns": {
4448
+ "id": {
4449
+ "name": "id",
4450
+ "type": "uuid",
4451
+ "primaryKey": true,
4452
+ "notNull": true,
4453
+ "default": "gen_random_uuid()"
4454
+ },
4455
+ "project_id": {
4456
+ "name": "project_id",
4457
+ "type": "uuid",
4458
+ "primaryKey": false,
4459
+ "notNull": true
4460
+ },
4461
+ "key": {
4462
+ "name": "key",
4463
+ "type": "text",
4464
+ "primaryKey": false,
4465
+ "notNull": true
4466
+ },
4467
+ "number": {
4468
+ "name": "number",
4469
+ "type": "integer",
4470
+ "primaryKey": false,
4471
+ "notNull": true
4472
+ },
4473
+ "title": {
4474
+ "name": "title",
4475
+ "type": "text",
4476
+ "primaryKey": false,
4477
+ "notNull": true
4478
+ },
4479
+ "description": {
4480
+ "name": "description",
4481
+ "type": "text",
4482
+ "primaryKey": false,
4483
+ "notNull": true,
4484
+ "default": "''"
4485
+ },
4486
+ "acceptance_criteria": {
4487
+ "name": "acceptance_criteria",
4488
+ "type": "text",
4489
+ "primaryKey": false,
4490
+ "notNull": true,
4491
+ "default": "''"
4492
+ },
4493
+ "status": {
4494
+ "name": "status",
4495
+ "type": "text",
4496
+ "primaryKey": false,
4497
+ "notNull": true,
4498
+ "default": "'todo'"
4499
+ },
4500
+ "priority": {
4501
+ "name": "priority",
4502
+ "type": "text",
4503
+ "primaryKey": false,
4504
+ "notNull": true,
4505
+ "default": "'medium'"
4506
+ },
4507
+ "kind": {
4508
+ "name": "kind",
4509
+ "type": "text",
4510
+ "primaryKey": false,
4511
+ "notNull": true,
4512
+ "default": "'feature'"
4513
+ },
4514
+ "difficulty": {
4515
+ "name": "difficulty",
4516
+ "type": "text",
4517
+ "primaryKey": false,
4518
+ "notNull": false
4519
+ },
4520
+ "labels": {
4521
+ "name": "labels",
4522
+ "type": "text[]",
4523
+ "primaryKey": false,
4524
+ "notNull": true,
4525
+ "default": "'{}'"
4526
+ },
4527
+ "scopes": {
4528
+ "name": "scopes",
4529
+ "type": "text[]",
4530
+ "primaryKey": false,
4531
+ "notNull": true,
4532
+ "default": "'{}'"
4533
+ },
4534
+ "assignee_id": {
4535
+ "name": "assignee_id",
4536
+ "type": "text",
4537
+ "primaryKey": false,
4538
+ "notNull": false
4539
+ },
4540
+ "parent_id": {
4541
+ "name": "parent_id",
4542
+ "type": "uuid",
4543
+ "primaryKey": false,
4544
+ "notNull": false
4545
+ },
4546
+ "automation_ready": {
4547
+ "name": "automation_ready",
4548
+ "type": "boolean",
4549
+ "primaryKey": false,
4550
+ "notNull": true,
4551
+ "default": false
4552
+ },
4553
+ "claim_required": {
4554
+ "name": "claim_required",
4555
+ "type": "boolean",
4556
+ "primaryKey": false,
4557
+ "notNull": true,
4558
+ "default": false
4559
+ },
4560
+ "hold_reason": {
4561
+ "name": "hold_reason",
4562
+ "type": "text",
4563
+ "primaryKey": false,
4564
+ "notNull": false
4565
+ },
4566
+ "start_at": {
4567
+ "name": "start_at",
4568
+ "type": "timestamp with time zone",
4569
+ "primaryKey": false,
4570
+ "notNull": false
4571
+ },
4572
+ "due_at": {
4573
+ "name": "due_at",
4574
+ "type": "timestamp with time zone",
4575
+ "primaryKey": false,
4576
+ "notNull": false
4577
+ },
4578
+ "archived": {
4579
+ "name": "archived",
4580
+ "type": "boolean",
4581
+ "primaryKey": false,
4582
+ "notNull": true,
4583
+ "default": false
4584
+ },
4585
+ "created_by": {
4586
+ "name": "created_by",
4587
+ "type": "text",
4588
+ "primaryKey": false,
4589
+ "notNull": true
4590
+ },
4591
+ "version": {
4592
+ "name": "version",
4593
+ "type": "integer",
4594
+ "primaryKey": false,
4595
+ "notNull": true,
4596
+ "default": 1
4597
+ },
4598
+ "created_at": {
4599
+ "name": "created_at",
4600
+ "type": "timestamp with time zone",
4601
+ "primaryKey": false,
4602
+ "notNull": true,
4603
+ "default": "now()"
4604
+ },
4605
+ "updated_at": {
4606
+ "name": "updated_at",
4607
+ "type": "timestamp with time zone",
4608
+ "primaryKey": false,
4609
+ "notNull": true,
4610
+ "default": "now()"
4611
+ }
4612
+ },
4613
+ "indexes": {
4614
+ "ticket_project_status": {
4615
+ "name": "ticket_project_status",
4616
+ "columns": [
4617
+ {
4618
+ "expression": "project_id",
4619
+ "isExpression": false,
4620
+ "asc": true,
4621
+ "nulls": "last"
4622
+ },
4623
+ {
4624
+ "expression": "status",
4625
+ "isExpression": false,
4626
+ "asc": true,
4627
+ "nulls": "last"
4628
+ }
4629
+ ],
4630
+ "isUnique": false,
4631
+ "concurrently": false,
4632
+ "method": "btree",
4633
+ "with": {}
4634
+ },
4635
+ "ticket_parent": {
4636
+ "name": "ticket_parent",
4637
+ "columns": [
4638
+ {
4639
+ "expression": "parent_id",
4640
+ "isExpression": false,
4641
+ "asc": true,
4642
+ "nulls": "last"
4643
+ }
4644
+ ],
4645
+ "isUnique": false,
4646
+ "concurrently": false,
4647
+ "method": "btree",
4648
+ "with": {}
4649
+ }
4650
+ },
4651
+ "foreignKeys": {
4652
+ "tickets_project_id_projects_id_fk": {
4653
+ "name": "tickets_project_id_projects_id_fk",
4654
+ "tableFrom": "tickets",
4655
+ "tableTo": "projects",
4656
+ "columnsFrom": [
4657
+ "project_id"
4658
+ ],
4659
+ "columnsTo": [
4660
+ "id"
4661
+ ],
4662
+ "onDelete": "cascade",
4663
+ "onUpdate": "no action"
4664
+ },
4665
+ "tickets_assignee_id_user_id_fk": {
4666
+ "name": "tickets_assignee_id_user_id_fk",
4667
+ "tableFrom": "tickets",
4668
+ "tableTo": "user",
4669
+ "columnsFrom": [
4670
+ "assignee_id"
4671
+ ],
4672
+ "columnsTo": [
4673
+ "id"
4674
+ ],
4675
+ "onDelete": "set null",
4676
+ "onUpdate": "no action"
4677
+ },
4678
+ "tickets_created_by_user_id_fk": {
4679
+ "name": "tickets_created_by_user_id_fk",
4680
+ "tableFrom": "tickets",
4681
+ "tableTo": "user",
4682
+ "columnsFrom": [
4683
+ "created_by"
4684
+ ],
4685
+ "columnsTo": [
4686
+ "id"
4687
+ ],
4688
+ "onDelete": "no action",
4689
+ "onUpdate": "no action"
4690
+ }
4691
+ },
4692
+ "compositePrimaryKeys": {},
4693
+ "uniqueConstraints": {
4694
+ "tickets_key_unique": {
4695
+ "name": "tickets_key_unique",
4696
+ "nullsNotDistinct": false,
4697
+ "columns": [
4698
+ "key"
4699
+ ]
4700
+ },
4701
+ "ticket_project_number": {
4702
+ "name": "ticket_project_number",
4703
+ "nullsNotDistinct": false,
4704
+ "columns": [
4705
+ "project_id",
4706
+ "number"
4707
+ ]
4708
+ }
4709
+ },
4710
+ "policies": {},
4711
+ "checkConstraints": {},
4712
+ "isRLSEnabled": false
4713
+ },
4714
+ "public.saved_views": {
4715
+ "name": "saved_views",
4716
+ "schema": "",
4717
+ "columns": {
4718
+ "id": {
4719
+ "name": "id",
4720
+ "type": "uuid",
4721
+ "primaryKey": true,
4722
+ "notNull": true,
4723
+ "default": "gen_random_uuid()"
4724
+ },
4725
+ "project_id": {
4726
+ "name": "project_id",
4727
+ "type": "uuid",
4728
+ "primaryKey": false,
4729
+ "notNull": true
4730
+ },
4731
+ "user_id": {
4732
+ "name": "user_id",
4733
+ "type": "text",
4734
+ "primaryKey": false,
4735
+ "notNull": true
4736
+ },
4737
+ "name": {
4738
+ "name": "name",
4739
+ "type": "text",
4740
+ "primaryKey": false,
4741
+ "notNull": true
4742
+ },
4743
+ "filters": {
4744
+ "name": "filters",
4745
+ "type": "jsonb",
4746
+ "primaryKey": false,
4747
+ "notNull": true
4748
+ }
4749
+ },
4750
+ "indexes": {},
4751
+ "foreignKeys": {
4752
+ "saved_views_project_id_projects_id_fk": {
4753
+ "name": "saved_views_project_id_projects_id_fk",
4754
+ "tableFrom": "saved_views",
4755
+ "tableTo": "projects",
4756
+ "columnsFrom": [
4757
+ "project_id"
4758
+ ],
4759
+ "columnsTo": [
4760
+ "id"
4761
+ ],
4762
+ "onDelete": "cascade",
4763
+ "onUpdate": "no action"
4764
+ },
4765
+ "saved_views_user_id_user_id_fk": {
4766
+ "name": "saved_views_user_id_user_id_fk",
4767
+ "tableFrom": "saved_views",
4768
+ "tableTo": "user",
4769
+ "columnsFrom": [
4770
+ "user_id"
4771
+ ],
4772
+ "columnsTo": [
4773
+ "id"
4774
+ ],
4775
+ "onDelete": "cascade",
4776
+ "onUpdate": "no action"
4777
+ }
4778
+ },
4779
+ "compositePrimaryKeys": {},
4780
+ "uniqueConstraints": {},
4781
+ "policies": {},
4782
+ "checkConstraints": {},
4783
+ "isRLSEnabled": false
4784
+ },
4785
+ "public.workspace_members": {
4786
+ "name": "workspace_members",
4787
+ "schema": "",
4788
+ "columns": {
4789
+ "workspace_id": {
4790
+ "name": "workspace_id",
4791
+ "type": "uuid",
4792
+ "primaryKey": false,
4793
+ "notNull": true
4794
+ },
4795
+ "user_id": {
4796
+ "name": "user_id",
4797
+ "type": "text",
4798
+ "primaryKey": false,
4799
+ "notNull": true
4800
+ },
4801
+ "role": {
4802
+ "name": "role",
4803
+ "type": "text",
4804
+ "primaryKey": false,
4805
+ "notNull": true
4806
+ }
4807
+ },
4808
+ "indexes": {
4809
+ "workspace_member_user": {
4810
+ "name": "workspace_member_user",
4811
+ "columns": [
4812
+ {
4813
+ "expression": "user_id",
4814
+ "isExpression": false,
4815
+ "asc": true,
4816
+ "nulls": "last"
4817
+ }
4818
+ ],
4819
+ "isUnique": false,
4820
+ "concurrently": false,
4821
+ "method": "btree",
4822
+ "with": {}
4823
+ }
4824
+ },
4825
+ "foreignKeys": {
4826
+ "workspace_members_workspace_id_workspaces_id_fk": {
4827
+ "name": "workspace_members_workspace_id_workspaces_id_fk",
4828
+ "tableFrom": "workspace_members",
4829
+ "tableTo": "workspaces",
4830
+ "columnsFrom": [
4831
+ "workspace_id"
4832
+ ],
4833
+ "columnsTo": [
4834
+ "id"
4835
+ ],
4836
+ "onDelete": "cascade",
4837
+ "onUpdate": "no action"
4838
+ },
4839
+ "workspace_members_user_id_user_id_fk": {
4840
+ "name": "workspace_members_user_id_user_id_fk",
4841
+ "tableFrom": "workspace_members",
4842
+ "tableTo": "user",
4843
+ "columnsFrom": [
4844
+ "user_id"
4845
+ ],
4846
+ "columnsTo": [
4847
+ "id"
4848
+ ],
4849
+ "onDelete": "cascade",
4850
+ "onUpdate": "no action"
4851
+ }
4852
+ },
4853
+ "compositePrimaryKeys": {
4854
+ "workspace_members_workspace_id_user_id_pk": {
4855
+ "name": "workspace_members_workspace_id_user_id_pk",
4856
+ "columns": [
4857
+ "workspace_id",
4858
+ "user_id"
4859
+ ]
4860
+ }
4861
+ },
4862
+ "uniqueConstraints": {},
4863
+ "policies": {},
4864
+ "checkConstraints": {},
4865
+ "isRLSEnabled": false
4866
+ },
4867
+ "public.workspaces": {
4868
+ "name": "workspaces",
4869
+ "schema": "",
4870
+ "columns": {
4871
+ "id": {
4872
+ "name": "id",
4873
+ "type": "uuid",
4874
+ "primaryKey": true,
4875
+ "notNull": true,
4876
+ "default": "gen_random_uuid()"
4877
+ },
4878
+ "slug": {
4879
+ "name": "slug",
4880
+ "type": "text",
4881
+ "primaryKey": false,
4882
+ "notNull": true
4883
+ },
4884
+ "name": {
4885
+ "name": "name",
4886
+ "type": "text",
4887
+ "primaryKey": false,
4888
+ "notNull": true
4889
+ },
4890
+ "description": {
4891
+ "name": "description",
4892
+ "type": "text",
4893
+ "primaryKey": false,
4894
+ "notNull": true,
4895
+ "default": "''"
4896
+ },
4897
+ "version": {
4898
+ "name": "version",
4899
+ "type": "integer",
4900
+ "primaryKey": false,
4901
+ "notNull": true,
4902
+ "default": 1
4903
+ },
4904
+ "created_at": {
4905
+ "name": "created_at",
4906
+ "type": "timestamp with time zone",
4907
+ "primaryKey": false,
4908
+ "notNull": true,
4909
+ "default": "now()"
4910
+ },
4911
+ "updated_at": {
4912
+ "name": "updated_at",
4913
+ "type": "timestamp with time zone",
4914
+ "primaryKey": false,
4915
+ "notNull": true,
4916
+ "default": "now()"
4917
+ }
4918
+ },
4919
+ "indexes": {},
4920
+ "foreignKeys": {},
4921
+ "compositePrimaryKeys": {},
4922
+ "uniqueConstraints": {
4923
+ "workspaces_slug_unique": {
4924
+ "name": "workspaces_slug_unique",
4925
+ "nullsNotDistinct": false,
4926
+ "columns": [
4927
+ "slug"
4928
+ ]
4929
+ }
4930
+ },
4931
+ "policies": {},
4932
+ "checkConstraints": {},
4933
+ "isRLSEnabled": false
4934
+ }
4935
+ },
4936
+ "enums": {},
4937
+ "schemas": {},
4938
+ "sequences": {},
4939
+ "roles": {},
4940
+ "policies": {},
4941
+ "views": {},
4942
+ "_meta": {
4943
+ "columns": {},
4944
+ "schemas": {},
4945
+ "tables": {}
4946
+ }
4947
+ }