@maudecode/kanvil 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/apps/server/.env.example +19 -0
  2. package/apps/server/dist/auth-JcS53IcO.mjs +12424 -0
  3. package/apps/server/dist/{config-CbNqtJEj.mjs → config-D3cAABi7.mjs} +27 -2
  4. package/apps/server/dist/index.mjs +2504 -295
  5. package/apps/server/dist/migrate.mjs +1 -1
  6. package/apps/server/dist/recover.mjs +4 -4
  7. package/apps/server/drizzle/0014_inbox_dismissal.sql +1 -0
  8. package/apps/server/drizzle/0015_notification_categories.sql +14 -0
  9. package/apps/server/drizzle/0016_ticket_resources.sql +19 -0
  10. package/apps/server/drizzle/0017_project_backgrounds.sql +3 -0
  11. package/apps/server/drizzle/0018_delivery_outbox.sql +65 -0
  12. package/apps/server/drizzle/0019_retire_push_deliveries.sql +1 -0
  13. package/apps/server/drizzle/0020_calendar_feeds.sql +16 -0
  14. package/apps/server/drizzle/0021_staged_uploads.sql +14 -0
  15. package/apps/server/drizzle/0022_manual_order.sql +6 -0
  16. package/apps/server/drizzle/0023_workspace_invitations.sql +22 -0
  17. package/apps/server/drizzle/0024_workflow_states.sql +39 -0
  18. package/apps/server/drizzle/0025_workspace_labels.sql +10 -0
  19. package/apps/server/drizzle/0026_public_read.sql +1 -0
  20. package/apps/server/drizzle/0027_custom_fields.sql +16 -0
  21. package/apps/server/drizzle/0028_project_lifecycle.sql +11 -0
  22. package/apps/server/drizzle/0029_ticket_relocation.sql +16 -0
  23. package/apps/server/drizzle/0030_repository_connections.sql +39 -0
  24. package/apps/server/drizzle/0031_repository_providers.sql +3 -0
  25. package/apps/server/drizzle/0032_workspace_ownership.sql +11 -0
  26. package/apps/server/drizzle/0033_import_runs.sql +38 -0
  27. package/apps/server/drizzle/0034_issue_sync.sql +38 -0
  28. package/apps/server/drizzle/0035_account_deletion.sql +9 -0
  29. package/apps/server/drizzle/0036_workspace_roles.sql +16 -0
  30. package/apps/server/drizzle/0037_email_code_owner.sql +14 -0
  31. package/apps/server/drizzle/meta/0014_snapshot.json +4246 -0
  32. package/apps/server/drizzle/meta/0015_snapshot.json +4297 -0
  33. package/apps/server/drizzle/meta/0016_snapshot.json +4443 -0
  34. package/apps/server/drizzle/meta/0017_snapshot.json +4468 -0
  35. package/apps/server/drizzle/meta/0018_snapshot.json +4948 -0
  36. package/apps/server/drizzle/meta/0019_snapshot.json +4826 -0
  37. package/apps/server/drizzle/meta/0020_snapshot.json +4947 -0
  38. package/apps/server/drizzle/meta/0021_snapshot.json +5059 -0
  39. package/apps/server/drizzle/meta/0022_snapshot.json +5094 -0
  40. package/apps/server/drizzle/meta/0023_snapshot.json +5267 -0
  41. package/apps/server/drizzle/meta/0024_snapshot.json +5405 -0
  42. package/apps/server/drizzle/meta/0025_snapshot.json +5474 -0
  43. package/apps/server/drizzle/meta/0026_snapshot.json +5481 -0
  44. package/apps/server/drizzle/meta/0027_snapshot.json +5605 -0
  45. package/apps/server/drizzle/meta/0028_snapshot.json +5699 -0
  46. package/apps/server/drizzle/meta/0029_snapshot.json +5809 -0
  47. package/apps/server/drizzle/meta/0030_snapshot.json +6066 -0
  48. package/apps/server/drizzle/meta/0031_snapshot.json +6074 -0
  49. package/apps/server/drizzle/meta/0032_snapshot.json +6100 -0
  50. package/apps/server/drizzle/meta/0033_snapshot.json +6406 -0
  51. package/apps/server/drizzle/meta/0034_snapshot.json +6698 -0
  52. package/apps/server/drizzle/meta/0035_snapshot.json +6704 -0
  53. package/apps/server/drizzle/meta/0036_snapshot.json +6825 -0
  54. package/apps/server/drizzle/meta/0037_snapshot.json +6825 -0
  55. package/apps/server/drizzle/meta/_journal.json +168 -0
  56. package/apps/web/dist/assets/CompositeItem-BbuEp99X.js +1 -0
  57. package/apps/web/dist/assets/Trans-DJGH63s1.js +1 -0
  58. package/apps/web/dist/assets/abnfDiagram-WEYOIA3C-DTOx8N4B.js +1 -0
  59. package/apps/web/dist/assets/admin-settings-CJG9PMKR.js +1 -0
  60. package/apps/web/dist/assets/arc-Y1ARJVZ4.js +1 -0
  61. package/apps/web/dist/assets/architecture-WOLXFQ4H-DlC3p5z3.js +1 -0
  62. package/apps/web/dist/assets/architectureDiagram-ZHVYKT53-DooN3Z58.js +36 -0
  63. package/apps/web/dist/assets/archive-restore-B6_SsOIP.js +1 -0
  64. package/apps/web/dist/assets/array-BifhSqXX.js +1 -0
  65. package/apps/web/dist/assets/az-AZ-BtrlbgjS.js +1 -0
  66. package/apps/web/dist/assets/az-D-kj4lmf.js +1 -0
  67. package/apps/web/dist/assets/az-DqY__MpS.js +1 -0
  68. package/apps/web/dist/assets/blockDiagram-RJAE7QA3-CD5AgY4U.js +140 -0
  69. package/apps/web/dist/assets/c4Diagram-XDPPPE54-CTDOcLuN.js +38 -0
  70. package/apps/web/dist/assets/channel-BhHvU4I-.js +1 -0
  71. package/apps/web/dist/assets/chunk-2E7WHVMD-D9qnBqTV.js +88 -0
  72. package/apps/web/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  73. package/apps/web/dist/assets/chunk-4EMNKR2T-Kz5JiJ85.js +1 -0
  74. package/apps/web/dist/assets/chunk-55XCU76K-DnKiFpYM.js +1 -0
  75. package/apps/web/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  76. package/apps/web/dist/assets/chunk-7S6XSTFO-CpdNd6Ke.js +2 -0
  77. package/apps/web/dist/assets/chunk-AQDTSKZB-CpyuSWt8.js +72 -0
  78. package/apps/web/dist/assets/chunk-DSNLSHJZ-DTC3y9rb.js +129 -0
  79. package/apps/web/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  80. package/apps/web/dist/assets/chunk-HAGFOTED-Bv8PrMYK.js +62 -0
  81. package/apps/web/dist/assets/chunk-HNE4Q36P-CDDJ_yRa.js +1 -0
  82. package/apps/web/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  83. package/apps/web/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  84. package/apps/web/dist/assets/chunk-NGNAAXSQ-C2Wy9Xmz.js +136 -0
  85. package/apps/web/dist/assets/chunk-NQOKRVIF-lNtnsWHS.js +213 -0
  86. package/apps/web/dist/assets/chunk-UHW7PFBP-D79ptlTN.js +1 -0
  87. package/apps/web/dist/assets/chunk-VQ5W62QI-B8hWFCiM.js +1 -0
  88. package/apps/web/dist/assets/chunk-WQQL4CDK-DAGuWzS3.js +10 -0
  89. package/apps/web/dist/assets/chunk-XXDRQBXY-CnbRkih_.js +1 -0
  90. package/apps/web/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  91. package/apps/web/dist/assets/chunk-YZO67HFG-C0ptzlKO.js +1 -0
  92. package/apps/web/dist/assets/chunk-ZAUX2LTX-ah8U5xoJ.js +1 -0
  93. package/apps/web/dist/assets/chunk-ZCHMQSOR-DYqATOIZ.js +2 -0
  94. package/apps/web/dist/assets/classDiagram-v2-4MYWR3UA-DYytA-ua.js +217 -0
  95. package/apps/web/dist/assets/core-jXc03Sty.js +1 -0
  96. package/apps/web/dist/assets/corner-left-up-DA7MG5uX.js +1 -0
  97. package/apps/web/dist/assets/cose-bilkent-JH36ORCC-lWVj4msc.js +1 -0
  98. package/apps/web/dist/assets/cynefin-EF2NZ3EQ-Xy6e6m1E.js +1 -0
  99. package/apps/web/dist/assets/cynefinDiagram-WF24UDRP-BYarZJSm.js +62 -0
  100. package/apps/web/dist/assets/cytoscape.esm-BegBNzOV.js +321 -0
  101. package/apps/web/dist/assets/dagre-NK4GIZVX-WLvvUY1o.js +4 -0
  102. package/apps/web/dist/assets/de-DAv77-wP.js +1 -0
  103. package/apps/web/dist/assets/de-DE-Bu_Ko2QA.js +1 -0
  104. package/apps/web/dist/assets/de-UHreLwyV.js +1 -0
  105. package/apps/web/dist/assets/default-D5TdIZQS.js +56 -0
  106. package/apps/web/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
  107. package/apps/web/dist/assets/delivery-settings-BE5MW8U0.js +1 -0
  108. package/apps/web/dist/assets/diagram-CBK3MWTC-D6PtxkLg.js +24 -0
  109. package/apps/web/dist/assets/diagram-I5XIIV2D-DTOKQwIY.js +24 -0
  110. package/apps/web/dist/assets/diagram-ODIL2UCW-BmERt0Xu.js +30 -0
  111. package/apps/web/dist/assets/diagram-PFBEJUXE-WDUe08eD.js +3 -0
  112. package/apps/web/dist/assets/diagram-RJA3I4VV-B2K-NLGG.js +41 -0
  113. package/apps/web/dist/assets/diagram-TYUNFSNR-BLf7PpV7.js +200 -0
  114. package/apps/web/dist/assets/dist-CumnGVmJ.js +1 -0
  115. package/apps/web/dist/assets/ebnfDiagram-V4P3TTPT-DwBUQs9p.js +1 -0
  116. package/apps/web/dist/assets/el-D2ypddWn.js +1 -0
  117. package/apps/web/dist/assets/el-EJnrsyVr.js +1 -0
  118. package/apps/web/dist/assets/el-GR-CpKEps47.js +1 -0
  119. package/apps/web/dist/assets/elk-QONTBCTQ-AuT8PinL.js +27 -0
  120. package/apps/web/dist/assets/ellipsis-D6154JKs.js +1 -0
  121. package/apps/web/dist/assets/en-EnSRisMz.js +1 -0
  122. package/apps/web/dist/assets/en-US-DKYSujv3.js +1 -0
  123. package/apps/web/dist/assets/erDiagram-KYQIGQAA-h--u4Eo6.js +99 -0
  124. package/apps/web/dist/assets/es-B_49BMhR.js +1 -0
  125. package/apps/web/dist/assets/es-D2ScuV-5.js +1 -0
  126. package/apps/web/dist/assets/es-ES-DVkfi7H-.js +1 -0
  127. package/apps/web/dist/assets/eventmodeling-K75KTNOO-CW4hDt1j.js +1 -0
  128. package/apps/web/dist/assets/flowDiagram-IUGLLWBU-BGUscnNP.js +1 -0
  129. package/apps/web/dist/assets/forms-BcD6Wwyv.js +1 -0
  130. package/apps/web/dist/assets/fr-B-WmPGZD.js +1 -0
  131. package/apps/web/dist/assets/fr-C_VpS8u6.js +1 -0
  132. package/apps/web/dist/assets/fr-FR-DkHaEHqi.js +1 -0
  133. package/apps/web/dist/assets/ganttDiagram-R7GPNTJY-CB3lsQvj.js +292 -0
  134. package/apps/web/dist/assets/gitGraph-VSP46ZUC-Hu-kvdCR.js +1 -0
  135. package/apps/web/dist/assets/gitGraphDiagram-PDYL7XHY-DCuY3C1Q.js +106 -0
  136. package/apps/web/dist/assets/graphlib-DS17s2tU.js +1 -0
  137. package/apps/web/dist/assets/hi-CW4rdp_m.js +1 -0
  138. package/apps/web/dist/assets/hi-DvoDcUpL.js +1 -0
  139. package/apps/web/dist/assets/hi-IN-CbUDNSTK.js +1 -0
  140. package/apps/web/dist/assets/highlight-CMydIf9M.js +5 -0
  141. package/apps/web/dist/assets/id-CPASBZ2r.js +1 -0
  142. package/apps/web/dist/assets/id-CvL3yBVr.js +1 -0
  143. package/apps/web/dist/assets/id-ID-DLTkxt2j.js +1 -0
  144. package/apps/web/dist/assets/index-DoqlyejP.js +17 -0
  145. package/apps/web/dist/assets/index-DyQNFS69.css +2 -0
  146. package/apps/web/dist/assets/info-OHQRW6UA-Cc8VwTsk.js +1 -0
  147. package/apps/web/dist/assets/infoDiagram-MVDRKAX5-KIMOx55J.js +2 -0
  148. package/apps/web/dist/assets/init-C-OQMol4.js +1 -0
  149. package/apps/web/dist/assets/invitations-BmpelTJu.js +1 -0
  150. package/apps/web/dist/assets/isSameWeek-2ftYGvBT.js +1 -0
  151. package/apps/web/dist/assets/ishikawaDiagram-HPEHV2GE-CAou726L.js +70 -0
  152. package/apps/web/dist/assets/it-Cd7u97Jd.js +1 -0
  153. package/apps/web/dist/assets/it-DOLotXOj.js +1 -0
  154. package/apps/web/dist/assets/it-IT-CIzq0YwC.js +1 -0
  155. package/apps/web/dist/assets/item-Cq_ZbivE.js +1 -0
  156. package/apps/web/dist/assets/ja-B1iJt9qB.js +1 -0
  157. package/apps/web/dist/assets/ja-JP-CIE4-D-v.js +1 -0
  158. package/apps/web/dist/assets/ja-LkOrjegp.js +1 -0
  159. package/apps/web/dist/assets/journeyDiagram-BOSHW7O7-YbJuPYDH.js +139 -0
  160. package/apps/web/dist/assets/kanban-definition-FNSA4HC5-nuRnm9y8.js +89 -0
  161. package/apps/web/dist/assets/katex-B_JcIwqj.js +257 -0
  162. package/apps/web/dist/assets/ko-DPpXw683.js +1 -0
  163. package/apps/web/dist/assets/ko-KR-DYP5Zae6.js +1 -0
  164. package/apps/web/dist/assets/ko-fmUq1-8W.js +1 -0
  165. package/apps/web/dist/assets/label-settings-B3LsJxhk.js +1 -0
  166. package/apps/web/dist/assets/line-WsxZYwZr.js +1 -0
  167. package/apps/web/dist/assets/linear-C9iwaMOi.js +1 -0
  168. package/apps/web/dist/assets/lucide-DIlszs-T.js +1 -0
  169. package/apps/web/dist/assets/markdown-blocks-Bw26pRKB.js +2 -0
  170. package/apps/web/dist/assets/member-directory-CHKUw0u4.js +1 -0
  171. package/apps/web/dist/assets/mermaid-parser.core-B5c-1CnP.js +7 -0
  172. package/apps/web/dist/assets/mermaid.core-vGVkgzA3.js +44 -0
  173. package/apps/web/dist/assets/mindmap-definition-6OY57UG3-uooJyUak.js +98 -0
  174. package/apps/web/dist/assets/mk-CkaQRpqe.js +1 -0
  175. package/apps/web/dist/assets/mk-LWVrR-T-.js +1 -0
  176. package/apps/web/dist/assets/mk-MK-CpOo5Bd8.js +1 -0
  177. package/apps/web/dist/assets/nl-DiEjqOA8.js +1 -0
  178. package/apps/web/dist/assets/nl-NL-Mu8G8RON.js +1 -0
  179. package/apps/web/dist/assets/nl-ro6hbqo5.js +1 -0
  180. package/apps/web/dist/assets/ordinal-BDEzSJ7C.js +1 -0
  181. package/apps/web/dist/assets/packet-JDAUHWVQ-WJpqlH1d.js +1 -0
  182. package/apps/web/dist/assets/path-fybaL0A-.js +1 -0
  183. package/apps/web/dist/assets/pegDiagram-ECIUJNBX-CUvajD93.js +1 -0
  184. package/apps/web/dist/assets/pie-XZMESJXO-DvandPby.js +1 -0
  185. package/apps/web/dist/assets/pieDiagram-GNMPY74T-CqxeyIaP.js +39 -0
  186. package/apps/web/dist/assets/pl-Bx_fYLKY.js +1 -0
  187. package/apps/web/dist/assets/pl-CauoMfkf.js +1 -0
  188. package/apps/web/dist/assets/pl-PL-DGuxe2Aq.js +1 -0
  189. package/apps/web/dist/assets/preload-helper-BLdHbfdN.js +1 -0
  190. package/apps/web/dist/assets/project-lifecycle-Ba7iRF3u.js +1 -0
  191. package/apps/web/dist/assets/project-settings-CtOWgEam.js +1 -0
  192. package/apps/web/dist/assets/pt-BR-BpOhwoDW.js +1 -0
  193. package/apps/web/dist/assets/pt-BR-D-a7F5zJ.js +1 -0
  194. package/apps/web/dist/assets/pt-BR-DwkMPgq1.js +1 -0
  195. package/apps/web/dist/assets/public-project-CHRjhFIn.js +1 -0
  196. package/apps/web/dist/assets/quadrantDiagram-D57K4MC3-DFjNmaZc.js +7 -0
  197. package/apps/web/dist/assets/radar-ABXABTNO-CJhZF9j2.js +1 -0
  198. package/apps/web/dist/assets/railroad-I3PHUGI6-DZC10oBD.js +1 -0
  199. package/apps/web/dist/assets/railroad-abnf-LNEFI6M7-BUJF2n6u.js +1 -0
  200. package/apps/web/dist/assets/railroad-ebnf-DWYD2UWJ-CG7oB02K.js +1 -0
  201. package/apps/web/dist/assets/railroad-peg-JR7BVNR7-DBCZuZJY.js +1 -0
  202. package/apps/web/dist/assets/railroadDiagram-Y72NRBL7-CvN3poBq.js +1 -0
  203. package/apps/web/dist/assets/requirementDiagram-EQYSW5RA-BEItNirc.js +84 -0
  204. package/apps/web/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
  205. package/apps/web/dist/assets/rotate-ccw-Bm0ESNH_.js +1 -0
  206. package/apps/web/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
  207. package/apps/web/dist/assets/ru-D-WIMI5_.js +1 -0
  208. package/apps/web/dist/assets/ru-DOaRp00B.js +1 -0
  209. package/apps/web/dist/assets/ru-RU-DrXnqZbV.js +1 -0
  210. package/apps/web/dist/assets/sankeyDiagram-SY24JHO5-DluLIjax.js +40 -0
  211. package/apps/web/dist/assets/search-D94SZwrC.js +85 -0
  212. package/apps/web/dist/assets/send-D9TETK3s.js +1 -0
  213. package/apps/web/dist/assets/sequenceDiagram-BLEHNHQU-ZcwnsNxK.js +169 -0
  214. package/apps/web/dist/assets/settings-Dd9EVxua.js +1 -0
  215. package/apps/web/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  216. package/apps/web/dist/assets/sliders-horizontal-CiZZFL1o.js +1 -0
  217. package/apps/web/dist/assets/src-BWF7jMDv.js +1 -0
  218. package/apps/web/dist/assets/stateDiagram-v2-A6IESKWZ-DD6vH3rM.js +291 -0
  219. package/apps/web/dist/assets/swimlanes-B3ENRKFQ-pX_qyO4X.js +1 -0
  220. package/apps/web/dist/assets/swimlanesDiagram-AYQRV4AK-CeVsLUsg.js +8 -0
  221. package/apps/web/dist/assets/switch-B_u8n1o6.js +1 -0
  222. package/apps/web/dist/assets/table-DcCLC7fi.js +1 -0
  223. package/apps/web/dist/assets/ticket-detail-C9egaVSf.js +2 -0
  224. package/apps/web/dist/assets/ticket-editor-UlSZgpWF.js +2 -0
  225. package/apps/web/dist/assets/ticket-list-controls-BidzkMOD.js +1 -0
  226. package/apps/web/dist/assets/ticket-list-vNBO8mkk.js +5 -0
  227. package/apps/web/dist/assets/timeline-definition-JXYKGLGB-DLBjAxKq.js +120 -0
  228. package/apps/web/dist/assets/toDate-B3HYxwtT.js +1 -0
  229. package/apps/web/dist/assets/tr-BZEJyY-F.js +1 -0
  230. package/apps/web/dist/assets/tr-DeYojjLx.js +1 -0
  231. package/apps/web/dist/assets/tr-TR-B92YeFW5.js +1 -0
  232. package/apps/web/dist/assets/treeView-D4JQ5SDB-DsJ44q_q.js +1 -0
  233. package/apps/web/dist/assets/treemap-SAJKECNS-BmXoBpVL.js +1 -0
  234. package/apps/web/dist/assets/uk-DACrfgCP.js +1 -0
  235. package/apps/web/dist/assets/uk-UA-DmcDs-MU.js +1 -0
  236. package/apps/web/dist/assets/uk-f8X5q5C_.js +1 -0
  237. package/apps/web/dist/assets/upload-CGpna3R2.js +1 -0
  238. package/apps/web/dist/assets/useQueries-BihXYrAP.js +1 -0
  239. package/apps/web/dist/assets/usecaseDiagram-WPOLBNNX-eU2tr2si.js +328 -0
  240. package/apps/web/dist/assets/vennDiagram-Q3Y3IDCW-CoVTWGNg.js +34 -0
  241. package/apps/web/dist/assets/vi-CSGaJFlR.js +1 -0
  242. package/apps/web/dist/assets/vi-CkqUo4w_.js +1 -0
  243. package/apps/web/dist/assets/vi-VN-DM5JYNuP.js +1 -0
  244. package/apps/web/dist/assets/visual-editor-B6HiiLMg.js +208 -0
  245. package/apps/web/dist/assets/wardley-7MLQ67FV-C6mVVk98.js +1 -0
  246. package/apps/web/dist/assets/wardleyDiagram-IVAIDKWA-m3CeJc7a.js +78 -0
  247. package/apps/web/dist/assets/workspace-settings-CSvVqaL6.js +1 -0
  248. package/apps/web/dist/assets/xychartDiagram-4URNHDU4-Dw6fLaip.js +7 -0
  249. package/apps/web/dist/assets/zh-CN-BdRcimyZ.js +1 -0
  250. package/apps/web/dist/assets/zh-CN-CC7ghLLr.js +1 -0
  251. package/apps/web/dist/assets/zh-CN-CiUOkQXe.js +1 -0
  252. package/apps/web/dist/assets/zh-TW-BH1L9tOt.js +1 -0
  253. package/apps/web/dist/assets/zh-TW-BlIRMi1C.js +1 -0
  254. package/apps/web/dist/assets/zh-TW-Co4UBSfi.js +1 -0
  255. package/apps/web/dist/index.html +14 -8
  256. package/compose.yml +12 -0
  257. package/docs/api.md +285 -10
  258. package/docs/infrastructure.md +2 -2
  259. package/docs/localization.md +25 -0
  260. package/docs/plan.md +28 -10
  261. package/docs/releasing.md +1 -1
  262. package/docs/self-hosting.md +44 -5
  263. package/docs/themes.md +1 -1
  264. package/docs/verification.md +1 -1
  265. package/docs/workspaces.md +18 -2
  266. package/package.json +12 -8
  267. package/apps/server/dist/auth-I1XEr0d4.mjs +0 -2931
  268. package/apps/web/dist/assets/CompositeItem-BWPJ5Mol.js +0 -1
  269. package/apps/web/dist/assets/admin-settings-DZqkC6ju.js +0 -1
  270. package/apps/web/dist/assets/date-picker-6H_iwP6t.js +0 -1
  271. package/apps/web/dist/assets/ellipsis-BT172Uvu.js +0 -1
  272. package/apps/web/dist/assets/forms-B4Vg3CPz.js +0 -92
  273. package/apps/web/dist/assets/image-edit-trigger-DGmVtWLC.js +0 -1
  274. package/apps/web/dist/assets/index-C_a21taR.js +0 -50
  275. package/apps/web/dist/assets/index-DM-D_3Sv.css +0 -2
  276. package/apps/web/dist/assets/kbd-tTQGZxaK.js +0 -1
  277. package/apps/web/dist/assets/link-DoIP9KJ6.js +0 -2
  278. package/apps/web/dist/assets/list-order-Bzsrihyr.js +0 -1
  279. package/apps/web/dist/assets/lucide-U995NW8E.js +0 -1
  280. package/apps/web/dist/assets/member-directory-BiCE8DRq.js +0 -1
  281. package/apps/web/dist/assets/popover-BhzZ0U1d.js +0 -1
  282. package/apps/web/dist/assets/project-label-provider-9L7Uts3_.js +0 -1
  283. package/apps/web/dist/assets/project-settings-Q7Q9Reec.js +0 -1
  284. package/apps/web/dist/assets/rotate-ccw-sjyLwLLy.js +0 -1
  285. package/apps/web/dist/assets/settings-B6qD6q1J.js +0 -1
  286. package/apps/web/dist/assets/settings-layout-B-AwUIMu.js +0 -1
  287. package/apps/web/dist/assets/switch-D0nFHj6l.js +0 -1
  288. package/apps/web/dist/assets/table-CYZiwo9g.js +0 -1
  289. package/apps/web/dist/assets/ticket-detail-B-3vbHSB.js +0 -2
  290. package/apps/web/dist/assets/ticket-editor-C3d8TZIT.js +0 -1
  291. package/apps/web/dist/assets/ticket-list-LtGGOnwN.js +0 -5
  292. package/apps/web/dist/assets/ticket-tags-2rdmkcJV.js +0 -1
  293. package/apps/web/dist/assets/upload-DXPRzAaa.js +0 -1
  294. package/apps/web/dist/assets/useNavigate-DFohfUD3.js +0 -1
  295. package/apps/web/dist/assets/workspace-settings-D3tCm1vH.js +0 -1
@@ -0,0 +1,4246 @@
1
+ {
2
+ "id": "0a340b46-5dad-497a-a96a-97697df6faac",
3
+ "prevId": "c97c0cd0-3f6b-4e7d-bd39-0b9ce65a7471",
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.delivery_checkpoints": {
2257
+ "name": "delivery_checkpoints",
2258
+ "schema": "",
2259
+ "columns": {
2260
+ "destination": {
2261
+ "name": "destination",
2262
+ "type": "text",
2263
+ "primaryKey": true,
2264
+ "notNull": true
2265
+ },
2266
+ "cursor": {
2267
+ "name": "cursor",
2268
+ "type": "bigint",
2269
+ "primaryKey": false,
2270
+ "notNull": true,
2271
+ "default": "0"
2272
+ }
2273
+ },
2274
+ "indexes": {},
2275
+ "foreignKeys": {},
2276
+ "compositePrimaryKeys": {},
2277
+ "uniqueConstraints": {},
2278
+ "policies": {},
2279
+ "checkConstraints": {},
2280
+ "isRLSEnabled": false
2281
+ },
2282
+ "public.event_clock": {
2283
+ "name": "event_clock",
2284
+ "schema": "",
2285
+ "columns": {
2286
+ "id": {
2287
+ "name": "id",
2288
+ "type": "integer",
2289
+ "primaryKey": true,
2290
+ "notNull": true
2291
+ },
2292
+ "value": {
2293
+ "name": "value",
2294
+ "type": "bigint",
2295
+ "primaryKey": false,
2296
+ "notNull": true,
2297
+ "default": "0"
2298
+ },
2299
+ "floor": {
2300
+ "name": "floor",
2301
+ "type": "bigint",
2302
+ "primaryKey": false,
2303
+ "notNull": true,
2304
+ "default": "0"
2305
+ }
2306
+ },
2307
+ "indexes": {},
2308
+ "foreignKeys": {},
2309
+ "compositePrimaryKeys": {},
2310
+ "uniqueConstraints": {},
2311
+ "policies": {},
2312
+ "checkConstraints": {},
2313
+ "isRLSEnabled": false
2314
+ },
2315
+ "public.events": {
2316
+ "name": "events",
2317
+ "schema": "",
2318
+ "columns": {
2319
+ "id": {
2320
+ "name": "id",
2321
+ "type": "bigint",
2322
+ "primaryKey": true,
2323
+ "notNull": true
2324
+ },
2325
+ "project_id": {
2326
+ "name": "project_id",
2327
+ "type": "uuid",
2328
+ "primaryKey": false,
2329
+ "notNull": true
2330
+ },
2331
+ "ticket_id": {
2332
+ "name": "ticket_id",
2333
+ "type": "uuid",
2334
+ "primaryKey": false,
2335
+ "notNull": false
2336
+ },
2337
+ "actor_id": {
2338
+ "name": "actor_id",
2339
+ "type": "text",
2340
+ "primaryKey": false,
2341
+ "notNull": true
2342
+ },
2343
+ "type": {
2344
+ "name": "type",
2345
+ "type": "text",
2346
+ "primaryKey": false,
2347
+ "notNull": true
2348
+ },
2349
+ "data": {
2350
+ "name": "data",
2351
+ "type": "jsonb",
2352
+ "primaryKey": false,
2353
+ "notNull": true
2354
+ },
2355
+ "created_at": {
2356
+ "name": "created_at",
2357
+ "type": "timestamp with time zone",
2358
+ "primaryKey": false,
2359
+ "notNull": true,
2360
+ "default": "now()"
2361
+ }
2362
+ },
2363
+ "indexes": {
2364
+ "event_project_cursor": {
2365
+ "name": "event_project_cursor",
2366
+ "columns": [
2367
+ {
2368
+ "expression": "project_id",
2369
+ "isExpression": false,
2370
+ "asc": true,
2371
+ "nulls": "last"
2372
+ },
2373
+ {
2374
+ "expression": "id",
2375
+ "isExpression": false,
2376
+ "asc": true,
2377
+ "nulls": "last"
2378
+ }
2379
+ ],
2380
+ "isUnique": false,
2381
+ "concurrently": false,
2382
+ "method": "btree",
2383
+ "with": {}
2384
+ },
2385
+ "event_ticket": {
2386
+ "name": "event_ticket",
2387
+ "columns": [
2388
+ {
2389
+ "expression": "ticket_id",
2390
+ "isExpression": false,
2391
+ "asc": true,
2392
+ "nulls": "last"
2393
+ },
2394
+ {
2395
+ "expression": "id",
2396
+ "isExpression": false,
2397
+ "asc": true,
2398
+ "nulls": "last"
2399
+ }
2400
+ ],
2401
+ "isUnique": false,
2402
+ "concurrently": false,
2403
+ "method": "btree",
2404
+ "with": {}
2405
+ }
2406
+ },
2407
+ "foreignKeys": {
2408
+ "events_project_id_projects_id_fk": {
2409
+ "name": "events_project_id_projects_id_fk",
2410
+ "tableFrom": "events",
2411
+ "tableTo": "projects",
2412
+ "columnsFrom": [
2413
+ "project_id"
2414
+ ],
2415
+ "columnsTo": [
2416
+ "id"
2417
+ ],
2418
+ "onDelete": "cascade",
2419
+ "onUpdate": "no action"
2420
+ },
2421
+ "events_actor_id_user_id_fk": {
2422
+ "name": "events_actor_id_user_id_fk",
2423
+ "tableFrom": "events",
2424
+ "tableTo": "user",
2425
+ "columnsFrom": [
2426
+ "actor_id"
2427
+ ],
2428
+ "columnsTo": [
2429
+ "id"
2430
+ ],
2431
+ "onDelete": "no action",
2432
+ "onUpdate": "no action"
2433
+ }
2434
+ },
2435
+ "compositePrimaryKeys": {},
2436
+ "uniqueConstraints": {},
2437
+ "policies": {},
2438
+ "checkConstraints": {},
2439
+ "isRLSEnabled": false
2440
+ },
2441
+ "public.evidence": {
2442
+ "name": "evidence",
2443
+ "schema": "",
2444
+ "columns": {
2445
+ "id": {
2446
+ "name": "id",
2447
+ "type": "uuid",
2448
+ "primaryKey": true,
2449
+ "notNull": true,
2450
+ "default": "gen_random_uuid()"
2451
+ },
2452
+ "project_id": {
2453
+ "name": "project_id",
2454
+ "type": "uuid",
2455
+ "primaryKey": false,
2456
+ "notNull": true
2457
+ },
2458
+ "ticket_id": {
2459
+ "name": "ticket_id",
2460
+ "type": "uuid",
2461
+ "primaryKey": false,
2462
+ "notNull": true
2463
+ },
2464
+ "actor_id": {
2465
+ "name": "actor_id",
2466
+ "type": "text",
2467
+ "primaryKey": false,
2468
+ "notNull": true
2469
+ },
2470
+ "title": {
2471
+ "name": "title",
2472
+ "type": "text",
2473
+ "primaryKey": false,
2474
+ "notNull": true
2475
+ },
2476
+ "kind": {
2477
+ "name": "kind",
2478
+ "type": "text",
2479
+ "primaryKey": false,
2480
+ "notNull": true
2481
+ },
2482
+ "url": {
2483
+ "name": "url",
2484
+ "type": "text",
2485
+ "primaryKey": false,
2486
+ "notNull": true
2487
+ },
2488
+ "commit": {
2489
+ "name": "commit",
2490
+ "type": "text",
2491
+ "primaryKey": false,
2492
+ "notNull": false
2493
+ },
2494
+ "outcome": {
2495
+ "name": "outcome",
2496
+ "type": "text",
2497
+ "primaryKey": false,
2498
+ "notNull": true
2499
+ },
2500
+ "note": {
2501
+ "name": "note",
2502
+ "type": "text",
2503
+ "primaryKey": false,
2504
+ "notNull": true
2505
+ },
2506
+ "created_at": {
2507
+ "name": "created_at",
2508
+ "type": "timestamp with time zone",
2509
+ "primaryKey": false,
2510
+ "notNull": true,
2511
+ "default": "now()"
2512
+ }
2513
+ },
2514
+ "indexes": {},
2515
+ "foreignKeys": {
2516
+ "evidence_project_id_projects_id_fk": {
2517
+ "name": "evidence_project_id_projects_id_fk",
2518
+ "tableFrom": "evidence",
2519
+ "tableTo": "projects",
2520
+ "columnsFrom": [
2521
+ "project_id"
2522
+ ],
2523
+ "columnsTo": [
2524
+ "id"
2525
+ ],
2526
+ "onDelete": "cascade",
2527
+ "onUpdate": "no action"
2528
+ },
2529
+ "evidence_ticket_id_tickets_id_fk": {
2530
+ "name": "evidence_ticket_id_tickets_id_fk",
2531
+ "tableFrom": "evidence",
2532
+ "tableTo": "tickets",
2533
+ "columnsFrom": [
2534
+ "ticket_id"
2535
+ ],
2536
+ "columnsTo": [
2537
+ "id"
2538
+ ],
2539
+ "onDelete": "cascade",
2540
+ "onUpdate": "no action"
2541
+ },
2542
+ "evidence_actor_id_user_id_fk": {
2543
+ "name": "evidence_actor_id_user_id_fk",
2544
+ "tableFrom": "evidence",
2545
+ "tableTo": "user",
2546
+ "columnsFrom": [
2547
+ "actor_id"
2548
+ ],
2549
+ "columnsTo": [
2550
+ "id"
2551
+ ],
2552
+ "onDelete": "no action",
2553
+ "onUpdate": "no action"
2554
+ }
2555
+ },
2556
+ "compositePrimaryKeys": {},
2557
+ "uniqueConstraints": {},
2558
+ "policies": {},
2559
+ "checkConstraints": {},
2560
+ "isRLSEnabled": false
2561
+ },
2562
+ "public.instance_settings": {
2563
+ "name": "instance_settings",
2564
+ "schema": "",
2565
+ "columns": {
2566
+ "id": {
2567
+ "name": "id",
2568
+ "type": "integer",
2569
+ "primaryKey": true,
2570
+ "notNull": true,
2571
+ "default": 1
2572
+ },
2573
+ "identity": {
2574
+ "name": "identity",
2575
+ "type": "uuid",
2576
+ "primaryKey": false,
2577
+ "notNull": true,
2578
+ "default": "gen_random_uuid()"
2579
+ },
2580
+ "version": {
2581
+ "name": "version",
2582
+ "type": "integer",
2583
+ "primaryKey": false,
2584
+ "notNull": true,
2585
+ "default": 1
2586
+ },
2587
+ "name": {
2588
+ "name": "name",
2589
+ "type": "text",
2590
+ "primaryKey": false,
2591
+ "notNull": true,
2592
+ "default": "'Kanvil'"
2593
+ },
2594
+ "description": {
2595
+ "name": "description",
2596
+ "type": "text",
2597
+ "primaryKey": false,
2598
+ "notNull": true,
2599
+ "default": "'Ticketing for people and agents'"
2600
+ },
2601
+ "storage_backend_id": {
2602
+ "name": "storage_backend_id",
2603
+ "type": "uuid",
2604
+ "primaryKey": false,
2605
+ "notNull": false
2606
+ },
2607
+ "search_config": {
2608
+ "name": "search_config",
2609
+ "type": "text",
2610
+ "primaryKey": false,
2611
+ "notNull": false
2612
+ },
2613
+ "broker_config": {
2614
+ "name": "broker_config",
2615
+ "type": "text",
2616
+ "primaryKey": false,
2617
+ "notNull": false
2618
+ },
2619
+ "email_password_enabled": {
2620
+ "name": "email_password_enabled",
2621
+ "type": "boolean",
2622
+ "primaryKey": false,
2623
+ "notNull": true,
2624
+ "default": true
2625
+ },
2626
+ "sso_auto_provision": {
2627
+ "name": "sso_auto_provision",
2628
+ "type": "boolean",
2629
+ "primaryKey": false,
2630
+ "notNull": true,
2631
+ "default": false
2632
+ }
2633
+ },
2634
+ "indexes": {},
2635
+ "foreignKeys": {
2636
+ "instance_settings_storage_backend_id_storage_backends_id_fk": {
2637
+ "name": "instance_settings_storage_backend_id_storage_backends_id_fk",
2638
+ "tableFrom": "instance_settings",
2639
+ "tableTo": "storage_backends",
2640
+ "columnsFrom": [
2641
+ "storage_backend_id"
2642
+ ],
2643
+ "columnsTo": [
2644
+ "id"
2645
+ ],
2646
+ "onDelete": "no action",
2647
+ "onUpdate": "no action"
2648
+ }
2649
+ },
2650
+ "compositePrimaryKeys": {},
2651
+ "uniqueConstraints": {},
2652
+ "policies": {},
2653
+ "checkConstraints": {},
2654
+ "isRLSEnabled": false
2655
+ },
2656
+ "public.label_colors": {
2657
+ "name": "label_colors",
2658
+ "schema": "",
2659
+ "columns": {
2660
+ "value": {
2661
+ "name": "value",
2662
+ "type": "text",
2663
+ "primaryKey": true,
2664
+ "notNull": true
2665
+ },
2666
+ "created_by": {
2667
+ "name": "created_by",
2668
+ "type": "text",
2669
+ "primaryKey": false,
2670
+ "notNull": false
2671
+ },
2672
+ "created_at": {
2673
+ "name": "created_at",
2674
+ "type": "timestamp with time zone",
2675
+ "primaryKey": false,
2676
+ "notNull": true,
2677
+ "default": "now()"
2678
+ }
2679
+ },
2680
+ "indexes": {},
2681
+ "foreignKeys": {
2682
+ "label_colors_created_by_user_id_fk": {
2683
+ "name": "label_colors_created_by_user_id_fk",
2684
+ "tableFrom": "label_colors",
2685
+ "tableTo": "user",
2686
+ "columnsFrom": [
2687
+ "created_by"
2688
+ ],
2689
+ "columnsTo": [
2690
+ "id"
2691
+ ],
2692
+ "onDelete": "set null",
2693
+ "onUpdate": "no action"
2694
+ }
2695
+ },
2696
+ "compositePrimaryKeys": {},
2697
+ "uniqueConstraints": {},
2698
+ "policies": {},
2699
+ "checkConstraints": {},
2700
+ "isRLSEnabled": false
2701
+ },
2702
+ "public.project_members": {
2703
+ "name": "project_members",
2704
+ "schema": "",
2705
+ "columns": {
2706
+ "project_id": {
2707
+ "name": "project_id",
2708
+ "type": "uuid",
2709
+ "primaryKey": false,
2710
+ "notNull": true
2711
+ },
2712
+ "user_id": {
2713
+ "name": "user_id",
2714
+ "type": "text",
2715
+ "primaryKey": false,
2716
+ "notNull": true
2717
+ },
2718
+ "role": {
2719
+ "name": "role",
2720
+ "type": "text",
2721
+ "primaryKey": false,
2722
+ "notNull": true
2723
+ }
2724
+ },
2725
+ "indexes": {
2726
+ "member_user": {
2727
+ "name": "member_user",
2728
+ "columns": [
2729
+ {
2730
+ "expression": "user_id",
2731
+ "isExpression": false,
2732
+ "asc": true,
2733
+ "nulls": "last"
2734
+ }
2735
+ ],
2736
+ "isUnique": false,
2737
+ "concurrently": false,
2738
+ "method": "btree",
2739
+ "with": {}
2740
+ }
2741
+ },
2742
+ "foreignKeys": {
2743
+ "project_members_project_id_projects_id_fk": {
2744
+ "name": "project_members_project_id_projects_id_fk",
2745
+ "tableFrom": "project_members",
2746
+ "tableTo": "projects",
2747
+ "columnsFrom": [
2748
+ "project_id"
2749
+ ],
2750
+ "columnsTo": [
2751
+ "id"
2752
+ ],
2753
+ "onDelete": "cascade",
2754
+ "onUpdate": "no action"
2755
+ },
2756
+ "project_members_user_id_user_id_fk": {
2757
+ "name": "project_members_user_id_user_id_fk",
2758
+ "tableFrom": "project_members",
2759
+ "tableTo": "user",
2760
+ "columnsFrom": [
2761
+ "user_id"
2762
+ ],
2763
+ "columnsTo": [
2764
+ "id"
2765
+ ],
2766
+ "onDelete": "cascade",
2767
+ "onUpdate": "no action"
2768
+ }
2769
+ },
2770
+ "compositePrimaryKeys": {
2771
+ "project_members_project_id_user_id_pk": {
2772
+ "name": "project_members_project_id_user_id_pk",
2773
+ "columns": [
2774
+ "project_id",
2775
+ "user_id"
2776
+ ]
2777
+ }
2778
+ },
2779
+ "uniqueConstraints": {},
2780
+ "policies": {},
2781
+ "checkConstraints": {},
2782
+ "isRLSEnabled": false
2783
+ },
2784
+ "public.notification_preferences": {
2785
+ "name": "notification_preferences",
2786
+ "schema": "",
2787
+ "columns": {
2788
+ "user_id": {
2789
+ "name": "user_id",
2790
+ "type": "text",
2791
+ "primaryKey": true,
2792
+ "notNull": true
2793
+ },
2794
+ "in_app": {
2795
+ "name": "in_app",
2796
+ "type": "boolean",
2797
+ "primaryKey": false,
2798
+ "notNull": true,
2799
+ "default": true
2800
+ },
2801
+ "push": {
2802
+ "name": "push",
2803
+ "type": "boolean",
2804
+ "primaryKey": false,
2805
+ "notNull": true,
2806
+ "default": false
2807
+ }
2808
+ },
2809
+ "indexes": {},
2810
+ "foreignKeys": {
2811
+ "notification_preferences_user_id_user_id_fk": {
2812
+ "name": "notification_preferences_user_id_user_id_fk",
2813
+ "tableFrom": "notification_preferences",
2814
+ "tableTo": "user",
2815
+ "columnsFrom": [
2816
+ "user_id"
2817
+ ],
2818
+ "columnsTo": [
2819
+ "id"
2820
+ ],
2821
+ "onDelete": "cascade",
2822
+ "onUpdate": "no action"
2823
+ }
2824
+ },
2825
+ "compositePrimaryKeys": {},
2826
+ "uniqueConstraints": {},
2827
+ "policies": {},
2828
+ "checkConstraints": {},
2829
+ "isRLSEnabled": false
2830
+ },
2831
+ "public.notifications": {
2832
+ "name": "notifications",
2833
+ "schema": "",
2834
+ "columns": {
2835
+ "id": {
2836
+ "name": "id",
2837
+ "type": "uuid",
2838
+ "primaryKey": true,
2839
+ "notNull": true,
2840
+ "default": "gen_random_uuid()"
2841
+ },
2842
+ "user_id": {
2843
+ "name": "user_id",
2844
+ "type": "text",
2845
+ "primaryKey": false,
2846
+ "notNull": true
2847
+ },
2848
+ "project_id": {
2849
+ "name": "project_id",
2850
+ "type": "uuid",
2851
+ "primaryKey": false,
2852
+ "notNull": true
2853
+ },
2854
+ "event_id": {
2855
+ "name": "event_id",
2856
+ "type": "bigint",
2857
+ "primaryKey": false,
2858
+ "notNull": true
2859
+ },
2860
+ "read_at": {
2861
+ "name": "read_at",
2862
+ "type": "timestamp with time zone",
2863
+ "primaryKey": false,
2864
+ "notNull": false
2865
+ },
2866
+ "dismissed_at": {
2867
+ "name": "dismissed_at",
2868
+ "type": "timestamp with time zone",
2869
+ "primaryKey": false,
2870
+ "notNull": false
2871
+ },
2872
+ "inbox": {
2873
+ "name": "inbox",
2874
+ "type": "boolean",
2875
+ "primaryKey": false,
2876
+ "notNull": true,
2877
+ "default": true
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
+ "notifications_user_id_user_id_fk": {
2890
+ "name": "notifications_user_id_user_id_fk",
2891
+ "tableFrom": "notifications",
2892
+ "tableTo": "user",
2893
+ "columnsFrom": [
2894
+ "user_id"
2895
+ ],
2896
+ "columnsTo": [
2897
+ "id"
2898
+ ],
2899
+ "onDelete": "cascade",
2900
+ "onUpdate": "no action"
2901
+ },
2902
+ "notifications_project_id_projects_id_fk": {
2903
+ "name": "notifications_project_id_projects_id_fk",
2904
+ "tableFrom": "notifications",
2905
+ "tableTo": "projects",
2906
+ "columnsFrom": [
2907
+ "project_id"
2908
+ ],
2909
+ "columnsTo": [
2910
+ "id"
2911
+ ],
2912
+ "onDelete": "cascade",
2913
+ "onUpdate": "no action"
2914
+ }
2915
+ },
2916
+ "compositePrimaryKeys": {},
2917
+ "uniqueConstraints": {},
2918
+ "policies": {},
2919
+ "checkConstraints": {},
2920
+ "isRLSEnabled": false
2921
+ },
2922
+ "public.profile_photos": {
2923
+ "name": "profile_photos",
2924
+ "schema": "",
2925
+ "columns": {
2926
+ "user_id": {
2927
+ "name": "user_id",
2928
+ "type": "text",
2929
+ "primaryKey": true,
2930
+ "notNull": true
2931
+ },
2932
+ "object_id": {
2933
+ "name": "object_id",
2934
+ "type": "uuid",
2935
+ "primaryKey": false,
2936
+ "notNull": true
2937
+ }
2938
+ },
2939
+ "indexes": {},
2940
+ "foreignKeys": {
2941
+ "profile_photos_user_id_user_id_fk": {
2942
+ "name": "profile_photos_user_id_user_id_fk",
2943
+ "tableFrom": "profile_photos",
2944
+ "tableTo": "user",
2945
+ "columnsFrom": [
2946
+ "user_id"
2947
+ ],
2948
+ "columnsTo": [
2949
+ "id"
2950
+ ],
2951
+ "onDelete": "cascade",
2952
+ "onUpdate": "no action"
2953
+ },
2954
+ "profile_photos_object_id_blob_objects_id_fk": {
2955
+ "name": "profile_photos_object_id_blob_objects_id_fk",
2956
+ "tableFrom": "profile_photos",
2957
+ "tableTo": "blob_objects",
2958
+ "columnsFrom": [
2959
+ "object_id"
2960
+ ],
2961
+ "columnsTo": [
2962
+ "id"
2963
+ ],
2964
+ "onDelete": "no action",
2965
+ "onUpdate": "no action"
2966
+ }
2967
+ },
2968
+ "compositePrimaryKeys": {},
2969
+ "uniqueConstraints": {},
2970
+ "policies": {},
2971
+ "checkConstraints": {},
2972
+ "isRLSEnabled": false
2973
+ },
2974
+ "public.project_labels": {
2975
+ "name": "project_labels",
2976
+ "schema": "",
2977
+ "columns": {
2978
+ "id": {
2979
+ "name": "id",
2980
+ "type": "uuid",
2981
+ "primaryKey": true,
2982
+ "notNull": true,
2983
+ "default": "gen_random_uuid()"
2984
+ },
2985
+ "project_id": {
2986
+ "name": "project_id",
2987
+ "type": "uuid",
2988
+ "primaryKey": false,
2989
+ "notNull": true
2990
+ },
2991
+ "name": {
2992
+ "name": "name",
2993
+ "type": "text",
2994
+ "primaryKey": false,
2995
+ "notNull": true
2996
+ },
2997
+ "color": {
2998
+ "name": "color",
2999
+ "type": "text",
3000
+ "primaryKey": false,
3001
+ "notNull": true,
3002
+ "default": "'gray'"
3003
+ },
3004
+ "version": {
3005
+ "name": "version",
3006
+ "type": "integer",
3007
+ "primaryKey": false,
3008
+ "notNull": true,
3009
+ "default": 1
3010
+ }
3011
+ },
3012
+ "indexes": {},
3013
+ "foreignKeys": {
3014
+ "project_labels_project_id_projects_id_fk": {
3015
+ "name": "project_labels_project_id_projects_id_fk",
3016
+ "tableFrom": "project_labels",
3017
+ "tableTo": "projects",
3018
+ "columnsFrom": [
3019
+ "project_id"
3020
+ ],
3021
+ "columnsTo": [
3022
+ "id"
3023
+ ],
3024
+ "onDelete": "cascade",
3025
+ "onUpdate": "no action"
3026
+ }
3027
+ },
3028
+ "compositePrimaryKeys": {},
3029
+ "uniqueConstraints": {
3030
+ "project_label_name": {
3031
+ "name": "project_label_name",
3032
+ "nullsNotDistinct": false,
3033
+ "columns": [
3034
+ "project_id",
3035
+ "name"
3036
+ ]
3037
+ }
3038
+ },
3039
+ "policies": {},
3040
+ "checkConstraints": {},
3041
+ "isRLSEnabled": false
3042
+ },
3043
+ "public.projects": {
3044
+ "name": "projects",
3045
+ "schema": "",
3046
+ "columns": {
3047
+ "icon_name": {
3048
+ "name": "icon_name",
3049
+ "type": "text",
3050
+ "primaryKey": false,
3051
+ "notNull": false
3052
+ },
3053
+ "icon_color": {
3054
+ "name": "icon_color",
3055
+ "type": "text",
3056
+ "primaryKey": false,
3057
+ "notNull": true,
3058
+ "default": "'default'"
3059
+ },
3060
+ "image": {
3061
+ "name": "image",
3062
+ "type": "text",
3063
+ "primaryKey": false,
3064
+ "notNull": false
3065
+ },
3066
+ "icon_object_id": {
3067
+ "name": "icon_object_id",
3068
+ "type": "uuid",
3069
+ "primaryKey": false,
3070
+ "notNull": false
3071
+ },
3072
+ "workspace_id": {
3073
+ "name": "workspace_id",
3074
+ "type": "uuid",
3075
+ "primaryKey": false,
3076
+ "notNull": true
3077
+ },
3078
+ "visibility": {
3079
+ "name": "visibility",
3080
+ "type": "text",
3081
+ "primaryKey": false,
3082
+ "notNull": true,
3083
+ "default": "'private'"
3084
+ },
3085
+ "id": {
3086
+ "name": "id",
3087
+ "type": "uuid",
3088
+ "primaryKey": true,
3089
+ "notNull": true,
3090
+ "default": "gen_random_uuid()"
3091
+ },
3092
+ "key": {
3093
+ "name": "key",
3094
+ "type": "text",
3095
+ "primaryKey": false,
3096
+ "notNull": true
3097
+ },
3098
+ "name": {
3099
+ "name": "name",
3100
+ "type": "text",
3101
+ "primaryKey": false,
3102
+ "notNull": true
3103
+ },
3104
+ "description": {
3105
+ "name": "description",
3106
+ "type": "text",
3107
+ "primaryKey": false,
3108
+ "notNull": true,
3109
+ "default": "''"
3110
+ },
3111
+ "next_number": {
3112
+ "name": "next_number",
3113
+ "type": "integer",
3114
+ "primaryKey": false,
3115
+ "notNull": true,
3116
+ "default": 1
3117
+ },
3118
+ "version": {
3119
+ "name": "version",
3120
+ "type": "integer",
3121
+ "primaryKey": false,
3122
+ "notNull": true,
3123
+ "default": 1
3124
+ },
3125
+ "created_at": {
3126
+ "name": "created_at",
3127
+ "type": "timestamp with time zone",
3128
+ "primaryKey": false,
3129
+ "notNull": true,
3130
+ "default": "now()"
3131
+ },
3132
+ "updated_at": {
3133
+ "name": "updated_at",
3134
+ "type": "timestamp with time zone",
3135
+ "primaryKey": false,
3136
+ "notNull": true,
3137
+ "default": "now()"
3138
+ }
3139
+ },
3140
+ "indexes": {
3141
+ "project_workspace": {
3142
+ "name": "project_workspace",
3143
+ "columns": [
3144
+ {
3145
+ "expression": "workspace_id",
3146
+ "isExpression": false,
3147
+ "asc": true,
3148
+ "nulls": "last"
3149
+ }
3150
+ ],
3151
+ "isUnique": false,
3152
+ "concurrently": false,
3153
+ "method": "btree",
3154
+ "with": {}
3155
+ }
3156
+ },
3157
+ "foreignKeys": {
3158
+ "projects_icon_object_id_blob_objects_id_fk": {
3159
+ "name": "projects_icon_object_id_blob_objects_id_fk",
3160
+ "tableFrom": "projects",
3161
+ "tableTo": "blob_objects",
3162
+ "columnsFrom": [
3163
+ "icon_object_id"
3164
+ ],
3165
+ "columnsTo": [
3166
+ "id"
3167
+ ],
3168
+ "onDelete": "no action",
3169
+ "onUpdate": "no action"
3170
+ },
3171
+ "projects_workspace_id_workspaces_id_fk": {
3172
+ "name": "projects_workspace_id_workspaces_id_fk",
3173
+ "tableFrom": "projects",
3174
+ "tableTo": "workspaces",
3175
+ "columnsFrom": [
3176
+ "workspace_id"
3177
+ ],
3178
+ "columnsTo": [
3179
+ "id"
3180
+ ],
3181
+ "onDelete": "no action",
3182
+ "onUpdate": "no action"
3183
+ }
3184
+ },
3185
+ "compositePrimaryKeys": {},
3186
+ "uniqueConstraints": {
3187
+ "projects_key_unique": {
3188
+ "name": "projects_key_unique",
3189
+ "nullsNotDistinct": false,
3190
+ "columns": [
3191
+ "key"
3192
+ ]
3193
+ }
3194
+ },
3195
+ "policies": {},
3196
+ "checkConstraints": {},
3197
+ "isRLSEnabled": false
3198
+ },
3199
+ "public.push_deliveries": {
3200
+ "name": "push_deliveries",
3201
+ "schema": "",
3202
+ "columns": {
3203
+ "id": {
3204
+ "name": "id",
3205
+ "type": "uuid",
3206
+ "primaryKey": true,
3207
+ "notNull": true,
3208
+ "default": "gen_random_uuid()"
3209
+ },
3210
+ "notification_id": {
3211
+ "name": "notification_id",
3212
+ "type": "uuid",
3213
+ "primaryKey": false,
3214
+ "notNull": true
3215
+ },
3216
+ "device_id": {
3217
+ "name": "device_id",
3218
+ "type": "uuid",
3219
+ "primaryKey": false,
3220
+ "notNull": true
3221
+ },
3222
+ "attempts": {
3223
+ "name": "attempts",
3224
+ "type": "integer",
3225
+ "primaryKey": false,
3226
+ "notNull": true,
3227
+ "default": 0
3228
+ },
3229
+ "available_at": {
3230
+ "name": "available_at",
3231
+ "type": "timestamp with time zone",
3232
+ "primaryKey": false,
3233
+ "notNull": true,
3234
+ "default": "now()"
3235
+ },
3236
+ "receipt_id": {
3237
+ "name": "receipt_id",
3238
+ "type": "text",
3239
+ "primaryKey": false,
3240
+ "notNull": false
3241
+ },
3242
+ "finished_at": {
3243
+ "name": "finished_at",
3244
+ "type": "timestamp with time zone",
3245
+ "primaryKey": false,
3246
+ "notNull": false
3247
+ },
3248
+ "error": {
3249
+ "name": "error",
3250
+ "type": "text",
3251
+ "primaryKey": false,
3252
+ "notNull": false
3253
+ }
3254
+ },
3255
+ "indexes": {
3256
+ "push_pending_idx": {
3257
+ "name": "push_pending_idx",
3258
+ "columns": [
3259
+ {
3260
+ "expression": "finished_at",
3261
+ "isExpression": false,
3262
+ "asc": true,
3263
+ "nulls": "last"
3264
+ },
3265
+ {
3266
+ "expression": "available_at",
3267
+ "isExpression": false,
3268
+ "asc": true,
3269
+ "nulls": "last"
3270
+ }
3271
+ ],
3272
+ "isUnique": false,
3273
+ "concurrently": false,
3274
+ "method": "btree",
3275
+ "with": {}
3276
+ }
3277
+ },
3278
+ "foreignKeys": {
3279
+ "push_deliveries_notification_id_notifications_id_fk": {
3280
+ "name": "push_deliveries_notification_id_notifications_id_fk",
3281
+ "tableFrom": "push_deliveries",
3282
+ "tableTo": "notifications",
3283
+ "columnsFrom": [
3284
+ "notification_id"
3285
+ ],
3286
+ "columnsTo": [
3287
+ "id"
3288
+ ],
3289
+ "onDelete": "cascade",
3290
+ "onUpdate": "no action"
3291
+ },
3292
+ "push_deliveries_device_id_push_devices_id_fk": {
3293
+ "name": "push_deliveries_device_id_push_devices_id_fk",
3294
+ "tableFrom": "push_deliveries",
3295
+ "tableTo": "push_devices",
3296
+ "columnsFrom": [
3297
+ "device_id"
3298
+ ],
3299
+ "columnsTo": [
3300
+ "id"
3301
+ ],
3302
+ "onDelete": "cascade",
3303
+ "onUpdate": "no action"
3304
+ }
3305
+ },
3306
+ "compositePrimaryKeys": {},
3307
+ "uniqueConstraints": {
3308
+ "push_deliveries_notification_id_device_id_unique": {
3309
+ "name": "push_deliveries_notification_id_device_id_unique",
3310
+ "nullsNotDistinct": false,
3311
+ "columns": [
3312
+ "notification_id",
3313
+ "device_id"
3314
+ ]
3315
+ }
3316
+ },
3317
+ "policies": {},
3318
+ "checkConstraints": {},
3319
+ "isRLSEnabled": false
3320
+ },
3321
+ "public.push_devices": {
3322
+ "name": "push_devices",
3323
+ "schema": "",
3324
+ "columns": {
3325
+ "id": {
3326
+ "name": "id",
3327
+ "type": "uuid",
3328
+ "primaryKey": true,
3329
+ "notNull": true,
3330
+ "default": "gen_random_uuid()"
3331
+ },
3332
+ "user_id": {
3333
+ "name": "user_id",
3334
+ "type": "text",
3335
+ "primaryKey": false,
3336
+ "notNull": true
3337
+ },
3338
+ "session_id": {
3339
+ "name": "session_id",
3340
+ "type": "text",
3341
+ "primaryKey": false,
3342
+ "notNull": true
3343
+ },
3344
+ "token": {
3345
+ "name": "token",
3346
+ "type": "text",
3347
+ "primaryKey": false,
3348
+ "notNull": true
3349
+ },
3350
+ "created_at": {
3351
+ "name": "created_at",
3352
+ "type": "timestamp with time zone",
3353
+ "primaryKey": false,
3354
+ "notNull": true,
3355
+ "default": "now()"
3356
+ }
3357
+ },
3358
+ "indexes": {},
3359
+ "foreignKeys": {
3360
+ "push_devices_user_id_user_id_fk": {
3361
+ "name": "push_devices_user_id_user_id_fk",
3362
+ "tableFrom": "push_devices",
3363
+ "tableTo": "user",
3364
+ "columnsFrom": [
3365
+ "user_id"
3366
+ ],
3367
+ "columnsTo": [
3368
+ "id"
3369
+ ],
3370
+ "onDelete": "cascade",
3371
+ "onUpdate": "no action"
3372
+ },
3373
+ "push_devices_session_id_session_id_fk": {
3374
+ "name": "push_devices_session_id_session_id_fk",
3375
+ "tableFrom": "push_devices",
3376
+ "tableTo": "session",
3377
+ "columnsFrom": [
3378
+ "session_id"
3379
+ ],
3380
+ "columnsTo": [
3381
+ "id"
3382
+ ],
3383
+ "onDelete": "cascade",
3384
+ "onUpdate": "no action"
3385
+ }
3386
+ },
3387
+ "compositePrimaryKeys": {},
3388
+ "uniqueConstraints": {
3389
+ "push_devices_token_unique": {
3390
+ "name": "push_devices_token_unique",
3391
+ "nullsNotDistinct": false,
3392
+ "columns": [
3393
+ "token"
3394
+ ]
3395
+ }
3396
+ },
3397
+ "policies": {},
3398
+ "checkConstraints": {},
3399
+ "isRLSEnabled": false
3400
+ },
3401
+ "public.mutation_receipts": {
3402
+ "name": "mutation_receipts",
3403
+ "schema": "",
3404
+ "columns": {
3405
+ "actor_id": {
3406
+ "name": "actor_id",
3407
+ "type": "text",
3408
+ "primaryKey": false,
3409
+ "notNull": true
3410
+ },
3411
+ "request_id": {
3412
+ "name": "request_id",
3413
+ "type": "uuid",
3414
+ "primaryKey": false,
3415
+ "notNull": true
3416
+ },
3417
+ "operation": {
3418
+ "name": "operation",
3419
+ "type": "text",
3420
+ "primaryKey": false,
3421
+ "notNull": true
3422
+ },
3423
+ "hash": {
3424
+ "name": "hash",
3425
+ "type": "text",
3426
+ "primaryKey": false,
3427
+ "notNull": true
3428
+ },
3429
+ "result": {
3430
+ "name": "result",
3431
+ "type": "jsonb",
3432
+ "primaryKey": false,
3433
+ "notNull": true
3434
+ },
3435
+ "created_at": {
3436
+ "name": "created_at",
3437
+ "type": "timestamp with time zone",
3438
+ "primaryKey": false,
3439
+ "notNull": true,
3440
+ "default": "now()"
3441
+ }
3442
+ },
3443
+ "indexes": {},
3444
+ "foreignKeys": {
3445
+ "mutation_receipts_actor_id_user_id_fk": {
3446
+ "name": "mutation_receipts_actor_id_user_id_fk",
3447
+ "tableFrom": "mutation_receipts",
3448
+ "tableTo": "user",
3449
+ "columnsFrom": [
3450
+ "actor_id"
3451
+ ],
3452
+ "columnsTo": [
3453
+ "id"
3454
+ ],
3455
+ "onDelete": "no action",
3456
+ "onUpdate": "no action"
3457
+ }
3458
+ },
3459
+ "compositePrimaryKeys": {
3460
+ "mutation_receipts_actor_id_request_id_pk": {
3461
+ "name": "mutation_receipts_actor_id_request_id_pk",
3462
+ "columns": [
3463
+ "actor_id",
3464
+ "request_id"
3465
+ ]
3466
+ }
3467
+ },
3468
+ "uniqueConstraints": {},
3469
+ "policies": {},
3470
+ "checkConstraints": {},
3471
+ "isRLSEnabled": false
3472
+ },
3473
+ "public.ticket_relations": {
3474
+ "name": "ticket_relations",
3475
+ "schema": "",
3476
+ "columns": {
3477
+ "id": {
3478
+ "name": "id",
3479
+ "type": "uuid",
3480
+ "primaryKey": true,
3481
+ "notNull": true,
3482
+ "default": "gen_random_uuid()"
3483
+ },
3484
+ "project_id": {
3485
+ "name": "project_id",
3486
+ "type": "uuid",
3487
+ "primaryKey": false,
3488
+ "notNull": true
3489
+ },
3490
+ "source_id": {
3491
+ "name": "source_id",
3492
+ "type": "uuid",
3493
+ "primaryKey": false,
3494
+ "notNull": true
3495
+ },
3496
+ "target_id": {
3497
+ "name": "target_id",
3498
+ "type": "uuid",
3499
+ "primaryKey": false,
3500
+ "notNull": true
3501
+ },
3502
+ "type": {
3503
+ "name": "type",
3504
+ "type": "text",
3505
+ "primaryKey": false,
3506
+ "notNull": true
3507
+ }
3508
+ },
3509
+ "indexes": {
3510
+ "relation_target": {
3511
+ "name": "relation_target",
3512
+ "columns": [
3513
+ {
3514
+ "expression": "target_id",
3515
+ "isExpression": false,
3516
+ "asc": true,
3517
+ "nulls": "last"
3518
+ }
3519
+ ],
3520
+ "isUnique": false,
3521
+ "concurrently": false,
3522
+ "method": "btree",
3523
+ "with": {}
3524
+ }
3525
+ },
3526
+ "foreignKeys": {
3527
+ "ticket_relations_project_id_projects_id_fk": {
3528
+ "name": "ticket_relations_project_id_projects_id_fk",
3529
+ "tableFrom": "ticket_relations",
3530
+ "tableTo": "projects",
3531
+ "columnsFrom": [
3532
+ "project_id"
3533
+ ],
3534
+ "columnsTo": [
3535
+ "id"
3536
+ ],
3537
+ "onDelete": "cascade",
3538
+ "onUpdate": "no action"
3539
+ },
3540
+ "ticket_relations_source_id_tickets_id_fk": {
3541
+ "name": "ticket_relations_source_id_tickets_id_fk",
3542
+ "tableFrom": "ticket_relations",
3543
+ "tableTo": "tickets",
3544
+ "columnsFrom": [
3545
+ "source_id"
3546
+ ],
3547
+ "columnsTo": [
3548
+ "id"
3549
+ ],
3550
+ "onDelete": "cascade",
3551
+ "onUpdate": "no action"
3552
+ },
3553
+ "ticket_relations_target_id_tickets_id_fk": {
3554
+ "name": "ticket_relations_target_id_tickets_id_fk",
3555
+ "tableFrom": "ticket_relations",
3556
+ "tableTo": "tickets",
3557
+ "columnsFrom": [
3558
+ "target_id"
3559
+ ],
3560
+ "columnsTo": [
3561
+ "id"
3562
+ ],
3563
+ "onDelete": "cascade",
3564
+ "onUpdate": "no action"
3565
+ }
3566
+ },
3567
+ "compositePrimaryKeys": {},
3568
+ "uniqueConstraints": {
3569
+ "ticket_relation_edge": {
3570
+ "name": "ticket_relation_edge",
3571
+ "nullsNotDistinct": false,
3572
+ "columns": [
3573
+ "source_id",
3574
+ "target_id",
3575
+ "type"
3576
+ ]
3577
+ }
3578
+ },
3579
+ "policies": {},
3580
+ "checkConstraints": {},
3581
+ "isRLSEnabled": false
3582
+ },
3583
+ "public.search_state": {
3584
+ "name": "search_state",
3585
+ "schema": "",
3586
+ "columns": {
3587
+ "id": {
3588
+ "name": "id",
3589
+ "type": "integer",
3590
+ "primaryKey": true,
3591
+ "notNull": true,
3592
+ "default": 1
3593
+ },
3594
+ "config_hash": {
3595
+ "name": "config_hash",
3596
+ "type": "text",
3597
+ "primaryKey": false,
3598
+ "notNull": true,
3599
+ "default": "''"
3600
+ },
3601
+ "cursor": {
3602
+ "name": "cursor",
3603
+ "type": "bigint",
3604
+ "primaryKey": false,
3605
+ "notNull": true,
3606
+ "default": "0"
3607
+ },
3608
+ "error": {
3609
+ "name": "error",
3610
+ "type": "text",
3611
+ "primaryKey": false,
3612
+ "notNull": false
3613
+ }
3614
+ },
3615
+ "indexes": {},
3616
+ "foreignKeys": {},
3617
+ "compositePrimaryKeys": {},
3618
+ "uniqueConstraints": {},
3619
+ "policies": {},
3620
+ "checkConstraints": {},
3621
+ "isRLSEnabled": false
3622
+ },
3623
+ "public.storage_backends": {
3624
+ "name": "storage_backends",
3625
+ "schema": "",
3626
+ "columns": {
3627
+ "id": {
3628
+ "name": "id",
3629
+ "type": "uuid",
3630
+ "primaryKey": true,
3631
+ "notNull": true,
3632
+ "default": "gen_random_uuid()"
3633
+ },
3634
+ "identity": {
3635
+ "name": "identity",
3636
+ "type": "text",
3637
+ "primaryKey": false,
3638
+ "notNull": true
3639
+ },
3640
+ "config": {
3641
+ "name": "config",
3642
+ "type": "text",
3643
+ "primaryKey": false,
3644
+ "notNull": true
3645
+ },
3646
+ "created_at": {
3647
+ "name": "created_at",
3648
+ "type": "timestamp with time zone",
3649
+ "primaryKey": false,
3650
+ "notNull": true,
3651
+ "default": "now()"
3652
+ }
3653
+ },
3654
+ "indexes": {},
3655
+ "foreignKeys": {},
3656
+ "compositePrimaryKeys": {},
3657
+ "uniqueConstraints": {
3658
+ "storage_backends_identity_unique": {
3659
+ "name": "storage_backends_identity_unique",
3660
+ "nullsNotDistinct": false,
3661
+ "columns": [
3662
+ "identity"
3663
+ ]
3664
+ }
3665
+ },
3666
+ "policies": {},
3667
+ "checkConstraints": {},
3668
+ "isRLSEnabled": false
3669
+ },
3670
+ "public.subscriptions": {
3671
+ "name": "subscriptions",
3672
+ "schema": "",
3673
+ "columns": {
3674
+ "project_id": {
3675
+ "name": "project_id",
3676
+ "type": "uuid",
3677
+ "primaryKey": false,
3678
+ "notNull": true
3679
+ },
3680
+ "ticket_id": {
3681
+ "name": "ticket_id",
3682
+ "type": "uuid",
3683
+ "primaryKey": false,
3684
+ "notNull": true
3685
+ },
3686
+ "user_id": {
3687
+ "name": "user_id",
3688
+ "type": "text",
3689
+ "primaryKey": false,
3690
+ "notNull": true
3691
+ }
3692
+ },
3693
+ "indexes": {},
3694
+ "foreignKeys": {
3695
+ "subscriptions_project_id_projects_id_fk": {
3696
+ "name": "subscriptions_project_id_projects_id_fk",
3697
+ "tableFrom": "subscriptions",
3698
+ "tableTo": "projects",
3699
+ "columnsFrom": [
3700
+ "project_id"
3701
+ ],
3702
+ "columnsTo": [
3703
+ "id"
3704
+ ],
3705
+ "onDelete": "cascade",
3706
+ "onUpdate": "no action"
3707
+ },
3708
+ "subscriptions_ticket_id_tickets_id_fk": {
3709
+ "name": "subscriptions_ticket_id_tickets_id_fk",
3710
+ "tableFrom": "subscriptions",
3711
+ "tableTo": "tickets",
3712
+ "columnsFrom": [
3713
+ "ticket_id"
3714
+ ],
3715
+ "columnsTo": [
3716
+ "id"
3717
+ ],
3718
+ "onDelete": "cascade",
3719
+ "onUpdate": "no action"
3720
+ },
3721
+ "subscriptions_user_id_user_id_fk": {
3722
+ "name": "subscriptions_user_id_user_id_fk",
3723
+ "tableFrom": "subscriptions",
3724
+ "tableTo": "user",
3725
+ "columnsFrom": [
3726
+ "user_id"
3727
+ ],
3728
+ "columnsTo": [
3729
+ "id"
3730
+ ],
3731
+ "onDelete": "cascade",
3732
+ "onUpdate": "no action"
3733
+ }
3734
+ },
3735
+ "compositePrimaryKeys": {
3736
+ "subscriptions_ticket_id_user_id_pk": {
3737
+ "name": "subscriptions_ticket_id_user_id_pk",
3738
+ "columns": [
3739
+ "ticket_id",
3740
+ "user_id"
3741
+ ]
3742
+ }
3743
+ },
3744
+ "uniqueConstraints": {},
3745
+ "policies": {},
3746
+ "checkConstraints": {},
3747
+ "isRLSEnabled": false
3748
+ },
3749
+ "public.tickets": {
3750
+ "name": "tickets",
3751
+ "schema": "",
3752
+ "columns": {
3753
+ "id": {
3754
+ "name": "id",
3755
+ "type": "uuid",
3756
+ "primaryKey": true,
3757
+ "notNull": true,
3758
+ "default": "gen_random_uuid()"
3759
+ },
3760
+ "project_id": {
3761
+ "name": "project_id",
3762
+ "type": "uuid",
3763
+ "primaryKey": false,
3764
+ "notNull": true
3765
+ },
3766
+ "key": {
3767
+ "name": "key",
3768
+ "type": "text",
3769
+ "primaryKey": false,
3770
+ "notNull": true
3771
+ },
3772
+ "number": {
3773
+ "name": "number",
3774
+ "type": "integer",
3775
+ "primaryKey": false,
3776
+ "notNull": true
3777
+ },
3778
+ "title": {
3779
+ "name": "title",
3780
+ "type": "text",
3781
+ "primaryKey": false,
3782
+ "notNull": true
3783
+ },
3784
+ "description": {
3785
+ "name": "description",
3786
+ "type": "text",
3787
+ "primaryKey": false,
3788
+ "notNull": true,
3789
+ "default": "''"
3790
+ },
3791
+ "acceptance_criteria": {
3792
+ "name": "acceptance_criteria",
3793
+ "type": "text",
3794
+ "primaryKey": false,
3795
+ "notNull": true,
3796
+ "default": "''"
3797
+ },
3798
+ "status": {
3799
+ "name": "status",
3800
+ "type": "text",
3801
+ "primaryKey": false,
3802
+ "notNull": true,
3803
+ "default": "'todo'"
3804
+ },
3805
+ "priority": {
3806
+ "name": "priority",
3807
+ "type": "text",
3808
+ "primaryKey": false,
3809
+ "notNull": true,
3810
+ "default": "'medium'"
3811
+ },
3812
+ "kind": {
3813
+ "name": "kind",
3814
+ "type": "text",
3815
+ "primaryKey": false,
3816
+ "notNull": true,
3817
+ "default": "'feature'"
3818
+ },
3819
+ "difficulty": {
3820
+ "name": "difficulty",
3821
+ "type": "text",
3822
+ "primaryKey": false,
3823
+ "notNull": false
3824
+ },
3825
+ "labels": {
3826
+ "name": "labels",
3827
+ "type": "text[]",
3828
+ "primaryKey": false,
3829
+ "notNull": true,
3830
+ "default": "'{}'"
3831
+ },
3832
+ "scopes": {
3833
+ "name": "scopes",
3834
+ "type": "text[]",
3835
+ "primaryKey": false,
3836
+ "notNull": true,
3837
+ "default": "'{}'"
3838
+ },
3839
+ "assignee_id": {
3840
+ "name": "assignee_id",
3841
+ "type": "text",
3842
+ "primaryKey": false,
3843
+ "notNull": false
3844
+ },
3845
+ "parent_id": {
3846
+ "name": "parent_id",
3847
+ "type": "uuid",
3848
+ "primaryKey": false,
3849
+ "notNull": false
3850
+ },
3851
+ "automation_ready": {
3852
+ "name": "automation_ready",
3853
+ "type": "boolean",
3854
+ "primaryKey": false,
3855
+ "notNull": true,
3856
+ "default": false
3857
+ },
3858
+ "claim_required": {
3859
+ "name": "claim_required",
3860
+ "type": "boolean",
3861
+ "primaryKey": false,
3862
+ "notNull": true,
3863
+ "default": false
3864
+ },
3865
+ "hold_reason": {
3866
+ "name": "hold_reason",
3867
+ "type": "text",
3868
+ "primaryKey": false,
3869
+ "notNull": false
3870
+ },
3871
+ "due_at": {
3872
+ "name": "due_at",
3873
+ "type": "timestamp with time zone",
3874
+ "primaryKey": false,
3875
+ "notNull": false
3876
+ },
3877
+ "archived": {
3878
+ "name": "archived",
3879
+ "type": "boolean",
3880
+ "primaryKey": false,
3881
+ "notNull": true,
3882
+ "default": false
3883
+ },
3884
+ "created_by": {
3885
+ "name": "created_by",
3886
+ "type": "text",
3887
+ "primaryKey": false,
3888
+ "notNull": true
3889
+ },
3890
+ "version": {
3891
+ "name": "version",
3892
+ "type": "integer",
3893
+ "primaryKey": false,
3894
+ "notNull": true,
3895
+ "default": 1
3896
+ },
3897
+ "created_at": {
3898
+ "name": "created_at",
3899
+ "type": "timestamp with time zone",
3900
+ "primaryKey": false,
3901
+ "notNull": true,
3902
+ "default": "now()"
3903
+ },
3904
+ "updated_at": {
3905
+ "name": "updated_at",
3906
+ "type": "timestamp with time zone",
3907
+ "primaryKey": false,
3908
+ "notNull": true,
3909
+ "default": "now()"
3910
+ }
3911
+ },
3912
+ "indexes": {
3913
+ "ticket_project_status": {
3914
+ "name": "ticket_project_status",
3915
+ "columns": [
3916
+ {
3917
+ "expression": "project_id",
3918
+ "isExpression": false,
3919
+ "asc": true,
3920
+ "nulls": "last"
3921
+ },
3922
+ {
3923
+ "expression": "status",
3924
+ "isExpression": false,
3925
+ "asc": true,
3926
+ "nulls": "last"
3927
+ }
3928
+ ],
3929
+ "isUnique": false,
3930
+ "concurrently": false,
3931
+ "method": "btree",
3932
+ "with": {}
3933
+ },
3934
+ "ticket_parent": {
3935
+ "name": "ticket_parent",
3936
+ "columns": [
3937
+ {
3938
+ "expression": "parent_id",
3939
+ "isExpression": false,
3940
+ "asc": true,
3941
+ "nulls": "last"
3942
+ }
3943
+ ],
3944
+ "isUnique": false,
3945
+ "concurrently": false,
3946
+ "method": "btree",
3947
+ "with": {}
3948
+ }
3949
+ },
3950
+ "foreignKeys": {
3951
+ "tickets_project_id_projects_id_fk": {
3952
+ "name": "tickets_project_id_projects_id_fk",
3953
+ "tableFrom": "tickets",
3954
+ "tableTo": "projects",
3955
+ "columnsFrom": [
3956
+ "project_id"
3957
+ ],
3958
+ "columnsTo": [
3959
+ "id"
3960
+ ],
3961
+ "onDelete": "cascade",
3962
+ "onUpdate": "no action"
3963
+ },
3964
+ "tickets_assignee_id_user_id_fk": {
3965
+ "name": "tickets_assignee_id_user_id_fk",
3966
+ "tableFrom": "tickets",
3967
+ "tableTo": "user",
3968
+ "columnsFrom": [
3969
+ "assignee_id"
3970
+ ],
3971
+ "columnsTo": [
3972
+ "id"
3973
+ ],
3974
+ "onDelete": "set null",
3975
+ "onUpdate": "no action"
3976
+ },
3977
+ "tickets_created_by_user_id_fk": {
3978
+ "name": "tickets_created_by_user_id_fk",
3979
+ "tableFrom": "tickets",
3980
+ "tableTo": "user",
3981
+ "columnsFrom": [
3982
+ "created_by"
3983
+ ],
3984
+ "columnsTo": [
3985
+ "id"
3986
+ ],
3987
+ "onDelete": "no action",
3988
+ "onUpdate": "no action"
3989
+ }
3990
+ },
3991
+ "compositePrimaryKeys": {},
3992
+ "uniqueConstraints": {
3993
+ "tickets_key_unique": {
3994
+ "name": "tickets_key_unique",
3995
+ "nullsNotDistinct": false,
3996
+ "columns": [
3997
+ "key"
3998
+ ]
3999
+ },
4000
+ "ticket_project_number": {
4001
+ "name": "ticket_project_number",
4002
+ "nullsNotDistinct": false,
4003
+ "columns": [
4004
+ "project_id",
4005
+ "number"
4006
+ ]
4007
+ }
4008
+ },
4009
+ "policies": {},
4010
+ "checkConstraints": {},
4011
+ "isRLSEnabled": false
4012
+ },
4013
+ "public.saved_views": {
4014
+ "name": "saved_views",
4015
+ "schema": "",
4016
+ "columns": {
4017
+ "id": {
4018
+ "name": "id",
4019
+ "type": "uuid",
4020
+ "primaryKey": true,
4021
+ "notNull": true,
4022
+ "default": "gen_random_uuid()"
4023
+ },
4024
+ "project_id": {
4025
+ "name": "project_id",
4026
+ "type": "uuid",
4027
+ "primaryKey": false,
4028
+ "notNull": true
4029
+ },
4030
+ "user_id": {
4031
+ "name": "user_id",
4032
+ "type": "text",
4033
+ "primaryKey": false,
4034
+ "notNull": true
4035
+ },
4036
+ "name": {
4037
+ "name": "name",
4038
+ "type": "text",
4039
+ "primaryKey": false,
4040
+ "notNull": true
4041
+ },
4042
+ "filters": {
4043
+ "name": "filters",
4044
+ "type": "jsonb",
4045
+ "primaryKey": false,
4046
+ "notNull": true
4047
+ }
4048
+ },
4049
+ "indexes": {},
4050
+ "foreignKeys": {
4051
+ "saved_views_project_id_projects_id_fk": {
4052
+ "name": "saved_views_project_id_projects_id_fk",
4053
+ "tableFrom": "saved_views",
4054
+ "tableTo": "projects",
4055
+ "columnsFrom": [
4056
+ "project_id"
4057
+ ],
4058
+ "columnsTo": [
4059
+ "id"
4060
+ ],
4061
+ "onDelete": "cascade",
4062
+ "onUpdate": "no action"
4063
+ },
4064
+ "saved_views_user_id_user_id_fk": {
4065
+ "name": "saved_views_user_id_user_id_fk",
4066
+ "tableFrom": "saved_views",
4067
+ "tableTo": "user",
4068
+ "columnsFrom": [
4069
+ "user_id"
4070
+ ],
4071
+ "columnsTo": [
4072
+ "id"
4073
+ ],
4074
+ "onDelete": "cascade",
4075
+ "onUpdate": "no action"
4076
+ }
4077
+ },
4078
+ "compositePrimaryKeys": {},
4079
+ "uniqueConstraints": {},
4080
+ "policies": {},
4081
+ "checkConstraints": {},
4082
+ "isRLSEnabled": false
4083
+ },
4084
+ "public.workspace_members": {
4085
+ "name": "workspace_members",
4086
+ "schema": "",
4087
+ "columns": {
4088
+ "workspace_id": {
4089
+ "name": "workspace_id",
4090
+ "type": "uuid",
4091
+ "primaryKey": false,
4092
+ "notNull": true
4093
+ },
4094
+ "user_id": {
4095
+ "name": "user_id",
4096
+ "type": "text",
4097
+ "primaryKey": false,
4098
+ "notNull": true
4099
+ },
4100
+ "role": {
4101
+ "name": "role",
4102
+ "type": "text",
4103
+ "primaryKey": false,
4104
+ "notNull": true
4105
+ }
4106
+ },
4107
+ "indexes": {
4108
+ "workspace_member_user": {
4109
+ "name": "workspace_member_user",
4110
+ "columns": [
4111
+ {
4112
+ "expression": "user_id",
4113
+ "isExpression": false,
4114
+ "asc": true,
4115
+ "nulls": "last"
4116
+ }
4117
+ ],
4118
+ "isUnique": false,
4119
+ "concurrently": false,
4120
+ "method": "btree",
4121
+ "with": {}
4122
+ }
4123
+ },
4124
+ "foreignKeys": {
4125
+ "workspace_members_workspace_id_workspaces_id_fk": {
4126
+ "name": "workspace_members_workspace_id_workspaces_id_fk",
4127
+ "tableFrom": "workspace_members",
4128
+ "tableTo": "workspaces",
4129
+ "columnsFrom": [
4130
+ "workspace_id"
4131
+ ],
4132
+ "columnsTo": [
4133
+ "id"
4134
+ ],
4135
+ "onDelete": "cascade",
4136
+ "onUpdate": "no action"
4137
+ },
4138
+ "workspace_members_user_id_user_id_fk": {
4139
+ "name": "workspace_members_user_id_user_id_fk",
4140
+ "tableFrom": "workspace_members",
4141
+ "tableTo": "user",
4142
+ "columnsFrom": [
4143
+ "user_id"
4144
+ ],
4145
+ "columnsTo": [
4146
+ "id"
4147
+ ],
4148
+ "onDelete": "cascade",
4149
+ "onUpdate": "no action"
4150
+ }
4151
+ },
4152
+ "compositePrimaryKeys": {
4153
+ "workspace_members_workspace_id_user_id_pk": {
4154
+ "name": "workspace_members_workspace_id_user_id_pk",
4155
+ "columns": [
4156
+ "workspace_id",
4157
+ "user_id"
4158
+ ]
4159
+ }
4160
+ },
4161
+ "uniqueConstraints": {},
4162
+ "policies": {},
4163
+ "checkConstraints": {},
4164
+ "isRLSEnabled": false
4165
+ },
4166
+ "public.workspaces": {
4167
+ "name": "workspaces",
4168
+ "schema": "",
4169
+ "columns": {
4170
+ "id": {
4171
+ "name": "id",
4172
+ "type": "uuid",
4173
+ "primaryKey": true,
4174
+ "notNull": true,
4175
+ "default": "gen_random_uuid()"
4176
+ },
4177
+ "slug": {
4178
+ "name": "slug",
4179
+ "type": "text",
4180
+ "primaryKey": false,
4181
+ "notNull": true
4182
+ },
4183
+ "name": {
4184
+ "name": "name",
4185
+ "type": "text",
4186
+ "primaryKey": false,
4187
+ "notNull": true
4188
+ },
4189
+ "description": {
4190
+ "name": "description",
4191
+ "type": "text",
4192
+ "primaryKey": false,
4193
+ "notNull": true,
4194
+ "default": "''"
4195
+ },
4196
+ "version": {
4197
+ "name": "version",
4198
+ "type": "integer",
4199
+ "primaryKey": false,
4200
+ "notNull": true,
4201
+ "default": 1
4202
+ },
4203
+ "created_at": {
4204
+ "name": "created_at",
4205
+ "type": "timestamp with time zone",
4206
+ "primaryKey": false,
4207
+ "notNull": true,
4208
+ "default": "now()"
4209
+ },
4210
+ "updated_at": {
4211
+ "name": "updated_at",
4212
+ "type": "timestamp with time zone",
4213
+ "primaryKey": false,
4214
+ "notNull": true,
4215
+ "default": "now()"
4216
+ }
4217
+ },
4218
+ "indexes": {},
4219
+ "foreignKeys": {},
4220
+ "compositePrimaryKeys": {},
4221
+ "uniqueConstraints": {
4222
+ "workspaces_slug_unique": {
4223
+ "name": "workspaces_slug_unique",
4224
+ "nullsNotDistinct": false,
4225
+ "columns": [
4226
+ "slug"
4227
+ ]
4228
+ }
4229
+ },
4230
+ "policies": {},
4231
+ "checkConstraints": {},
4232
+ "isRLSEnabled": false
4233
+ }
4234
+ },
4235
+ "enums": {},
4236
+ "schemas": {},
4237
+ "sequences": {},
4238
+ "roles": {},
4239
+ "policies": {},
4240
+ "views": {},
4241
+ "_meta": {
4242
+ "columns": {},
4243
+ "schemas": {},
4244
+ "tables": {}
4245
+ }
4246
+ }