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