create-mithaq 0.0.0-stage → 0.2.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 (396) hide show
  1. package/LICENSE +22 -0
  2. package/LICENSES/openstatus-time-picker.txt +21 -0
  3. package/LICENSES/payload.txt +22 -0
  4. package/LICENSES/ponytail.txt +21 -0
  5. package/index.js +521 -0
  6. package/package.json +19 -4
  7. package/template/apps/asas-backoffice/components.json +25 -0
  8. package/template/apps/asas-backoffice/gitignore +3 -0
  9. package/template/apps/asas-backoffice/package.json +57 -0
  10. package/template/apps/asas-backoffice/public/favicon.svg +1 -0
  11. package/template/apps/asas-backoffice/src/api.ts +147 -0
  12. package/template/apps/asas-backoffice/src/auth-frame.tsx +150 -0
  13. package/template/apps/asas-backoffice/src/components/ui/accordion.tsx +74 -0
  14. package/template/apps/asas-backoffice/src/components/ui/alert-dialog.tsx +185 -0
  15. package/template/apps/asas-backoffice/src/components/ui/avatar.tsx +106 -0
  16. package/template/apps/asas-backoffice/src/components/ui/badge.tsx +48 -0
  17. package/template/apps/asas-backoffice/src/components/ui/breadcrumb.tsx +124 -0
  18. package/template/apps/asas-backoffice/src/components/ui/button-group.tsx +87 -0
  19. package/template/apps/asas-backoffice/src/components/ui/button.tsx +55 -0
  20. package/template/apps/asas-backoffice/src/components/ui/calendar.tsx +223 -0
  21. package/template/apps/asas-backoffice/src/components/ui/card.tsx +102 -0
  22. package/template/apps/asas-backoffice/src/components/ui/chart.tsx +371 -0
  23. package/template/apps/asas-backoffice/src/components/ui/checkbox.tsx +28 -0
  24. package/template/apps/asas-backoffice/src/components/ui/collapsible.tsx +19 -0
  25. package/template/apps/asas-backoffice/src/components/ui/combobox.tsx +308 -0
  26. package/template/apps/asas-backoffice/src/components/ui/dialog.tsx +158 -0
  27. package/template/apps/asas-backoffice/src/components/ui/direction.tsx +6 -0
  28. package/template/apps/asas-backoffice/src/components/ui/directional-icon.tsx +20 -0
  29. package/template/apps/asas-backoffice/src/components/ui/dropdown-menu.tsx +267 -0
  30. package/template/apps/asas-backoffice/src/components/ui/field.tsx +236 -0
  31. package/template/apps/asas-backoffice/src/components/ui/input-group.tsx +155 -0
  32. package/template/apps/asas-backoffice/src/components/ui/input-otp.tsx +84 -0
  33. package/template/apps/asas-backoffice/src/components/ui/input.tsx +19 -0
  34. package/template/apps/asas-backoffice/src/components/ui/label.tsx +19 -0
  35. package/template/apps/asas-backoffice/src/components/ui/popover.tsx +90 -0
  36. package/template/apps/asas-backoffice/src/components/ui/radio-group.tsx +37 -0
  37. package/template/apps/asas-backoffice/src/components/ui/resizable.tsx +47 -0
  38. package/template/apps/asas-backoffice/src/components/ui/scroll-area.tsx +54 -0
  39. package/template/apps/asas-backoffice/src/components/ui/select.tsx +204 -0
  40. package/template/apps/asas-backoffice/src/components/ui/separator.tsx +24 -0
  41. package/template/apps/asas-backoffice/src/components/ui/sheet.tsx +139 -0
  42. package/template/apps/asas-backoffice/src/components/ui/sidebar.tsx +714 -0
  43. package/template/apps/asas-backoffice/src/components/ui/skeleton.tsx +13 -0
  44. package/template/apps/asas-backoffice/src/components/ui/slider.tsx +55 -0
  45. package/template/apps/asas-backoffice/src/components/ui/spinner.tsx +10 -0
  46. package/template/apps/asas-backoffice/src/components/ui/switch.tsx +29 -0
  47. package/template/apps/asas-backoffice/src/components/ui/table.tsx +115 -0
  48. package/template/apps/asas-backoffice/src/components/ui/tabs.tsx +79 -0
  49. package/template/apps/asas-backoffice/src/components/ui/textarea.tsx +17 -0
  50. package/template/apps/asas-backoffice/src/components/ui/toggle-group.tsx +89 -0
  51. package/template/apps/asas-backoffice/src/components/ui/toggle.tsx +44 -0
  52. package/template/apps/asas-backoffice/src/components/ui/tooltip.tsx +63 -0
  53. package/template/apps/asas-backoffice/src/components.ts +35 -0
  54. package/template/apps/asas-backoffice/src/copy.ts +1 -0
  55. package/template/apps/asas-backoffice/src/first-user.ts +14 -0
  56. package/template/apps/asas-backoffice/src/hooks/use-mobile.ts +19 -0
  57. package/template/apps/asas-backoffice/src/lib/utils.ts +1 -0
  58. package/template/apps/asas-backoffice/src/links.ts +38 -0
  59. package/template/apps/asas-backoffice/src/locale-switch.tsx +28 -0
  60. package/template/apps/asas-backoffice/src/no-organization.tsx +5 -0
  61. package/template/apps/asas-backoffice/src/redirect.ts +1 -0
  62. package/template/apps/asas-backoffice/src/request-headers.ts +11 -0
  63. package/template/apps/asas-backoffice/src/routeTree.gen.ts +206 -0
  64. package/template/apps/asas-backoffice/src/router.tsx +18 -0
  65. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice/files.ts +10 -0
  66. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice/screen.json +3971 -0
  67. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice/types.ts +163 -0
  68. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice.$.tsx +17 -0
  69. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice.index.tsx +10 -0
  70. package/template/apps/asas-backoffice/src/routes/(screens)/backoffice.tsx +13 -0
  71. package/template/apps/asas-backoffice/src/routes/__root.tsx +95 -0
  72. package/template/apps/asas-backoffice/src/routes/api/$.ts +34 -0
  73. package/template/apps/asas-backoffice/src/routes/auth.create-first-user.tsx +113 -0
  74. package/template/apps/asas-backoffice/src/routes/auth.sign-in.tsx +77 -0
  75. package/template/apps/asas-backoffice/src/routes/unauthorized.tsx +134 -0
  76. package/template/apps/asas-backoffice/src/screen-form.tsx +36 -0
  77. package/template/apps/asas-backoffice/src/screen-list.tsx +140 -0
  78. package/template/apps/asas-backoffice/src/screen-names.ts +10 -0
  79. package/template/apps/asas-backoffice/src/screens.tsx +888 -0
  80. package/template/apps/asas-backoffice/src/server.ts +30 -0
  81. package/template/apps/asas-backoffice/src/slide.ts +22 -0
  82. package/template/apps/asas-backoffice/src/start.ts +42 -0
  83. package/template/apps/asas-backoffice/src/styles.css +202 -0
  84. package/template/apps/asas-backoffice/src/theme.ts +2 -0
  85. package/template/apps/asas-backoffice/tsconfig.json +19 -0
  86. package/template/apps/asas-backoffice/vite.config.ts +32 -0
  87. package/template/apps/asas-tanstack/components.json +25 -0
  88. package/template/apps/asas-tanstack/gitignore +3 -0
  89. package/template/apps/asas-tanstack/package.json +58 -0
  90. package/template/apps/asas-tanstack/public/favicon.svg +1 -0
  91. package/template/apps/asas-tanstack/src/api.ts +147 -0
  92. package/template/apps/asas-tanstack/src/auth-frame.tsx +150 -0
  93. package/template/apps/asas-tanstack/src/choose-password.tsx +150 -0
  94. package/template/apps/asas-tanstack/src/components/ui/accordion.tsx +10 -0
  95. package/template/apps/asas-tanstack/src/components/ui/alert-dialog.tsx +173 -0
  96. package/template/apps/asas-tanstack/src/components/ui/avatar.tsx +104 -0
  97. package/template/apps/asas-tanstack/src/components/ui/badge.tsx +48 -0
  98. package/template/apps/asas-tanstack/src/components/ui/breadcrumb.tsx +125 -0
  99. package/template/apps/asas-tanstack/src/components/ui/button-group.tsx +87 -0
  100. package/template/apps/asas-tanstack/src/components/ui/button.tsx +56 -0
  101. package/template/apps/asas-tanstack/src/components/ui/calendar.tsx +223 -0
  102. package/template/apps/asas-tanstack/src/components/ui/card.tsx +94 -0
  103. package/template/apps/asas-tanstack/src/components/ui/chart.tsx +369 -0
  104. package/template/apps/asas-tanstack/src/components/ui/checkbox.tsx +27 -0
  105. package/template/apps/asas-tanstack/src/components/ui/collapsible.tsx +19 -0
  106. package/template/apps/asas-tanstack/src/components/ui/combobox.tsx +300 -0
  107. package/template/apps/asas-tanstack/src/components/ui/dialog.tsx +149 -0
  108. package/template/apps/asas-tanstack/src/components/ui/direction.tsx +5 -0
  109. package/template/apps/asas-tanstack/src/components/ui/directional-icon.tsx +20 -0
  110. package/template/apps/asas-tanstack/src/components/ui/dropdown-menu.tsx +267 -0
  111. package/template/apps/asas-tanstack/src/components/ui/field.tsx +225 -0
  112. package/template/apps/asas-tanstack/src/components/ui/input-group.tsx +147 -0
  113. package/template/apps/asas-tanstack/src/components/ui/input-otp.tsx +20 -0
  114. package/template/apps/asas-tanstack/src/components/ui/input.tsx +20 -0
  115. package/template/apps/asas-tanstack/src/components/ui/label.tsx +18 -0
  116. package/template/apps/asas-tanstack/src/components/ui/popover.tsx +50 -0
  117. package/template/apps/asas-tanstack/src/components/ui/radio-group.tsx +10 -0
  118. package/template/apps/asas-tanstack/src/components/ui/resizable.tsx +47 -0
  119. package/template/apps/asas-tanstack/src/components/ui/scroll-area.tsx +52 -0
  120. package/template/apps/asas-tanstack/src/components/ui/select.tsx +190 -0
  121. package/template/apps/asas-tanstack/src/components/ui/separator.tsx +23 -0
  122. package/template/apps/asas-tanstack/src/components/ui/sheet.tsx +127 -0
  123. package/template/apps/asas-tanstack/src/components/ui/sidebar.tsx +716 -0
  124. package/template/apps/asas-tanstack/src/components/ui/skeleton.tsx +13 -0
  125. package/template/apps/asas-tanstack/src/components/ui/slider.tsx +13 -0
  126. package/template/apps/asas-tanstack/src/components/ui/spinner.tsx +11 -0
  127. package/template/apps/asas-tanstack/src/components/ui/switch.tsx +8 -0
  128. package/template/apps/asas-tanstack/src/components/ui/table.tsx +119 -0
  129. package/template/apps/asas-tanstack/src/components/ui/tabs.tsx +80 -0
  130. package/template/apps/asas-tanstack/src/components/ui/textarea.tsx +18 -0
  131. package/template/apps/asas-tanstack/src/components/ui/toggle-group.tsx +8 -0
  132. package/template/apps/asas-tanstack/src/components/ui/toggle.tsx +44 -0
  133. package/template/apps/asas-tanstack/src/components/ui/tooltip.tsx +68 -0
  134. package/template/apps/asas-tanstack/src/components.ts +35 -0
  135. package/template/apps/asas-tanstack/src/copy.ts +1207 -0
  136. package/template/apps/asas-tanstack/src/first-run.ts +16 -0
  137. package/template/apps/asas-tanstack/src/hooks/use-mobile.ts +19 -0
  138. package/template/apps/asas-tanstack/src/lib/utils.ts +6 -0
  139. package/template/apps/asas-tanstack/src/links.ts +38 -0
  140. package/template/apps/asas-tanstack/src/locale-switch.tsx +28 -0
  141. package/template/apps/asas-tanstack/src/no-organization.tsx +108 -0
  142. package/template/apps/asas-tanstack/src/quiet-abort.ts +25 -0
  143. package/template/apps/asas-tanstack/src/redirect.ts +39 -0
  144. package/template/apps/asas-tanstack/src/request-headers.ts +11 -0
  145. package/template/apps/asas-tanstack/src/routeTree.gen.ts +424 -0
  146. package/template/apps/asas-tanstack/src/router.tsx +18 -0
  147. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/files.ts +11 -0
  148. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/screen.json +4242 -0
  149. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard/types.ts +160 -0
  150. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard.$.tsx +17 -0
  151. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard.index.tsx +10 -0
  152. package/template/apps/asas-tanstack/src/routes/(screens)/dashboard.tsx +13 -0
  153. package/template/apps/asas-tanstack/src/routes/(screens)/portal/files.ts +9 -0
  154. package/template/apps/asas-tanstack/src/routes/(screens)/portal/screen.json +1564 -0
  155. package/template/apps/asas-tanstack/src/routes/(screens)/portal/types.ts +94 -0
  156. package/template/apps/asas-tanstack/src/routes/(screens)/portal.$.tsx +17 -0
  157. package/template/apps/asas-tanstack/src/routes/(screens)/portal.index.tsx +10 -0
  158. package/template/apps/asas-tanstack/src/routes/(screens)/portal.tsx +13 -0
  159. package/template/apps/asas-tanstack/src/routes/__root.tsx +99 -0
  160. package/template/apps/asas-tanstack/src/routes/api/$.ts +11 -0
  161. package/template/apps/asas-tanstack/src/routes/auth.accept-invitation.tsx +108 -0
  162. package/template/apps/asas-tanstack/src/routes/auth.first-run.tsx +114 -0
  163. package/template/apps/asas-tanstack/src/routes/auth.forgot-password.tsx +94 -0
  164. package/template/apps/asas-tanstack/src/routes/auth.handoff.ts +39 -0
  165. package/template/apps/asas-tanstack/src/routes/auth.reset-password.tsx +16 -0
  166. package/template/apps/asas-tanstack/src/routes/auth.set-password.tsx +16 -0
  167. package/template/apps/asas-tanstack/src/routes/auth.sign-in.tsx +98 -0
  168. package/template/apps/asas-tanstack/src/routes/auth.sign-up.tsx +143 -0
  169. package/template/apps/asas-tanstack/src/routes/index.tsx +146 -0
  170. package/template/apps/asas-tanstack/src/routes/unauthorized.tsx +134 -0
  171. package/template/apps/asas-tanstack/src/screen-form.tsx +36 -0
  172. package/template/apps/asas-tanstack/src/screen-list.tsx +140 -0
  173. package/template/apps/asas-tanstack/src/screen-names.ts +10 -0
  174. package/template/apps/asas-tanstack/src/screens.tsx +888 -0
  175. package/template/apps/asas-tanstack/src/server.ts +26 -0
  176. package/template/apps/asas-tanstack/src/slide.ts +22 -0
  177. package/template/apps/asas-tanstack/src/start.ts +57 -0
  178. package/template/apps/asas-tanstack/src/styles.css +163 -0
  179. package/template/apps/asas-tanstack/src/theme.ts +5 -0
  180. package/template/apps/asas-tanstack/tsconfig.json +19 -0
  181. package/template/apps/asas-tanstack/vite.config.ts +34 -0
  182. package/template/package.json +16 -0
  183. package/template/templates/asas/.claude/skills/add-field/SKILL.md +27 -0
  184. package/template/templates/asas/.claude/skills/add-kayan/SKILL.md +26 -0
  185. package/template/templates/asas/.claude/skills/eject-admin-piece/SKILL.md +28 -0
  186. package/template/templates/asas/.claude/skills/upgrade-mithaq/SKILL.md +35 -0
  187. package/template/templates/asas/.env.example +33 -0
  188. package/template/templates/asas/AGENTS.md +101 -0
  189. package/template/templates/asas/CLAUDE.md +1 -0
  190. package/template/templates/asas/README.md +1056 -0
  191. package/template/templates/asas/mithaq.hints.json +25 -0
  192. package/template/templates/asas/package.json +53 -0
  193. package/template/templates/asas/src/asas.ts +118 -0
  194. package/template/templates/asas/src/backoffice-http.ts +117 -0
  195. package/template/templates/asas/src/dev-setup.ts +112 -0
  196. package/template/templates/asas/src/local-database.ts +22 -0
  197. package/template/templates/asas/src/messages/account.json +132 -0
  198. package/template/templates/asas/src/messages/auditLog.json +304 -0
  199. package/template/templates/asas/src/messages/backofficeLog.json +132 -0
  200. package/template/templates/asas/src/messages/courses.json +312 -0
  201. package/template/templates/asas/src/messages/enrollments.json +60 -0
  202. package/template/templates/asas/src/messages/invitation.json +82 -0
  203. package/template/templates/asas/src/messages/localUsers.json +48 -0
  204. package/template/templates/asas/src/messages/media.json +76 -0
  205. package/template/templates/asas/src/messages/member.json +62 -0
  206. package/template/templates/asas/src/messages/memberRoles.json +48 -0
  207. package/template/templates/asas/src/messages/mithaq.json +214 -0
  208. package/template/templates/asas/src/messages/organization.json +72 -0
  209. package/template/templates/asas/src/messages/organizationRole.json +62 -0
  210. package/template/templates/asas/src/messages/roles.json +72 -0
  211. package/template/templates/asas/src/messages/session.json +102 -0
  212. package/template/templates/asas/src/messages/sessions.json +136 -0
  213. package/template/templates/asas/src/messages/settings.json +64 -0
  214. package/template/templates/asas/src/messages/tags.json +48 -0
  215. package/template/templates/asas/src/messages/user.json +112 -0
  216. package/template/templates/asas/src/messages/verification.json +62 -0
  217. package/template/templates/asas/src/migrations/20260920080701_parched_tombstone/migration.sql +177 -0
  218. package/template/templates/asas/src/migrations/20260920080701_parched_tombstone/snapshot.json +2169 -0
  219. package/template/templates/asas/src/migrations/20260920230505_zippy_ben_urich/migration.sql +1 -0
  220. package/template/templates/asas/src/migrations/20260920230505_zippy_ben_urich/snapshot.json +2182 -0
  221. package/template/templates/asas/src/migrations/20260920231219_slim_retro_girl/migration.sql +20 -0
  222. package/template/templates/asas/src/migrations/20260920231219_slim_retro_girl/snapshot.json +2409 -0
  223. package/template/templates/asas/src/migrations/20260922082945_military_ironclad/migration.sql +15 -0
  224. package/template/templates/asas/src/migrations/20260922082945_military_ironclad/snapshot.json +2627 -0
  225. package/template/templates/asas/src/migrations/20260922112630_bitter_chat/migration.sql +5 -0
  226. package/template/templates/asas/src/migrations/20260922112630_bitter_chat/snapshot.json +2691 -0
  227. package/template/templates/asas/src/migrations/20260923235915_foamy_rachel_grey/migration.sql +8 -0
  228. package/template/templates/asas/src/migrations/20260923235915_foamy_rachel_grey/snapshot.json +2795 -0
  229. package/template/templates/asas/src/migrations/20260926145709_clean_the_initiative/migration.sql +3 -0
  230. package/template/templates/asas/src/migrations/20260926145709_clean_the_initiative/snapshot.json +2834 -0
  231. package/template/templates/asas/src/migrations/20260927212525_bent_prowler/migration.sql +9 -0
  232. package/template/templates/asas/src/migrations/20260927212525_bent_prowler/snapshot.json +2870 -0
  233. package/template/templates/asas/src/migrations/20260927223441_tranquil_bromley/migration.sql +1 -0
  234. package/template/templates/asas/src/migrations/20260927223441_tranquil_bromley/snapshot.json +2881 -0
  235. package/template/templates/asas/src/migrations/20260928030047_outgoing_wraith/migration.sql +15 -0
  236. package/template/templates/asas/src/migrations/20260928030047_outgoing_wraith/snapshot.json +3073 -0
  237. package/template/templates/asas/src/migrations/20260929024407_grey_morlun/migration.sql +21 -0
  238. package/template/templates/asas/src/migrations/20260929024407_grey_morlun/snapshot.json +3098 -0
  239. package/template/templates/asas/src/migrations/20260929130530_bored_jackal/migration.sql +21 -0
  240. package/template/templates/asas/src/migrations/20260929130530_bored_jackal/snapshot.json +3124 -0
  241. package/template/templates/asas/src/migrations/20260930102924_material_newton_destine/migration.sql +32 -0
  242. package/template/templates/asas/src/migrations/20260930102924_material_newton_destine/snapshot.json +3324 -0
  243. package/template/templates/asas/src/migrations/20261003022353_clumsy_taskmaster/migration.sql +2 -0
  244. package/template/templates/asas/src/migrations/20261003022353_clumsy_taskmaster/snapshot.json +3350 -0
  245. package/template/templates/asas/src/migrations/20261003143249_premium_red_shift/migration.sql +21 -0
  246. package/template/templates/asas/src/migrations/20261003143249_premium_red_shift/snapshot.json +3635 -0
  247. package/template/templates/asas/src/migrations/20261008215349_square_norrin_radd/migration.sql +8 -0
  248. package/template/templates/asas/src/migrations/20261008215349_square_norrin_radd/snapshot.json +3635 -0
  249. package/template/templates/asas/src/migrations/20261008230204_many_scarecrow/migration.sql +18 -0
  250. package/template/templates/asas/src/migrations/20261008230204_many_scarecrow/snapshot.json +3635 -0
  251. package/template/templates/asas/src/migrations/20261010005521_elite_giant_girl/migration.sql +18 -0
  252. package/template/templates/asas/src/migrations/20261010005521_elite_giant_girl/snapshot.json +3635 -0
  253. package/template/templates/asas/src/migrations/20261010120822_needy_thunderbolt/migration.sql +11 -0
  254. package/template/templates/asas/src/migrations/20261010120822_needy_thunderbolt/snapshot.json +3667 -0
  255. package/template/templates/asas/src/migrations/20261012000752_organization_ownership/migration.sql +48 -0
  256. package/template/templates/asas/src/migrations/20261012000752_organization_ownership/snapshot.json +3891 -0
  257. package/template/templates/asas/src/migrations/20261014221355_tags_restrict/migration.sql +1 -0
  258. package/template/templates/asas/src/migrations/20261014221355_tags_restrict/snapshot.json +3881 -0
  259. package/template/templates/asas/src/migrations/20261014222218_one_seat_per_session/migration.sql +1 -0
  260. package/template/templates/asas/src/migrations/20261014222218_one_seat_per_session/snapshot.json +3894 -0
  261. package/template/templates/asas/src/migrations/20261014223522_session_archive_reason/migration.sql +1 -0
  262. package/template/templates/asas/src/migrations/20261014223522_session_archive_reason/snapshot.json +3907 -0
  263. package/template/templates/asas/src/migrations/20261014225728_course_archive_by_operation/migration.sql +1 -0
  264. package/template/templates/asas/src/migrations/20261014225728_course_archive_by_operation/snapshot.json +3907 -0
  265. package/template/templates/asas/src/migrations/20261015042444_organization_names/migration.sql +1 -0
  266. package/template/templates/asas/src/migrations/20261015042444_organization_names/snapshot.json +3920 -0
  267. package/template/templates/asas/src/migrations/20261015053212_member_last_seen/migration.sql +1 -0
  268. package/template/templates/asas/src/migrations/20261015053212_member_last_seen/snapshot.json +3933 -0
  269. package/template/templates/asas/src/migrations/20261015093203_activity_and_staff_history/migration.sql +15 -0
  270. package/template/templates/asas/src/migrations/20261015093203_activity_and_staff_history/snapshot.json +4113 -0
  271. package/template/templates/asas/src/migrations/20261015095752_portal/migration.sql +2 -0
  272. package/template/templates/asas/src/migrations/20261015095752_portal/snapshot.json +4113 -0
  273. package/template/templates/asas/src/migrations/20261015135529_better_auth_indexes/migration.sql +9 -0
  274. package/template/templates/asas/src/migrations/20261015135529_better_auth_indexes/snapshot.json +4302 -0
  275. package/template/templates/asas/src/migrations/20261015162438_audit_changes_json/migration.sql +27 -0
  276. package/template/templates/asas/src/migrations/20261015162438_audit_changes_json/snapshot.json +4289 -0
  277. package/template/templates/asas/src/migrations/drizzle.config.ts +11 -0
  278. package/template/templates/asas/src/migrations/schema.ts +30 -0
  279. package/template/templates/asas/src/mithaq.ts +4 -0
  280. package/template/templates/asas/src/organizations.ts +3 -0
  281. package/template/templates/asas/src/seed.ts +427 -0
  282. package/template/templates/asas/src/ui-backoffice/home.tsx +63 -0
  283. package/template/templates/asas/src/ui-backoffice/organization-actions.tsx +121 -0
  284. package/template/templates/asas/src/ui-backoffice/record-page.tsx +30 -0
  285. package/template/templates/asas/src/ui-backoffice/role-cells.tsx +59 -0
  286. package/template/templates/asas/src/ui-backoffice/user-actions.tsx +249 -0
  287. package/template/templates/asas/src/ui-dashboard/dashboard.tsx +300 -0
  288. package/template/templates/asas/src/ui-dashboard/home.tsx +73 -0
  289. package/template/templates/asas/src/ui-dashboard/members-card.tsx +147 -0
  290. package/template/templates/asas/src/ui-dashboard/members.tsx +829 -0
  291. package/template/templates/asas/src/ui-dashboard/theme-provider.tsx +10 -0
  292. package/template/templates/asas/src/ui-dashboard/versions.tsx +446 -0
  293. package/template/templates/asas/src/ui-portal/courses-home.tsx +96 -0
  294. package/template/templates/asas/src/ui-portal/home.tsx +73 -0
  295. package/template/templates/asas/src/ui-portal/page.tsx +11 -0
  296. package/template/templates/features/audit-log/audit-log/audit-log.ts +284 -0
  297. package/template/templates/features/audit-log/backoffice-log/backoffice-log.ts +67 -0
  298. package/template/templates/features/audit-log/index.ts +4 -0
  299. package/template/templates/features/audit-log/package.json +13 -0
  300. package/template/templates/features/auth/index.ts +11 -0
  301. package/template/templates/features/auth/local-users/local-users.ts +143 -0
  302. package/template/templates/features/auth/package.json +13 -0
  303. package/template/templates/features/auth/user/account.access.ts +8 -0
  304. package/template/templates/features/auth/user/account.ts +31 -0
  305. package/template/templates/features/auth/user/index.ts +18 -0
  306. package/template/templates/features/auth/user/invitation.access.ts +4 -0
  307. package/template/templates/features/auth/user/invitation.ts +27 -0
  308. package/template/templates/features/auth/user/member.access.ts +10 -0
  309. package/template/templates/features/auth/user/member.screens.ts +37 -0
  310. package/template/templates/features/auth/user/member.ts +26 -0
  311. package/template/templates/features/auth/user/organization.access.ts +20 -0
  312. package/template/templates/features/auth/user/organization.screens.ts +37 -0
  313. package/template/templates/features/auth/user/organization.ts +25 -0
  314. package/template/templates/features/auth/user/organizationRole.access.ts +8 -0
  315. package/template/templates/features/auth/user/organizationRole.ts +25 -0
  316. package/template/templates/features/auth/user/session.access.ts +8 -0
  317. package/template/templates/features/auth/user/session.ts +28 -0
  318. package/template/templates/features/auth/user/user.access.ts +30 -0
  319. package/template/templates/features/auth/user/user.screens.ts +45 -0
  320. package/template/templates/features/auth/user/user.ts +31 -0
  321. package/template/templates/features/auth/user/verification.access.ts +8 -0
  322. package/template/templates/features/auth/user/verification.ts +23 -0
  323. package/template/templates/features/courses/courses/courses.ts +601 -0
  324. package/template/templates/features/courses/courses/cover-reads.ts +33 -0
  325. package/template/templates/features/courses/courses/ui/archived-badge.tsx +9 -0
  326. package/template/templates/features/courses/courses/ui/fee-cell.tsx +19 -0
  327. package/template/templates/features/courses/courses/ui/no-courses.tsx +13 -0
  328. package/template/templates/features/courses/courses/ui/status-cell.tsx +33 -0
  329. package/template/templates/features/courses/courses/ui/unpublish-button.tsx +15 -0
  330. package/template/templates/features/courses/domain/archive.ts +39 -0
  331. package/template/templates/features/courses/domain/on-offer.ts +6 -0
  332. package/template/templates/features/courses/enrollments/enrollments.ts +309 -0
  333. package/template/templates/features/courses/enrollments/ui/session-cell.tsx +75 -0
  334. package/template/templates/features/courses/enrollments/ui/session-labels.tsx +36 -0
  335. package/template/templates/features/courses/index.ts +8 -0
  336. package/template/templates/features/courses/package.json +24 -0
  337. package/template/templates/features/courses/portal/ui/catalogue.tsx +86 -0
  338. package/template/templates/features/courses/portal/ui/course.tsx +176 -0
  339. package/template/templates/features/courses/portal/ui/enrollments.tsx +170 -0
  340. package/template/templates/features/courses/portal/ui/parts.tsx +95 -0
  341. package/template/templates/features/courses/portal/ui/reads.ts +76 -0
  342. package/template/templates/features/courses/portal/ui/rules.ts +87 -0
  343. package/template/templates/features/courses/portal/ui/shell.tsx +194 -0
  344. package/template/templates/features/courses/sessions/seats.ts +42 -0
  345. package/template/templates/features/courses/sessions/sessions.ts +186 -0
  346. package/template/templates/features/media/index.ts +10 -0
  347. package/template/templates/features/media/media/media.ts +131 -0
  348. package/template/templates/features/media/media/ui/preview.tsx +143 -0
  349. package/template/templates/features/media/package.json +19 -0
  350. package/template/templates/features/roles/index.ts +4 -0
  351. package/template/templates/features/roles/member-roles/member-roles.ts +207 -0
  352. package/template/templates/features/roles/package.json +21 -0
  353. package/template/templates/features/roles/roles/roles.ts +184 -0
  354. package/template/templates/features/roles/roles/ui/role-form.tsx +267 -0
  355. package/template/templates/features/roles/roles/ui/roles.tsx +190 -0
  356. package/template/templates/features/settings/index.ts +3 -0
  357. package/template/templates/features/settings/package.json +13 -0
  358. package/template/templates/features/settings/settings/settings.ts +64 -0
  359. package/template/templates/features/tags/index.ts +3 -0
  360. package/template/templates/features/tags/package.json +14 -0
  361. package/template/templates/features/tags/tags/tags.ts +80 -0
  362. package/template/templates/mithaq/components.json +22 -0
  363. package/template/templates/mithaq/package.json +33 -0
  364. package/template/templates/mithaq/src/mail/index.ts +32 -0
  365. package/template/templates/mithaq/src/mail/mailers.ts +36 -0
  366. package/template/templates/mithaq/src/mithaq/audit-sink.ts +111 -0
  367. package/template/templates/mithaq/src/mithaq/auth/backoffice-roles.ts +108 -0
  368. package/template/templates/mithaq/src/mithaq/auth/index.ts +1859 -0
  369. package/template/templates/mithaq/src/mithaq/auth/organizations.ts +80 -0
  370. package/template/templates/mithaq/src/mithaq/pages.ts +83 -0
  371. package/template/templates/mithaq/src/mithaq/rich-text-nodes.ts +19 -0
  372. package/template/templates/mithaq/src/mithaq.ts +593 -0
  373. package/template/templates/mithaq/src/roles/default-member-roles.ts +29 -0
  374. package/template/templates/mithaq/src/roles/grants.ts +47 -0
  375. package/template/templates/mithaq/src/roles/member-access.ts +11 -0
  376. package/template/templates/mithaq/src/roles/statements.ts +13 -0
  377. package/template/templates/mithaq/src/roles/system-roles.ts +16 -0
  378. package/template/templates/mithaq/src/roles/tenant-access.ts +260 -0
  379. package/template/templates/mithaq/src/roles/tenant-roles.ts +321 -0
  380. package/template/templates/mithaq/src/steps/expected-updated-at.ts +41 -0
  381. package/template/templates/mithaq/src/storage/defaults.ts +156 -0
  382. package/template/templates/mithaq/src/storage/index.ts +97 -0
  383. package/template/templates/mithaq/src/storage/local.ts +143 -0
  384. package/template/templates/mithaq/src/storage/r2.ts +5 -0
  385. package/template/templates/mithaq/src/storage/s3.ts +91 -0
  386. package/template/templates/mithaq/src/storage/uploadthing.ts +59 -0
  387. package/template/templates/mithaq/src/ui/activity-page.tsx +33 -0
  388. package/template/templates/mithaq/src/ui/activity.tsx +527 -0
  389. package/template/templates/mithaq/src/ui/app-shell.tsx +268 -0
  390. package/template/templates/mithaq/src/ui/kpi-card.tsx +25 -0
  391. package/template/templates/mithaq/src/ui/record-page.tsx +50 -0
  392. package/template/templates/mithaq/src/ui/rich-text-nodes.tsx +33 -0
  393. package/template/templates/mithaq/src/ui/screen-nav.tsx +28 -0
  394. package/template/templates/mithaq/src/ui/table-page.tsx +9 -0
  395. package/template/templates/mithaq/src/ui/top-shell.tsx +60 -0
  396. package/README.md +0 -3
@@ -0,0 +1,2409 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "077c7988-639b-4a88-8fc6-20aca521e621",
5
+ "prevIds": [
6
+ "5a0b45e7-df6b-4345-af6f-83c905fab39e"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "isRlsEnabled": false,
11
+ "name": "account",
12
+ "entityType": "tables",
13
+ "schema": "public"
14
+ },
15
+ {
16
+ "isRlsEnabled": false,
17
+ "name": "courses",
18
+ "entityType": "tables",
19
+ "schema": "public"
20
+ },
21
+ {
22
+ "isRlsEnabled": false,
23
+ "name": "courses_tags",
24
+ "entityType": "tables",
25
+ "schema": "public"
26
+ },
27
+ {
28
+ "isRlsEnabled": false,
29
+ "name": "enrollments",
30
+ "entityType": "tables",
31
+ "schema": "public"
32
+ },
33
+ {
34
+ "isRlsEnabled": false,
35
+ "name": "invitation",
36
+ "entityType": "tables",
37
+ "schema": "public"
38
+ },
39
+ {
40
+ "isRlsEnabled": false,
41
+ "name": "local_users",
42
+ "entityType": "tables",
43
+ "schema": "public"
44
+ },
45
+ {
46
+ "isRlsEnabled": false,
47
+ "name": "member",
48
+ "entityType": "tables",
49
+ "schema": "public"
50
+ },
51
+ {
52
+ "isRlsEnabled": false,
53
+ "name": "organization",
54
+ "entityType": "tables",
55
+ "schema": "public"
56
+ },
57
+ {
58
+ "isRlsEnabled": false,
59
+ "name": "organization_role",
60
+ "entityType": "tables",
61
+ "schema": "public"
62
+ },
63
+ {
64
+ "isRlsEnabled": false,
65
+ "name": "roles",
66
+ "entityType": "tables",
67
+ "schema": "public"
68
+ },
69
+ {
70
+ "isRlsEnabled": false,
71
+ "name": "session",
72
+ "entityType": "tables",
73
+ "schema": "public"
74
+ },
75
+ {
76
+ "isRlsEnabled": false,
77
+ "name": "course_sessions",
78
+ "entityType": "tables",
79
+ "schema": "public"
80
+ },
81
+ {
82
+ "isRlsEnabled": false,
83
+ "name": "settings",
84
+ "entityType": "tables",
85
+ "schema": "public"
86
+ },
87
+ {
88
+ "isRlsEnabled": false,
89
+ "name": "tags",
90
+ "entityType": "tables",
91
+ "schema": "public"
92
+ },
93
+ {
94
+ "isRlsEnabled": false,
95
+ "name": "user",
96
+ "entityType": "tables",
97
+ "schema": "public"
98
+ },
99
+ {
100
+ "isRlsEnabled": false,
101
+ "name": "verification",
102
+ "entityType": "tables",
103
+ "schema": "public"
104
+ },
105
+ {
106
+ "type": "text",
107
+ "typeSchema": null,
108
+ "notNull": true,
109
+ "dimensions": 0,
110
+ "default": null,
111
+ "generated": null,
112
+ "identity": null,
113
+ "name": "id",
114
+ "entityType": "columns",
115
+ "schema": "public",
116
+ "table": "account"
117
+ },
118
+ {
119
+ "type": "text",
120
+ "typeSchema": null,
121
+ "notNull": true,
122
+ "dimensions": 0,
123
+ "default": null,
124
+ "generated": null,
125
+ "identity": null,
126
+ "name": "account_id",
127
+ "entityType": "columns",
128
+ "schema": "public",
129
+ "table": "account"
130
+ },
131
+ {
132
+ "type": "text",
133
+ "typeSchema": null,
134
+ "notNull": true,
135
+ "dimensions": 0,
136
+ "default": null,
137
+ "generated": null,
138
+ "identity": null,
139
+ "name": "provider_id",
140
+ "entityType": "columns",
141
+ "schema": "public",
142
+ "table": "account"
143
+ },
144
+ {
145
+ "type": "text",
146
+ "typeSchema": null,
147
+ "notNull": true,
148
+ "dimensions": 0,
149
+ "default": null,
150
+ "generated": null,
151
+ "identity": null,
152
+ "name": "user_id",
153
+ "entityType": "columns",
154
+ "schema": "public",
155
+ "table": "account"
156
+ },
157
+ {
158
+ "type": "text",
159
+ "typeSchema": null,
160
+ "notNull": false,
161
+ "dimensions": 0,
162
+ "default": null,
163
+ "generated": null,
164
+ "identity": null,
165
+ "name": "access_token",
166
+ "entityType": "columns",
167
+ "schema": "public",
168
+ "table": "account"
169
+ },
170
+ {
171
+ "type": "text",
172
+ "typeSchema": null,
173
+ "notNull": false,
174
+ "dimensions": 0,
175
+ "default": null,
176
+ "generated": null,
177
+ "identity": null,
178
+ "name": "refresh_token",
179
+ "entityType": "columns",
180
+ "schema": "public",
181
+ "table": "account"
182
+ },
183
+ {
184
+ "type": "text",
185
+ "typeSchema": null,
186
+ "notNull": false,
187
+ "dimensions": 0,
188
+ "default": null,
189
+ "generated": null,
190
+ "identity": null,
191
+ "name": "id_token",
192
+ "entityType": "columns",
193
+ "schema": "public",
194
+ "table": "account"
195
+ },
196
+ {
197
+ "type": "timestamp(3) with time zone",
198
+ "typeSchema": null,
199
+ "notNull": false,
200
+ "dimensions": 0,
201
+ "default": null,
202
+ "generated": null,
203
+ "identity": null,
204
+ "name": "access_token_expires_at",
205
+ "entityType": "columns",
206
+ "schema": "public",
207
+ "table": "account"
208
+ },
209
+ {
210
+ "type": "timestamp(3) with time zone",
211
+ "typeSchema": null,
212
+ "notNull": false,
213
+ "dimensions": 0,
214
+ "default": null,
215
+ "generated": null,
216
+ "identity": null,
217
+ "name": "refresh_token_expires_at",
218
+ "entityType": "columns",
219
+ "schema": "public",
220
+ "table": "account"
221
+ },
222
+ {
223
+ "type": "text",
224
+ "typeSchema": null,
225
+ "notNull": false,
226
+ "dimensions": 0,
227
+ "default": null,
228
+ "generated": null,
229
+ "identity": null,
230
+ "name": "scope",
231
+ "entityType": "columns",
232
+ "schema": "public",
233
+ "table": "account"
234
+ },
235
+ {
236
+ "type": "text",
237
+ "typeSchema": null,
238
+ "notNull": false,
239
+ "dimensions": 0,
240
+ "default": null,
241
+ "generated": null,
242
+ "identity": null,
243
+ "name": "password",
244
+ "entityType": "columns",
245
+ "schema": "public",
246
+ "table": "account"
247
+ },
248
+ {
249
+ "type": "timestamp(3) with time zone",
250
+ "typeSchema": null,
251
+ "notNull": true,
252
+ "dimensions": 0,
253
+ "default": null,
254
+ "generated": null,
255
+ "identity": null,
256
+ "name": "created_at",
257
+ "entityType": "columns",
258
+ "schema": "public",
259
+ "table": "account"
260
+ },
261
+ {
262
+ "type": "timestamp(3) with time zone",
263
+ "typeSchema": null,
264
+ "notNull": true,
265
+ "dimensions": 0,
266
+ "default": null,
267
+ "generated": null,
268
+ "identity": null,
269
+ "name": "updated_at",
270
+ "entityType": "columns",
271
+ "schema": "public",
272
+ "table": "account"
273
+ },
274
+ {
275
+ "type": "uuid",
276
+ "typeSchema": null,
277
+ "notNull": true,
278
+ "dimensions": 0,
279
+ "default": "gen_random_uuid()",
280
+ "generated": null,
281
+ "identity": null,
282
+ "name": "id",
283
+ "entityType": "columns",
284
+ "schema": "public",
285
+ "table": "courses"
286
+ },
287
+ {
288
+ "type": "varchar(120)",
289
+ "typeSchema": null,
290
+ "notNull": true,
291
+ "dimensions": 0,
292
+ "default": null,
293
+ "generated": null,
294
+ "identity": null,
295
+ "name": "title",
296
+ "entityType": "columns",
297
+ "schema": "public",
298
+ "table": "courses"
299
+ },
300
+ {
301
+ "type": "varchar(200)",
302
+ "typeSchema": null,
303
+ "notNull": false,
304
+ "dimensions": 0,
305
+ "default": null,
306
+ "generated": null,
307
+ "identity": null,
308
+ "name": "summary",
309
+ "entityType": "columns",
310
+ "schema": "public",
311
+ "table": "courses"
312
+ },
313
+ {
314
+ "type": "numeric",
315
+ "typeSchema": null,
316
+ "notNull": false,
317
+ "dimensions": 0,
318
+ "default": null,
319
+ "generated": null,
320
+ "identity": null,
321
+ "name": "fee",
322
+ "entityType": "columns",
323
+ "schema": "public",
324
+ "table": "courses"
325
+ },
326
+ {
327
+ "type": "boolean",
328
+ "typeSchema": null,
329
+ "notNull": false,
330
+ "dimensions": 0,
331
+ "default": null,
332
+ "generated": null,
333
+ "identity": null,
334
+ "name": "archived",
335
+ "entityType": "columns",
336
+ "schema": "public",
337
+ "table": "courses"
338
+ },
339
+ {
340
+ "type": "varchar(200)",
341
+ "typeSchema": null,
342
+ "notNull": false,
343
+ "dimensions": 0,
344
+ "default": null,
345
+ "generated": null,
346
+ "identity": null,
347
+ "name": "archive_reason",
348
+ "entityType": "columns",
349
+ "schema": "public",
350
+ "table": "courses"
351
+ },
352
+ {
353
+ "type": "text",
354
+ "typeSchema": null,
355
+ "notNull": false,
356
+ "dimensions": 0,
357
+ "default": null,
358
+ "generated": null,
359
+ "identity": null,
360
+ "name": "tenant_id",
361
+ "entityType": "columns",
362
+ "schema": "public",
363
+ "table": "courses"
364
+ },
365
+ {
366
+ "type": "timestamp(3) with time zone",
367
+ "typeSchema": null,
368
+ "notNull": true,
369
+ "dimensions": 0,
370
+ "default": "now()",
371
+ "generated": null,
372
+ "identity": null,
373
+ "name": "updated_at",
374
+ "entityType": "columns",
375
+ "schema": "public",
376
+ "table": "courses"
377
+ },
378
+ {
379
+ "type": "timestamp(3) with time zone",
380
+ "typeSchema": null,
381
+ "notNull": true,
382
+ "dimensions": 0,
383
+ "default": "now()",
384
+ "generated": null,
385
+ "identity": null,
386
+ "name": "created_at",
387
+ "entityType": "columns",
388
+ "schema": "public",
389
+ "table": "courses"
390
+ },
391
+ {
392
+ "type": "uuid",
393
+ "typeSchema": null,
394
+ "notNull": true,
395
+ "dimensions": 0,
396
+ "default": null,
397
+ "generated": null,
398
+ "identity": null,
399
+ "name": "parent_id",
400
+ "entityType": "columns",
401
+ "schema": "public",
402
+ "table": "courses_tags"
403
+ },
404
+ {
405
+ "type": "uuid",
406
+ "typeSchema": null,
407
+ "notNull": true,
408
+ "dimensions": 0,
409
+ "default": null,
410
+ "generated": null,
411
+ "identity": null,
412
+ "name": "target_id",
413
+ "entityType": "columns",
414
+ "schema": "public",
415
+ "table": "courses_tags"
416
+ },
417
+ {
418
+ "type": "integer",
419
+ "typeSchema": null,
420
+ "notNull": true,
421
+ "dimensions": 0,
422
+ "default": null,
423
+ "generated": null,
424
+ "identity": null,
425
+ "name": "order",
426
+ "entityType": "columns",
427
+ "schema": "public",
428
+ "table": "courses_tags"
429
+ },
430
+ {
431
+ "type": "uuid",
432
+ "typeSchema": null,
433
+ "notNull": true,
434
+ "dimensions": 0,
435
+ "default": "gen_random_uuid()",
436
+ "generated": null,
437
+ "identity": null,
438
+ "name": "id",
439
+ "entityType": "columns",
440
+ "schema": "public",
441
+ "table": "enrollments"
442
+ },
443
+ {
444
+ "type": "uuid",
445
+ "typeSchema": null,
446
+ "notNull": false,
447
+ "dimensions": 0,
448
+ "default": null,
449
+ "generated": null,
450
+ "identity": null,
451
+ "name": "session_id",
452
+ "entityType": "columns",
453
+ "schema": "public",
454
+ "table": "enrollments"
455
+ },
456
+ {
457
+ "type": "text",
458
+ "typeSchema": null,
459
+ "notNull": false,
460
+ "dimensions": 0,
461
+ "default": null,
462
+ "generated": null,
463
+ "identity": null,
464
+ "name": "student_id",
465
+ "entityType": "columns",
466
+ "schema": "public",
467
+ "table": "enrollments"
468
+ },
469
+ {
470
+ "type": "timestamp(3) with time zone",
471
+ "typeSchema": null,
472
+ "notNull": false,
473
+ "dimensions": 0,
474
+ "default": null,
475
+ "generated": null,
476
+ "identity": null,
477
+ "name": "deleted_at",
478
+ "entityType": "columns",
479
+ "schema": "public",
480
+ "table": "enrollments"
481
+ },
482
+ {
483
+ "type": "text",
484
+ "typeSchema": null,
485
+ "notNull": false,
486
+ "dimensions": 0,
487
+ "default": null,
488
+ "generated": null,
489
+ "identity": null,
490
+ "name": "tenant_id",
491
+ "entityType": "columns",
492
+ "schema": "public",
493
+ "table": "enrollments"
494
+ },
495
+ {
496
+ "type": "timestamp(3) with time zone",
497
+ "typeSchema": null,
498
+ "notNull": true,
499
+ "dimensions": 0,
500
+ "default": "now()",
501
+ "generated": null,
502
+ "identity": null,
503
+ "name": "updated_at",
504
+ "entityType": "columns",
505
+ "schema": "public",
506
+ "table": "enrollments"
507
+ },
508
+ {
509
+ "type": "timestamp(3) with time zone",
510
+ "typeSchema": null,
511
+ "notNull": true,
512
+ "dimensions": 0,
513
+ "default": "now()",
514
+ "generated": null,
515
+ "identity": null,
516
+ "name": "created_at",
517
+ "entityType": "columns",
518
+ "schema": "public",
519
+ "table": "enrollments"
520
+ },
521
+ {
522
+ "type": "text",
523
+ "typeSchema": null,
524
+ "notNull": true,
525
+ "dimensions": 0,
526
+ "default": null,
527
+ "generated": null,
528
+ "identity": null,
529
+ "name": "id",
530
+ "entityType": "columns",
531
+ "schema": "public",
532
+ "table": "invitation"
533
+ },
534
+ {
535
+ "type": "text",
536
+ "typeSchema": null,
537
+ "notNull": true,
538
+ "dimensions": 0,
539
+ "default": null,
540
+ "generated": null,
541
+ "identity": null,
542
+ "name": "organization_id",
543
+ "entityType": "columns",
544
+ "schema": "public",
545
+ "table": "invitation"
546
+ },
547
+ {
548
+ "type": "text",
549
+ "typeSchema": null,
550
+ "notNull": true,
551
+ "dimensions": 0,
552
+ "default": null,
553
+ "generated": null,
554
+ "identity": null,
555
+ "name": "email",
556
+ "entityType": "columns",
557
+ "schema": "public",
558
+ "table": "invitation"
559
+ },
560
+ {
561
+ "type": "text",
562
+ "typeSchema": null,
563
+ "notNull": false,
564
+ "dimensions": 0,
565
+ "default": null,
566
+ "generated": null,
567
+ "identity": null,
568
+ "name": "role",
569
+ "entityType": "columns",
570
+ "schema": "public",
571
+ "table": "invitation"
572
+ },
573
+ {
574
+ "type": "text",
575
+ "typeSchema": null,
576
+ "notNull": true,
577
+ "dimensions": 0,
578
+ "default": null,
579
+ "generated": null,
580
+ "identity": null,
581
+ "name": "status",
582
+ "entityType": "columns",
583
+ "schema": "public",
584
+ "table": "invitation"
585
+ },
586
+ {
587
+ "type": "timestamp(3) with time zone",
588
+ "typeSchema": null,
589
+ "notNull": true,
590
+ "dimensions": 0,
591
+ "default": null,
592
+ "generated": null,
593
+ "identity": null,
594
+ "name": "expires_at",
595
+ "entityType": "columns",
596
+ "schema": "public",
597
+ "table": "invitation"
598
+ },
599
+ {
600
+ "type": "timestamp(3) with time zone",
601
+ "typeSchema": null,
602
+ "notNull": true,
603
+ "dimensions": 0,
604
+ "default": null,
605
+ "generated": null,
606
+ "identity": null,
607
+ "name": "created_at",
608
+ "entityType": "columns",
609
+ "schema": "public",
610
+ "table": "invitation"
611
+ },
612
+ {
613
+ "type": "text",
614
+ "typeSchema": null,
615
+ "notNull": true,
616
+ "dimensions": 0,
617
+ "default": null,
618
+ "generated": null,
619
+ "identity": null,
620
+ "name": "inviter_id",
621
+ "entityType": "columns",
622
+ "schema": "public",
623
+ "table": "invitation"
624
+ },
625
+ {
626
+ "type": "timestamp(3) with time zone",
627
+ "typeSchema": null,
628
+ "notNull": true,
629
+ "dimensions": 0,
630
+ "default": "now()",
631
+ "generated": null,
632
+ "identity": null,
633
+ "name": "updated_at",
634
+ "entityType": "columns",
635
+ "schema": "public",
636
+ "table": "invitation"
637
+ },
638
+ {
639
+ "type": "uuid",
640
+ "typeSchema": null,
641
+ "notNull": true,
642
+ "dimensions": 0,
643
+ "default": "gen_random_uuid()",
644
+ "generated": null,
645
+ "identity": null,
646
+ "name": "id",
647
+ "entityType": "columns",
648
+ "schema": "public",
649
+ "table": "local_users"
650
+ },
651
+ {
652
+ "type": "text",
653
+ "typeSchema": null,
654
+ "notNull": true,
655
+ "dimensions": 0,
656
+ "default": null,
657
+ "generated": null,
658
+ "identity": null,
659
+ "name": "email",
660
+ "entityType": "columns",
661
+ "schema": "public",
662
+ "table": "local_users"
663
+ },
664
+ {
665
+ "type": "text",
666
+ "typeSchema": null,
667
+ "notNull": true,
668
+ "dimensions": 0,
669
+ "default": null,
670
+ "generated": null,
671
+ "identity": null,
672
+ "name": "hash",
673
+ "entityType": "columns",
674
+ "schema": "public",
675
+ "table": "local_users"
676
+ },
677
+ {
678
+ "type": "text",
679
+ "typeSchema": null,
680
+ "notNull": true,
681
+ "dimensions": 0,
682
+ "default": null,
683
+ "generated": null,
684
+ "identity": null,
685
+ "name": "salt",
686
+ "entityType": "columns",
687
+ "schema": "public",
688
+ "table": "local_users"
689
+ },
690
+ {
691
+ "type": "text",
692
+ "typeSchema": null,
693
+ "notNull": false,
694
+ "dimensions": 0,
695
+ "default": null,
696
+ "generated": null,
697
+ "identity": null,
698
+ "name": "sessions",
699
+ "entityType": "columns",
700
+ "schema": "public",
701
+ "table": "local_users"
702
+ },
703
+ {
704
+ "type": "numeric",
705
+ "typeSchema": null,
706
+ "notNull": false,
707
+ "dimensions": 0,
708
+ "default": "'0'",
709
+ "generated": null,
710
+ "identity": null,
711
+ "name": "login_attempts",
712
+ "entityType": "columns",
713
+ "schema": "public",
714
+ "table": "local_users"
715
+ },
716
+ {
717
+ "type": "timestamp(3) with time zone",
718
+ "typeSchema": null,
719
+ "notNull": false,
720
+ "dimensions": 0,
721
+ "default": null,
722
+ "generated": null,
723
+ "identity": null,
724
+ "name": "lock_until",
725
+ "entityType": "columns",
726
+ "schema": "public",
727
+ "table": "local_users"
728
+ },
729
+ {
730
+ "type": "text",
731
+ "typeSchema": null,
732
+ "notNull": false,
733
+ "dimensions": 0,
734
+ "default": null,
735
+ "generated": null,
736
+ "identity": null,
737
+ "name": "reset_password_token",
738
+ "entityType": "columns",
739
+ "schema": "public",
740
+ "table": "local_users"
741
+ },
742
+ {
743
+ "type": "timestamp(3) with time zone",
744
+ "typeSchema": null,
745
+ "notNull": false,
746
+ "dimensions": 0,
747
+ "default": null,
748
+ "generated": null,
749
+ "identity": null,
750
+ "name": "reset_password_expiration",
751
+ "entityType": "columns",
752
+ "schema": "public",
753
+ "table": "local_users"
754
+ },
755
+ {
756
+ "type": "boolean",
757
+ "typeSchema": null,
758
+ "notNull": false,
759
+ "dimensions": 0,
760
+ "default": "false",
761
+ "generated": null,
762
+ "identity": null,
763
+ "name": "_verified",
764
+ "entityType": "columns",
765
+ "schema": "public",
766
+ "table": "local_users"
767
+ },
768
+ {
769
+ "type": "text",
770
+ "typeSchema": null,
771
+ "notNull": false,
772
+ "dimensions": 0,
773
+ "default": null,
774
+ "generated": null,
775
+ "identity": null,
776
+ "name": "_verification_token",
777
+ "entityType": "columns",
778
+ "schema": "public",
779
+ "table": "local_users"
780
+ },
781
+ {
782
+ "type": "timestamp(3) with time zone",
783
+ "typeSchema": null,
784
+ "notNull": true,
785
+ "dimensions": 0,
786
+ "default": "now()",
787
+ "generated": null,
788
+ "identity": null,
789
+ "name": "updated_at",
790
+ "entityType": "columns",
791
+ "schema": "public",
792
+ "table": "local_users"
793
+ },
794
+ {
795
+ "type": "timestamp(3) with time zone",
796
+ "typeSchema": null,
797
+ "notNull": true,
798
+ "dimensions": 0,
799
+ "default": "now()",
800
+ "generated": null,
801
+ "identity": null,
802
+ "name": "created_at",
803
+ "entityType": "columns",
804
+ "schema": "public",
805
+ "table": "local_users"
806
+ },
807
+ {
808
+ "type": "text",
809
+ "typeSchema": null,
810
+ "notNull": true,
811
+ "dimensions": 0,
812
+ "default": null,
813
+ "generated": null,
814
+ "identity": null,
815
+ "name": "id",
816
+ "entityType": "columns",
817
+ "schema": "public",
818
+ "table": "member"
819
+ },
820
+ {
821
+ "type": "text",
822
+ "typeSchema": null,
823
+ "notNull": true,
824
+ "dimensions": 0,
825
+ "default": null,
826
+ "generated": null,
827
+ "identity": null,
828
+ "name": "organization_id",
829
+ "entityType": "columns",
830
+ "schema": "public",
831
+ "table": "member"
832
+ },
833
+ {
834
+ "type": "text",
835
+ "typeSchema": null,
836
+ "notNull": true,
837
+ "dimensions": 0,
838
+ "default": null,
839
+ "generated": null,
840
+ "identity": null,
841
+ "name": "user_id",
842
+ "entityType": "columns",
843
+ "schema": "public",
844
+ "table": "member"
845
+ },
846
+ {
847
+ "type": "text",
848
+ "typeSchema": null,
849
+ "notNull": true,
850
+ "dimensions": 0,
851
+ "default": null,
852
+ "generated": null,
853
+ "identity": null,
854
+ "name": "role",
855
+ "entityType": "columns",
856
+ "schema": "public",
857
+ "table": "member"
858
+ },
859
+ {
860
+ "type": "timestamp(3) with time zone",
861
+ "typeSchema": null,
862
+ "notNull": true,
863
+ "dimensions": 0,
864
+ "default": null,
865
+ "generated": null,
866
+ "identity": null,
867
+ "name": "created_at",
868
+ "entityType": "columns",
869
+ "schema": "public",
870
+ "table": "member"
871
+ },
872
+ {
873
+ "type": "timestamp(3) with time zone",
874
+ "typeSchema": null,
875
+ "notNull": true,
876
+ "dimensions": 0,
877
+ "default": "now()",
878
+ "generated": null,
879
+ "identity": null,
880
+ "name": "updated_at",
881
+ "entityType": "columns",
882
+ "schema": "public",
883
+ "table": "member"
884
+ },
885
+ {
886
+ "type": "text",
887
+ "typeSchema": null,
888
+ "notNull": true,
889
+ "dimensions": 0,
890
+ "default": null,
891
+ "generated": null,
892
+ "identity": null,
893
+ "name": "id",
894
+ "entityType": "columns",
895
+ "schema": "public",
896
+ "table": "organization"
897
+ },
898
+ {
899
+ "type": "text",
900
+ "typeSchema": null,
901
+ "notNull": true,
902
+ "dimensions": 0,
903
+ "default": null,
904
+ "generated": null,
905
+ "identity": null,
906
+ "name": "name",
907
+ "entityType": "columns",
908
+ "schema": "public",
909
+ "table": "organization"
910
+ },
911
+ {
912
+ "type": "text",
913
+ "typeSchema": null,
914
+ "notNull": true,
915
+ "dimensions": 0,
916
+ "default": null,
917
+ "generated": null,
918
+ "identity": null,
919
+ "name": "slug",
920
+ "entityType": "columns",
921
+ "schema": "public",
922
+ "table": "organization"
923
+ },
924
+ {
925
+ "type": "text",
926
+ "typeSchema": null,
927
+ "notNull": false,
928
+ "dimensions": 0,
929
+ "default": null,
930
+ "generated": null,
931
+ "identity": null,
932
+ "name": "logo",
933
+ "entityType": "columns",
934
+ "schema": "public",
935
+ "table": "organization"
936
+ },
937
+ {
938
+ "type": "timestamp(3) with time zone",
939
+ "typeSchema": null,
940
+ "notNull": true,
941
+ "dimensions": 0,
942
+ "default": null,
943
+ "generated": null,
944
+ "identity": null,
945
+ "name": "created_at",
946
+ "entityType": "columns",
947
+ "schema": "public",
948
+ "table": "organization"
949
+ },
950
+ {
951
+ "type": "text",
952
+ "typeSchema": null,
953
+ "notNull": false,
954
+ "dimensions": 0,
955
+ "default": null,
956
+ "generated": null,
957
+ "identity": null,
958
+ "name": "metadata",
959
+ "entityType": "columns",
960
+ "schema": "public",
961
+ "table": "organization"
962
+ },
963
+ {
964
+ "type": "timestamp(3) with time zone",
965
+ "typeSchema": null,
966
+ "notNull": true,
967
+ "dimensions": 0,
968
+ "default": "now()",
969
+ "generated": null,
970
+ "identity": null,
971
+ "name": "updated_at",
972
+ "entityType": "columns",
973
+ "schema": "public",
974
+ "table": "organization"
975
+ },
976
+ {
977
+ "type": "text",
978
+ "typeSchema": null,
979
+ "notNull": true,
980
+ "dimensions": 0,
981
+ "default": null,
982
+ "generated": null,
983
+ "identity": null,
984
+ "name": "id",
985
+ "entityType": "columns",
986
+ "schema": "public",
987
+ "table": "organization_role"
988
+ },
989
+ {
990
+ "type": "text",
991
+ "typeSchema": null,
992
+ "notNull": true,
993
+ "dimensions": 0,
994
+ "default": null,
995
+ "generated": null,
996
+ "identity": null,
997
+ "name": "organization_id",
998
+ "entityType": "columns",
999
+ "schema": "public",
1000
+ "table": "organization_role"
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "typeSchema": null,
1005
+ "notNull": true,
1006
+ "dimensions": 0,
1007
+ "default": null,
1008
+ "generated": null,
1009
+ "identity": null,
1010
+ "name": "role",
1011
+ "entityType": "columns",
1012
+ "schema": "public",
1013
+ "table": "organization_role"
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "typeSchema": null,
1018
+ "notNull": true,
1019
+ "dimensions": 0,
1020
+ "default": null,
1021
+ "generated": null,
1022
+ "identity": null,
1023
+ "name": "permission",
1024
+ "entityType": "columns",
1025
+ "schema": "public",
1026
+ "table": "organization_role"
1027
+ },
1028
+ {
1029
+ "type": "timestamp(3) with time zone",
1030
+ "typeSchema": null,
1031
+ "notNull": true,
1032
+ "dimensions": 0,
1033
+ "default": null,
1034
+ "generated": null,
1035
+ "identity": null,
1036
+ "name": "created_at",
1037
+ "entityType": "columns",
1038
+ "schema": "public",
1039
+ "table": "organization_role"
1040
+ },
1041
+ {
1042
+ "type": "timestamp(3) with time zone",
1043
+ "typeSchema": null,
1044
+ "notNull": false,
1045
+ "dimensions": 0,
1046
+ "default": null,
1047
+ "generated": null,
1048
+ "identity": null,
1049
+ "name": "updated_at",
1050
+ "entityType": "columns",
1051
+ "schema": "public",
1052
+ "table": "organization_role"
1053
+ },
1054
+ {
1055
+ "type": "uuid",
1056
+ "typeSchema": null,
1057
+ "notNull": true,
1058
+ "dimensions": 0,
1059
+ "default": "gen_random_uuid()",
1060
+ "generated": null,
1061
+ "identity": null,
1062
+ "name": "id",
1063
+ "entityType": "columns",
1064
+ "schema": "public",
1065
+ "table": "roles"
1066
+ },
1067
+ {
1068
+ "type": "varchar(60)",
1069
+ "typeSchema": null,
1070
+ "notNull": true,
1071
+ "dimensions": 0,
1072
+ "default": null,
1073
+ "generated": null,
1074
+ "identity": null,
1075
+ "name": "name",
1076
+ "entityType": "columns",
1077
+ "schema": "public",
1078
+ "table": "roles"
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "typeSchema": null,
1083
+ "notNull": true,
1084
+ "dimensions": 1,
1085
+ "default": null,
1086
+ "generated": null,
1087
+ "identity": null,
1088
+ "name": "permissions",
1089
+ "entityType": "columns",
1090
+ "schema": "public",
1091
+ "table": "roles"
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "typeSchema": null,
1096
+ "notNull": false,
1097
+ "dimensions": 0,
1098
+ "default": null,
1099
+ "generated": null,
1100
+ "identity": null,
1101
+ "name": "tenant_id",
1102
+ "entityType": "columns",
1103
+ "schema": "public",
1104
+ "table": "roles"
1105
+ },
1106
+ {
1107
+ "type": "timestamp(3) with time zone",
1108
+ "typeSchema": null,
1109
+ "notNull": true,
1110
+ "dimensions": 0,
1111
+ "default": "now()",
1112
+ "generated": null,
1113
+ "identity": null,
1114
+ "name": "updated_at",
1115
+ "entityType": "columns",
1116
+ "schema": "public",
1117
+ "table": "roles"
1118
+ },
1119
+ {
1120
+ "type": "timestamp(3) with time zone",
1121
+ "typeSchema": null,
1122
+ "notNull": true,
1123
+ "dimensions": 0,
1124
+ "default": "now()",
1125
+ "generated": null,
1126
+ "identity": null,
1127
+ "name": "created_at",
1128
+ "entityType": "columns",
1129
+ "schema": "public",
1130
+ "table": "roles"
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "typeSchema": null,
1135
+ "notNull": true,
1136
+ "dimensions": 0,
1137
+ "default": null,
1138
+ "generated": null,
1139
+ "identity": null,
1140
+ "name": "id",
1141
+ "entityType": "columns",
1142
+ "schema": "public",
1143
+ "table": "session"
1144
+ },
1145
+ {
1146
+ "type": "timestamp(3) with time zone",
1147
+ "typeSchema": null,
1148
+ "notNull": true,
1149
+ "dimensions": 0,
1150
+ "default": null,
1151
+ "generated": null,
1152
+ "identity": null,
1153
+ "name": "expires_at",
1154
+ "entityType": "columns",
1155
+ "schema": "public",
1156
+ "table": "session"
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "typeSchema": null,
1161
+ "notNull": true,
1162
+ "dimensions": 0,
1163
+ "default": null,
1164
+ "generated": null,
1165
+ "identity": null,
1166
+ "name": "token",
1167
+ "entityType": "columns",
1168
+ "schema": "public",
1169
+ "table": "session"
1170
+ },
1171
+ {
1172
+ "type": "timestamp(3) with time zone",
1173
+ "typeSchema": null,
1174
+ "notNull": true,
1175
+ "dimensions": 0,
1176
+ "default": null,
1177
+ "generated": null,
1178
+ "identity": null,
1179
+ "name": "created_at",
1180
+ "entityType": "columns",
1181
+ "schema": "public",
1182
+ "table": "session"
1183
+ },
1184
+ {
1185
+ "type": "timestamp(3) with time zone",
1186
+ "typeSchema": null,
1187
+ "notNull": true,
1188
+ "dimensions": 0,
1189
+ "default": null,
1190
+ "generated": null,
1191
+ "identity": null,
1192
+ "name": "updated_at",
1193
+ "entityType": "columns",
1194
+ "schema": "public",
1195
+ "table": "session"
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "typeSchema": null,
1200
+ "notNull": false,
1201
+ "dimensions": 0,
1202
+ "default": null,
1203
+ "generated": null,
1204
+ "identity": null,
1205
+ "name": "ip_address",
1206
+ "entityType": "columns",
1207
+ "schema": "public",
1208
+ "table": "session"
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "typeSchema": null,
1213
+ "notNull": false,
1214
+ "dimensions": 0,
1215
+ "default": null,
1216
+ "generated": null,
1217
+ "identity": null,
1218
+ "name": "user_agent",
1219
+ "entityType": "columns",
1220
+ "schema": "public",
1221
+ "table": "session"
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "typeSchema": null,
1226
+ "notNull": true,
1227
+ "dimensions": 0,
1228
+ "default": null,
1229
+ "generated": null,
1230
+ "identity": null,
1231
+ "name": "user_id",
1232
+ "entityType": "columns",
1233
+ "schema": "public",
1234
+ "table": "session"
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "typeSchema": null,
1239
+ "notNull": false,
1240
+ "dimensions": 0,
1241
+ "default": null,
1242
+ "generated": null,
1243
+ "identity": null,
1244
+ "name": "active_organization_id",
1245
+ "entityType": "columns",
1246
+ "schema": "public",
1247
+ "table": "session"
1248
+ },
1249
+ {
1250
+ "type": "uuid",
1251
+ "typeSchema": null,
1252
+ "notNull": true,
1253
+ "dimensions": 0,
1254
+ "default": "gen_random_uuid()",
1255
+ "generated": null,
1256
+ "identity": null,
1257
+ "name": "id",
1258
+ "entityType": "columns",
1259
+ "schema": "public",
1260
+ "table": "course_sessions"
1261
+ },
1262
+ {
1263
+ "type": "uuid",
1264
+ "typeSchema": null,
1265
+ "notNull": true,
1266
+ "dimensions": 0,
1267
+ "default": null,
1268
+ "generated": null,
1269
+ "identity": null,
1270
+ "name": "course_id",
1271
+ "entityType": "columns",
1272
+ "schema": "public",
1273
+ "table": "course_sessions"
1274
+ },
1275
+ {
1276
+ "type": "timestamp(3) with time zone",
1277
+ "typeSchema": null,
1278
+ "notNull": true,
1279
+ "dimensions": 0,
1280
+ "default": null,
1281
+ "generated": null,
1282
+ "identity": null,
1283
+ "name": "starts_at",
1284
+ "entityType": "columns",
1285
+ "schema": "public",
1286
+ "table": "course_sessions"
1287
+ },
1288
+ {
1289
+ "type": "numeric",
1290
+ "typeSchema": null,
1291
+ "notNull": false,
1292
+ "dimensions": 0,
1293
+ "default": null,
1294
+ "generated": null,
1295
+ "identity": null,
1296
+ "name": "capacity",
1297
+ "entityType": "columns",
1298
+ "schema": "public",
1299
+ "table": "course_sessions"
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "typeSchema": null,
1304
+ "notNull": false,
1305
+ "dimensions": 0,
1306
+ "default": null,
1307
+ "generated": null,
1308
+ "identity": null,
1309
+ "name": "tenant_id",
1310
+ "entityType": "columns",
1311
+ "schema": "public",
1312
+ "table": "course_sessions"
1313
+ },
1314
+ {
1315
+ "type": "timestamp(3) with time zone",
1316
+ "typeSchema": null,
1317
+ "notNull": true,
1318
+ "dimensions": 0,
1319
+ "default": "now()",
1320
+ "generated": null,
1321
+ "identity": null,
1322
+ "name": "updated_at",
1323
+ "entityType": "columns",
1324
+ "schema": "public",
1325
+ "table": "course_sessions"
1326
+ },
1327
+ {
1328
+ "type": "timestamp(3) with time zone",
1329
+ "typeSchema": null,
1330
+ "notNull": true,
1331
+ "dimensions": 0,
1332
+ "default": "now()",
1333
+ "generated": null,
1334
+ "identity": null,
1335
+ "name": "created_at",
1336
+ "entityType": "columns",
1337
+ "schema": "public",
1338
+ "table": "course_sessions"
1339
+ },
1340
+ {
1341
+ "type": "uuid",
1342
+ "typeSchema": null,
1343
+ "notNull": true,
1344
+ "dimensions": 0,
1345
+ "default": "gen_random_uuid()",
1346
+ "generated": null,
1347
+ "identity": null,
1348
+ "name": "id",
1349
+ "entityType": "columns",
1350
+ "schema": "public",
1351
+ "table": "settings"
1352
+ },
1353
+ {
1354
+ "type": "varchar(120)",
1355
+ "typeSchema": null,
1356
+ "notNull": true,
1357
+ "dimensions": 0,
1358
+ "default": null,
1359
+ "generated": null,
1360
+ "identity": null,
1361
+ "name": "site_title",
1362
+ "entityType": "columns",
1363
+ "schema": "public",
1364
+ "table": "settings"
1365
+ },
1366
+ {
1367
+ "type": "boolean",
1368
+ "typeSchema": null,
1369
+ "notNull": false,
1370
+ "dimensions": 0,
1371
+ "default": null,
1372
+ "generated": null,
1373
+ "identity": null,
1374
+ "name": "maintenance",
1375
+ "entityType": "columns",
1376
+ "schema": "public",
1377
+ "table": "settings"
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "typeSchema": null,
1382
+ "notNull": true,
1383
+ "dimensions": 0,
1384
+ "default": null,
1385
+ "generated": null,
1386
+ "identity": null,
1387
+ "name": "tenant_id",
1388
+ "entityType": "columns",
1389
+ "schema": "public",
1390
+ "table": "settings"
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "typeSchema": null,
1395
+ "notNull": true,
1396
+ "dimensions": 0,
1397
+ "default": "'settings'",
1398
+ "generated": null,
1399
+ "identity": null,
1400
+ "name": "global_type",
1401
+ "entityType": "columns",
1402
+ "schema": "public",
1403
+ "table": "settings"
1404
+ },
1405
+ {
1406
+ "type": "timestamp(3) with time zone",
1407
+ "typeSchema": null,
1408
+ "notNull": true,
1409
+ "dimensions": 0,
1410
+ "default": "now()",
1411
+ "generated": null,
1412
+ "identity": null,
1413
+ "name": "updated_at",
1414
+ "entityType": "columns",
1415
+ "schema": "public",
1416
+ "table": "settings"
1417
+ },
1418
+ {
1419
+ "type": "timestamp(3) with time zone",
1420
+ "typeSchema": null,
1421
+ "notNull": true,
1422
+ "dimensions": 0,
1423
+ "default": "now()",
1424
+ "generated": null,
1425
+ "identity": null,
1426
+ "name": "created_at",
1427
+ "entityType": "columns",
1428
+ "schema": "public",
1429
+ "table": "settings"
1430
+ },
1431
+ {
1432
+ "type": "uuid",
1433
+ "typeSchema": null,
1434
+ "notNull": true,
1435
+ "dimensions": 0,
1436
+ "default": "gen_random_uuid()",
1437
+ "generated": null,
1438
+ "identity": null,
1439
+ "name": "id",
1440
+ "entityType": "columns",
1441
+ "schema": "public",
1442
+ "table": "tags"
1443
+ },
1444
+ {
1445
+ "type": "varchar(60)",
1446
+ "typeSchema": null,
1447
+ "notNull": true,
1448
+ "dimensions": 0,
1449
+ "default": null,
1450
+ "generated": null,
1451
+ "identity": null,
1452
+ "name": "name",
1453
+ "entityType": "columns",
1454
+ "schema": "public",
1455
+ "table": "tags"
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "typeSchema": null,
1460
+ "notNull": false,
1461
+ "dimensions": 0,
1462
+ "default": null,
1463
+ "generated": null,
1464
+ "identity": null,
1465
+ "name": "tenant_id",
1466
+ "entityType": "columns",
1467
+ "schema": "public",
1468
+ "table": "tags"
1469
+ },
1470
+ {
1471
+ "type": "timestamp(3) with time zone",
1472
+ "typeSchema": null,
1473
+ "notNull": true,
1474
+ "dimensions": 0,
1475
+ "default": "now()",
1476
+ "generated": null,
1477
+ "identity": null,
1478
+ "name": "updated_at",
1479
+ "entityType": "columns",
1480
+ "schema": "public",
1481
+ "table": "tags"
1482
+ },
1483
+ {
1484
+ "type": "timestamp(3) with time zone",
1485
+ "typeSchema": null,
1486
+ "notNull": true,
1487
+ "dimensions": 0,
1488
+ "default": "now()",
1489
+ "generated": null,
1490
+ "identity": null,
1491
+ "name": "created_at",
1492
+ "entityType": "columns",
1493
+ "schema": "public",
1494
+ "table": "tags"
1495
+ },
1496
+ {
1497
+ "type": "text",
1498
+ "typeSchema": null,
1499
+ "notNull": true,
1500
+ "dimensions": 0,
1501
+ "default": null,
1502
+ "generated": null,
1503
+ "identity": null,
1504
+ "name": "id",
1505
+ "entityType": "columns",
1506
+ "schema": "public",
1507
+ "table": "user"
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "typeSchema": null,
1512
+ "notNull": true,
1513
+ "dimensions": 0,
1514
+ "default": null,
1515
+ "generated": null,
1516
+ "identity": null,
1517
+ "name": "name",
1518
+ "entityType": "columns",
1519
+ "schema": "public",
1520
+ "table": "user"
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "typeSchema": null,
1525
+ "notNull": true,
1526
+ "dimensions": 0,
1527
+ "default": null,
1528
+ "generated": null,
1529
+ "identity": null,
1530
+ "name": "email",
1531
+ "entityType": "columns",
1532
+ "schema": "public",
1533
+ "table": "user"
1534
+ },
1535
+ {
1536
+ "type": "boolean",
1537
+ "typeSchema": null,
1538
+ "notNull": true,
1539
+ "dimensions": 0,
1540
+ "default": null,
1541
+ "generated": null,
1542
+ "identity": null,
1543
+ "name": "email_verified",
1544
+ "entityType": "columns",
1545
+ "schema": "public",
1546
+ "table": "user"
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "typeSchema": null,
1551
+ "notNull": false,
1552
+ "dimensions": 0,
1553
+ "default": null,
1554
+ "generated": null,
1555
+ "identity": null,
1556
+ "name": "image",
1557
+ "entityType": "columns",
1558
+ "schema": "public",
1559
+ "table": "user"
1560
+ },
1561
+ {
1562
+ "type": "timestamp(3) with time zone",
1563
+ "typeSchema": null,
1564
+ "notNull": true,
1565
+ "dimensions": 0,
1566
+ "default": null,
1567
+ "generated": null,
1568
+ "identity": null,
1569
+ "name": "created_at",
1570
+ "entityType": "columns",
1571
+ "schema": "public",
1572
+ "table": "user"
1573
+ },
1574
+ {
1575
+ "type": "timestamp(3) with time zone",
1576
+ "typeSchema": null,
1577
+ "notNull": true,
1578
+ "dimensions": 0,
1579
+ "default": null,
1580
+ "generated": null,
1581
+ "identity": null,
1582
+ "name": "updated_at",
1583
+ "entityType": "columns",
1584
+ "schema": "public",
1585
+ "table": "user"
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "typeSchema": null,
1590
+ "notNull": true,
1591
+ "dimensions": 0,
1592
+ "default": null,
1593
+ "generated": null,
1594
+ "identity": null,
1595
+ "name": "id",
1596
+ "entityType": "columns",
1597
+ "schema": "public",
1598
+ "table": "verification"
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "typeSchema": null,
1603
+ "notNull": true,
1604
+ "dimensions": 0,
1605
+ "default": null,
1606
+ "generated": null,
1607
+ "identity": null,
1608
+ "name": "identifier",
1609
+ "entityType": "columns",
1610
+ "schema": "public",
1611
+ "table": "verification"
1612
+ },
1613
+ {
1614
+ "type": "text",
1615
+ "typeSchema": null,
1616
+ "notNull": true,
1617
+ "dimensions": 0,
1618
+ "default": null,
1619
+ "generated": null,
1620
+ "identity": null,
1621
+ "name": "value",
1622
+ "entityType": "columns",
1623
+ "schema": "public",
1624
+ "table": "verification"
1625
+ },
1626
+ {
1627
+ "type": "timestamp(3) with time zone",
1628
+ "typeSchema": null,
1629
+ "notNull": true,
1630
+ "dimensions": 0,
1631
+ "default": null,
1632
+ "generated": null,
1633
+ "identity": null,
1634
+ "name": "expires_at",
1635
+ "entityType": "columns",
1636
+ "schema": "public",
1637
+ "table": "verification"
1638
+ },
1639
+ {
1640
+ "type": "timestamp(3) with time zone",
1641
+ "typeSchema": null,
1642
+ "notNull": true,
1643
+ "dimensions": 0,
1644
+ "default": null,
1645
+ "generated": null,
1646
+ "identity": null,
1647
+ "name": "created_at",
1648
+ "entityType": "columns",
1649
+ "schema": "public",
1650
+ "table": "verification"
1651
+ },
1652
+ {
1653
+ "type": "timestamp(3) with time zone",
1654
+ "typeSchema": null,
1655
+ "notNull": true,
1656
+ "dimensions": 0,
1657
+ "default": null,
1658
+ "generated": null,
1659
+ "identity": null,
1660
+ "name": "updated_at",
1661
+ "entityType": "columns",
1662
+ "schema": "public",
1663
+ "table": "verification"
1664
+ },
1665
+ {
1666
+ "nameExplicit": false,
1667
+ "columns": [
1668
+ {
1669
+ "value": "title",
1670
+ "isExpression": false,
1671
+ "asc": true,
1672
+ "nullsFirst": false,
1673
+ "opclass": null
1674
+ }
1675
+ ],
1676
+ "isUnique": false,
1677
+ "where": null,
1678
+ "with": "",
1679
+ "method": "btree",
1680
+ "concurrently": false,
1681
+ "name": "courses_title_index",
1682
+ "entityType": "indexes",
1683
+ "schema": "public",
1684
+ "table": "courses"
1685
+ },
1686
+ {
1687
+ "nameExplicit": false,
1688
+ "columns": [
1689
+ {
1690
+ "value": "created_at",
1691
+ "isExpression": false,
1692
+ "asc": true,
1693
+ "nullsFirst": false,
1694
+ "opclass": null
1695
+ }
1696
+ ],
1697
+ "isUnique": false,
1698
+ "where": null,
1699
+ "with": "",
1700
+ "method": "btree",
1701
+ "concurrently": false,
1702
+ "name": "courses_created_at_index",
1703
+ "entityType": "indexes",
1704
+ "schema": "public",
1705
+ "table": "courses"
1706
+ },
1707
+ {
1708
+ "nameExplicit": false,
1709
+ "columns": [
1710
+ {
1711
+ "value": "parent_id",
1712
+ "isExpression": false,
1713
+ "asc": true,
1714
+ "nullsFirst": false,
1715
+ "opclass": null
1716
+ }
1717
+ ],
1718
+ "isUnique": false,
1719
+ "where": null,
1720
+ "with": "",
1721
+ "method": "btree",
1722
+ "concurrently": false,
1723
+ "name": "courses_tags_parent_id_index",
1724
+ "entityType": "indexes",
1725
+ "schema": "public",
1726
+ "table": "courses_tags"
1727
+ },
1728
+ {
1729
+ "nameExplicit": false,
1730
+ "columns": [
1731
+ {
1732
+ "value": "created_at",
1733
+ "isExpression": false,
1734
+ "asc": true,
1735
+ "nullsFirst": false,
1736
+ "opclass": null
1737
+ }
1738
+ ],
1739
+ "isUnique": false,
1740
+ "where": null,
1741
+ "with": "",
1742
+ "method": "btree",
1743
+ "concurrently": false,
1744
+ "name": "enrollments_created_at_index",
1745
+ "entityType": "indexes",
1746
+ "schema": "public",
1747
+ "table": "enrollments"
1748
+ },
1749
+ {
1750
+ "nameExplicit": false,
1751
+ "columns": [
1752
+ {
1753
+ "value": "created_at",
1754
+ "isExpression": false,
1755
+ "asc": true,
1756
+ "nullsFirst": false,
1757
+ "opclass": null
1758
+ }
1759
+ ],
1760
+ "isUnique": false,
1761
+ "where": null,
1762
+ "with": "",
1763
+ "method": "btree",
1764
+ "concurrently": false,
1765
+ "name": "local_users_created_at_index",
1766
+ "entityType": "indexes",
1767
+ "schema": "public",
1768
+ "table": "local_users"
1769
+ },
1770
+ {
1771
+ "nameExplicit": false,
1772
+ "columns": [
1773
+ {
1774
+ "value": "name",
1775
+ "isExpression": false,
1776
+ "asc": true,
1777
+ "nullsFirst": false,
1778
+ "opclass": null
1779
+ }
1780
+ ],
1781
+ "isUnique": false,
1782
+ "where": null,
1783
+ "with": "",
1784
+ "method": "btree",
1785
+ "concurrently": false,
1786
+ "name": "roles_name_index",
1787
+ "entityType": "indexes",
1788
+ "schema": "public",
1789
+ "table": "roles"
1790
+ },
1791
+ {
1792
+ "nameExplicit": false,
1793
+ "columns": [
1794
+ {
1795
+ "value": "created_at",
1796
+ "isExpression": false,
1797
+ "asc": true,
1798
+ "nullsFirst": false,
1799
+ "opclass": null
1800
+ }
1801
+ ],
1802
+ "isUnique": false,
1803
+ "where": null,
1804
+ "with": "",
1805
+ "method": "btree",
1806
+ "concurrently": false,
1807
+ "name": "roles_created_at_index",
1808
+ "entityType": "indexes",
1809
+ "schema": "public",
1810
+ "table": "roles"
1811
+ },
1812
+ {
1813
+ "nameExplicit": false,
1814
+ "columns": [
1815
+ {
1816
+ "value": "created_at",
1817
+ "isExpression": false,
1818
+ "asc": true,
1819
+ "nullsFirst": false,
1820
+ "opclass": null
1821
+ }
1822
+ ],
1823
+ "isUnique": false,
1824
+ "where": null,
1825
+ "with": "",
1826
+ "method": "btree",
1827
+ "concurrently": false,
1828
+ "name": "course_sessions_created_at_index",
1829
+ "entityType": "indexes",
1830
+ "schema": "public",
1831
+ "table": "course_sessions"
1832
+ },
1833
+ {
1834
+ "nameExplicit": false,
1835
+ "columns": [
1836
+ {
1837
+ "value": "created_at",
1838
+ "isExpression": false,
1839
+ "asc": true,
1840
+ "nullsFirst": false,
1841
+ "opclass": null
1842
+ }
1843
+ ],
1844
+ "isUnique": false,
1845
+ "where": null,
1846
+ "with": "",
1847
+ "method": "btree",
1848
+ "concurrently": false,
1849
+ "name": "settings_created_at_index",
1850
+ "entityType": "indexes",
1851
+ "schema": "public",
1852
+ "table": "settings"
1853
+ },
1854
+ {
1855
+ "nameExplicit": false,
1856
+ "columns": [
1857
+ {
1858
+ "value": "name",
1859
+ "isExpression": false,
1860
+ "asc": true,
1861
+ "nullsFirst": false,
1862
+ "opclass": null
1863
+ }
1864
+ ],
1865
+ "isUnique": false,
1866
+ "where": null,
1867
+ "with": "",
1868
+ "method": "btree",
1869
+ "concurrently": false,
1870
+ "name": "tags_name_index",
1871
+ "entityType": "indexes",
1872
+ "schema": "public",
1873
+ "table": "tags"
1874
+ },
1875
+ {
1876
+ "nameExplicit": false,
1877
+ "columns": [
1878
+ {
1879
+ "value": "created_at",
1880
+ "isExpression": false,
1881
+ "asc": true,
1882
+ "nullsFirst": false,
1883
+ "opclass": null
1884
+ }
1885
+ ],
1886
+ "isUnique": false,
1887
+ "where": null,
1888
+ "with": "",
1889
+ "method": "btree",
1890
+ "concurrently": false,
1891
+ "name": "tags_created_at_index",
1892
+ "entityType": "indexes",
1893
+ "schema": "public",
1894
+ "table": "tags"
1895
+ },
1896
+ {
1897
+ "nameExplicit": false,
1898
+ "columns": [
1899
+ "user_id"
1900
+ ],
1901
+ "schemaTo": "public",
1902
+ "tableTo": "user",
1903
+ "columnsTo": [
1904
+ "id"
1905
+ ],
1906
+ "onUpdate": "NO ACTION",
1907
+ "onDelete": "CASCADE",
1908
+ "name": "account_user_id_user_id_fkey",
1909
+ "entityType": "fks",
1910
+ "schema": "public",
1911
+ "table": "account"
1912
+ },
1913
+ {
1914
+ "nameExplicit": false,
1915
+ "columns": [
1916
+ "tenant_id"
1917
+ ],
1918
+ "schemaTo": "public",
1919
+ "tableTo": "organization",
1920
+ "columnsTo": [
1921
+ "id"
1922
+ ],
1923
+ "onUpdate": "NO ACTION",
1924
+ "onDelete": "SET NULL",
1925
+ "name": "courses_tenant_id_organization_id_fkey",
1926
+ "entityType": "fks",
1927
+ "schema": "public",
1928
+ "table": "courses"
1929
+ },
1930
+ {
1931
+ "nameExplicit": false,
1932
+ "columns": [
1933
+ "parent_id"
1934
+ ],
1935
+ "schemaTo": "public",
1936
+ "tableTo": "courses",
1937
+ "columnsTo": [
1938
+ "id"
1939
+ ],
1940
+ "onUpdate": "NO ACTION",
1941
+ "onDelete": "CASCADE",
1942
+ "name": "courses_tags_parent_id_courses_id_fkey",
1943
+ "entityType": "fks",
1944
+ "schema": "public",
1945
+ "table": "courses_tags"
1946
+ },
1947
+ {
1948
+ "nameExplicit": false,
1949
+ "columns": [
1950
+ "target_id"
1951
+ ],
1952
+ "schemaTo": "public",
1953
+ "tableTo": "tags",
1954
+ "columnsTo": [
1955
+ "id"
1956
+ ],
1957
+ "onUpdate": "NO ACTION",
1958
+ "onDelete": "CASCADE",
1959
+ "name": "courses_tags_target_id_tags_id_fkey",
1960
+ "entityType": "fks",
1961
+ "schema": "public",
1962
+ "table": "courses_tags"
1963
+ },
1964
+ {
1965
+ "nameExplicit": false,
1966
+ "columns": [
1967
+ "session_id"
1968
+ ],
1969
+ "schemaTo": "public",
1970
+ "tableTo": "course_sessions",
1971
+ "columnsTo": [
1972
+ "id"
1973
+ ],
1974
+ "onUpdate": "NO ACTION",
1975
+ "onDelete": "SET NULL",
1976
+ "name": "enrollments_session_id_course_sessions_id_fkey",
1977
+ "entityType": "fks",
1978
+ "schema": "public",
1979
+ "table": "enrollments"
1980
+ },
1981
+ {
1982
+ "nameExplicit": false,
1983
+ "columns": [
1984
+ "student_id"
1985
+ ],
1986
+ "schemaTo": "public",
1987
+ "tableTo": "user",
1988
+ "columnsTo": [
1989
+ "id"
1990
+ ],
1991
+ "onUpdate": "NO ACTION",
1992
+ "onDelete": "SET NULL",
1993
+ "name": "enrollments_student_id_user_id_fkey",
1994
+ "entityType": "fks",
1995
+ "schema": "public",
1996
+ "table": "enrollments"
1997
+ },
1998
+ {
1999
+ "nameExplicit": false,
2000
+ "columns": [
2001
+ "tenant_id"
2002
+ ],
2003
+ "schemaTo": "public",
2004
+ "tableTo": "organization",
2005
+ "columnsTo": [
2006
+ "id"
2007
+ ],
2008
+ "onUpdate": "NO ACTION",
2009
+ "onDelete": "SET NULL",
2010
+ "name": "enrollments_tenant_id_organization_id_fkey",
2011
+ "entityType": "fks",
2012
+ "schema": "public",
2013
+ "table": "enrollments"
2014
+ },
2015
+ {
2016
+ "nameExplicit": false,
2017
+ "columns": [
2018
+ "organization_id"
2019
+ ],
2020
+ "schemaTo": "public",
2021
+ "tableTo": "organization",
2022
+ "columnsTo": [
2023
+ "id"
2024
+ ],
2025
+ "onUpdate": "NO ACTION",
2026
+ "onDelete": "CASCADE",
2027
+ "name": "invitation_organization_id_organization_id_fkey",
2028
+ "entityType": "fks",
2029
+ "schema": "public",
2030
+ "table": "invitation"
2031
+ },
2032
+ {
2033
+ "nameExplicit": false,
2034
+ "columns": [
2035
+ "inviter_id"
2036
+ ],
2037
+ "schemaTo": "public",
2038
+ "tableTo": "user",
2039
+ "columnsTo": [
2040
+ "id"
2041
+ ],
2042
+ "onUpdate": "NO ACTION",
2043
+ "onDelete": "CASCADE",
2044
+ "name": "invitation_inviter_id_user_id_fkey",
2045
+ "entityType": "fks",
2046
+ "schema": "public",
2047
+ "table": "invitation"
2048
+ },
2049
+ {
2050
+ "nameExplicit": false,
2051
+ "columns": [
2052
+ "organization_id"
2053
+ ],
2054
+ "schemaTo": "public",
2055
+ "tableTo": "organization",
2056
+ "columnsTo": [
2057
+ "id"
2058
+ ],
2059
+ "onUpdate": "NO ACTION",
2060
+ "onDelete": "CASCADE",
2061
+ "name": "member_organization_id_organization_id_fkey",
2062
+ "entityType": "fks",
2063
+ "schema": "public",
2064
+ "table": "member"
2065
+ },
2066
+ {
2067
+ "nameExplicit": false,
2068
+ "columns": [
2069
+ "user_id"
2070
+ ],
2071
+ "schemaTo": "public",
2072
+ "tableTo": "user",
2073
+ "columnsTo": [
2074
+ "id"
2075
+ ],
2076
+ "onUpdate": "NO ACTION",
2077
+ "onDelete": "CASCADE",
2078
+ "name": "member_user_id_user_id_fkey",
2079
+ "entityType": "fks",
2080
+ "schema": "public",
2081
+ "table": "member"
2082
+ },
2083
+ {
2084
+ "nameExplicit": false,
2085
+ "columns": [
2086
+ "organization_id"
2087
+ ],
2088
+ "schemaTo": "public",
2089
+ "tableTo": "organization",
2090
+ "columnsTo": [
2091
+ "id"
2092
+ ],
2093
+ "onUpdate": "NO ACTION",
2094
+ "onDelete": "CASCADE",
2095
+ "name": "organization_role_organization_id_organization_id_fkey",
2096
+ "entityType": "fks",
2097
+ "schema": "public",
2098
+ "table": "organization_role"
2099
+ },
2100
+ {
2101
+ "nameExplicit": false,
2102
+ "columns": [
2103
+ "tenant_id"
2104
+ ],
2105
+ "schemaTo": "public",
2106
+ "tableTo": "organization",
2107
+ "columnsTo": [
2108
+ "id"
2109
+ ],
2110
+ "onUpdate": "NO ACTION",
2111
+ "onDelete": "SET NULL",
2112
+ "name": "roles_tenant_id_organization_id_fkey",
2113
+ "entityType": "fks",
2114
+ "schema": "public",
2115
+ "table": "roles"
2116
+ },
2117
+ {
2118
+ "nameExplicit": false,
2119
+ "columns": [
2120
+ "user_id"
2121
+ ],
2122
+ "schemaTo": "public",
2123
+ "tableTo": "user",
2124
+ "columnsTo": [
2125
+ "id"
2126
+ ],
2127
+ "onUpdate": "NO ACTION",
2128
+ "onDelete": "CASCADE",
2129
+ "name": "session_user_id_user_id_fkey",
2130
+ "entityType": "fks",
2131
+ "schema": "public",
2132
+ "table": "session"
2133
+ },
2134
+ {
2135
+ "nameExplicit": false,
2136
+ "columns": [
2137
+ "course_id"
2138
+ ],
2139
+ "schemaTo": "public",
2140
+ "tableTo": "courses",
2141
+ "columnsTo": [
2142
+ "id"
2143
+ ],
2144
+ "onUpdate": "NO ACTION",
2145
+ "onDelete": "RESTRICT",
2146
+ "name": "course_sessions_course_id_courses_id_fkey",
2147
+ "entityType": "fks",
2148
+ "schema": "public",
2149
+ "table": "course_sessions"
2150
+ },
2151
+ {
2152
+ "nameExplicit": false,
2153
+ "columns": [
2154
+ "tenant_id"
2155
+ ],
2156
+ "schemaTo": "public",
2157
+ "tableTo": "organization",
2158
+ "columnsTo": [
2159
+ "id"
2160
+ ],
2161
+ "onUpdate": "NO ACTION",
2162
+ "onDelete": "SET NULL",
2163
+ "name": "course_sessions_tenant_id_organization_id_fkey",
2164
+ "entityType": "fks",
2165
+ "schema": "public",
2166
+ "table": "course_sessions"
2167
+ },
2168
+ {
2169
+ "nameExplicit": false,
2170
+ "columns": [
2171
+ "tenant_id"
2172
+ ],
2173
+ "schemaTo": "public",
2174
+ "tableTo": "organization",
2175
+ "columnsTo": [
2176
+ "id"
2177
+ ],
2178
+ "onUpdate": "NO ACTION",
2179
+ "onDelete": "RESTRICT",
2180
+ "name": "settings_tenant_id_organization_id_fkey",
2181
+ "entityType": "fks",
2182
+ "schema": "public",
2183
+ "table": "settings"
2184
+ },
2185
+ {
2186
+ "nameExplicit": false,
2187
+ "columns": [
2188
+ "tenant_id"
2189
+ ],
2190
+ "schemaTo": "public",
2191
+ "tableTo": "organization",
2192
+ "columnsTo": [
2193
+ "id"
2194
+ ],
2195
+ "onUpdate": "NO ACTION",
2196
+ "onDelete": "SET NULL",
2197
+ "name": "tags_tenant_id_organization_id_fkey",
2198
+ "entityType": "fks",
2199
+ "schema": "public",
2200
+ "table": "tags"
2201
+ },
2202
+ {
2203
+ "columns": [
2204
+ "id"
2205
+ ],
2206
+ "nameExplicit": false,
2207
+ "name": "account_pkey",
2208
+ "schema": "public",
2209
+ "table": "account",
2210
+ "entityType": "pks"
2211
+ },
2212
+ {
2213
+ "columns": [
2214
+ "id"
2215
+ ],
2216
+ "nameExplicit": false,
2217
+ "name": "courses_pkey",
2218
+ "schema": "public",
2219
+ "table": "courses",
2220
+ "entityType": "pks"
2221
+ },
2222
+ {
2223
+ "columns": [
2224
+ "id"
2225
+ ],
2226
+ "nameExplicit": false,
2227
+ "name": "enrollments_pkey",
2228
+ "schema": "public",
2229
+ "table": "enrollments",
2230
+ "entityType": "pks"
2231
+ },
2232
+ {
2233
+ "columns": [
2234
+ "id"
2235
+ ],
2236
+ "nameExplicit": false,
2237
+ "name": "invitation_pkey",
2238
+ "schema": "public",
2239
+ "table": "invitation",
2240
+ "entityType": "pks"
2241
+ },
2242
+ {
2243
+ "columns": [
2244
+ "id"
2245
+ ],
2246
+ "nameExplicit": false,
2247
+ "name": "local_users_pkey",
2248
+ "schema": "public",
2249
+ "table": "local_users",
2250
+ "entityType": "pks"
2251
+ },
2252
+ {
2253
+ "columns": [
2254
+ "id"
2255
+ ],
2256
+ "nameExplicit": false,
2257
+ "name": "member_pkey",
2258
+ "schema": "public",
2259
+ "table": "member",
2260
+ "entityType": "pks"
2261
+ },
2262
+ {
2263
+ "columns": [
2264
+ "id"
2265
+ ],
2266
+ "nameExplicit": false,
2267
+ "name": "organization_pkey",
2268
+ "schema": "public",
2269
+ "table": "organization",
2270
+ "entityType": "pks"
2271
+ },
2272
+ {
2273
+ "columns": [
2274
+ "id"
2275
+ ],
2276
+ "nameExplicit": false,
2277
+ "name": "organization_role_pkey",
2278
+ "schema": "public",
2279
+ "table": "organization_role",
2280
+ "entityType": "pks"
2281
+ },
2282
+ {
2283
+ "columns": [
2284
+ "id"
2285
+ ],
2286
+ "nameExplicit": false,
2287
+ "name": "roles_pkey",
2288
+ "schema": "public",
2289
+ "table": "roles",
2290
+ "entityType": "pks"
2291
+ },
2292
+ {
2293
+ "columns": [
2294
+ "id"
2295
+ ],
2296
+ "nameExplicit": false,
2297
+ "name": "session_pkey",
2298
+ "schema": "public",
2299
+ "table": "session",
2300
+ "entityType": "pks"
2301
+ },
2302
+ {
2303
+ "columns": [
2304
+ "id"
2305
+ ],
2306
+ "nameExplicit": false,
2307
+ "name": "course_sessions_pkey",
2308
+ "schema": "public",
2309
+ "table": "course_sessions",
2310
+ "entityType": "pks"
2311
+ },
2312
+ {
2313
+ "columns": [
2314
+ "id"
2315
+ ],
2316
+ "nameExplicit": false,
2317
+ "name": "settings_pkey",
2318
+ "schema": "public",
2319
+ "table": "settings",
2320
+ "entityType": "pks"
2321
+ },
2322
+ {
2323
+ "columns": [
2324
+ "id"
2325
+ ],
2326
+ "nameExplicit": false,
2327
+ "name": "tags_pkey",
2328
+ "schema": "public",
2329
+ "table": "tags",
2330
+ "entityType": "pks"
2331
+ },
2332
+ {
2333
+ "columns": [
2334
+ "id"
2335
+ ],
2336
+ "nameExplicit": false,
2337
+ "name": "user_pkey",
2338
+ "schema": "public",
2339
+ "table": "user",
2340
+ "entityType": "pks"
2341
+ },
2342
+ {
2343
+ "columns": [
2344
+ "id"
2345
+ ],
2346
+ "nameExplicit": false,
2347
+ "name": "verification_pkey",
2348
+ "schema": "public",
2349
+ "table": "verification",
2350
+ "entityType": "pks"
2351
+ },
2352
+ {
2353
+ "nameExplicit": false,
2354
+ "columns": [
2355
+ "email"
2356
+ ],
2357
+ "nullsNotDistinct": false,
2358
+ "name": "local_users_email_key",
2359
+ "schema": "public",
2360
+ "table": "local_users",
2361
+ "entityType": "uniques"
2362
+ },
2363
+ {
2364
+ "nameExplicit": false,
2365
+ "columns": [
2366
+ "slug"
2367
+ ],
2368
+ "nullsNotDistinct": false,
2369
+ "name": "organization_slug_key",
2370
+ "schema": "public",
2371
+ "table": "organization",
2372
+ "entityType": "uniques"
2373
+ },
2374
+ {
2375
+ "nameExplicit": false,
2376
+ "columns": [
2377
+ "token"
2378
+ ],
2379
+ "nullsNotDistinct": false,
2380
+ "name": "session_token_key",
2381
+ "schema": "public",
2382
+ "table": "session",
2383
+ "entityType": "uniques"
2384
+ },
2385
+ {
2386
+ "nameExplicit": false,
2387
+ "columns": [
2388
+ "tenant_id"
2389
+ ],
2390
+ "nullsNotDistinct": false,
2391
+ "name": "settings_tenant_id_key",
2392
+ "schema": "public",
2393
+ "table": "settings",
2394
+ "entityType": "uniques"
2395
+ },
2396
+ {
2397
+ "nameExplicit": false,
2398
+ "columns": [
2399
+ "email"
2400
+ ],
2401
+ "nullsNotDistinct": false,
2402
+ "name": "user_email_key",
2403
+ "schema": "public",
2404
+ "table": "user",
2405
+ "entityType": "uniques"
2406
+ }
2407
+ ],
2408
+ "renames": []
2409
+ }