@maudecode/kanvil 0.2.1 → 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 (294) 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 +2500 -294
  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/self-hosting.md +44 -5
  262. package/docs/themes.md +1 -1
  263. package/docs/verification.md +1 -1
  264. package/docs/workspaces.md +18 -2
  265. package/package.json +12 -8
  266. package/apps/server/dist/auth-I1XEr0d4.mjs +0 -2931
  267. package/apps/web/dist/assets/CompositeItem-BWPJ5Mol.js +0 -1
  268. package/apps/web/dist/assets/admin-settings-DZqkC6ju.js +0 -1
  269. package/apps/web/dist/assets/date-picker-6H_iwP6t.js +0 -1
  270. package/apps/web/dist/assets/ellipsis-BT172Uvu.js +0 -1
  271. package/apps/web/dist/assets/forms-B4Vg3CPz.js +0 -92
  272. package/apps/web/dist/assets/image-edit-trigger-DGmVtWLC.js +0 -1
  273. package/apps/web/dist/assets/index-C_a21taR.js +0 -50
  274. package/apps/web/dist/assets/index-DM-D_3Sv.css +0 -2
  275. package/apps/web/dist/assets/kbd-tTQGZxaK.js +0 -1
  276. package/apps/web/dist/assets/link-DoIP9KJ6.js +0 -2
  277. package/apps/web/dist/assets/list-order-Bzsrihyr.js +0 -1
  278. package/apps/web/dist/assets/lucide-U995NW8E.js +0 -1
  279. package/apps/web/dist/assets/member-directory-BiCE8DRq.js +0 -1
  280. package/apps/web/dist/assets/popover-BhzZ0U1d.js +0 -1
  281. package/apps/web/dist/assets/project-label-provider-9L7Uts3_.js +0 -1
  282. package/apps/web/dist/assets/project-settings-Q7Q9Reec.js +0 -1
  283. package/apps/web/dist/assets/rotate-ccw-sjyLwLLy.js +0 -1
  284. package/apps/web/dist/assets/settings-B6qD6q1J.js +0 -1
  285. package/apps/web/dist/assets/settings-layout-B-AwUIMu.js +0 -1
  286. package/apps/web/dist/assets/switch-D0nFHj6l.js +0 -1
  287. package/apps/web/dist/assets/table-CYZiwo9g.js +0 -1
  288. package/apps/web/dist/assets/ticket-detail-B-3vbHSB.js +0 -2
  289. package/apps/web/dist/assets/ticket-editor-C3d8TZIT.js +0 -1
  290. package/apps/web/dist/assets/ticket-list-LtGGOnwN.js +0 -5
  291. package/apps/web/dist/assets/ticket-tags-2rdmkcJV.js +0 -1
  292. package/apps/web/dist/assets/upload-DXPRzAaa.js +0 -1
  293. package/apps/web/dist/assets/useNavigate-DFohfUD3.js +0 -1
  294. package/apps/web/dist/assets/workspace-settings-D3tCm1vH.js +0 -1
@@ -0,0 +1,4826 @@
1
+ {
2
+ "id": "12a405c6-5548-4912-9fc3-554c3afeb807",
3
+ "prevId": "60972488-097b-4402-a154-2cccaa63d158",
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.claims": {
2025
+ "name": "claims",
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
+ "ticket_id": {
2042
+ "name": "ticket_id",
2043
+ "type": "uuid",
2044
+ "primaryKey": false,
2045
+ "notNull": true
2046
+ },
2047
+ "actor_id": {
2048
+ "name": "actor_id",
2049
+ "type": "text",
2050
+ "primaryKey": false,
2051
+ "notNull": true
2052
+ },
2053
+ "owner_id": {
2054
+ "name": "owner_id",
2055
+ "type": "text",
2056
+ "primaryKey": false,
2057
+ "notNull": true
2058
+ },
2059
+ "worker_id": {
2060
+ "name": "worker_id",
2061
+ "type": "text",
2062
+ "primaryKey": false,
2063
+ "notNull": true
2064
+ },
2065
+ "expires_at": {
2066
+ "name": "expires_at",
2067
+ "type": "timestamp with time zone",
2068
+ "primaryKey": false,
2069
+ "notNull": true
2070
+ },
2071
+ "created_at": {
2072
+ "name": "created_at",
2073
+ "type": "timestamp with time zone",
2074
+ "primaryKey": false,
2075
+ "notNull": true,
2076
+ "default": "now()"
2077
+ }
2078
+ },
2079
+ "indexes": {},
2080
+ "foreignKeys": {
2081
+ "claims_project_id_projects_id_fk": {
2082
+ "name": "claims_project_id_projects_id_fk",
2083
+ "tableFrom": "claims",
2084
+ "tableTo": "projects",
2085
+ "columnsFrom": [
2086
+ "project_id"
2087
+ ],
2088
+ "columnsTo": [
2089
+ "id"
2090
+ ],
2091
+ "onDelete": "cascade",
2092
+ "onUpdate": "no action"
2093
+ },
2094
+ "claims_ticket_id_tickets_id_fk": {
2095
+ "name": "claims_ticket_id_tickets_id_fk",
2096
+ "tableFrom": "claims",
2097
+ "tableTo": "tickets",
2098
+ "columnsFrom": [
2099
+ "ticket_id"
2100
+ ],
2101
+ "columnsTo": [
2102
+ "id"
2103
+ ],
2104
+ "onDelete": "cascade",
2105
+ "onUpdate": "no action"
2106
+ },
2107
+ "claims_actor_id_user_id_fk": {
2108
+ "name": "claims_actor_id_user_id_fk",
2109
+ "tableFrom": "claims",
2110
+ "tableTo": "user",
2111
+ "columnsFrom": [
2112
+ "actor_id"
2113
+ ],
2114
+ "columnsTo": [
2115
+ "id"
2116
+ ],
2117
+ "onDelete": "no action",
2118
+ "onUpdate": "no action"
2119
+ }
2120
+ },
2121
+ "compositePrimaryKeys": {},
2122
+ "uniqueConstraints": {
2123
+ "claims_ticket_id_unique": {
2124
+ "name": "claims_ticket_id_unique",
2125
+ "nullsNotDistinct": false,
2126
+ "columns": [
2127
+ "ticket_id"
2128
+ ]
2129
+ }
2130
+ },
2131
+ "policies": {},
2132
+ "checkConstraints": {},
2133
+ "isRLSEnabled": false
2134
+ },
2135
+ "public.comments": {
2136
+ "name": "comments",
2137
+ "schema": "",
2138
+ "columns": {
2139
+ "id": {
2140
+ "name": "id",
2141
+ "type": "uuid",
2142
+ "primaryKey": true,
2143
+ "notNull": true,
2144
+ "default": "gen_random_uuid()"
2145
+ },
2146
+ "project_id": {
2147
+ "name": "project_id",
2148
+ "type": "uuid",
2149
+ "primaryKey": false,
2150
+ "notNull": true
2151
+ },
2152
+ "ticket_id": {
2153
+ "name": "ticket_id",
2154
+ "type": "uuid",
2155
+ "primaryKey": false,
2156
+ "notNull": true
2157
+ },
2158
+ "actor_id": {
2159
+ "name": "actor_id",
2160
+ "type": "text",
2161
+ "primaryKey": false,
2162
+ "notNull": true
2163
+ },
2164
+ "body": {
2165
+ "name": "body",
2166
+ "type": "text",
2167
+ "primaryKey": false,
2168
+ "notNull": true
2169
+ },
2170
+ "version": {
2171
+ "name": "version",
2172
+ "type": "integer",
2173
+ "primaryKey": false,
2174
+ "notNull": true,
2175
+ "default": 1
2176
+ },
2177
+ "created_at": {
2178
+ "name": "created_at",
2179
+ "type": "timestamp with time zone",
2180
+ "primaryKey": false,
2181
+ "notNull": true,
2182
+ "default": "now()"
2183
+ },
2184
+ "updated_at": {
2185
+ "name": "updated_at",
2186
+ "type": "timestamp with time zone",
2187
+ "primaryKey": false,
2188
+ "notNull": true,
2189
+ "default": "now()"
2190
+ }
2191
+ },
2192
+ "indexes": {
2193
+ "comment_ticket": {
2194
+ "name": "comment_ticket",
2195
+ "columns": [
2196
+ {
2197
+ "expression": "ticket_id",
2198
+ "isExpression": false,
2199
+ "asc": true,
2200
+ "nulls": "last"
2201
+ }
2202
+ ],
2203
+ "isUnique": false,
2204
+ "concurrently": false,
2205
+ "method": "btree",
2206
+ "with": {}
2207
+ }
2208
+ },
2209
+ "foreignKeys": {
2210
+ "comments_project_id_projects_id_fk": {
2211
+ "name": "comments_project_id_projects_id_fk",
2212
+ "tableFrom": "comments",
2213
+ "tableTo": "projects",
2214
+ "columnsFrom": [
2215
+ "project_id"
2216
+ ],
2217
+ "columnsTo": [
2218
+ "id"
2219
+ ],
2220
+ "onDelete": "cascade",
2221
+ "onUpdate": "no action"
2222
+ },
2223
+ "comments_ticket_id_tickets_id_fk": {
2224
+ "name": "comments_ticket_id_tickets_id_fk",
2225
+ "tableFrom": "comments",
2226
+ "tableTo": "tickets",
2227
+ "columnsFrom": [
2228
+ "ticket_id"
2229
+ ],
2230
+ "columnsTo": [
2231
+ "id"
2232
+ ],
2233
+ "onDelete": "cascade",
2234
+ "onUpdate": "no action"
2235
+ },
2236
+ "comments_actor_id_user_id_fk": {
2237
+ "name": "comments_actor_id_user_id_fk",
2238
+ "tableFrom": "comments",
2239
+ "tableTo": "user",
2240
+ "columnsFrom": [
2241
+ "actor_id"
2242
+ ],
2243
+ "columnsTo": [
2244
+ "id"
2245
+ ],
2246
+ "onDelete": "no action",
2247
+ "onUpdate": "no action"
2248
+ }
2249
+ },
2250
+ "compositePrimaryKeys": {},
2251
+ "uniqueConstraints": {},
2252
+ "policies": {},
2253
+ "checkConstraints": {},
2254
+ "isRLSEnabled": false
2255
+ },
2256
+ "public.deliveries": {
2257
+ "name": "deliveries",
2258
+ "schema": "",
2259
+ "columns": {
2260
+ "id": {
2261
+ "name": "id",
2262
+ "type": "uuid",
2263
+ "primaryKey": true,
2264
+ "notNull": true,
2265
+ "default": "gen_random_uuid()"
2266
+ },
2267
+ "notification_id": {
2268
+ "name": "notification_id",
2269
+ "type": "uuid",
2270
+ "primaryKey": false,
2271
+ "notNull": false
2272
+ },
2273
+ "event_id": {
2274
+ "name": "event_id",
2275
+ "type": "bigint",
2276
+ "primaryKey": false,
2277
+ "notNull": false
2278
+ },
2279
+ "device_id": {
2280
+ "name": "device_id",
2281
+ "type": "uuid",
2282
+ "primaryKey": false,
2283
+ "notNull": false
2284
+ },
2285
+ "channel_id": {
2286
+ "name": "channel_id",
2287
+ "type": "uuid",
2288
+ "primaryKey": false,
2289
+ "notNull": false
2290
+ },
2291
+ "destination_id": {
2292
+ "name": "destination_id",
2293
+ "type": "uuid",
2294
+ "primaryKey": false,
2295
+ "notNull": false
2296
+ },
2297
+ "attempts": {
2298
+ "name": "attempts",
2299
+ "type": "integer",
2300
+ "primaryKey": false,
2301
+ "notNull": true,
2302
+ "default": 0
2303
+ },
2304
+ "available_at": {
2305
+ "name": "available_at",
2306
+ "type": "timestamp with time zone",
2307
+ "primaryKey": false,
2308
+ "notNull": true,
2309
+ "default": "now()"
2310
+ },
2311
+ "receipt_id": {
2312
+ "name": "receipt_id",
2313
+ "type": "text",
2314
+ "primaryKey": false,
2315
+ "notNull": false
2316
+ },
2317
+ "finished_at": {
2318
+ "name": "finished_at",
2319
+ "type": "timestamp with time zone",
2320
+ "primaryKey": false,
2321
+ "notNull": false
2322
+ },
2323
+ "error": {
2324
+ "name": "error",
2325
+ "type": "text",
2326
+ "primaryKey": false,
2327
+ "notNull": false
2328
+ },
2329
+ "created_at": {
2330
+ "name": "created_at",
2331
+ "type": "timestamp with time zone",
2332
+ "primaryKey": false,
2333
+ "notNull": true,
2334
+ "default": "now()"
2335
+ }
2336
+ },
2337
+ "indexes": {
2338
+ "delivery_pending": {
2339
+ "name": "delivery_pending",
2340
+ "columns": [
2341
+ {
2342
+ "expression": "finished_at",
2343
+ "isExpression": false,
2344
+ "asc": true,
2345
+ "nulls": "last"
2346
+ },
2347
+ {
2348
+ "expression": "available_at",
2349
+ "isExpression": false,
2350
+ "asc": true,
2351
+ "nulls": "last"
2352
+ }
2353
+ ],
2354
+ "isUnique": false,
2355
+ "concurrently": false,
2356
+ "method": "btree",
2357
+ "with": {}
2358
+ }
2359
+ },
2360
+ "foreignKeys": {
2361
+ "deliveries_notification_id_notifications_id_fk": {
2362
+ "name": "deliveries_notification_id_notifications_id_fk",
2363
+ "tableFrom": "deliveries",
2364
+ "tableTo": "notifications",
2365
+ "columnsFrom": [
2366
+ "notification_id"
2367
+ ],
2368
+ "columnsTo": [
2369
+ "id"
2370
+ ],
2371
+ "onDelete": "cascade",
2372
+ "onUpdate": "no action"
2373
+ },
2374
+ "deliveries_event_id_events_id_fk": {
2375
+ "name": "deliveries_event_id_events_id_fk",
2376
+ "tableFrom": "deliveries",
2377
+ "tableTo": "events",
2378
+ "columnsFrom": [
2379
+ "event_id"
2380
+ ],
2381
+ "columnsTo": [
2382
+ "id"
2383
+ ],
2384
+ "onDelete": "cascade",
2385
+ "onUpdate": "no action"
2386
+ },
2387
+ "deliveries_device_id_push_devices_id_fk": {
2388
+ "name": "deliveries_device_id_push_devices_id_fk",
2389
+ "tableFrom": "deliveries",
2390
+ "tableTo": "push_devices",
2391
+ "columnsFrom": [
2392
+ "device_id"
2393
+ ],
2394
+ "columnsTo": [
2395
+ "id"
2396
+ ],
2397
+ "onDelete": "cascade",
2398
+ "onUpdate": "no action"
2399
+ },
2400
+ "deliveries_channel_id_notification_channels_id_fk": {
2401
+ "name": "deliveries_channel_id_notification_channels_id_fk",
2402
+ "tableFrom": "deliveries",
2403
+ "tableTo": "notification_channels",
2404
+ "columnsFrom": [
2405
+ "channel_id"
2406
+ ],
2407
+ "columnsTo": [
2408
+ "id"
2409
+ ],
2410
+ "onDelete": "cascade",
2411
+ "onUpdate": "no action"
2412
+ },
2413
+ "deliveries_destination_id_project_destinations_id_fk": {
2414
+ "name": "deliveries_destination_id_project_destinations_id_fk",
2415
+ "tableFrom": "deliveries",
2416
+ "tableTo": "project_destinations",
2417
+ "columnsFrom": [
2418
+ "destination_id"
2419
+ ],
2420
+ "columnsTo": [
2421
+ "id"
2422
+ ],
2423
+ "onDelete": "cascade",
2424
+ "onUpdate": "no action"
2425
+ }
2426
+ },
2427
+ "compositePrimaryKeys": {},
2428
+ "uniqueConstraints": {
2429
+ "delivery_device": {
2430
+ "name": "delivery_device",
2431
+ "nullsNotDistinct": false,
2432
+ "columns": [
2433
+ "notification_id",
2434
+ "device_id"
2435
+ ]
2436
+ },
2437
+ "delivery_channel": {
2438
+ "name": "delivery_channel",
2439
+ "nullsNotDistinct": false,
2440
+ "columns": [
2441
+ "notification_id",
2442
+ "channel_id"
2443
+ ]
2444
+ },
2445
+ "delivery_destination": {
2446
+ "name": "delivery_destination",
2447
+ "nullsNotDistinct": false,
2448
+ "columns": [
2449
+ "event_id",
2450
+ "destination_id"
2451
+ ]
2452
+ }
2453
+ },
2454
+ "policies": {},
2455
+ "checkConstraints": {
2456
+ "delivery_one_target": {
2457
+ "name": "delivery_one_target",
2458
+ "value": "num_nonnulls(\"deliveries\".\"device_id\", \"deliveries\".\"channel_id\", \"deliveries\".\"destination_id\") = 1"
2459
+ }
2460
+ },
2461
+ "isRLSEnabled": false
2462
+ },
2463
+ "public.delivery_checkpoints": {
2464
+ "name": "delivery_checkpoints",
2465
+ "schema": "",
2466
+ "columns": {
2467
+ "destination": {
2468
+ "name": "destination",
2469
+ "type": "text",
2470
+ "primaryKey": true,
2471
+ "notNull": true
2472
+ },
2473
+ "cursor": {
2474
+ "name": "cursor",
2475
+ "type": "bigint",
2476
+ "primaryKey": false,
2477
+ "notNull": true,
2478
+ "default": "0"
2479
+ }
2480
+ },
2481
+ "indexes": {},
2482
+ "foreignKeys": {},
2483
+ "compositePrimaryKeys": {},
2484
+ "uniqueConstraints": {},
2485
+ "policies": {},
2486
+ "checkConstraints": {},
2487
+ "isRLSEnabled": false
2488
+ },
2489
+ "public.event_clock": {
2490
+ "name": "event_clock",
2491
+ "schema": "",
2492
+ "columns": {
2493
+ "id": {
2494
+ "name": "id",
2495
+ "type": "integer",
2496
+ "primaryKey": true,
2497
+ "notNull": true
2498
+ },
2499
+ "value": {
2500
+ "name": "value",
2501
+ "type": "bigint",
2502
+ "primaryKey": false,
2503
+ "notNull": true,
2504
+ "default": "0"
2505
+ },
2506
+ "floor": {
2507
+ "name": "floor",
2508
+ "type": "bigint",
2509
+ "primaryKey": false,
2510
+ "notNull": true,
2511
+ "default": "0"
2512
+ }
2513
+ },
2514
+ "indexes": {},
2515
+ "foreignKeys": {},
2516
+ "compositePrimaryKeys": {},
2517
+ "uniqueConstraints": {},
2518
+ "policies": {},
2519
+ "checkConstraints": {},
2520
+ "isRLSEnabled": false
2521
+ },
2522
+ "public.events": {
2523
+ "name": "events",
2524
+ "schema": "",
2525
+ "columns": {
2526
+ "id": {
2527
+ "name": "id",
2528
+ "type": "bigint",
2529
+ "primaryKey": true,
2530
+ "notNull": true
2531
+ },
2532
+ "project_id": {
2533
+ "name": "project_id",
2534
+ "type": "uuid",
2535
+ "primaryKey": false,
2536
+ "notNull": true
2537
+ },
2538
+ "ticket_id": {
2539
+ "name": "ticket_id",
2540
+ "type": "uuid",
2541
+ "primaryKey": false,
2542
+ "notNull": false
2543
+ },
2544
+ "actor_id": {
2545
+ "name": "actor_id",
2546
+ "type": "text",
2547
+ "primaryKey": false,
2548
+ "notNull": false
2549
+ },
2550
+ "type": {
2551
+ "name": "type",
2552
+ "type": "text",
2553
+ "primaryKey": false,
2554
+ "notNull": true
2555
+ },
2556
+ "data": {
2557
+ "name": "data",
2558
+ "type": "jsonb",
2559
+ "primaryKey": false,
2560
+ "notNull": true
2561
+ },
2562
+ "created_at": {
2563
+ "name": "created_at",
2564
+ "type": "timestamp with time zone",
2565
+ "primaryKey": false,
2566
+ "notNull": true,
2567
+ "default": "now()"
2568
+ }
2569
+ },
2570
+ "indexes": {
2571
+ "event_project_cursor": {
2572
+ "name": "event_project_cursor",
2573
+ "columns": [
2574
+ {
2575
+ "expression": "project_id",
2576
+ "isExpression": false,
2577
+ "asc": true,
2578
+ "nulls": "last"
2579
+ },
2580
+ {
2581
+ "expression": "id",
2582
+ "isExpression": false,
2583
+ "asc": true,
2584
+ "nulls": "last"
2585
+ }
2586
+ ],
2587
+ "isUnique": false,
2588
+ "concurrently": false,
2589
+ "method": "btree",
2590
+ "with": {}
2591
+ },
2592
+ "event_ticket": {
2593
+ "name": "event_ticket",
2594
+ "columns": [
2595
+ {
2596
+ "expression": "ticket_id",
2597
+ "isExpression": false,
2598
+ "asc": true,
2599
+ "nulls": "last"
2600
+ },
2601
+ {
2602
+ "expression": "id",
2603
+ "isExpression": false,
2604
+ "asc": true,
2605
+ "nulls": "last"
2606
+ }
2607
+ ],
2608
+ "isUnique": false,
2609
+ "concurrently": false,
2610
+ "method": "btree",
2611
+ "with": {}
2612
+ }
2613
+ },
2614
+ "foreignKeys": {
2615
+ "events_project_id_projects_id_fk": {
2616
+ "name": "events_project_id_projects_id_fk",
2617
+ "tableFrom": "events",
2618
+ "tableTo": "projects",
2619
+ "columnsFrom": [
2620
+ "project_id"
2621
+ ],
2622
+ "columnsTo": [
2623
+ "id"
2624
+ ],
2625
+ "onDelete": "cascade",
2626
+ "onUpdate": "no action"
2627
+ },
2628
+ "events_actor_id_user_id_fk": {
2629
+ "name": "events_actor_id_user_id_fk",
2630
+ "tableFrom": "events",
2631
+ "tableTo": "user",
2632
+ "columnsFrom": [
2633
+ "actor_id"
2634
+ ],
2635
+ "columnsTo": [
2636
+ "id"
2637
+ ],
2638
+ "onDelete": "no action",
2639
+ "onUpdate": "no action"
2640
+ }
2641
+ },
2642
+ "compositePrimaryKeys": {},
2643
+ "uniqueConstraints": {},
2644
+ "policies": {},
2645
+ "checkConstraints": {},
2646
+ "isRLSEnabled": false
2647
+ },
2648
+ "public.evidence": {
2649
+ "name": "evidence",
2650
+ "schema": "",
2651
+ "columns": {
2652
+ "id": {
2653
+ "name": "id",
2654
+ "type": "uuid",
2655
+ "primaryKey": true,
2656
+ "notNull": true,
2657
+ "default": "gen_random_uuid()"
2658
+ },
2659
+ "project_id": {
2660
+ "name": "project_id",
2661
+ "type": "uuid",
2662
+ "primaryKey": false,
2663
+ "notNull": true
2664
+ },
2665
+ "ticket_id": {
2666
+ "name": "ticket_id",
2667
+ "type": "uuid",
2668
+ "primaryKey": false,
2669
+ "notNull": true
2670
+ },
2671
+ "actor_id": {
2672
+ "name": "actor_id",
2673
+ "type": "text",
2674
+ "primaryKey": false,
2675
+ "notNull": true
2676
+ },
2677
+ "title": {
2678
+ "name": "title",
2679
+ "type": "text",
2680
+ "primaryKey": false,
2681
+ "notNull": true
2682
+ },
2683
+ "kind": {
2684
+ "name": "kind",
2685
+ "type": "text",
2686
+ "primaryKey": false,
2687
+ "notNull": true
2688
+ },
2689
+ "url": {
2690
+ "name": "url",
2691
+ "type": "text",
2692
+ "primaryKey": false,
2693
+ "notNull": true
2694
+ },
2695
+ "commit": {
2696
+ "name": "commit",
2697
+ "type": "text",
2698
+ "primaryKey": false,
2699
+ "notNull": false
2700
+ },
2701
+ "outcome": {
2702
+ "name": "outcome",
2703
+ "type": "text",
2704
+ "primaryKey": false,
2705
+ "notNull": true
2706
+ },
2707
+ "note": {
2708
+ "name": "note",
2709
+ "type": "text",
2710
+ "primaryKey": false,
2711
+ "notNull": true
2712
+ },
2713
+ "created_at": {
2714
+ "name": "created_at",
2715
+ "type": "timestamp with time zone",
2716
+ "primaryKey": false,
2717
+ "notNull": true,
2718
+ "default": "now()"
2719
+ }
2720
+ },
2721
+ "indexes": {},
2722
+ "foreignKeys": {
2723
+ "evidence_project_id_projects_id_fk": {
2724
+ "name": "evidence_project_id_projects_id_fk",
2725
+ "tableFrom": "evidence",
2726
+ "tableTo": "projects",
2727
+ "columnsFrom": [
2728
+ "project_id"
2729
+ ],
2730
+ "columnsTo": [
2731
+ "id"
2732
+ ],
2733
+ "onDelete": "cascade",
2734
+ "onUpdate": "no action"
2735
+ },
2736
+ "evidence_ticket_id_tickets_id_fk": {
2737
+ "name": "evidence_ticket_id_tickets_id_fk",
2738
+ "tableFrom": "evidence",
2739
+ "tableTo": "tickets",
2740
+ "columnsFrom": [
2741
+ "ticket_id"
2742
+ ],
2743
+ "columnsTo": [
2744
+ "id"
2745
+ ],
2746
+ "onDelete": "cascade",
2747
+ "onUpdate": "no action"
2748
+ },
2749
+ "evidence_actor_id_user_id_fk": {
2750
+ "name": "evidence_actor_id_user_id_fk",
2751
+ "tableFrom": "evidence",
2752
+ "tableTo": "user",
2753
+ "columnsFrom": [
2754
+ "actor_id"
2755
+ ],
2756
+ "columnsTo": [
2757
+ "id"
2758
+ ],
2759
+ "onDelete": "no action",
2760
+ "onUpdate": "no action"
2761
+ }
2762
+ },
2763
+ "compositePrimaryKeys": {},
2764
+ "uniqueConstraints": {},
2765
+ "policies": {},
2766
+ "checkConstraints": {},
2767
+ "isRLSEnabled": false
2768
+ },
2769
+ "public.instance_settings": {
2770
+ "name": "instance_settings",
2771
+ "schema": "",
2772
+ "columns": {
2773
+ "id": {
2774
+ "name": "id",
2775
+ "type": "integer",
2776
+ "primaryKey": true,
2777
+ "notNull": true,
2778
+ "default": 1
2779
+ },
2780
+ "identity": {
2781
+ "name": "identity",
2782
+ "type": "uuid",
2783
+ "primaryKey": false,
2784
+ "notNull": true,
2785
+ "default": "gen_random_uuid()"
2786
+ },
2787
+ "version": {
2788
+ "name": "version",
2789
+ "type": "integer",
2790
+ "primaryKey": false,
2791
+ "notNull": true,
2792
+ "default": 1
2793
+ },
2794
+ "name": {
2795
+ "name": "name",
2796
+ "type": "text",
2797
+ "primaryKey": false,
2798
+ "notNull": true,
2799
+ "default": "'Kanvil'"
2800
+ },
2801
+ "description": {
2802
+ "name": "description",
2803
+ "type": "text",
2804
+ "primaryKey": false,
2805
+ "notNull": true,
2806
+ "default": "'Ticketing for people and agents'"
2807
+ },
2808
+ "storage_backend_id": {
2809
+ "name": "storage_backend_id",
2810
+ "type": "uuid",
2811
+ "primaryKey": false,
2812
+ "notNull": false
2813
+ },
2814
+ "search_config": {
2815
+ "name": "search_config",
2816
+ "type": "text",
2817
+ "primaryKey": false,
2818
+ "notNull": false
2819
+ },
2820
+ "broker_config": {
2821
+ "name": "broker_config",
2822
+ "type": "text",
2823
+ "primaryKey": false,
2824
+ "notNull": false
2825
+ },
2826
+ "email_password_enabled": {
2827
+ "name": "email_password_enabled",
2828
+ "type": "boolean",
2829
+ "primaryKey": false,
2830
+ "notNull": true,
2831
+ "default": true
2832
+ },
2833
+ "sso_auto_provision": {
2834
+ "name": "sso_auto_provision",
2835
+ "type": "boolean",
2836
+ "primaryKey": false,
2837
+ "notNull": true,
2838
+ "default": false
2839
+ }
2840
+ },
2841
+ "indexes": {},
2842
+ "foreignKeys": {
2843
+ "instance_settings_storage_backend_id_storage_backends_id_fk": {
2844
+ "name": "instance_settings_storage_backend_id_storage_backends_id_fk",
2845
+ "tableFrom": "instance_settings",
2846
+ "tableTo": "storage_backends",
2847
+ "columnsFrom": [
2848
+ "storage_backend_id"
2849
+ ],
2850
+ "columnsTo": [
2851
+ "id"
2852
+ ],
2853
+ "onDelete": "no action",
2854
+ "onUpdate": "no action"
2855
+ }
2856
+ },
2857
+ "compositePrimaryKeys": {},
2858
+ "uniqueConstraints": {},
2859
+ "policies": {},
2860
+ "checkConstraints": {},
2861
+ "isRLSEnabled": false
2862
+ },
2863
+ "public.label_colors": {
2864
+ "name": "label_colors",
2865
+ "schema": "",
2866
+ "columns": {
2867
+ "value": {
2868
+ "name": "value",
2869
+ "type": "text",
2870
+ "primaryKey": true,
2871
+ "notNull": true
2872
+ },
2873
+ "created_by": {
2874
+ "name": "created_by",
2875
+ "type": "text",
2876
+ "primaryKey": false,
2877
+ "notNull": false
2878
+ },
2879
+ "created_at": {
2880
+ "name": "created_at",
2881
+ "type": "timestamp with time zone",
2882
+ "primaryKey": false,
2883
+ "notNull": true,
2884
+ "default": "now()"
2885
+ }
2886
+ },
2887
+ "indexes": {},
2888
+ "foreignKeys": {
2889
+ "label_colors_created_by_user_id_fk": {
2890
+ "name": "label_colors_created_by_user_id_fk",
2891
+ "tableFrom": "label_colors",
2892
+ "tableTo": "user",
2893
+ "columnsFrom": [
2894
+ "created_by"
2895
+ ],
2896
+ "columnsTo": [
2897
+ "id"
2898
+ ],
2899
+ "onDelete": "set null",
2900
+ "onUpdate": "no action"
2901
+ }
2902
+ },
2903
+ "compositePrimaryKeys": {},
2904
+ "uniqueConstraints": {},
2905
+ "policies": {},
2906
+ "checkConstraints": {},
2907
+ "isRLSEnabled": false
2908
+ },
2909
+ "public.project_members": {
2910
+ "name": "project_members",
2911
+ "schema": "",
2912
+ "columns": {
2913
+ "project_id": {
2914
+ "name": "project_id",
2915
+ "type": "uuid",
2916
+ "primaryKey": false,
2917
+ "notNull": true
2918
+ },
2919
+ "user_id": {
2920
+ "name": "user_id",
2921
+ "type": "text",
2922
+ "primaryKey": false,
2923
+ "notNull": true
2924
+ },
2925
+ "role": {
2926
+ "name": "role",
2927
+ "type": "text",
2928
+ "primaryKey": false,
2929
+ "notNull": true
2930
+ }
2931
+ },
2932
+ "indexes": {
2933
+ "member_user": {
2934
+ "name": "member_user",
2935
+ "columns": [
2936
+ {
2937
+ "expression": "user_id",
2938
+ "isExpression": false,
2939
+ "asc": true,
2940
+ "nulls": "last"
2941
+ }
2942
+ ],
2943
+ "isUnique": false,
2944
+ "concurrently": false,
2945
+ "method": "btree",
2946
+ "with": {}
2947
+ }
2948
+ },
2949
+ "foreignKeys": {
2950
+ "project_members_project_id_projects_id_fk": {
2951
+ "name": "project_members_project_id_projects_id_fk",
2952
+ "tableFrom": "project_members",
2953
+ "tableTo": "projects",
2954
+ "columnsFrom": [
2955
+ "project_id"
2956
+ ],
2957
+ "columnsTo": [
2958
+ "id"
2959
+ ],
2960
+ "onDelete": "cascade",
2961
+ "onUpdate": "no action"
2962
+ },
2963
+ "project_members_user_id_user_id_fk": {
2964
+ "name": "project_members_user_id_user_id_fk",
2965
+ "tableFrom": "project_members",
2966
+ "tableTo": "user",
2967
+ "columnsFrom": [
2968
+ "user_id"
2969
+ ],
2970
+ "columnsTo": [
2971
+ "id"
2972
+ ],
2973
+ "onDelete": "cascade",
2974
+ "onUpdate": "no action"
2975
+ }
2976
+ },
2977
+ "compositePrimaryKeys": {
2978
+ "project_members_project_id_user_id_pk": {
2979
+ "name": "project_members_project_id_user_id_pk",
2980
+ "columns": [
2981
+ "project_id",
2982
+ "user_id"
2983
+ ]
2984
+ }
2985
+ },
2986
+ "uniqueConstraints": {},
2987
+ "policies": {},
2988
+ "checkConstraints": {},
2989
+ "isRLSEnabled": false
2990
+ },
2991
+ "public.notification_channels": {
2992
+ "name": "notification_channels",
2993
+ "schema": "",
2994
+ "columns": {
2995
+ "id": {
2996
+ "name": "id",
2997
+ "type": "uuid",
2998
+ "primaryKey": true,
2999
+ "notNull": true,
3000
+ "default": "gen_random_uuid()"
3001
+ },
3002
+ "user_id": {
3003
+ "name": "user_id",
3004
+ "type": "text",
3005
+ "primaryKey": false,
3006
+ "notNull": true
3007
+ },
3008
+ "kind": {
3009
+ "name": "kind",
3010
+ "type": "text",
3011
+ "primaryKey": false,
3012
+ "notNull": true
3013
+ },
3014
+ "name": {
3015
+ "name": "name",
3016
+ "type": "text",
3017
+ "primaryKey": false,
3018
+ "notNull": true
3019
+ },
3020
+ "settings": {
3021
+ "name": "settings",
3022
+ "type": "text",
3023
+ "primaryKey": false,
3024
+ "notNull": true
3025
+ },
3026
+ "paused": {
3027
+ "name": "paused",
3028
+ "type": "boolean",
3029
+ "primaryKey": false,
3030
+ "notNull": true,
3031
+ "default": false
3032
+ },
3033
+ "routes": {
3034
+ "name": "routes",
3035
+ "type": "jsonb",
3036
+ "primaryKey": false,
3037
+ "notNull": true,
3038
+ "default": "'[]'::jsonb"
3039
+ },
3040
+ "version": {
3041
+ "name": "version",
3042
+ "type": "integer",
3043
+ "primaryKey": false,
3044
+ "notNull": true,
3045
+ "default": 1
3046
+ },
3047
+ "created_at": {
3048
+ "name": "created_at",
3049
+ "type": "timestamp with time zone",
3050
+ "primaryKey": false,
3051
+ "notNull": true,
3052
+ "default": "now()"
3053
+ },
3054
+ "updated_at": {
3055
+ "name": "updated_at",
3056
+ "type": "timestamp with time zone",
3057
+ "primaryKey": false,
3058
+ "notNull": true,
3059
+ "default": "now()"
3060
+ },
3061
+ "last_attempt_at": {
3062
+ "name": "last_attempt_at",
3063
+ "type": "timestamp with time zone",
3064
+ "primaryKey": false,
3065
+ "notNull": false
3066
+ },
3067
+ "last_success_at": {
3068
+ "name": "last_success_at",
3069
+ "type": "timestamp with time zone",
3070
+ "primaryKey": false,
3071
+ "notNull": false
3072
+ },
3073
+ "last_error": {
3074
+ "name": "last_error",
3075
+ "type": "text",
3076
+ "primaryKey": false,
3077
+ "notNull": false
3078
+ }
3079
+ },
3080
+ "indexes": {
3081
+ "notification_channel_user": {
3082
+ "name": "notification_channel_user",
3083
+ "columns": [
3084
+ {
3085
+ "expression": "user_id",
3086
+ "isExpression": false,
3087
+ "asc": true,
3088
+ "nulls": "last"
3089
+ }
3090
+ ],
3091
+ "isUnique": false,
3092
+ "concurrently": false,
3093
+ "method": "btree",
3094
+ "with": {}
3095
+ }
3096
+ },
3097
+ "foreignKeys": {
3098
+ "notification_channels_user_id_user_id_fk": {
3099
+ "name": "notification_channels_user_id_user_id_fk",
3100
+ "tableFrom": "notification_channels",
3101
+ "tableTo": "user",
3102
+ "columnsFrom": [
3103
+ "user_id"
3104
+ ],
3105
+ "columnsTo": [
3106
+ "id"
3107
+ ],
3108
+ "onDelete": "cascade",
3109
+ "onUpdate": "no action"
3110
+ }
3111
+ },
3112
+ "compositePrimaryKeys": {},
3113
+ "uniqueConstraints": {},
3114
+ "policies": {},
3115
+ "checkConstraints": {},
3116
+ "isRLSEnabled": false
3117
+ },
3118
+ "public.notification_preferences": {
3119
+ "name": "notification_preferences",
3120
+ "schema": "",
3121
+ "columns": {
3122
+ "user_id": {
3123
+ "name": "user_id",
3124
+ "type": "text",
3125
+ "primaryKey": true,
3126
+ "notNull": true
3127
+ },
3128
+ "in_app": {
3129
+ "name": "in_app",
3130
+ "type": "boolean",
3131
+ "primaryKey": false,
3132
+ "notNull": true,
3133
+ "default": true
3134
+ },
3135
+ "push": {
3136
+ "name": "push",
3137
+ "type": "boolean",
3138
+ "primaryKey": false,
3139
+ "notNull": true,
3140
+ "default": false
3141
+ },
3142
+ "categories": {
3143
+ "name": "categories",
3144
+ "type": "jsonb",
3145
+ "primaryKey": false,
3146
+ "notNull": true,
3147
+ "default": "'{}'::jsonb"
3148
+ },
3149
+ "reminder_amount": {
3150
+ "name": "reminder_amount",
3151
+ "type": "integer",
3152
+ "primaryKey": false,
3153
+ "notNull": true,
3154
+ "default": 1
3155
+ },
3156
+ "reminder_unit": {
3157
+ "name": "reminder_unit",
3158
+ "type": "text",
3159
+ "primaryKey": false,
3160
+ "notNull": true,
3161
+ "default": "'days'"
3162
+ }
3163
+ },
3164
+ "indexes": {},
3165
+ "foreignKeys": {
3166
+ "notification_preferences_user_id_user_id_fk": {
3167
+ "name": "notification_preferences_user_id_user_id_fk",
3168
+ "tableFrom": "notification_preferences",
3169
+ "tableTo": "user",
3170
+ "columnsFrom": [
3171
+ "user_id"
3172
+ ],
3173
+ "columnsTo": [
3174
+ "id"
3175
+ ],
3176
+ "onDelete": "cascade",
3177
+ "onUpdate": "no action"
3178
+ }
3179
+ },
3180
+ "compositePrimaryKeys": {},
3181
+ "uniqueConstraints": {},
3182
+ "policies": {},
3183
+ "checkConstraints": {},
3184
+ "isRLSEnabled": false
3185
+ },
3186
+ "public.notifications": {
3187
+ "name": "notifications",
3188
+ "schema": "",
3189
+ "columns": {
3190
+ "id": {
3191
+ "name": "id",
3192
+ "type": "uuid",
3193
+ "primaryKey": true,
3194
+ "notNull": true,
3195
+ "default": "gen_random_uuid()"
3196
+ },
3197
+ "user_id": {
3198
+ "name": "user_id",
3199
+ "type": "text",
3200
+ "primaryKey": false,
3201
+ "notNull": true
3202
+ },
3203
+ "project_id": {
3204
+ "name": "project_id",
3205
+ "type": "uuid",
3206
+ "primaryKey": false,
3207
+ "notNull": true
3208
+ },
3209
+ "event_id": {
3210
+ "name": "event_id",
3211
+ "type": "bigint",
3212
+ "primaryKey": false,
3213
+ "notNull": true
3214
+ },
3215
+ "category": {
3216
+ "name": "category",
3217
+ "type": "text",
3218
+ "primaryKey": false,
3219
+ "notNull": true,
3220
+ "default": "'update'"
3221
+ },
3222
+ "reminder_key": {
3223
+ "name": "reminder_key",
3224
+ "type": "text",
3225
+ "primaryKey": false,
3226
+ "notNull": false
3227
+ },
3228
+ "read_at": {
3229
+ "name": "read_at",
3230
+ "type": "timestamp with time zone",
3231
+ "primaryKey": false,
3232
+ "notNull": false
3233
+ },
3234
+ "dismissed_at": {
3235
+ "name": "dismissed_at",
3236
+ "type": "timestamp with time zone",
3237
+ "primaryKey": false,
3238
+ "notNull": false
3239
+ },
3240
+ "inbox": {
3241
+ "name": "inbox",
3242
+ "type": "boolean",
3243
+ "primaryKey": false,
3244
+ "notNull": true,
3245
+ "default": true
3246
+ },
3247
+ "created_at": {
3248
+ "name": "created_at",
3249
+ "type": "timestamp with time zone",
3250
+ "primaryKey": false,
3251
+ "notNull": true,
3252
+ "default": "now()"
3253
+ }
3254
+ },
3255
+ "indexes": {},
3256
+ "foreignKeys": {
3257
+ "notifications_user_id_user_id_fk": {
3258
+ "name": "notifications_user_id_user_id_fk",
3259
+ "tableFrom": "notifications",
3260
+ "tableTo": "user",
3261
+ "columnsFrom": [
3262
+ "user_id"
3263
+ ],
3264
+ "columnsTo": [
3265
+ "id"
3266
+ ],
3267
+ "onDelete": "cascade",
3268
+ "onUpdate": "no action"
3269
+ },
3270
+ "notifications_project_id_projects_id_fk": {
3271
+ "name": "notifications_project_id_projects_id_fk",
3272
+ "tableFrom": "notifications",
3273
+ "tableTo": "projects",
3274
+ "columnsFrom": [
3275
+ "project_id"
3276
+ ],
3277
+ "columnsTo": [
3278
+ "id"
3279
+ ],
3280
+ "onDelete": "cascade",
3281
+ "onUpdate": "no action"
3282
+ }
3283
+ },
3284
+ "compositePrimaryKeys": {},
3285
+ "uniqueConstraints": {
3286
+ "notification_event_user": {
3287
+ "name": "notification_event_user",
3288
+ "nullsNotDistinct": false,
3289
+ "columns": [
3290
+ "event_id",
3291
+ "user_id"
3292
+ ]
3293
+ },
3294
+ "notification_reminder": {
3295
+ "name": "notification_reminder",
3296
+ "nullsNotDistinct": false,
3297
+ "columns": [
3298
+ "user_id",
3299
+ "reminder_key"
3300
+ ]
3301
+ }
3302
+ },
3303
+ "policies": {},
3304
+ "checkConstraints": {},
3305
+ "isRLSEnabled": false
3306
+ },
3307
+ "public.profile_photos": {
3308
+ "name": "profile_photos",
3309
+ "schema": "",
3310
+ "columns": {
3311
+ "user_id": {
3312
+ "name": "user_id",
3313
+ "type": "text",
3314
+ "primaryKey": true,
3315
+ "notNull": true
3316
+ },
3317
+ "object_id": {
3318
+ "name": "object_id",
3319
+ "type": "uuid",
3320
+ "primaryKey": false,
3321
+ "notNull": true
3322
+ }
3323
+ },
3324
+ "indexes": {},
3325
+ "foreignKeys": {
3326
+ "profile_photos_user_id_user_id_fk": {
3327
+ "name": "profile_photos_user_id_user_id_fk",
3328
+ "tableFrom": "profile_photos",
3329
+ "tableTo": "user",
3330
+ "columnsFrom": [
3331
+ "user_id"
3332
+ ],
3333
+ "columnsTo": [
3334
+ "id"
3335
+ ],
3336
+ "onDelete": "cascade",
3337
+ "onUpdate": "no action"
3338
+ },
3339
+ "profile_photos_object_id_blob_objects_id_fk": {
3340
+ "name": "profile_photos_object_id_blob_objects_id_fk",
3341
+ "tableFrom": "profile_photos",
3342
+ "tableTo": "blob_objects",
3343
+ "columnsFrom": [
3344
+ "object_id"
3345
+ ],
3346
+ "columnsTo": [
3347
+ "id"
3348
+ ],
3349
+ "onDelete": "no action",
3350
+ "onUpdate": "no action"
3351
+ }
3352
+ },
3353
+ "compositePrimaryKeys": {},
3354
+ "uniqueConstraints": {},
3355
+ "policies": {},
3356
+ "checkConstraints": {},
3357
+ "isRLSEnabled": false
3358
+ },
3359
+ "public.project_destinations": {
3360
+ "name": "project_destinations",
3361
+ "schema": "",
3362
+ "columns": {
3363
+ "id": {
3364
+ "name": "id",
3365
+ "type": "uuid",
3366
+ "primaryKey": true,
3367
+ "notNull": true,
3368
+ "default": "gen_random_uuid()"
3369
+ },
3370
+ "project_id": {
3371
+ "name": "project_id",
3372
+ "type": "uuid",
3373
+ "primaryKey": false,
3374
+ "notNull": true
3375
+ },
3376
+ "kind": {
3377
+ "name": "kind",
3378
+ "type": "text",
3379
+ "primaryKey": false,
3380
+ "notNull": true
3381
+ },
3382
+ "name": {
3383
+ "name": "name",
3384
+ "type": "text",
3385
+ "primaryKey": false,
3386
+ "notNull": true
3387
+ },
3388
+ "settings": {
3389
+ "name": "settings",
3390
+ "type": "text",
3391
+ "primaryKey": false,
3392
+ "notNull": true
3393
+ },
3394
+ "paused": {
3395
+ "name": "paused",
3396
+ "type": "boolean",
3397
+ "primaryKey": false,
3398
+ "notNull": true,
3399
+ "default": false
3400
+ },
3401
+ "events": {
3402
+ "name": "events",
3403
+ "type": "text[]",
3404
+ "primaryKey": false,
3405
+ "notNull": true,
3406
+ "default": "'{}'"
3407
+ },
3408
+ "created_by": {
3409
+ "name": "created_by",
3410
+ "type": "text",
3411
+ "primaryKey": false,
3412
+ "notNull": false
3413
+ },
3414
+ "version": {
3415
+ "name": "version",
3416
+ "type": "integer",
3417
+ "primaryKey": false,
3418
+ "notNull": true,
3419
+ "default": 1
3420
+ },
3421
+ "created_at": {
3422
+ "name": "created_at",
3423
+ "type": "timestamp with time zone",
3424
+ "primaryKey": false,
3425
+ "notNull": true,
3426
+ "default": "now()"
3427
+ },
3428
+ "updated_at": {
3429
+ "name": "updated_at",
3430
+ "type": "timestamp with time zone",
3431
+ "primaryKey": false,
3432
+ "notNull": true,
3433
+ "default": "now()"
3434
+ },
3435
+ "last_attempt_at": {
3436
+ "name": "last_attempt_at",
3437
+ "type": "timestamp with time zone",
3438
+ "primaryKey": false,
3439
+ "notNull": false
3440
+ },
3441
+ "last_success_at": {
3442
+ "name": "last_success_at",
3443
+ "type": "timestamp with time zone",
3444
+ "primaryKey": false,
3445
+ "notNull": false
3446
+ },
3447
+ "last_error": {
3448
+ "name": "last_error",
3449
+ "type": "text",
3450
+ "primaryKey": false,
3451
+ "notNull": false
3452
+ }
3453
+ },
3454
+ "indexes": {
3455
+ "project_destination_project": {
3456
+ "name": "project_destination_project",
3457
+ "columns": [
3458
+ {
3459
+ "expression": "project_id",
3460
+ "isExpression": false,
3461
+ "asc": true,
3462
+ "nulls": "last"
3463
+ }
3464
+ ],
3465
+ "isUnique": false,
3466
+ "concurrently": false,
3467
+ "method": "btree",
3468
+ "with": {}
3469
+ }
3470
+ },
3471
+ "foreignKeys": {
3472
+ "project_destinations_project_id_projects_id_fk": {
3473
+ "name": "project_destinations_project_id_projects_id_fk",
3474
+ "tableFrom": "project_destinations",
3475
+ "tableTo": "projects",
3476
+ "columnsFrom": [
3477
+ "project_id"
3478
+ ],
3479
+ "columnsTo": [
3480
+ "id"
3481
+ ],
3482
+ "onDelete": "cascade",
3483
+ "onUpdate": "no action"
3484
+ },
3485
+ "project_destinations_created_by_user_id_fk": {
3486
+ "name": "project_destinations_created_by_user_id_fk",
3487
+ "tableFrom": "project_destinations",
3488
+ "tableTo": "user",
3489
+ "columnsFrom": [
3490
+ "created_by"
3491
+ ],
3492
+ "columnsTo": [
3493
+ "id"
3494
+ ],
3495
+ "onDelete": "set null",
3496
+ "onUpdate": "no action"
3497
+ }
3498
+ },
3499
+ "compositePrimaryKeys": {},
3500
+ "uniqueConstraints": {},
3501
+ "policies": {},
3502
+ "checkConstraints": {},
3503
+ "isRLSEnabled": false
3504
+ },
3505
+ "public.project_labels": {
3506
+ "name": "project_labels",
3507
+ "schema": "",
3508
+ "columns": {
3509
+ "id": {
3510
+ "name": "id",
3511
+ "type": "uuid",
3512
+ "primaryKey": true,
3513
+ "notNull": true,
3514
+ "default": "gen_random_uuid()"
3515
+ },
3516
+ "project_id": {
3517
+ "name": "project_id",
3518
+ "type": "uuid",
3519
+ "primaryKey": false,
3520
+ "notNull": true
3521
+ },
3522
+ "name": {
3523
+ "name": "name",
3524
+ "type": "text",
3525
+ "primaryKey": false,
3526
+ "notNull": true
3527
+ },
3528
+ "color": {
3529
+ "name": "color",
3530
+ "type": "text",
3531
+ "primaryKey": false,
3532
+ "notNull": true,
3533
+ "default": "'gray'"
3534
+ },
3535
+ "version": {
3536
+ "name": "version",
3537
+ "type": "integer",
3538
+ "primaryKey": false,
3539
+ "notNull": true,
3540
+ "default": 1
3541
+ }
3542
+ },
3543
+ "indexes": {},
3544
+ "foreignKeys": {
3545
+ "project_labels_project_id_projects_id_fk": {
3546
+ "name": "project_labels_project_id_projects_id_fk",
3547
+ "tableFrom": "project_labels",
3548
+ "tableTo": "projects",
3549
+ "columnsFrom": [
3550
+ "project_id"
3551
+ ],
3552
+ "columnsTo": [
3553
+ "id"
3554
+ ],
3555
+ "onDelete": "cascade",
3556
+ "onUpdate": "no action"
3557
+ }
3558
+ },
3559
+ "compositePrimaryKeys": {},
3560
+ "uniqueConstraints": {
3561
+ "project_label_name": {
3562
+ "name": "project_label_name",
3563
+ "nullsNotDistinct": false,
3564
+ "columns": [
3565
+ "project_id",
3566
+ "name"
3567
+ ]
3568
+ }
3569
+ },
3570
+ "policies": {},
3571
+ "checkConstraints": {},
3572
+ "isRLSEnabled": false
3573
+ },
3574
+ "public.projects": {
3575
+ "name": "projects",
3576
+ "schema": "",
3577
+ "columns": {
3578
+ "icon_name": {
3579
+ "name": "icon_name",
3580
+ "type": "text",
3581
+ "primaryKey": false,
3582
+ "notNull": false
3583
+ },
3584
+ "icon_color": {
3585
+ "name": "icon_color",
3586
+ "type": "text",
3587
+ "primaryKey": false,
3588
+ "notNull": true,
3589
+ "default": "'default'"
3590
+ },
3591
+ "image": {
3592
+ "name": "image",
3593
+ "type": "text",
3594
+ "primaryKey": false,
3595
+ "notNull": false
3596
+ },
3597
+ "icon_object_id": {
3598
+ "name": "icon_object_id",
3599
+ "type": "uuid",
3600
+ "primaryKey": false,
3601
+ "notNull": false
3602
+ },
3603
+ "background": {
3604
+ "name": "background",
3605
+ "type": "text",
3606
+ "primaryKey": false,
3607
+ "notNull": false
3608
+ },
3609
+ "background_object_id": {
3610
+ "name": "background_object_id",
3611
+ "type": "uuid",
3612
+ "primaryKey": false,
3613
+ "notNull": false
3614
+ },
3615
+ "workspace_id": {
3616
+ "name": "workspace_id",
3617
+ "type": "uuid",
3618
+ "primaryKey": false,
3619
+ "notNull": true
3620
+ },
3621
+ "visibility": {
3622
+ "name": "visibility",
3623
+ "type": "text",
3624
+ "primaryKey": false,
3625
+ "notNull": true,
3626
+ "default": "'private'"
3627
+ },
3628
+ "id": {
3629
+ "name": "id",
3630
+ "type": "uuid",
3631
+ "primaryKey": true,
3632
+ "notNull": true,
3633
+ "default": "gen_random_uuid()"
3634
+ },
3635
+ "key": {
3636
+ "name": "key",
3637
+ "type": "text",
3638
+ "primaryKey": false,
3639
+ "notNull": true
3640
+ },
3641
+ "name": {
3642
+ "name": "name",
3643
+ "type": "text",
3644
+ "primaryKey": false,
3645
+ "notNull": true
3646
+ },
3647
+ "description": {
3648
+ "name": "description",
3649
+ "type": "text",
3650
+ "primaryKey": false,
3651
+ "notNull": true,
3652
+ "default": "''"
3653
+ },
3654
+ "next_number": {
3655
+ "name": "next_number",
3656
+ "type": "integer",
3657
+ "primaryKey": false,
3658
+ "notNull": true,
3659
+ "default": 1
3660
+ },
3661
+ "version": {
3662
+ "name": "version",
3663
+ "type": "integer",
3664
+ "primaryKey": false,
3665
+ "notNull": true,
3666
+ "default": 1
3667
+ },
3668
+ "created_at": {
3669
+ "name": "created_at",
3670
+ "type": "timestamp with time zone",
3671
+ "primaryKey": false,
3672
+ "notNull": true,
3673
+ "default": "now()"
3674
+ },
3675
+ "updated_at": {
3676
+ "name": "updated_at",
3677
+ "type": "timestamp with time zone",
3678
+ "primaryKey": false,
3679
+ "notNull": true,
3680
+ "default": "now()"
3681
+ }
3682
+ },
3683
+ "indexes": {
3684
+ "project_workspace": {
3685
+ "name": "project_workspace",
3686
+ "columns": [
3687
+ {
3688
+ "expression": "workspace_id",
3689
+ "isExpression": false,
3690
+ "asc": true,
3691
+ "nulls": "last"
3692
+ }
3693
+ ],
3694
+ "isUnique": false,
3695
+ "concurrently": false,
3696
+ "method": "btree",
3697
+ "with": {}
3698
+ }
3699
+ },
3700
+ "foreignKeys": {
3701
+ "projects_icon_object_id_blob_objects_id_fk": {
3702
+ "name": "projects_icon_object_id_blob_objects_id_fk",
3703
+ "tableFrom": "projects",
3704
+ "tableTo": "blob_objects",
3705
+ "columnsFrom": [
3706
+ "icon_object_id"
3707
+ ],
3708
+ "columnsTo": [
3709
+ "id"
3710
+ ],
3711
+ "onDelete": "no action",
3712
+ "onUpdate": "no action"
3713
+ },
3714
+ "projects_background_object_id_blob_objects_id_fk": {
3715
+ "name": "projects_background_object_id_blob_objects_id_fk",
3716
+ "tableFrom": "projects",
3717
+ "tableTo": "blob_objects",
3718
+ "columnsFrom": [
3719
+ "background_object_id"
3720
+ ],
3721
+ "columnsTo": [
3722
+ "id"
3723
+ ],
3724
+ "onDelete": "no action",
3725
+ "onUpdate": "no action"
3726
+ },
3727
+ "projects_workspace_id_workspaces_id_fk": {
3728
+ "name": "projects_workspace_id_workspaces_id_fk",
3729
+ "tableFrom": "projects",
3730
+ "tableTo": "workspaces",
3731
+ "columnsFrom": [
3732
+ "workspace_id"
3733
+ ],
3734
+ "columnsTo": [
3735
+ "id"
3736
+ ],
3737
+ "onDelete": "no action",
3738
+ "onUpdate": "no action"
3739
+ }
3740
+ },
3741
+ "compositePrimaryKeys": {},
3742
+ "uniqueConstraints": {
3743
+ "projects_key_unique": {
3744
+ "name": "projects_key_unique",
3745
+ "nullsNotDistinct": false,
3746
+ "columns": [
3747
+ "key"
3748
+ ]
3749
+ }
3750
+ },
3751
+ "policies": {},
3752
+ "checkConstraints": {},
3753
+ "isRLSEnabled": false
3754
+ },
3755
+ "public.push_devices": {
3756
+ "name": "push_devices",
3757
+ "schema": "",
3758
+ "columns": {
3759
+ "id": {
3760
+ "name": "id",
3761
+ "type": "uuid",
3762
+ "primaryKey": true,
3763
+ "notNull": true,
3764
+ "default": "gen_random_uuid()"
3765
+ },
3766
+ "user_id": {
3767
+ "name": "user_id",
3768
+ "type": "text",
3769
+ "primaryKey": false,
3770
+ "notNull": true
3771
+ },
3772
+ "session_id": {
3773
+ "name": "session_id",
3774
+ "type": "text",
3775
+ "primaryKey": false,
3776
+ "notNull": true
3777
+ },
3778
+ "token": {
3779
+ "name": "token",
3780
+ "type": "text",
3781
+ "primaryKey": false,
3782
+ "notNull": true
3783
+ },
3784
+ "created_at": {
3785
+ "name": "created_at",
3786
+ "type": "timestamp with time zone",
3787
+ "primaryKey": false,
3788
+ "notNull": true,
3789
+ "default": "now()"
3790
+ }
3791
+ },
3792
+ "indexes": {},
3793
+ "foreignKeys": {
3794
+ "push_devices_user_id_user_id_fk": {
3795
+ "name": "push_devices_user_id_user_id_fk",
3796
+ "tableFrom": "push_devices",
3797
+ "tableTo": "user",
3798
+ "columnsFrom": [
3799
+ "user_id"
3800
+ ],
3801
+ "columnsTo": [
3802
+ "id"
3803
+ ],
3804
+ "onDelete": "cascade",
3805
+ "onUpdate": "no action"
3806
+ },
3807
+ "push_devices_session_id_session_id_fk": {
3808
+ "name": "push_devices_session_id_session_id_fk",
3809
+ "tableFrom": "push_devices",
3810
+ "tableTo": "session",
3811
+ "columnsFrom": [
3812
+ "session_id"
3813
+ ],
3814
+ "columnsTo": [
3815
+ "id"
3816
+ ],
3817
+ "onDelete": "cascade",
3818
+ "onUpdate": "no action"
3819
+ }
3820
+ },
3821
+ "compositePrimaryKeys": {},
3822
+ "uniqueConstraints": {
3823
+ "push_devices_token_unique": {
3824
+ "name": "push_devices_token_unique",
3825
+ "nullsNotDistinct": false,
3826
+ "columns": [
3827
+ "token"
3828
+ ]
3829
+ }
3830
+ },
3831
+ "policies": {},
3832
+ "checkConstraints": {},
3833
+ "isRLSEnabled": false
3834
+ },
3835
+ "public.mutation_receipts": {
3836
+ "name": "mutation_receipts",
3837
+ "schema": "",
3838
+ "columns": {
3839
+ "actor_id": {
3840
+ "name": "actor_id",
3841
+ "type": "text",
3842
+ "primaryKey": false,
3843
+ "notNull": true
3844
+ },
3845
+ "request_id": {
3846
+ "name": "request_id",
3847
+ "type": "uuid",
3848
+ "primaryKey": false,
3849
+ "notNull": true
3850
+ },
3851
+ "operation": {
3852
+ "name": "operation",
3853
+ "type": "text",
3854
+ "primaryKey": false,
3855
+ "notNull": true
3856
+ },
3857
+ "hash": {
3858
+ "name": "hash",
3859
+ "type": "text",
3860
+ "primaryKey": false,
3861
+ "notNull": true
3862
+ },
3863
+ "result": {
3864
+ "name": "result",
3865
+ "type": "jsonb",
3866
+ "primaryKey": false,
3867
+ "notNull": true
3868
+ },
3869
+ "created_at": {
3870
+ "name": "created_at",
3871
+ "type": "timestamp with time zone",
3872
+ "primaryKey": false,
3873
+ "notNull": true,
3874
+ "default": "now()"
3875
+ }
3876
+ },
3877
+ "indexes": {},
3878
+ "foreignKeys": {
3879
+ "mutation_receipts_actor_id_user_id_fk": {
3880
+ "name": "mutation_receipts_actor_id_user_id_fk",
3881
+ "tableFrom": "mutation_receipts",
3882
+ "tableTo": "user",
3883
+ "columnsFrom": [
3884
+ "actor_id"
3885
+ ],
3886
+ "columnsTo": [
3887
+ "id"
3888
+ ],
3889
+ "onDelete": "no action",
3890
+ "onUpdate": "no action"
3891
+ }
3892
+ },
3893
+ "compositePrimaryKeys": {
3894
+ "mutation_receipts_actor_id_request_id_pk": {
3895
+ "name": "mutation_receipts_actor_id_request_id_pk",
3896
+ "columns": [
3897
+ "actor_id",
3898
+ "request_id"
3899
+ ]
3900
+ }
3901
+ },
3902
+ "uniqueConstraints": {},
3903
+ "policies": {},
3904
+ "checkConstraints": {},
3905
+ "isRLSEnabled": false
3906
+ },
3907
+ "public.ticket_relations": {
3908
+ "name": "ticket_relations",
3909
+ "schema": "",
3910
+ "columns": {
3911
+ "id": {
3912
+ "name": "id",
3913
+ "type": "uuid",
3914
+ "primaryKey": true,
3915
+ "notNull": true,
3916
+ "default": "gen_random_uuid()"
3917
+ },
3918
+ "project_id": {
3919
+ "name": "project_id",
3920
+ "type": "uuid",
3921
+ "primaryKey": false,
3922
+ "notNull": true
3923
+ },
3924
+ "source_id": {
3925
+ "name": "source_id",
3926
+ "type": "uuid",
3927
+ "primaryKey": false,
3928
+ "notNull": true
3929
+ },
3930
+ "target_id": {
3931
+ "name": "target_id",
3932
+ "type": "uuid",
3933
+ "primaryKey": false,
3934
+ "notNull": true
3935
+ },
3936
+ "type": {
3937
+ "name": "type",
3938
+ "type": "text",
3939
+ "primaryKey": false,
3940
+ "notNull": true
3941
+ }
3942
+ },
3943
+ "indexes": {
3944
+ "relation_target": {
3945
+ "name": "relation_target",
3946
+ "columns": [
3947
+ {
3948
+ "expression": "target_id",
3949
+ "isExpression": false,
3950
+ "asc": true,
3951
+ "nulls": "last"
3952
+ }
3953
+ ],
3954
+ "isUnique": false,
3955
+ "concurrently": false,
3956
+ "method": "btree",
3957
+ "with": {}
3958
+ }
3959
+ },
3960
+ "foreignKeys": {
3961
+ "ticket_relations_project_id_projects_id_fk": {
3962
+ "name": "ticket_relations_project_id_projects_id_fk",
3963
+ "tableFrom": "ticket_relations",
3964
+ "tableTo": "projects",
3965
+ "columnsFrom": [
3966
+ "project_id"
3967
+ ],
3968
+ "columnsTo": [
3969
+ "id"
3970
+ ],
3971
+ "onDelete": "cascade",
3972
+ "onUpdate": "no action"
3973
+ },
3974
+ "ticket_relations_source_id_tickets_id_fk": {
3975
+ "name": "ticket_relations_source_id_tickets_id_fk",
3976
+ "tableFrom": "ticket_relations",
3977
+ "tableTo": "tickets",
3978
+ "columnsFrom": [
3979
+ "source_id"
3980
+ ],
3981
+ "columnsTo": [
3982
+ "id"
3983
+ ],
3984
+ "onDelete": "cascade",
3985
+ "onUpdate": "no action"
3986
+ },
3987
+ "ticket_relations_target_id_tickets_id_fk": {
3988
+ "name": "ticket_relations_target_id_tickets_id_fk",
3989
+ "tableFrom": "ticket_relations",
3990
+ "tableTo": "tickets",
3991
+ "columnsFrom": [
3992
+ "target_id"
3993
+ ],
3994
+ "columnsTo": [
3995
+ "id"
3996
+ ],
3997
+ "onDelete": "cascade",
3998
+ "onUpdate": "no action"
3999
+ }
4000
+ },
4001
+ "compositePrimaryKeys": {},
4002
+ "uniqueConstraints": {
4003
+ "ticket_relation_edge": {
4004
+ "name": "ticket_relation_edge",
4005
+ "nullsNotDistinct": false,
4006
+ "columns": [
4007
+ "source_id",
4008
+ "target_id",
4009
+ "type"
4010
+ ]
4011
+ }
4012
+ },
4013
+ "policies": {},
4014
+ "checkConstraints": {},
4015
+ "isRLSEnabled": false
4016
+ },
4017
+ "public.resources": {
4018
+ "name": "resources",
4019
+ "schema": "",
4020
+ "columns": {
4021
+ "id": {
4022
+ "name": "id",
4023
+ "type": "uuid",
4024
+ "primaryKey": true,
4025
+ "notNull": true,
4026
+ "default": "gen_random_uuid()"
4027
+ },
4028
+ "project_id": {
4029
+ "name": "project_id",
4030
+ "type": "uuid",
4031
+ "primaryKey": false,
4032
+ "notNull": true
4033
+ },
4034
+ "ticket_id": {
4035
+ "name": "ticket_id",
4036
+ "type": "uuid",
4037
+ "primaryKey": false,
4038
+ "notNull": true
4039
+ },
4040
+ "actor_id": {
4041
+ "name": "actor_id",
4042
+ "type": "text",
4043
+ "primaryKey": false,
4044
+ "notNull": true
4045
+ },
4046
+ "url": {
4047
+ "name": "url",
4048
+ "type": "text",
4049
+ "primaryKey": false,
4050
+ "notNull": true
4051
+ },
4052
+ "title": {
4053
+ "name": "title",
4054
+ "type": "text",
4055
+ "primaryKey": false,
4056
+ "notNull": true,
4057
+ "default": "''"
4058
+ },
4059
+ "provider": {
4060
+ "name": "provider",
4061
+ "type": "text",
4062
+ "primaryKey": false,
4063
+ "notNull": false
4064
+ },
4065
+ "remote_state": {
4066
+ "name": "remote_state",
4067
+ "type": "text",
4068
+ "primaryKey": false,
4069
+ "notNull": false
4070
+ },
4071
+ "remote_checked_at": {
4072
+ "name": "remote_checked_at",
4073
+ "type": "timestamp with time zone",
4074
+ "primaryKey": false,
4075
+ "notNull": false
4076
+ },
4077
+ "version": {
4078
+ "name": "version",
4079
+ "type": "integer",
4080
+ "primaryKey": false,
4081
+ "notNull": true,
4082
+ "default": 1
4083
+ },
4084
+ "created_at": {
4085
+ "name": "created_at",
4086
+ "type": "timestamp with time zone",
4087
+ "primaryKey": false,
4088
+ "notNull": true,
4089
+ "default": "now()"
4090
+ },
4091
+ "updated_at": {
4092
+ "name": "updated_at",
4093
+ "type": "timestamp with time zone",
4094
+ "primaryKey": false,
4095
+ "notNull": true,
4096
+ "default": "now()"
4097
+ }
4098
+ },
4099
+ "indexes": {
4100
+ "resource_ticket": {
4101
+ "name": "resource_ticket",
4102
+ "columns": [
4103
+ {
4104
+ "expression": "ticket_id",
4105
+ "isExpression": false,
4106
+ "asc": true,
4107
+ "nulls": "last"
4108
+ }
4109
+ ],
4110
+ "isUnique": false,
4111
+ "concurrently": false,
4112
+ "method": "btree",
4113
+ "with": {}
4114
+ }
4115
+ },
4116
+ "foreignKeys": {
4117
+ "resources_project_id_projects_id_fk": {
4118
+ "name": "resources_project_id_projects_id_fk",
4119
+ "tableFrom": "resources",
4120
+ "tableTo": "projects",
4121
+ "columnsFrom": [
4122
+ "project_id"
4123
+ ],
4124
+ "columnsTo": [
4125
+ "id"
4126
+ ],
4127
+ "onDelete": "cascade",
4128
+ "onUpdate": "no action"
4129
+ },
4130
+ "resources_ticket_id_tickets_id_fk": {
4131
+ "name": "resources_ticket_id_tickets_id_fk",
4132
+ "tableFrom": "resources",
4133
+ "tableTo": "tickets",
4134
+ "columnsFrom": [
4135
+ "ticket_id"
4136
+ ],
4137
+ "columnsTo": [
4138
+ "id"
4139
+ ],
4140
+ "onDelete": "cascade",
4141
+ "onUpdate": "no action"
4142
+ },
4143
+ "resources_actor_id_user_id_fk": {
4144
+ "name": "resources_actor_id_user_id_fk",
4145
+ "tableFrom": "resources",
4146
+ "tableTo": "user",
4147
+ "columnsFrom": [
4148
+ "actor_id"
4149
+ ],
4150
+ "columnsTo": [
4151
+ "id"
4152
+ ],
4153
+ "onDelete": "no action",
4154
+ "onUpdate": "no action"
4155
+ }
4156
+ },
4157
+ "compositePrimaryKeys": {},
4158
+ "uniqueConstraints": {},
4159
+ "policies": {},
4160
+ "checkConstraints": {},
4161
+ "isRLSEnabled": false
4162
+ },
4163
+ "public.search_state": {
4164
+ "name": "search_state",
4165
+ "schema": "",
4166
+ "columns": {
4167
+ "id": {
4168
+ "name": "id",
4169
+ "type": "integer",
4170
+ "primaryKey": true,
4171
+ "notNull": true,
4172
+ "default": 1
4173
+ },
4174
+ "config_hash": {
4175
+ "name": "config_hash",
4176
+ "type": "text",
4177
+ "primaryKey": false,
4178
+ "notNull": true,
4179
+ "default": "''"
4180
+ },
4181
+ "cursor": {
4182
+ "name": "cursor",
4183
+ "type": "bigint",
4184
+ "primaryKey": false,
4185
+ "notNull": true,
4186
+ "default": "0"
4187
+ },
4188
+ "error": {
4189
+ "name": "error",
4190
+ "type": "text",
4191
+ "primaryKey": false,
4192
+ "notNull": false
4193
+ }
4194
+ },
4195
+ "indexes": {},
4196
+ "foreignKeys": {},
4197
+ "compositePrimaryKeys": {},
4198
+ "uniqueConstraints": {},
4199
+ "policies": {},
4200
+ "checkConstraints": {},
4201
+ "isRLSEnabled": false
4202
+ },
4203
+ "public.storage_backends": {
4204
+ "name": "storage_backends",
4205
+ "schema": "",
4206
+ "columns": {
4207
+ "id": {
4208
+ "name": "id",
4209
+ "type": "uuid",
4210
+ "primaryKey": true,
4211
+ "notNull": true,
4212
+ "default": "gen_random_uuid()"
4213
+ },
4214
+ "identity": {
4215
+ "name": "identity",
4216
+ "type": "text",
4217
+ "primaryKey": false,
4218
+ "notNull": true
4219
+ },
4220
+ "config": {
4221
+ "name": "config",
4222
+ "type": "text",
4223
+ "primaryKey": false,
4224
+ "notNull": true
4225
+ },
4226
+ "created_at": {
4227
+ "name": "created_at",
4228
+ "type": "timestamp with time zone",
4229
+ "primaryKey": false,
4230
+ "notNull": true,
4231
+ "default": "now()"
4232
+ }
4233
+ },
4234
+ "indexes": {},
4235
+ "foreignKeys": {},
4236
+ "compositePrimaryKeys": {},
4237
+ "uniqueConstraints": {
4238
+ "storage_backends_identity_unique": {
4239
+ "name": "storage_backends_identity_unique",
4240
+ "nullsNotDistinct": false,
4241
+ "columns": [
4242
+ "identity"
4243
+ ]
4244
+ }
4245
+ },
4246
+ "policies": {},
4247
+ "checkConstraints": {},
4248
+ "isRLSEnabled": false
4249
+ },
4250
+ "public.subscriptions": {
4251
+ "name": "subscriptions",
4252
+ "schema": "",
4253
+ "columns": {
4254
+ "project_id": {
4255
+ "name": "project_id",
4256
+ "type": "uuid",
4257
+ "primaryKey": false,
4258
+ "notNull": true
4259
+ },
4260
+ "ticket_id": {
4261
+ "name": "ticket_id",
4262
+ "type": "uuid",
4263
+ "primaryKey": false,
4264
+ "notNull": true
4265
+ },
4266
+ "user_id": {
4267
+ "name": "user_id",
4268
+ "type": "text",
4269
+ "primaryKey": false,
4270
+ "notNull": true
4271
+ }
4272
+ },
4273
+ "indexes": {},
4274
+ "foreignKeys": {
4275
+ "subscriptions_project_id_projects_id_fk": {
4276
+ "name": "subscriptions_project_id_projects_id_fk",
4277
+ "tableFrom": "subscriptions",
4278
+ "tableTo": "projects",
4279
+ "columnsFrom": [
4280
+ "project_id"
4281
+ ],
4282
+ "columnsTo": [
4283
+ "id"
4284
+ ],
4285
+ "onDelete": "cascade",
4286
+ "onUpdate": "no action"
4287
+ },
4288
+ "subscriptions_ticket_id_tickets_id_fk": {
4289
+ "name": "subscriptions_ticket_id_tickets_id_fk",
4290
+ "tableFrom": "subscriptions",
4291
+ "tableTo": "tickets",
4292
+ "columnsFrom": [
4293
+ "ticket_id"
4294
+ ],
4295
+ "columnsTo": [
4296
+ "id"
4297
+ ],
4298
+ "onDelete": "cascade",
4299
+ "onUpdate": "no action"
4300
+ },
4301
+ "subscriptions_user_id_user_id_fk": {
4302
+ "name": "subscriptions_user_id_user_id_fk",
4303
+ "tableFrom": "subscriptions",
4304
+ "tableTo": "user",
4305
+ "columnsFrom": [
4306
+ "user_id"
4307
+ ],
4308
+ "columnsTo": [
4309
+ "id"
4310
+ ],
4311
+ "onDelete": "cascade",
4312
+ "onUpdate": "no action"
4313
+ }
4314
+ },
4315
+ "compositePrimaryKeys": {
4316
+ "subscriptions_ticket_id_user_id_pk": {
4317
+ "name": "subscriptions_ticket_id_user_id_pk",
4318
+ "columns": [
4319
+ "ticket_id",
4320
+ "user_id"
4321
+ ]
4322
+ }
4323
+ },
4324
+ "uniqueConstraints": {},
4325
+ "policies": {},
4326
+ "checkConstraints": {},
4327
+ "isRLSEnabled": false
4328
+ },
4329
+ "public.tickets": {
4330
+ "name": "tickets",
4331
+ "schema": "",
4332
+ "columns": {
4333
+ "id": {
4334
+ "name": "id",
4335
+ "type": "uuid",
4336
+ "primaryKey": true,
4337
+ "notNull": true,
4338
+ "default": "gen_random_uuid()"
4339
+ },
4340
+ "project_id": {
4341
+ "name": "project_id",
4342
+ "type": "uuid",
4343
+ "primaryKey": false,
4344
+ "notNull": true
4345
+ },
4346
+ "key": {
4347
+ "name": "key",
4348
+ "type": "text",
4349
+ "primaryKey": false,
4350
+ "notNull": true
4351
+ },
4352
+ "number": {
4353
+ "name": "number",
4354
+ "type": "integer",
4355
+ "primaryKey": false,
4356
+ "notNull": true
4357
+ },
4358
+ "title": {
4359
+ "name": "title",
4360
+ "type": "text",
4361
+ "primaryKey": false,
4362
+ "notNull": true
4363
+ },
4364
+ "description": {
4365
+ "name": "description",
4366
+ "type": "text",
4367
+ "primaryKey": false,
4368
+ "notNull": true,
4369
+ "default": "''"
4370
+ },
4371
+ "acceptance_criteria": {
4372
+ "name": "acceptance_criteria",
4373
+ "type": "text",
4374
+ "primaryKey": false,
4375
+ "notNull": true,
4376
+ "default": "''"
4377
+ },
4378
+ "status": {
4379
+ "name": "status",
4380
+ "type": "text",
4381
+ "primaryKey": false,
4382
+ "notNull": true,
4383
+ "default": "'todo'"
4384
+ },
4385
+ "priority": {
4386
+ "name": "priority",
4387
+ "type": "text",
4388
+ "primaryKey": false,
4389
+ "notNull": true,
4390
+ "default": "'medium'"
4391
+ },
4392
+ "kind": {
4393
+ "name": "kind",
4394
+ "type": "text",
4395
+ "primaryKey": false,
4396
+ "notNull": true,
4397
+ "default": "'feature'"
4398
+ },
4399
+ "difficulty": {
4400
+ "name": "difficulty",
4401
+ "type": "text",
4402
+ "primaryKey": false,
4403
+ "notNull": false
4404
+ },
4405
+ "labels": {
4406
+ "name": "labels",
4407
+ "type": "text[]",
4408
+ "primaryKey": false,
4409
+ "notNull": true,
4410
+ "default": "'{}'"
4411
+ },
4412
+ "scopes": {
4413
+ "name": "scopes",
4414
+ "type": "text[]",
4415
+ "primaryKey": false,
4416
+ "notNull": true,
4417
+ "default": "'{}'"
4418
+ },
4419
+ "assignee_id": {
4420
+ "name": "assignee_id",
4421
+ "type": "text",
4422
+ "primaryKey": false,
4423
+ "notNull": false
4424
+ },
4425
+ "parent_id": {
4426
+ "name": "parent_id",
4427
+ "type": "uuid",
4428
+ "primaryKey": false,
4429
+ "notNull": false
4430
+ },
4431
+ "automation_ready": {
4432
+ "name": "automation_ready",
4433
+ "type": "boolean",
4434
+ "primaryKey": false,
4435
+ "notNull": true,
4436
+ "default": false
4437
+ },
4438
+ "claim_required": {
4439
+ "name": "claim_required",
4440
+ "type": "boolean",
4441
+ "primaryKey": false,
4442
+ "notNull": true,
4443
+ "default": false
4444
+ },
4445
+ "hold_reason": {
4446
+ "name": "hold_reason",
4447
+ "type": "text",
4448
+ "primaryKey": false,
4449
+ "notNull": false
4450
+ },
4451
+ "due_at": {
4452
+ "name": "due_at",
4453
+ "type": "timestamp with time zone",
4454
+ "primaryKey": false,
4455
+ "notNull": false
4456
+ },
4457
+ "archived": {
4458
+ "name": "archived",
4459
+ "type": "boolean",
4460
+ "primaryKey": false,
4461
+ "notNull": true,
4462
+ "default": false
4463
+ },
4464
+ "created_by": {
4465
+ "name": "created_by",
4466
+ "type": "text",
4467
+ "primaryKey": false,
4468
+ "notNull": true
4469
+ },
4470
+ "version": {
4471
+ "name": "version",
4472
+ "type": "integer",
4473
+ "primaryKey": false,
4474
+ "notNull": true,
4475
+ "default": 1
4476
+ },
4477
+ "created_at": {
4478
+ "name": "created_at",
4479
+ "type": "timestamp with time zone",
4480
+ "primaryKey": false,
4481
+ "notNull": true,
4482
+ "default": "now()"
4483
+ },
4484
+ "updated_at": {
4485
+ "name": "updated_at",
4486
+ "type": "timestamp with time zone",
4487
+ "primaryKey": false,
4488
+ "notNull": true,
4489
+ "default": "now()"
4490
+ }
4491
+ },
4492
+ "indexes": {
4493
+ "ticket_project_status": {
4494
+ "name": "ticket_project_status",
4495
+ "columns": [
4496
+ {
4497
+ "expression": "project_id",
4498
+ "isExpression": false,
4499
+ "asc": true,
4500
+ "nulls": "last"
4501
+ },
4502
+ {
4503
+ "expression": "status",
4504
+ "isExpression": false,
4505
+ "asc": true,
4506
+ "nulls": "last"
4507
+ }
4508
+ ],
4509
+ "isUnique": false,
4510
+ "concurrently": false,
4511
+ "method": "btree",
4512
+ "with": {}
4513
+ },
4514
+ "ticket_parent": {
4515
+ "name": "ticket_parent",
4516
+ "columns": [
4517
+ {
4518
+ "expression": "parent_id",
4519
+ "isExpression": false,
4520
+ "asc": true,
4521
+ "nulls": "last"
4522
+ }
4523
+ ],
4524
+ "isUnique": false,
4525
+ "concurrently": false,
4526
+ "method": "btree",
4527
+ "with": {}
4528
+ }
4529
+ },
4530
+ "foreignKeys": {
4531
+ "tickets_project_id_projects_id_fk": {
4532
+ "name": "tickets_project_id_projects_id_fk",
4533
+ "tableFrom": "tickets",
4534
+ "tableTo": "projects",
4535
+ "columnsFrom": [
4536
+ "project_id"
4537
+ ],
4538
+ "columnsTo": [
4539
+ "id"
4540
+ ],
4541
+ "onDelete": "cascade",
4542
+ "onUpdate": "no action"
4543
+ },
4544
+ "tickets_assignee_id_user_id_fk": {
4545
+ "name": "tickets_assignee_id_user_id_fk",
4546
+ "tableFrom": "tickets",
4547
+ "tableTo": "user",
4548
+ "columnsFrom": [
4549
+ "assignee_id"
4550
+ ],
4551
+ "columnsTo": [
4552
+ "id"
4553
+ ],
4554
+ "onDelete": "set null",
4555
+ "onUpdate": "no action"
4556
+ },
4557
+ "tickets_created_by_user_id_fk": {
4558
+ "name": "tickets_created_by_user_id_fk",
4559
+ "tableFrom": "tickets",
4560
+ "tableTo": "user",
4561
+ "columnsFrom": [
4562
+ "created_by"
4563
+ ],
4564
+ "columnsTo": [
4565
+ "id"
4566
+ ],
4567
+ "onDelete": "no action",
4568
+ "onUpdate": "no action"
4569
+ }
4570
+ },
4571
+ "compositePrimaryKeys": {},
4572
+ "uniqueConstraints": {
4573
+ "tickets_key_unique": {
4574
+ "name": "tickets_key_unique",
4575
+ "nullsNotDistinct": false,
4576
+ "columns": [
4577
+ "key"
4578
+ ]
4579
+ },
4580
+ "ticket_project_number": {
4581
+ "name": "ticket_project_number",
4582
+ "nullsNotDistinct": false,
4583
+ "columns": [
4584
+ "project_id",
4585
+ "number"
4586
+ ]
4587
+ }
4588
+ },
4589
+ "policies": {},
4590
+ "checkConstraints": {},
4591
+ "isRLSEnabled": false
4592
+ },
4593
+ "public.saved_views": {
4594
+ "name": "saved_views",
4595
+ "schema": "",
4596
+ "columns": {
4597
+ "id": {
4598
+ "name": "id",
4599
+ "type": "uuid",
4600
+ "primaryKey": true,
4601
+ "notNull": true,
4602
+ "default": "gen_random_uuid()"
4603
+ },
4604
+ "project_id": {
4605
+ "name": "project_id",
4606
+ "type": "uuid",
4607
+ "primaryKey": false,
4608
+ "notNull": true
4609
+ },
4610
+ "user_id": {
4611
+ "name": "user_id",
4612
+ "type": "text",
4613
+ "primaryKey": false,
4614
+ "notNull": true
4615
+ },
4616
+ "name": {
4617
+ "name": "name",
4618
+ "type": "text",
4619
+ "primaryKey": false,
4620
+ "notNull": true
4621
+ },
4622
+ "filters": {
4623
+ "name": "filters",
4624
+ "type": "jsonb",
4625
+ "primaryKey": false,
4626
+ "notNull": true
4627
+ }
4628
+ },
4629
+ "indexes": {},
4630
+ "foreignKeys": {
4631
+ "saved_views_project_id_projects_id_fk": {
4632
+ "name": "saved_views_project_id_projects_id_fk",
4633
+ "tableFrom": "saved_views",
4634
+ "tableTo": "projects",
4635
+ "columnsFrom": [
4636
+ "project_id"
4637
+ ],
4638
+ "columnsTo": [
4639
+ "id"
4640
+ ],
4641
+ "onDelete": "cascade",
4642
+ "onUpdate": "no action"
4643
+ },
4644
+ "saved_views_user_id_user_id_fk": {
4645
+ "name": "saved_views_user_id_user_id_fk",
4646
+ "tableFrom": "saved_views",
4647
+ "tableTo": "user",
4648
+ "columnsFrom": [
4649
+ "user_id"
4650
+ ],
4651
+ "columnsTo": [
4652
+ "id"
4653
+ ],
4654
+ "onDelete": "cascade",
4655
+ "onUpdate": "no action"
4656
+ }
4657
+ },
4658
+ "compositePrimaryKeys": {},
4659
+ "uniqueConstraints": {},
4660
+ "policies": {},
4661
+ "checkConstraints": {},
4662
+ "isRLSEnabled": false
4663
+ },
4664
+ "public.workspace_members": {
4665
+ "name": "workspace_members",
4666
+ "schema": "",
4667
+ "columns": {
4668
+ "workspace_id": {
4669
+ "name": "workspace_id",
4670
+ "type": "uuid",
4671
+ "primaryKey": false,
4672
+ "notNull": true
4673
+ },
4674
+ "user_id": {
4675
+ "name": "user_id",
4676
+ "type": "text",
4677
+ "primaryKey": false,
4678
+ "notNull": true
4679
+ },
4680
+ "role": {
4681
+ "name": "role",
4682
+ "type": "text",
4683
+ "primaryKey": false,
4684
+ "notNull": true
4685
+ }
4686
+ },
4687
+ "indexes": {
4688
+ "workspace_member_user": {
4689
+ "name": "workspace_member_user",
4690
+ "columns": [
4691
+ {
4692
+ "expression": "user_id",
4693
+ "isExpression": false,
4694
+ "asc": true,
4695
+ "nulls": "last"
4696
+ }
4697
+ ],
4698
+ "isUnique": false,
4699
+ "concurrently": false,
4700
+ "method": "btree",
4701
+ "with": {}
4702
+ }
4703
+ },
4704
+ "foreignKeys": {
4705
+ "workspace_members_workspace_id_workspaces_id_fk": {
4706
+ "name": "workspace_members_workspace_id_workspaces_id_fk",
4707
+ "tableFrom": "workspace_members",
4708
+ "tableTo": "workspaces",
4709
+ "columnsFrom": [
4710
+ "workspace_id"
4711
+ ],
4712
+ "columnsTo": [
4713
+ "id"
4714
+ ],
4715
+ "onDelete": "cascade",
4716
+ "onUpdate": "no action"
4717
+ },
4718
+ "workspace_members_user_id_user_id_fk": {
4719
+ "name": "workspace_members_user_id_user_id_fk",
4720
+ "tableFrom": "workspace_members",
4721
+ "tableTo": "user",
4722
+ "columnsFrom": [
4723
+ "user_id"
4724
+ ],
4725
+ "columnsTo": [
4726
+ "id"
4727
+ ],
4728
+ "onDelete": "cascade",
4729
+ "onUpdate": "no action"
4730
+ }
4731
+ },
4732
+ "compositePrimaryKeys": {
4733
+ "workspace_members_workspace_id_user_id_pk": {
4734
+ "name": "workspace_members_workspace_id_user_id_pk",
4735
+ "columns": [
4736
+ "workspace_id",
4737
+ "user_id"
4738
+ ]
4739
+ }
4740
+ },
4741
+ "uniqueConstraints": {},
4742
+ "policies": {},
4743
+ "checkConstraints": {},
4744
+ "isRLSEnabled": false
4745
+ },
4746
+ "public.workspaces": {
4747
+ "name": "workspaces",
4748
+ "schema": "",
4749
+ "columns": {
4750
+ "id": {
4751
+ "name": "id",
4752
+ "type": "uuid",
4753
+ "primaryKey": true,
4754
+ "notNull": true,
4755
+ "default": "gen_random_uuid()"
4756
+ },
4757
+ "slug": {
4758
+ "name": "slug",
4759
+ "type": "text",
4760
+ "primaryKey": false,
4761
+ "notNull": true
4762
+ },
4763
+ "name": {
4764
+ "name": "name",
4765
+ "type": "text",
4766
+ "primaryKey": false,
4767
+ "notNull": true
4768
+ },
4769
+ "description": {
4770
+ "name": "description",
4771
+ "type": "text",
4772
+ "primaryKey": false,
4773
+ "notNull": true,
4774
+ "default": "''"
4775
+ },
4776
+ "version": {
4777
+ "name": "version",
4778
+ "type": "integer",
4779
+ "primaryKey": false,
4780
+ "notNull": true,
4781
+ "default": 1
4782
+ },
4783
+ "created_at": {
4784
+ "name": "created_at",
4785
+ "type": "timestamp with time zone",
4786
+ "primaryKey": false,
4787
+ "notNull": true,
4788
+ "default": "now()"
4789
+ },
4790
+ "updated_at": {
4791
+ "name": "updated_at",
4792
+ "type": "timestamp with time zone",
4793
+ "primaryKey": false,
4794
+ "notNull": true,
4795
+ "default": "now()"
4796
+ }
4797
+ },
4798
+ "indexes": {},
4799
+ "foreignKeys": {},
4800
+ "compositePrimaryKeys": {},
4801
+ "uniqueConstraints": {
4802
+ "workspaces_slug_unique": {
4803
+ "name": "workspaces_slug_unique",
4804
+ "nullsNotDistinct": false,
4805
+ "columns": [
4806
+ "slug"
4807
+ ]
4808
+ }
4809
+ },
4810
+ "policies": {},
4811
+ "checkConstraints": {},
4812
+ "isRLSEnabled": false
4813
+ }
4814
+ },
4815
+ "enums": {},
4816
+ "schemas": {},
4817
+ "sequences": {},
4818
+ "roles": {},
4819
+ "policies": {},
4820
+ "views": {},
4821
+ "_meta": {
4822
+ "columns": {},
4823
+ "schemas": {},
4824
+ "tables": {}
4825
+ }
4826
+ }