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,2795 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "4be91f64-296d-4ff1-924a-e3ed999a828d",
5
+ "prevIds": [
6
+ "21ee7465-14a1-4251-bd9b-a9dbe27727d2"
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": "member_roles",
54
+ "entityType": "tables",
55
+ "schema": "public"
56
+ },
57
+ {
58
+ "isRlsEnabled": false,
59
+ "name": "organization",
60
+ "entityType": "tables",
61
+ "schema": "public"
62
+ },
63
+ {
64
+ "isRlsEnabled": false,
65
+ "name": "organization_role",
66
+ "entityType": "tables",
67
+ "schema": "public"
68
+ },
69
+ {
70
+ "isRlsEnabled": false,
71
+ "name": "roles",
72
+ "entityType": "tables",
73
+ "schema": "public"
74
+ },
75
+ {
76
+ "isRlsEnabled": false,
77
+ "name": "session",
78
+ "entityType": "tables",
79
+ "schema": "public"
80
+ },
81
+ {
82
+ "isRlsEnabled": false,
83
+ "name": "course_sessions",
84
+ "entityType": "tables",
85
+ "schema": "public"
86
+ },
87
+ {
88
+ "isRlsEnabled": false,
89
+ "name": "settings",
90
+ "entityType": "tables",
91
+ "schema": "public"
92
+ },
93
+ {
94
+ "isRlsEnabled": false,
95
+ "name": "tags",
96
+ "entityType": "tables",
97
+ "schema": "public"
98
+ },
99
+ {
100
+ "isRlsEnabled": false,
101
+ "name": "user",
102
+ "entityType": "tables",
103
+ "schema": "public"
104
+ },
105
+ {
106
+ "isRlsEnabled": false,
107
+ "name": "verification",
108
+ "entityType": "tables",
109
+ "schema": "public"
110
+ },
111
+ {
112
+ "type": "text",
113
+ "typeSchema": null,
114
+ "notNull": true,
115
+ "dimensions": 0,
116
+ "default": null,
117
+ "generated": null,
118
+ "identity": null,
119
+ "name": "id",
120
+ "entityType": "columns",
121
+ "schema": "public",
122
+ "table": "account"
123
+ },
124
+ {
125
+ "type": "timestamp(3) with time zone",
126
+ "typeSchema": null,
127
+ "notNull": true,
128
+ "dimensions": 0,
129
+ "default": null,
130
+ "generated": null,
131
+ "identity": null,
132
+ "name": "updated_at",
133
+ "entityType": "columns",
134
+ "schema": "public",
135
+ "table": "account"
136
+ },
137
+ {
138
+ "type": "timestamp(3) with time zone",
139
+ "typeSchema": null,
140
+ "notNull": true,
141
+ "dimensions": 0,
142
+ "default": null,
143
+ "generated": null,
144
+ "identity": null,
145
+ "name": "created_at",
146
+ "entityType": "columns",
147
+ "schema": "public",
148
+ "table": "account"
149
+ },
150
+ {
151
+ "type": "text",
152
+ "typeSchema": null,
153
+ "notNull": true,
154
+ "dimensions": 0,
155
+ "default": null,
156
+ "generated": null,
157
+ "identity": null,
158
+ "name": "account_id",
159
+ "entityType": "columns",
160
+ "schema": "public",
161
+ "table": "account"
162
+ },
163
+ {
164
+ "type": "text",
165
+ "typeSchema": null,
166
+ "notNull": true,
167
+ "dimensions": 0,
168
+ "default": null,
169
+ "generated": null,
170
+ "identity": null,
171
+ "name": "provider_id",
172
+ "entityType": "columns",
173
+ "schema": "public",
174
+ "table": "account"
175
+ },
176
+ {
177
+ "type": "text",
178
+ "typeSchema": null,
179
+ "notNull": true,
180
+ "dimensions": 0,
181
+ "default": null,
182
+ "generated": null,
183
+ "identity": null,
184
+ "name": "user_id",
185
+ "entityType": "columns",
186
+ "schema": "public",
187
+ "table": "account"
188
+ },
189
+ {
190
+ "type": "text",
191
+ "typeSchema": null,
192
+ "notNull": false,
193
+ "dimensions": 0,
194
+ "default": null,
195
+ "generated": null,
196
+ "identity": null,
197
+ "name": "access_token",
198
+ "entityType": "columns",
199
+ "schema": "public",
200
+ "table": "account"
201
+ },
202
+ {
203
+ "type": "text",
204
+ "typeSchema": null,
205
+ "notNull": false,
206
+ "dimensions": 0,
207
+ "default": null,
208
+ "generated": null,
209
+ "identity": null,
210
+ "name": "refresh_token",
211
+ "entityType": "columns",
212
+ "schema": "public",
213
+ "table": "account"
214
+ },
215
+ {
216
+ "type": "text",
217
+ "typeSchema": null,
218
+ "notNull": false,
219
+ "dimensions": 0,
220
+ "default": null,
221
+ "generated": null,
222
+ "identity": null,
223
+ "name": "id_token",
224
+ "entityType": "columns",
225
+ "schema": "public",
226
+ "table": "account"
227
+ },
228
+ {
229
+ "type": "timestamp(3) with time zone",
230
+ "typeSchema": null,
231
+ "notNull": false,
232
+ "dimensions": 0,
233
+ "default": null,
234
+ "generated": null,
235
+ "identity": null,
236
+ "name": "access_token_expires_at",
237
+ "entityType": "columns",
238
+ "schema": "public",
239
+ "table": "account"
240
+ },
241
+ {
242
+ "type": "timestamp(3) with time zone",
243
+ "typeSchema": null,
244
+ "notNull": false,
245
+ "dimensions": 0,
246
+ "default": null,
247
+ "generated": null,
248
+ "identity": null,
249
+ "name": "refresh_token_expires_at",
250
+ "entityType": "columns",
251
+ "schema": "public",
252
+ "table": "account"
253
+ },
254
+ {
255
+ "type": "text",
256
+ "typeSchema": null,
257
+ "notNull": false,
258
+ "dimensions": 0,
259
+ "default": null,
260
+ "generated": null,
261
+ "identity": null,
262
+ "name": "scope",
263
+ "entityType": "columns",
264
+ "schema": "public",
265
+ "table": "account"
266
+ },
267
+ {
268
+ "type": "text",
269
+ "typeSchema": null,
270
+ "notNull": false,
271
+ "dimensions": 0,
272
+ "default": null,
273
+ "generated": null,
274
+ "identity": null,
275
+ "name": "password",
276
+ "entityType": "columns",
277
+ "schema": "public",
278
+ "table": "account"
279
+ },
280
+ {
281
+ "type": "uuid",
282
+ "typeSchema": null,
283
+ "notNull": true,
284
+ "dimensions": 0,
285
+ "default": "gen_random_uuid()",
286
+ "generated": null,
287
+ "identity": null,
288
+ "name": "id",
289
+ "entityType": "columns",
290
+ "schema": "public",
291
+ "table": "courses"
292
+ },
293
+ {
294
+ "type": "timestamp(3) with time zone",
295
+ "typeSchema": null,
296
+ "notNull": true,
297
+ "dimensions": 0,
298
+ "default": "now()",
299
+ "generated": null,
300
+ "identity": null,
301
+ "name": "updated_at",
302
+ "entityType": "columns",
303
+ "schema": "public",
304
+ "table": "courses"
305
+ },
306
+ {
307
+ "type": "timestamp(3) with time zone",
308
+ "typeSchema": null,
309
+ "notNull": true,
310
+ "dimensions": 0,
311
+ "default": "now()",
312
+ "generated": null,
313
+ "identity": null,
314
+ "name": "created_at",
315
+ "entityType": "columns",
316
+ "schema": "public",
317
+ "table": "courses"
318
+ },
319
+ {
320
+ "type": "text",
321
+ "typeSchema": null,
322
+ "notNull": false,
323
+ "dimensions": 0,
324
+ "default": null,
325
+ "generated": null,
326
+ "identity": null,
327
+ "name": "tenant_id",
328
+ "entityType": "columns",
329
+ "schema": "public",
330
+ "table": "courses"
331
+ },
332
+ {
333
+ "type": "varchar(120)",
334
+ "typeSchema": null,
335
+ "notNull": true,
336
+ "dimensions": 0,
337
+ "default": null,
338
+ "generated": null,
339
+ "identity": null,
340
+ "name": "title",
341
+ "entityType": "columns",
342
+ "schema": "public",
343
+ "table": "courses"
344
+ },
345
+ {
346
+ "type": "varchar(200)",
347
+ "typeSchema": null,
348
+ "notNull": false,
349
+ "dimensions": 0,
350
+ "default": null,
351
+ "generated": null,
352
+ "identity": null,
353
+ "name": "summary",
354
+ "entityType": "columns",
355
+ "schema": "public",
356
+ "table": "courses"
357
+ },
358
+ {
359
+ "type": "numeric",
360
+ "typeSchema": null,
361
+ "notNull": false,
362
+ "dimensions": 0,
363
+ "default": null,
364
+ "generated": null,
365
+ "identity": null,
366
+ "name": "fee",
367
+ "entityType": "columns",
368
+ "schema": "public",
369
+ "table": "courses"
370
+ },
371
+ {
372
+ "type": "text",
373
+ "typeSchema": null,
374
+ "notNull": false,
375
+ "dimensions": 0,
376
+ "default": null,
377
+ "generated": null,
378
+ "identity": null,
379
+ "name": "currency",
380
+ "entityType": "columns",
381
+ "schema": "public",
382
+ "table": "courses"
383
+ },
384
+ {
385
+ "type": "numeric",
386
+ "typeSchema": null,
387
+ "notNull": false,
388
+ "dimensions": 0,
389
+ "default": null,
390
+ "generated": null,
391
+ "identity": null,
392
+ "name": "level",
393
+ "entityType": "columns",
394
+ "schema": "public",
395
+ "table": "courses"
396
+ },
397
+ {
398
+ "type": "boolean",
399
+ "typeSchema": null,
400
+ "notNull": false,
401
+ "dimensions": 0,
402
+ "default": null,
403
+ "generated": null,
404
+ "identity": null,
405
+ "name": "notifications",
406
+ "entityType": "columns",
407
+ "schema": "public",
408
+ "table": "courses"
409
+ },
410
+ {
411
+ "type": "text",
412
+ "typeSchema": null,
413
+ "notNull": false,
414
+ "dimensions": 0,
415
+ "default": null,
416
+ "generated": null,
417
+ "identity": null,
418
+ "name": "delivery",
419
+ "entityType": "columns",
420
+ "schema": "public",
421
+ "table": "courses"
422
+ },
423
+ {
424
+ "type": "text",
425
+ "typeSchema": null,
426
+ "notNull": false,
427
+ "dimensions": 0,
428
+ "default": null,
429
+ "generated": null,
430
+ "identity": null,
431
+ "name": "audience",
432
+ "entityType": "columns",
433
+ "schema": "public",
434
+ "table": "courses"
435
+ },
436
+ {
437
+ "type": "varchar(6)",
438
+ "typeSchema": null,
439
+ "notNull": false,
440
+ "dimensions": 0,
441
+ "default": null,
442
+ "generated": null,
443
+ "identity": null,
444
+ "name": "access_code",
445
+ "entityType": "columns",
446
+ "schema": "public",
447
+ "table": "courses"
448
+ },
449
+ {
450
+ "type": "boolean",
451
+ "typeSchema": null,
452
+ "notNull": false,
453
+ "dimensions": 0,
454
+ "default": null,
455
+ "generated": null,
456
+ "identity": null,
457
+ "name": "archived",
458
+ "entityType": "columns",
459
+ "schema": "public",
460
+ "table": "courses"
461
+ },
462
+ {
463
+ "type": "varchar(200)",
464
+ "typeSchema": null,
465
+ "notNull": false,
466
+ "dimensions": 0,
467
+ "default": null,
468
+ "generated": null,
469
+ "identity": null,
470
+ "name": "archive_reason",
471
+ "entityType": "columns",
472
+ "schema": "public",
473
+ "table": "courses"
474
+ },
475
+ {
476
+ "type": "uuid",
477
+ "typeSchema": null,
478
+ "notNull": true,
479
+ "dimensions": 0,
480
+ "default": null,
481
+ "generated": null,
482
+ "identity": null,
483
+ "name": "parent_id",
484
+ "entityType": "columns",
485
+ "schema": "public",
486
+ "table": "courses_tags"
487
+ },
488
+ {
489
+ "type": "uuid",
490
+ "typeSchema": null,
491
+ "notNull": true,
492
+ "dimensions": 0,
493
+ "default": null,
494
+ "generated": null,
495
+ "identity": null,
496
+ "name": "target_id",
497
+ "entityType": "columns",
498
+ "schema": "public",
499
+ "table": "courses_tags"
500
+ },
501
+ {
502
+ "type": "integer",
503
+ "typeSchema": null,
504
+ "notNull": true,
505
+ "dimensions": 0,
506
+ "default": null,
507
+ "generated": null,
508
+ "identity": null,
509
+ "name": "order",
510
+ "entityType": "columns",
511
+ "schema": "public",
512
+ "table": "courses_tags"
513
+ },
514
+ {
515
+ "type": "uuid",
516
+ "typeSchema": null,
517
+ "notNull": true,
518
+ "dimensions": 0,
519
+ "default": "gen_random_uuid()",
520
+ "generated": null,
521
+ "identity": null,
522
+ "name": "id",
523
+ "entityType": "columns",
524
+ "schema": "public",
525
+ "table": "enrollments"
526
+ },
527
+ {
528
+ "type": "timestamp(3) with time zone",
529
+ "typeSchema": null,
530
+ "notNull": true,
531
+ "dimensions": 0,
532
+ "default": "now()",
533
+ "generated": null,
534
+ "identity": null,
535
+ "name": "updated_at",
536
+ "entityType": "columns",
537
+ "schema": "public",
538
+ "table": "enrollments"
539
+ },
540
+ {
541
+ "type": "timestamp(3) with time zone",
542
+ "typeSchema": null,
543
+ "notNull": true,
544
+ "dimensions": 0,
545
+ "default": "now()",
546
+ "generated": null,
547
+ "identity": null,
548
+ "name": "created_at",
549
+ "entityType": "columns",
550
+ "schema": "public",
551
+ "table": "enrollments"
552
+ },
553
+ {
554
+ "type": "text",
555
+ "typeSchema": null,
556
+ "notNull": false,
557
+ "dimensions": 0,
558
+ "default": null,
559
+ "generated": null,
560
+ "identity": null,
561
+ "name": "tenant_id",
562
+ "entityType": "columns",
563
+ "schema": "public",
564
+ "table": "enrollments"
565
+ },
566
+ {
567
+ "type": "uuid",
568
+ "typeSchema": null,
569
+ "notNull": false,
570
+ "dimensions": 0,
571
+ "default": null,
572
+ "generated": null,
573
+ "identity": null,
574
+ "name": "session_id",
575
+ "entityType": "columns",
576
+ "schema": "public",
577
+ "table": "enrollments"
578
+ },
579
+ {
580
+ "type": "text",
581
+ "typeSchema": null,
582
+ "notNull": false,
583
+ "dimensions": 0,
584
+ "default": null,
585
+ "generated": null,
586
+ "identity": null,
587
+ "name": "student_id",
588
+ "entityType": "columns",
589
+ "schema": "public",
590
+ "table": "enrollments"
591
+ },
592
+ {
593
+ "type": "timestamp(3) with time zone",
594
+ "typeSchema": null,
595
+ "notNull": false,
596
+ "dimensions": 0,
597
+ "default": null,
598
+ "generated": null,
599
+ "identity": null,
600
+ "name": "deleted_at",
601
+ "entityType": "columns",
602
+ "schema": "public",
603
+ "table": "enrollments"
604
+ },
605
+ {
606
+ "type": "text",
607
+ "typeSchema": null,
608
+ "notNull": true,
609
+ "dimensions": 0,
610
+ "default": null,
611
+ "generated": null,
612
+ "identity": null,
613
+ "name": "id",
614
+ "entityType": "columns",
615
+ "schema": "public",
616
+ "table": "invitation"
617
+ },
618
+ {
619
+ "type": "timestamp(3) with time zone",
620
+ "typeSchema": null,
621
+ "notNull": true,
622
+ "dimensions": 0,
623
+ "default": "now()",
624
+ "generated": null,
625
+ "identity": null,
626
+ "name": "updated_at",
627
+ "entityType": "columns",
628
+ "schema": "public",
629
+ "table": "invitation"
630
+ },
631
+ {
632
+ "type": "timestamp(3) with time zone",
633
+ "typeSchema": null,
634
+ "notNull": true,
635
+ "dimensions": 0,
636
+ "default": null,
637
+ "generated": null,
638
+ "identity": null,
639
+ "name": "created_at",
640
+ "entityType": "columns",
641
+ "schema": "public",
642
+ "table": "invitation"
643
+ },
644
+ {
645
+ "type": "text",
646
+ "typeSchema": null,
647
+ "notNull": true,
648
+ "dimensions": 0,
649
+ "default": null,
650
+ "generated": null,
651
+ "identity": null,
652
+ "name": "organization_id",
653
+ "entityType": "columns",
654
+ "schema": "public",
655
+ "table": "invitation"
656
+ },
657
+ {
658
+ "type": "text",
659
+ "typeSchema": null,
660
+ "notNull": true,
661
+ "dimensions": 0,
662
+ "default": null,
663
+ "generated": null,
664
+ "identity": null,
665
+ "name": "email",
666
+ "entityType": "columns",
667
+ "schema": "public",
668
+ "table": "invitation"
669
+ },
670
+ {
671
+ "type": "text",
672
+ "typeSchema": null,
673
+ "notNull": false,
674
+ "dimensions": 0,
675
+ "default": null,
676
+ "generated": null,
677
+ "identity": null,
678
+ "name": "role",
679
+ "entityType": "columns",
680
+ "schema": "public",
681
+ "table": "invitation"
682
+ },
683
+ {
684
+ "type": "text",
685
+ "typeSchema": null,
686
+ "notNull": true,
687
+ "dimensions": 0,
688
+ "default": null,
689
+ "generated": null,
690
+ "identity": null,
691
+ "name": "status",
692
+ "entityType": "columns",
693
+ "schema": "public",
694
+ "table": "invitation"
695
+ },
696
+ {
697
+ "type": "timestamp(3) with time zone",
698
+ "typeSchema": null,
699
+ "notNull": true,
700
+ "dimensions": 0,
701
+ "default": null,
702
+ "generated": null,
703
+ "identity": null,
704
+ "name": "expires_at",
705
+ "entityType": "columns",
706
+ "schema": "public",
707
+ "table": "invitation"
708
+ },
709
+ {
710
+ "type": "text",
711
+ "typeSchema": null,
712
+ "notNull": true,
713
+ "dimensions": 0,
714
+ "default": null,
715
+ "generated": null,
716
+ "identity": null,
717
+ "name": "inviter_id",
718
+ "entityType": "columns",
719
+ "schema": "public",
720
+ "table": "invitation"
721
+ },
722
+ {
723
+ "type": "uuid",
724
+ "typeSchema": null,
725
+ "notNull": true,
726
+ "dimensions": 0,
727
+ "default": "gen_random_uuid()",
728
+ "generated": null,
729
+ "identity": null,
730
+ "name": "id",
731
+ "entityType": "columns",
732
+ "schema": "public",
733
+ "table": "local_users"
734
+ },
735
+ {
736
+ "type": "timestamp(3) with time zone",
737
+ "typeSchema": null,
738
+ "notNull": true,
739
+ "dimensions": 0,
740
+ "default": "now()",
741
+ "generated": null,
742
+ "identity": null,
743
+ "name": "updated_at",
744
+ "entityType": "columns",
745
+ "schema": "public",
746
+ "table": "local_users"
747
+ },
748
+ {
749
+ "type": "timestamp(3) with time zone",
750
+ "typeSchema": null,
751
+ "notNull": true,
752
+ "dimensions": 0,
753
+ "default": "now()",
754
+ "generated": null,
755
+ "identity": null,
756
+ "name": "created_at",
757
+ "entityType": "columns",
758
+ "schema": "public",
759
+ "table": "local_users"
760
+ },
761
+ {
762
+ "type": "text",
763
+ "typeSchema": null,
764
+ "notNull": true,
765
+ "dimensions": 0,
766
+ "default": null,
767
+ "generated": null,
768
+ "identity": null,
769
+ "name": "email",
770
+ "entityType": "columns",
771
+ "schema": "public",
772
+ "table": "local_users"
773
+ },
774
+ {
775
+ "type": "text",
776
+ "typeSchema": null,
777
+ "notNull": true,
778
+ "dimensions": 0,
779
+ "default": null,
780
+ "generated": null,
781
+ "identity": null,
782
+ "name": "hash",
783
+ "entityType": "columns",
784
+ "schema": "public",
785
+ "table": "local_users"
786
+ },
787
+ {
788
+ "type": "text",
789
+ "typeSchema": null,
790
+ "notNull": true,
791
+ "dimensions": 0,
792
+ "default": null,
793
+ "generated": null,
794
+ "identity": null,
795
+ "name": "salt",
796
+ "entityType": "columns",
797
+ "schema": "public",
798
+ "table": "local_users"
799
+ },
800
+ {
801
+ "type": "text",
802
+ "typeSchema": null,
803
+ "notNull": false,
804
+ "dimensions": 0,
805
+ "default": null,
806
+ "generated": null,
807
+ "identity": null,
808
+ "name": "sessions",
809
+ "entityType": "columns",
810
+ "schema": "public",
811
+ "table": "local_users"
812
+ },
813
+ {
814
+ "type": "numeric",
815
+ "typeSchema": null,
816
+ "notNull": false,
817
+ "dimensions": 0,
818
+ "default": "'0'",
819
+ "generated": null,
820
+ "identity": null,
821
+ "name": "login_attempts",
822
+ "entityType": "columns",
823
+ "schema": "public",
824
+ "table": "local_users"
825
+ },
826
+ {
827
+ "type": "timestamp(3) with time zone",
828
+ "typeSchema": null,
829
+ "notNull": false,
830
+ "dimensions": 0,
831
+ "default": null,
832
+ "generated": null,
833
+ "identity": null,
834
+ "name": "lock_until",
835
+ "entityType": "columns",
836
+ "schema": "public",
837
+ "table": "local_users"
838
+ },
839
+ {
840
+ "type": "text",
841
+ "typeSchema": null,
842
+ "notNull": false,
843
+ "dimensions": 0,
844
+ "default": null,
845
+ "generated": null,
846
+ "identity": null,
847
+ "name": "reset_password_token",
848
+ "entityType": "columns",
849
+ "schema": "public",
850
+ "table": "local_users"
851
+ },
852
+ {
853
+ "type": "numeric",
854
+ "typeSchema": null,
855
+ "notNull": false,
856
+ "dimensions": 0,
857
+ "default": "'0'",
858
+ "generated": null,
859
+ "identity": null,
860
+ "name": "reset_password_attempts",
861
+ "entityType": "columns",
862
+ "schema": "public",
863
+ "table": "local_users"
864
+ },
865
+ {
866
+ "type": "timestamp(3) with time zone",
867
+ "typeSchema": null,
868
+ "notNull": false,
869
+ "dimensions": 0,
870
+ "default": null,
871
+ "generated": null,
872
+ "identity": null,
873
+ "name": "reset_password_expiration",
874
+ "entityType": "columns",
875
+ "schema": "public",
876
+ "table": "local_users"
877
+ },
878
+ {
879
+ "type": "boolean",
880
+ "typeSchema": null,
881
+ "notNull": false,
882
+ "dimensions": 0,
883
+ "default": "false",
884
+ "generated": null,
885
+ "identity": null,
886
+ "name": "_verified",
887
+ "entityType": "columns",
888
+ "schema": "public",
889
+ "table": "local_users"
890
+ },
891
+ {
892
+ "type": "text",
893
+ "typeSchema": null,
894
+ "notNull": false,
895
+ "dimensions": 0,
896
+ "default": null,
897
+ "generated": null,
898
+ "identity": null,
899
+ "name": "_verification_token",
900
+ "entityType": "columns",
901
+ "schema": "public",
902
+ "table": "local_users"
903
+ },
904
+ {
905
+ "type": "text",
906
+ "typeSchema": null,
907
+ "notNull": true,
908
+ "dimensions": 0,
909
+ "default": null,
910
+ "generated": null,
911
+ "identity": null,
912
+ "name": "id",
913
+ "entityType": "columns",
914
+ "schema": "public",
915
+ "table": "member"
916
+ },
917
+ {
918
+ "type": "timestamp(3) with time zone",
919
+ "typeSchema": null,
920
+ "notNull": true,
921
+ "dimensions": 0,
922
+ "default": "now()",
923
+ "generated": null,
924
+ "identity": null,
925
+ "name": "updated_at",
926
+ "entityType": "columns",
927
+ "schema": "public",
928
+ "table": "member"
929
+ },
930
+ {
931
+ "type": "timestamp(3) with time zone",
932
+ "typeSchema": null,
933
+ "notNull": true,
934
+ "dimensions": 0,
935
+ "default": null,
936
+ "generated": null,
937
+ "identity": null,
938
+ "name": "created_at",
939
+ "entityType": "columns",
940
+ "schema": "public",
941
+ "table": "member"
942
+ },
943
+ {
944
+ "type": "text",
945
+ "typeSchema": null,
946
+ "notNull": true,
947
+ "dimensions": 0,
948
+ "default": null,
949
+ "generated": null,
950
+ "identity": null,
951
+ "name": "organization_id",
952
+ "entityType": "columns",
953
+ "schema": "public",
954
+ "table": "member"
955
+ },
956
+ {
957
+ "type": "text",
958
+ "typeSchema": null,
959
+ "notNull": true,
960
+ "dimensions": 0,
961
+ "default": null,
962
+ "generated": null,
963
+ "identity": null,
964
+ "name": "user_id",
965
+ "entityType": "columns",
966
+ "schema": "public",
967
+ "table": "member"
968
+ },
969
+ {
970
+ "type": "text",
971
+ "typeSchema": null,
972
+ "notNull": true,
973
+ "dimensions": 0,
974
+ "default": null,
975
+ "generated": null,
976
+ "identity": null,
977
+ "name": "role",
978
+ "entityType": "columns",
979
+ "schema": "public",
980
+ "table": "member"
981
+ },
982
+ {
983
+ "type": "uuid",
984
+ "typeSchema": null,
985
+ "notNull": true,
986
+ "dimensions": 0,
987
+ "default": "gen_random_uuid()",
988
+ "generated": null,
989
+ "identity": null,
990
+ "name": "id",
991
+ "entityType": "columns",
992
+ "schema": "public",
993
+ "table": "member_roles"
994
+ },
995
+ {
996
+ "type": "timestamp(3) with time zone",
997
+ "typeSchema": null,
998
+ "notNull": true,
999
+ "dimensions": 0,
1000
+ "default": "now()",
1001
+ "generated": null,
1002
+ "identity": null,
1003
+ "name": "updated_at",
1004
+ "entityType": "columns",
1005
+ "schema": "public",
1006
+ "table": "member_roles"
1007
+ },
1008
+ {
1009
+ "type": "timestamp(3) with time zone",
1010
+ "typeSchema": null,
1011
+ "notNull": true,
1012
+ "dimensions": 0,
1013
+ "default": "now()",
1014
+ "generated": null,
1015
+ "identity": null,
1016
+ "name": "created_at",
1017
+ "entityType": "columns",
1018
+ "schema": "public",
1019
+ "table": "member_roles"
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "typeSchema": null,
1024
+ "notNull": false,
1025
+ "dimensions": 0,
1026
+ "default": null,
1027
+ "generated": null,
1028
+ "identity": null,
1029
+ "name": "tenant_id",
1030
+ "entityType": "columns",
1031
+ "schema": "public",
1032
+ "table": "member_roles"
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "typeSchema": null,
1037
+ "notNull": true,
1038
+ "dimensions": 0,
1039
+ "default": null,
1040
+ "generated": null,
1041
+ "identity": null,
1042
+ "name": "user_id",
1043
+ "entityType": "columns",
1044
+ "schema": "public",
1045
+ "table": "member_roles"
1046
+ },
1047
+ {
1048
+ "type": "varchar(60)",
1049
+ "typeSchema": null,
1050
+ "notNull": true,
1051
+ "dimensions": 0,
1052
+ "default": null,
1053
+ "generated": null,
1054
+ "identity": null,
1055
+ "name": "role",
1056
+ "entityType": "columns",
1057
+ "schema": "public",
1058
+ "table": "member_roles"
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "typeSchema": null,
1063
+ "notNull": true,
1064
+ "dimensions": 0,
1065
+ "default": null,
1066
+ "generated": null,
1067
+ "identity": null,
1068
+ "name": "id",
1069
+ "entityType": "columns",
1070
+ "schema": "public",
1071
+ "table": "organization"
1072
+ },
1073
+ {
1074
+ "type": "timestamp(3) with time zone",
1075
+ "typeSchema": null,
1076
+ "notNull": true,
1077
+ "dimensions": 0,
1078
+ "default": "now()",
1079
+ "generated": null,
1080
+ "identity": null,
1081
+ "name": "updated_at",
1082
+ "entityType": "columns",
1083
+ "schema": "public",
1084
+ "table": "organization"
1085
+ },
1086
+ {
1087
+ "type": "timestamp(3) with time zone",
1088
+ "typeSchema": null,
1089
+ "notNull": true,
1090
+ "dimensions": 0,
1091
+ "default": null,
1092
+ "generated": null,
1093
+ "identity": null,
1094
+ "name": "created_at",
1095
+ "entityType": "columns",
1096
+ "schema": "public",
1097
+ "table": "organization"
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "typeSchema": null,
1102
+ "notNull": true,
1103
+ "dimensions": 0,
1104
+ "default": null,
1105
+ "generated": null,
1106
+ "identity": null,
1107
+ "name": "name",
1108
+ "entityType": "columns",
1109
+ "schema": "public",
1110
+ "table": "organization"
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "typeSchema": null,
1115
+ "notNull": true,
1116
+ "dimensions": 0,
1117
+ "default": null,
1118
+ "generated": null,
1119
+ "identity": null,
1120
+ "name": "slug",
1121
+ "entityType": "columns",
1122
+ "schema": "public",
1123
+ "table": "organization"
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "typeSchema": null,
1128
+ "notNull": false,
1129
+ "dimensions": 0,
1130
+ "default": null,
1131
+ "generated": null,
1132
+ "identity": null,
1133
+ "name": "logo",
1134
+ "entityType": "columns",
1135
+ "schema": "public",
1136
+ "table": "organization"
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "typeSchema": null,
1141
+ "notNull": false,
1142
+ "dimensions": 0,
1143
+ "default": null,
1144
+ "generated": null,
1145
+ "identity": null,
1146
+ "name": "metadata",
1147
+ "entityType": "columns",
1148
+ "schema": "public",
1149
+ "table": "organization"
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "typeSchema": null,
1154
+ "notNull": true,
1155
+ "dimensions": 0,
1156
+ "default": null,
1157
+ "generated": null,
1158
+ "identity": null,
1159
+ "name": "id",
1160
+ "entityType": "columns",
1161
+ "schema": "public",
1162
+ "table": "organization_role"
1163
+ },
1164
+ {
1165
+ "type": "timestamp(3) with time zone",
1166
+ "typeSchema": null,
1167
+ "notNull": false,
1168
+ "dimensions": 0,
1169
+ "default": null,
1170
+ "generated": null,
1171
+ "identity": null,
1172
+ "name": "updated_at",
1173
+ "entityType": "columns",
1174
+ "schema": "public",
1175
+ "table": "organization_role"
1176
+ },
1177
+ {
1178
+ "type": "timestamp(3) with time zone",
1179
+ "typeSchema": null,
1180
+ "notNull": true,
1181
+ "dimensions": 0,
1182
+ "default": null,
1183
+ "generated": null,
1184
+ "identity": null,
1185
+ "name": "created_at",
1186
+ "entityType": "columns",
1187
+ "schema": "public",
1188
+ "table": "organization_role"
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "typeSchema": null,
1193
+ "notNull": true,
1194
+ "dimensions": 0,
1195
+ "default": null,
1196
+ "generated": null,
1197
+ "identity": null,
1198
+ "name": "organization_id",
1199
+ "entityType": "columns",
1200
+ "schema": "public",
1201
+ "table": "organization_role"
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "typeSchema": null,
1206
+ "notNull": true,
1207
+ "dimensions": 0,
1208
+ "default": null,
1209
+ "generated": null,
1210
+ "identity": null,
1211
+ "name": "role",
1212
+ "entityType": "columns",
1213
+ "schema": "public",
1214
+ "table": "organization_role"
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "typeSchema": null,
1219
+ "notNull": true,
1220
+ "dimensions": 0,
1221
+ "default": null,
1222
+ "generated": null,
1223
+ "identity": null,
1224
+ "name": "permission",
1225
+ "entityType": "columns",
1226
+ "schema": "public",
1227
+ "table": "organization_role"
1228
+ },
1229
+ {
1230
+ "type": "uuid",
1231
+ "typeSchema": null,
1232
+ "notNull": true,
1233
+ "dimensions": 0,
1234
+ "default": "gen_random_uuid()",
1235
+ "generated": null,
1236
+ "identity": null,
1237
+ "name": "id",
1238
+ "entityType": "columns",
1239
+ "schema": "public",
1240
+ "table": "roles"
1241
+ },
1242
+ {
1243
+ "type": "timestamp(3) with time zone",
1244
+ "typeSchema": null,
1245
+ "notNull": true,
1246
+ "dimensions": 0,
1247
+ "default": "now()",
1248
+ "generated": null,
1249
+ "identity": null,
1250
+ "name": "updated_at",
1251
+ "entityType": "columns",
1252
+ "schema": "public",
1253
+ "table": "roles"
1254
+ },
1255
+ {
1256
+ "type": "timestamp(3) with time zone",
1257
+ "typeSchema": null,
1258
+ "notNull": true,
1259
+ "dimensions": 0,
1260
+ "default": "now()",
1261
+ "generated": null,
1262
+ "identity": null,
1263
+ "name": "created_at",
1264
+ "entityType": "columns",
1265
+ "schema": "public",
1266
+ "table": "roles"
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "typeSchema": null,
1271
+ "notNull": false,
1272
+ "dimensions": 0,
1273
+ "default": null,
1274
+ "generated": null,
1275
+ "identity": null,
1276
+ "name": "tenant_id",
1277
+ "entityType": "columns",
1278
+ "schema": "public",
1279
+ "table": "roles"
1280
+ },
1281
+ {
1282
+ "type": "varchar(60)",
1283
+ "typeSchema": null,
1284
+ "notNull": true,
1285
+ "dimensions": 0,
1286
+ "default": null,
1287
+ "generated": null,
1288
+ "identity": null,
1289
+ "name": "name",
1290
+ "entityType": "columns",
1291
+ "schema": "public",
1292
+ "table": "roles"
1293
+ },
1294
+ {
1295
+ "type": "boolean",
1296
+ "typeSchema": null,
1297
+ "notNull": false,
1298
+ "dimensions": 0,
1299
+ "default": "false",
1300
+ "generated": null,
1301
+ "identity": null,
1302
+ "name": "is_system",
1303
+ "entityType": "columns",
1304
+ "schema": "public",
1305
+ "table": "roles"
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "typeSchema": null,
1310
+ "notNull": true,
1311
+ "dimensions": 1,
1312
+ "default": null,
1313
+ "generated": null,
1314
+ "identity": null,
1315
+ "name": "permissions",
1316
+ "entityType": "columns",
1317
+ "schema": "public",
1318
+ "table": "roles"
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "typeSchema": null,
1323
+ "notNull": true,
1324
+ "dimensions": 0,
1325
+ "default": null,
1326
+ "generated": null,
1327
+ "identity": null,
1328
+ "name": "id",
1329
+ "entityType": "columns",
1330
+ "schema": "public",
1331
+ "table": "session"
1332
+ },
1333
+ {
1334
+ "type": "timestamp(3) with time zone",
1335
+ "typeSchema": null,
1336
+ "notNull": true,
1337
+ "dimensions": 0,
1338
+ "default": null,
1339
+ "generated": null,
1340
+ "identity": null,
1341
+ "name": "updated_at",
1342
+ "entityType": "columns",
1343
+ "schema": "public",
1344
+ "table": "session"
1345
+ },
1346
+ {
1347
+ "type": "timestamp(3) with time zone",
1348
+ "typeSchema": null,
1349
+ "notNull": true,
1350
+ "dimensions": 0,
1351
+ "default": null,
1352
+ "generated": null,
1353
+ "identity": null,
1354
+ "name": "created_at",
1355
+ "entityType": "columns",
1356
+ "schema": "public",
1357
+ "table": "session"
1358
+ },
1359
+ {
1360
+ "type": "timestamp(3) with time zone",
1361
+ "typeSchema": null,
1362
+ "notNull": true,
1363
+ "dimensions": 0,
1364
+ "default": null,
1365
+ "generated": null,
1366
+ "identity": null,
1367
+ "name": "expires_at",
1368
+ "entityType": "columns",
1369
+ "schema": "public",
1370
+ "table": "session"
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "typeSchema": null,
1375
+ "notNull": true,
1376
+ "dimensions": 0,
1377
+ "default": null,
1378
+ "generated": null,
1379
+ "identity": null,
1380
+ "name": "token",
1381
+ "entityType": "columns",
1382
+ "schema": "public",
1383
+ "table": "session"
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "typeSchema": null,
1388
+ "notNull": false,
1389
+ "dimensions": 0,
1390
+ "default": null,
1391
+ "generated": null,
1392
+ "identity": null,
1393
+ "name": "ip_address",
1394
+ "entityType": "columns",
1395
+ "schema": "public",
1396
+ "table": "session"
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "typeSchema": null,
1401
+ "notNull": false,
1402
+ "dimensions": 0,
1403
+ "default": null,
1404
+ "generated": null,
1405
+ "identity": null,
1406
+ "name": "user_agent",
1407
+ "entityType": "columns",
1408
+ "schema": "public",
1409
+ "table": "session"
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "typeSchema": null,
1414
+ "notNull": true,
1415
+ "dimensions": 0,
1416
+ "default": null,
1417
+ "generated": null,
1418
+ "identity": null,
1419
+ "name": "user_id",
1420
+ "entityType": "columns",
1421
+ "schema": "public",
1422
+ "table": "session"
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "typeSchema": null,
1427
+ "notNull": false,
1428
+ "dimensions": 0,
1429
+ "default": null,
1430
+ "generated": null,
1431
+ "identity": null,
1432
+ "name": "impersonated_by",
1433
+ "entityType": "columns",
1434
+ "schema": "public",
1435
+ "table": "session"
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "typeSchema": null,
1440
+ "notNull": false,
1441
+ "dimensions": 0,
1442
+ "default": null,
1443
+ "generated": null,
1444
+ "identity": null,
1445
+ "name": "active_organization_id",
1446
+ "entityType": "columns",
1447
+ "schema": "public",
1448
+ "table": "session"
1449
+ },
1450
+ {
1451
+ "type": "uuid",
1452
+ "typeSchema": null,
1453
+ "notNull": true,
1454
+ "dimensions": 0,
1455
+ "default": "gen_random_uuid()",
1456
+ "generated": null,
1457
+ "identity": null,
1458
+ "name": "id",
1459
+ "entityType": "columns",
1460
+ "schema": "public",
1461
+ "table": "course_sessions"
1462
+ },
1463
+ {
1464
+ "type": "timestamp(3) with time zone",
1465
+ "typeSchema": null,
1466
+ "notNull": true,
1467
+ "dimensions": 0,
1468
+ "default": "now()",
1469
+ "generated": null,
1470
+ "identity": null,
1471
+ "name": "updated_at",
1472
+ "entityType": "columns",
1473
+ "schema": "public",
1474
+ "table": "course_sessions"
1475
+ },
1476
+ {
1477
+ "type": "timestamp(3) with time zone",
1478
+ "typeSchema": null,
1479
+ "notNull": true,
1480
+ "dimensions": 0,
1481
+ "default": "now()",
1482
+ "generated": null,
1483
+ "identity": null,
1484
+ "name": "created_at",
1485
+ "entityType": "columns",
1486
+ "schema": "public",
1487
+ "table": "course_sessions"
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "typeSchema": null,
1492
+ "notNull": false,
1493
+ "dimensions": 0,
1494
+ "default": null,
1495
+ "generated": null,
1496
+ "identity": null,
1497
+ "name": "tenant_id",
1498
+ "entityType": "columns",
1499
+ "schema": "public",
1500
+ "table": "course_sessions"
1501
+ },
1502
+ {
1503
+ "type": "uuid",
1504
+ "typeSchema": null,
1505
+ "notNull": true,
1506
+ "dimensions": 0,
1507
+ "default": null,
1508
+ "generated": null,
1509
+ "identity": null,
1510
+ "name": "course_id",
1511
+ "entityType": "columns",
1512
+ "schema": "public",
1513
+ "table": "course_sessions"
1514
+ },
1515
+ {
1516
+ "type": "timestamp(3) with time zone",
1517
+ "typeSchema": null,
1518
+ "notNull": true,
1519
+ "dimensions": 0,
1520
+ "default": null,
1521
+ "generated": null,
1522
+ "identity": null,
1523
+ "name": "starts_at",
1524
+ "entityType": "columns",
1525
+ "schema": "public",
1526
+ "table": "course_sessions"
1527
+ },
1528
+ {
1529
+ "type": "numeric",
1530
+ "typeSchema": null,
1531
+ "notNull": false,
1532
+ "dimensions": 0,
1533
+ "default": null,
1534
+ "generated": null,
1535
+ "identity": null,
1536
+ "name": "capacity",
1537
+ "entityType": "columns",
1538
+ "schema": "public",
1539
+ "table": "course_sessions"
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "typeSchema": null,
1544
+ "notNull": false,
1545
+ "dimensions": 0,
1546
+ "default": null,
1547
+ "generated": null,
1548
+ "identity": null,
1549
+ "name": "venue",
1550
+ "entityType": "columns",
1551
+ "schema": "public",
1552
+ "table": "course_sessions"
1553
+ },
1554
+ {
1555
+ "type": "text",
1556
+ "typeSchema": null,
1557
+ "notNull": false,
1558
+ "dimensions": 0,
1559
+ "default": null,
1560
+ "generated": null,
1561
+ "identity": null,
1562
+ "name": "format",
1563
+ "entityType": "columns",
1564
+ "schema": "public",
1565
+ "table": "course_sessions"
1566
+ },
1567
+ {
1568
+ "type": "uuid",
1569
+ "typeSchema": null,
1570
+ "notNull": true,
1571
+ "dimensions": 0,
1572
+ "default": "gen_random_uuid()",
1573
+ "generated": null,
1574
+ "identity": null,
1575
+ "name": "id",
1576
+ "entityType": "columns",
1577
+ "schema": "public",
1578
+ "table": "settings"
1579
+ },
1580
+ {
1581
+ "type": "timestamp(3) with time zone",
1582
+ "typeSchema": null,
1583
+ "notNull": true,
1584
+ "dimensions": 0,
1585
+ "default": "now()",
1586
+ "generated": null,
1587
+ "identity": null,
1588
+ "name": "updated_at",
1589
+ "entityType": "columns",
1590
+ "schema": "public",
1591
+ "table": "settings"
1592
+ },
1593
+ {
1594
+ "type": "timestamp(3) with time zone",
1595
+ "typeSchema": null,
1596
+ "notNull": true,
1597
+ "dimensions": 0,
1598
+ "default": "now()",
1599
+ "generated": null,
1600
+ "identity": null,
1601
+ "name": "created_at",
1602
+ "entityType": "columns",
1603
+ "schema": "public",
1604
+ "table": "settings"
1605
+ },
1606
+ {
1607
+ "type": "text",
1608
+ "typeSchema": null,
1609
+ "notNull": true,
1610
+ "dimensions": 0,
1611
+ "default": null,
1612
+ "generated": null,
1613
+ "identity": null,
1614
+ "name": "tenant_id",
1615
+ "entityType": "columns",
1616
+ "schema": "public",
1617
+ "table": "settings"
1618
+ },
1619
+ {
1620
+ "type": "varchar(120)",
1621
+ "typeSchema": null,
1622
+ "notNull": true,
1623
+ "dimensions": 0,
1624
+ "default": null,
1625
+ "generated": null,
1626
+ "identity": null,
1627
+ "name": "site_title",
1628
+ "entityType": "columns",
1629
+ "schema": "public",
1630
+ "table": "settings"
1631
+ },
1632
+ {
1633
+ "type": "boolean",
1634
+ "typeSchema": null,
1635
+ "notNull": false,
1636
+ "dimensions": 0,
1637
+ "default": null,
1638
+ "generated": null,
1639
+ "identity": null,
1640
+ "name": "maintenance",
1641
+ "entityType": "columns",
1642
+ "schema": "public",
1643
+ "table": "settings"
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "typeSchema": null,
1648
+ "notNull": true,
1649
+ "dimensions": 0,
1650
+ "default": "'settings'",
1651
+ "generated": null,
1652
+ "identity": null,
1653
+ "name": "global_type",
1654
+ "entityType": "columns",
1655
+ "schema": "public",
1656
+ "table": "settings"
1657
+ },
1658
+ {
1659
+ "type": "uuid",
1660
+ "typeSchema": null,
1661
+ "notNull": true,
1662
+ "dimensions": 0,
1663
+ "default": "gen_random_uuid()",
1664
+ "generated": null,
1665
+ "identity": null,
1666
+ "name": "id",
1667
+ "entityType": "columns",
1668
+ "schema": "public",
1669
+ "table": "tags"
1670
+ },
1671
+ {
1672
+ "type": "timestamp(3) with time zone",
1673
+ "typeSchema": null,
1674
+ "notNull": true,
1675
+ "dimensions": 0,
1676
+ "default": "now()",
1677
+ "generated": null,
1678
+ "identity": null,
1679
+ "name": "updated_at",
1680
+ "entityType": "columns",
1681
+ "schema": "public",
1682
+ "table": "tags"
1683
+ },
1684
+ {
1685
+ "type": "timestamp(3) with time zone",
1686
+ "typeSchema": null,
1687
+ "notNull": true,
1688
+ "dimensions": 0,
1689
+ "default": "now()",
1690
+ "generated": null,
1691
+ "identity": null,
1692
+ "name": "created_at",
1693
+ "entityType": "columns",
1694
+ "schema": "public",
1695
+ "table": "tags"
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "typeSchema": null,
1700
+ "notNull": false,
1701
+ "dimensions": 0,
1702
+ "default": null,
1703
+ "generated": null,
1704
+ "identity": null,
1705
+ "name": "tenant_id",
1706
+ "entityType": "columns",
1707
+ "schema": "public",
1708
+ "table": "tags"
1709
+ },
1710
+ {
1711
+ "type": "varchar(60)",
1712
+ "typeSchema": null,
1713
+ "notNull": true,
1714
+ "dimensions": 0,
1715
+ "default": null,
1716
+ "generated": null,
1717
+ "identity": null,
1718
+ "name": "name",
1719
+ "entityType": "columns",
1720
+ "schema": "public",
1721
+ "table": "tags"
1722
+ },
1723
+ {
1724
+ "type": "text",
1725
+ "typeSchema": null,
1726
+ "notNull": true,
1727
+ "dimensions": 0,
1728
+ "default": null,
1729
+ "generated": null,
1730
+ "identity": null,
1731
+ "name": "id",
1732
+ "entityType": "columns",
1733
+ "schema": "public",
1734
+ "table": "user"
1735
+ },
1736
+ {
1737
+ "type": "timestamp(3) with time zone",
1738
+ "typeSchema": null,
1739
+ "notNull": true,
1740
+ "dimensions": 0,
1741
+ "default": null,
1742
+ "generated": null,
1743
+ "identity": null,
1744
+ "name": "updated_at",
1745
+ "entityType": "columns",
1746
+ "schema": "public",
1747
+ "table": "user"
1748
+ },
1749
+ {
1750
+ "type": "timestamp(3) with time zone",
1751
+ "typeSchema": null,
1752
+ "notNull": true,
1753
+ "dimensions": 0,
1754
+ "default": null,
1755
+ "generated": null,
1756
+ "identity": null,
1757
+ "name": "created_at",
1758
+ "entityType": "columns",
1759
+ "schema": "public",
1760
+ "table": "user"
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "typeSchema": null,
1765
+ "notNull": true,
1766
+ "dimensions": 0,
1767
+ "default": null,
1768
+ "generated": null,
1769
+ "identity": null,
1770
+ "name": "name",
1771
+ "entityType": "columns",
1772
+ "schema": "public",
1773
+ "table": "user"
1774
+ },
1775
+ {
1776
+ "type": "text",
1777
+ "typeSchema": null,
1778
+ "notNull": true,
1779
+ "dimensions": 0,
1780
+ "default": null,
1781
+ "generated": null,
1782
+ "identity": null,
1783
+ "name": "email",
1784
+ "entityType": "columns",
1785
+ "schema": "public",
1786
+ "table": "user"
1787
+ },
1788
+ {
1789
+ "type": "boolean",
1790
+ "typeSchema": null,
1791
+ "notNull": true,
1792
+ "dimensions": 0,
1793
+ "default": null,
1794
+ "generated": null,
1795
+ "identity": null,
1796
+ "name": "email_verified",
1797
+ "entityType": "columns",
1798
+ "schema": "public",
1799
+ "table": "user"
1800
+ },
1801
+ {
1802
+ "type": "text",
1803
+ "typeSchema": null,
1804
+ "notNull": false,
1805
+ "dimensions": 0,
1806
+ "default": null,
1807
+ "generated": null,
1808
+ "identity": null,
1809
+ "name": "image",
1810
+ "entityType": "columns",
1811
+ "schema": "public",
1812
+ "table": "user"
1813
+ },
1814
+ {
1815
+ "type": "text",
1816
+ "typeSchema": null,
1817
+ "notNull": false,
1818
+ "dimensions": 0,
1819
+ "default": null,
1820
+ "generated": null,
1821
+ "identity": null,
1822
+ "name": "role",
1823
+ "entityType": "columns",
1824
+ "schema": "public",
1825
+ "table": "user"
1826
+ },
1827
+ {
1828
+ "type": "boolean",
1829
+ "typeSchema": null,
1830
+ "notNull": false,
1831
+ "dimensions": 0,
1832
+ "default": null,
1833
+ "generated": null,
1834
+ "identity": null,
1835
+ "name": "banned",
1836
+ "entityType": "columns",
1837
+ "schema": "public",
1838
+ "table": "user"
1839
+ },
1840
+ {
1841
+ "type": "text",
1842
+ "typeSchema": null,
1843
+ "notNull": false,
1844
+ "dimensions": 0,
1845
+ "default": null,
1846
+ "generated": null,
1847
+ "identity": null,
1848
+ "name": "ban_reason",
1849
+ "entityType": "columns",
1850
+ "schema": "public",
1851
+ "table": "user"
1852
+ },
1853
+ {
1854
+ "type": "timestamp(3) with time zone",
1855
+ "typeSchema": null,
1856
+ "notNull": false,
1857
+ "dimensions": 0,
1858
+ "default": null,
1859
+ "generated": null,
1860
+ "identity": null,
1861
+ "name": "ban_expires",
1862
+ "entityType": "columns",
1863
+ "schema": "public",
1864
+ "table": "user"
1865
+ },
1866
+ {
1867
+ "type": "text",
1868
+ "typeSchema": null,
1869
+ "notNull": true,
1870
+ "dimensions": 0,
1871
+ "default": null,
1872
+ "generated": null,
1873
+ "identity": null,
1874
+ "name": "id",
1875
+ "entityType": "columns",
1876
+ "schema": "public",
1877
+ "table": "verification"
1878
+ },
1879
+ {
1880
+ "type": "timestamp(3) with time zone",
1881
+ "typeSchema": null,
1882
+ "notNull": true,
1883
+ "dimensions": 0,
1884
+ "default": null,
1885
+ "generated": null,
1886
+ "identity": null,
1887
+ "name": "updated_at",
1888
+ "entityType": "columns",
1889
+ "schema": "public",
1890
+ "table": "verification"
1891
+ },
1892
+ {
1893
+ "type": "timestamp(3) with time zone",
1894
+ "typeSchema": null,
1895
+ "notNull": true,
1896
+ "dimensions": 0,
1897
+ "default": null,
1898
+ "generated": null,
1899
+ "identity": null,
1900
+ "name": "created_at",
1901
+ "entityType": "columns",
1902
+ "schema": "public",
1903
+ "table": "verification"
1904
+ },
1905
+ {
1906
+ "type": "text",
1907
+ "typeSchema": null,
1908
+ "notNull": true,
1909
+ "dimensions": 0,
1910
+ "default": null,
1911
+ "generated": null,
1912
+ "identity": null,
1913
+ "name": "identifier",
1914
+ "entityType": "columns",
1915
+ "schema": "public",
1916
+ "table": "verification"
1917
+ },
1918
+ {
1919
+ "type": "text",
1920
+ "typeSchema": null,
1921
+ "notNull": true,
1922
+ "dimensions": 0,
1923
+ "default": null,
1924
+ "generated": null,
1925
+ "identity": null,
1926
+ "name": "value",
1927
+ "entityType": "columns",
1928
+ "schema": "public",
1929
+ "table": "verification"
1930
+ },
1931
+ {
1932
+ "type": "timestamp(3) with time zone",
1933
+ "typeSchema": null,
1934
+ "notNull": true,
1935
+ "dimensions": 0,
1936
+ "default": null,
1937
+ "generated": null,
1938
+ "identity": null,
1939
+ "name": "expires_at",
1940
+ "entityType": "columns",
1941
+ "schema": "public",
1942
+ "table": "verification"
1943
+ },
1944
+ {
1945
+ "nameExplicit": false,
1946
+ "columns": [
1947
+ {
1948
+ "value": "created_at",
1949
+ "isExpression": false,
1950
+ "asc": true,
1951
+ "nullsFirst": false,
1952
+ "opclass": null
1953
+ }
1954
+ ],
1955
+ "isUnique": false,
1956
+ "where": null,
1957
+ "with": "",
1958
+ "method": "btree",
1959
+ "concurrently": false,
1960
+ "name": "courses_created_at_index",
1961
+ "entityType": "indexes",
1962
+ "schema": "public",
1963
+ "table": "courses"
1964
+ },
1965
+ {
1966
+ "nameExplicit": false,
1967
+ "columns": [
1968
+ {
1969
+ "value": "title",
1970
+ "isExpression": false,
1971
+ "asc": true,
1972
+ "nullsFirst": false,
1973
+ "opclass": null
1974
+ }
1975
+ ],
1976
+ "isUnique": false,
1977
+ "where": null,
1978
+ "with": "",
1979
+ "method": "btree",
1980
+ "concurrently": false,
1981
+ "name": "courses_title_index",
1982
+ "entityType": "indexes",
1983
+ "schema": "public",
1984
+ "table": "courses"
1985
+ },
1986
+ {
1987
+ "nameExplicit": false,
1988
+ "columns": [
1989
+ {
1990
+ "value": "parent_id",
1991
+ "isExpression": false,
1992
+ "asc": true,
1993
+ "nullsFirst": false,
1994
+ "opclass": null
1995
+ }
1996
+ ],
1997
+ "isUnique": false,
1998
+ "where": null,
1999
+ "with": "",
2000
+ "method": "btree",
2001
+ "concurrently": false,
2002
+ "name": "courses_tags_parent_id_index",
2003
+ "entityType": "indexes",
2004
+ "schema": "public",
2005
+ "table": "courses_tags"
2006
+ },
2007
+ {
2008
+ "nameExplicit": false,
2009
+ "columns": [
2010
+ {
2011
+ "value": "created_at",
2012
+ "isExpression": false,
2013
+ "asc": true,
2014
+ "nullsFirst": false,
2015
+ "opclass": null
2016
+ }
2017
+ ],
2018
+ "isUnique": false,
2019
+ "where": null,
2020
+ "with": "",
2021
+ "method": "btree",
2022
+ "concurrently": false,
2023
+ "name": "enrollments_created_at_index",
2024
+ "entityType": "indexes",
2025
+ "schema": "public",
2026
+ "table": "enrollments"
2027
+ },
2028
+ {
2029
+ "nameExplicit": false,
2030
+ "columns": [
2031
+ {
2032
+ "value": "created_at",
2033
+ "isExpression": false,
2034
+ "asc": true,
2035
+ "nullsFirst": false,
2036
+ "opclass": null
2037
+ }
2038
+ ],
2039
+ "isUnique": false,
2040
+ "where": null,
2041
+ "with": "",
2042
+ "method": "btree",
2043
+ "concurrently": false,
2044
+ "name": "local_users_created_at_index",
2045
+ "entityType": "indexes",
2046
+ "schema": "public",
2047
+ "table": "local_users"
2048
+ },
2049
+ {
2050
+ "nameExplicit": false,
2051
+ "columns": [
2052
+ {
2053
+ "value": "created_at",
2054
+ "isExpression": false,
2055
+ "asc": true,
2056
+ "nullsFirst": false,
2057
+ "opclass": null
2058
+ }
2059
+ ],
2060
+ "isUnique": false,
2061
+ "where": null,
2062
+ "with": "",
2063
+ "method": "btree",
2064
+ "concurrently": false,
2065
+ "name": "member_roles_created_at_index",
2066
+ "entityType": "indexes",
2067
+ "schema": "public",
2068
+ "table": "member_roles"
2069
+ },
2070
+ {
2071
+ "nameExplicit": false,
2072
+ "columns": [
2073
+ {
2074
+ "value": "user_id",
2075
+ "isExpression": false,
2076
+ "asc": true,
2077
+ "nullsFirst": false,
2078
+ "opclass": null
2079
+ }
2080
+ ],
2081
+ "isUnique": false,
2082
+ "where": null,
2083
+ "with": "",
2084
+ "method": "btree",
2085
+ "concurrently": false,
2086
+ "name": "member_roles_user_id_index",
2087
+ "entityType": "indexes",
2088
+ "schema": "public",
2089
+ "table": "member_roles"
2090
+ },
2091
+ {
2092
+ "nameExplicit": false,
2093
+ "columns": [
2094
+ {
2095
+ "value": "role",
2096
+ "isExpression": false,
2097
+ "asc": true,
2098
+ "nullsFirst": false,
2099
+ "opclass": null
2100
+ }
2101
+ ],
2102
+ "isUnique": false,
2103
+ "where": null,
2104
+ "with": "",
2105
+ "method": "btree",
2106
+ "concurrently": false,
2107
+ "name": "member_roles_role_index",
2108
+ "entityType": "indexes",
2109
+ "schema": "public",
2110
+ "table": "member_roles"
2111
+ },
2112
+ {
2113
+ "nameExplicit": false,
2114
+ "columns": [
2115
+ {
2116
+ "value": "created_at",
2117
+ "isExpression": false,
2118
+ "asc": true,
2119
+ "nullsFirst": false,
2120
+ "opclass": null
2121
+ }
2122
+ ],
2123
+ "isUnique": false,
2124
+ "where": null,
2125
+ "with": "",
2126
+ "method": "btree",
2127
+ "concurrently": false,
2128
+ "name": "roles_created_at_index",
2129
+ "entityType": "indexes",
2130
+ "schema": "public",
2131
+ "table": "roles"
2132
+ },
2133
+ {
2134
+ "nameExplicit": false,
2135
+ "columns": [
2136
+ {
2137
+ "value": "name",
2138
+ "isExpression": false,
2139
+ "asc": true,
2140
+ "nullsFirst": false,
2141
+ "opclass": null
2142
+ }
2143
+ ],
2144
+ "isUnique": false,
2145
+ "where": null,
2146
+ "with": "",
2147
+ "method": "btree",
2148
+ "concurrently": false,
2149
+ "name": "roles_name_index",
2150
+ "entityType": "indexes",
2151
+ "schema": "public",
2152
+ "table": "roles"
2153
+ },
2154
+ {
2155
+ "nameExplicit": false,
2156
+ "columns": [
2157
+ {
2158
+ "value": "created_at",
2159
+ "isExpression": false,
2160
+ "asc": true,
2161
+ "nullsFirst": false,
2162
+ "opclass": null
2163
+ }
2164
+ ],
2165
+ "isUnique": false,
2166
+ "where": null,
2167
+ "with": "",
2168
+ "method": "btree",
2169
+ "concurrently": false,
2170
+ "name": "course_sessions_created_at_index",
2171
+ "entityType": "indexes",
2172
+ "schema": "public",
2173
+ "table": "course_sessions"
2174
+ },
2175
+ {
2176
+ "nameExplicit": false,
2177
+ "columns": [
2178
+ {
2179
+ "value": "created_at",
2180
+ "isExpression": false,
2181
+ "asc": true,
2182
+ "nullsFirst": false,
2183
+ "opclass": null
2184
+ }
2185
+ ],
2186
+ "isUnique": false,
2187
+ "where": null,
2188
+ "with": "",
2189
+ "method": "btree",
2190
+ "concurrently": false,
2191
+ "name": "settings_created_at_index",
2192
+ "entityType": "indexes",
2193
+ "schema": "public",
2194
+ "table": "settings"
2195
+ },
2196
+ {
2197
+ "nameExplicit": false,
2198
+ "columns": [
2199
+ {
2200
+ "value": "created_at",
2201
+ "isExpression": false,
2202
+ "asc": true,
2203
+ "nullsFirst": false,
2204
+ "opclass": null
2205
+ }
2206
+ ],
2207
+ "isUnique": false,
2208
+ "where": null,
2209
+ "with": "",
2210
+ "method": "btree",
2211
+ "concurrently": false,
2212
+ "name": "tags_created_at_index",
2213
+ "entityType": "indexes",
2214
+ "schema": "public",
2215
+ "table": "tags"
2216
+ },
2217
+ {
2218
+ "nameExplicit": false,
2219
+ "columns": [
2220
+ {
2221
+ "value": "name",
2222
+ "isExpression": false,
2223
+ "asc": true,
2224
+ "nullsFirst": false,
2225
+ "opclass": null
2226
+ }
2227
+ ],
2228
+ "isUnique": false,
2229
+ "where": null,
2230
+ "with": "",
2231
+ "method": "btree",
2232
+ "concurrently": false,
2233
+ "name": "tags_name_index",
2234
+ "entityType": "indexes",
2235
+ "schema": "public",
2236
+ "table": "tags"
2237
+ },
2238
+ {
2239
+ "nameExplicit": false,
2240
+ "columns": [
2241
+ "user_id"
2242
+ ],
2243
+ "schemaTo": "public",
2244
+ "tableTo": "user",
2245
+ "columnsTo": [
2246
+ "id"
2247
+ ],
2248
+ "onUpdate": "NO ACTION",
2249
+ "onDelete": "CASCADE",
2250
+ "name": "account_user_id_user_id_fkey",
2251
+ "entityType": "fks",
2252
+ "schema": "public",
2253
+ "table": "account"
2254
+ },
2255
+ {
2256
+ "nameExplicit": false,
2257
+ "columns": [
2258
+ "tenant_id"
2259
+ ],
2260
+ "schemaTo": "public",
2261
+ "tableTo": "organization",
2262
+ "columnsTo": [
2263
+ "id"
2264
+ ],
2265
+ "onUpdate": "NO ACTION",
2266
+ "onDelete": "SET NULL",
2267
+ "name": "courses_tenant_id_organization_id_fkey",
2268
+ "entityType": "fks",
2269
+ "schema": "public",
2270
+ "table": "courses"
2271
+ },
2272
+ {
2273
+ "nameExplicit": false,
2274
+ "columns": [
2275
+ "parent_id"
2276
+ ],
2277
+ "schemaTo": "public",
2278
+ "tableTo": "courses",
2279
+ "columnsTo": [
2280
+ "id"
2281
+ ],
2282
+ "onUpdate": "NO ACTION",
2283
+ "onDelete": "CASCADE",
2284
+ "name": "courses_tags_parent_id_courses_id_fkey",
2285
+ "entityType": "fks",
2286
+ "schema": "public",
2287
+ "table": "courses_tags"
2288
+ },
2289
+ {
2290
+ "nameExplicit": false,
2291
+ "columns": [
2292
+ "target_id"
2293
+ ],
2294
+ "schemaTo": "public",
2295
+ "tableTo": "tags",
2296
+ "columnsTo": [
2297
+ "id"
2298
+ ],
2299
+ "onUpdate": "NO ACTION",
2300
+ "onDelete": "CASCADE",
2301
+ "name": "courses_tags_target_id_tags_id_fkey",
2302
+ "entityType": "fks",
2303
+ "schema": "public",
2304
+ "table": "courses_tags"
2305
+ },
2306
+ {
2307
+ "nameExplicit": false,
2308
+ "columns": [
2309
+ "tenant_id"
2310
+ ],
2311
+ "schemaTo": "public",
2312
+ "tableTo": "organization",
2313
+ "columnsTo": [
2314
+ "id"
2315
+ ],
2316
+ "onUpdate": "NO ACTION",
2317
+ "onDelete": "SET NULL",
2318
+ "name": "enrollments_tenant_id_organization_id_fkey",
2319
+ "entityType": "fks",
2320
+ "schema": "public",
2321
+ "table": "enrollments"
2322
+ },
2323
+ {
2324
+ "nameExplicit": false,
2325
+ "columns": [
2326
+ "session_id"
2327
+ ],
2328
+ "schemaTo": "public",
2329
+ "tableTo": "course_sessions",
2330
+ "columnsTo": [
2331
+ "id"
2332
+ ],
2333
+ "onUpdate": "NO ACTION",
2334
+ "onDelete": "SET NULL",
2335
+ "name": "enrollments_session_id_course_sessions_id_fkey",
2336
+ "entityType": "fks",
2337
+ "schema": "public",
2338
+ "table": "enrollments"
2339
+ },
2340
+ {
2341
+ "nameExplicit": false,
2342
+ "columns": [
2343
+ "student_id"
2344
+ ],
2345
+ "schemaTo": "public",
2346
+ "tableTo": "user",
2347
+ "columnsTo": [
2348
+ "id"
2349
+ ],
2350
+ "onUpdate": "NO ACTION",
2351
+ "onDelete": "SET NULL",
2352
+ "name": "enrollments_student_id_user_id_fkey",
2353
+ "entityType": "fks",
2354
+ "schema": "public",
2355
+ "table": "enrollments"
2356
+ },
2357
+ {
2358
+ "nameExplicit": false,
2359
+ "columns": [
2360
+ "organization_id"
2361
+ ],
2362
+ "schemaTo": "public",
2363
+ "tableTo": "organization",
2364
+ "columnsTo": [
2365
+ "id"
2366
+ ],
2367
+ "onUpdate": "NO ACTION",
2368
+ "onDelete": "CASCADE",
2369
+ "name": "invitation_organization_id_organization_id_fkey",
2370
+ "entityType": "fks",
2371
+ "schema": "public",
2372
+ "table": "invitation"
2373
+ },
2374
+ {
2375
+ "nameExplicit": false,
2376
+ "columns": [
2377
+ "inviter_id"
2378
+ ],
2379
+ "schemaTo": "public",
2380
+ "tableTo": "user",
2381
+ "columnsTo": [
2382
+ "id"
2383
+ ],
2384
+ "onUpdate": "NO ACTION",
2385
+ "onDelete": "CASCADE",
2386
+ "name": "invitation_inviter_id_user_id_fkey",
2387
+ "entityType": "fks",
2388
+ "schema": "public",
2389
+ "table": "invitation"
2390
+ },
2391
+ {
2392
+ "nameExplicit": false,
2393
+ "columns": [
2394
+ "organization_id"
2395
+ ],
2396
+ "schemaTo": "public",
2397
+ "tableTo": "organization",
2398
+ "columnsTo": [
2399
+ "id"
2400
+ ],
2401
+ "onUpdate": "NO ACTION",
2402
+ "onDelete": "CASCADE",
2403
+ "name": "member_organization_id_organization_id_fkey",
2404
+ "entityType": "fks",
2405
+ "schema": "public",
2406
+ "table": "member"
2407
+ },
2408
+ {
2409
+ "nameExplicit": false,
2410
+ "columns": [
2411
+ "user_id"
2412
+ ],
2413
+ "schemaTo": "public",
2414
+ "tableTo": "user",
2415
+ "columnsTo": [
2416
+ "id"
2417
+ ],
2418
+ "onUpdate": "NO ACTION",
2419
+ "onDelete": "CASCADE",
2420
+ "name": "member_user_id_user_id_fkey",
2421
+ "entityType": "fks",
2422
+ "schema": "public",
2423
+ "table": "member"
2424
+ },
2425
+ {
2426
+ "nameExplicit": false,
2427
+ "columns": [
2428
+ "tenant_id"
2429
+ ],
2430
+ "schemaTo": "public",
2431
+ "tableTo": "organization",
2432
+ "columnsTo": [
2433
+ "id"
2434
+ ],
2435
+ "onUpdate": "NO ACTION",
2436
+ "onDelete": "SET NULL",
2437
+ "name": "member_roles_tenant_id_organization_id_fkey",
2438
+ "entityType": "fks",
2439
+ "schema": "public",
2440
+ "table": "member_roles"
2441
+ },
2442
+ {
2443
+ "nameExplicit": false,
2444
+ "columns": [
2445
+ "user_id"
2446
+ ],
2447
+ "schemaTo": "public",
2448
+ "tableTo": "user",
2449
+ "columnsTo": [
2450
+ "id"
2451
+ ],
2452
+ "onUpdate": "NO ACTION",
2453
+ "onDelete": "CASCADE",
2454
+ "name": "member_roles_user_id_user_id_fkey",
2455
+ "entityType": "fks",
2456
+ "schema": "public",
2457
+ "table": "member_roles"
2458
+ },
2459
+ {
2460
+ "nameExplicit": false,
2461
+ "columns": [
2462
+ "organization_id"
2463
+ ],
2464
+ "schemaTo": "public",
2465
+ "tableTo": "organization",
2466
+ "columnsTo": [
2467
+ "id"
2468
+ ],
2469
+ "onUpdate": "NO ACTION",
2470
+ "onDelete": "CASCADE",
2471
+ "name": "organization_role_organization_id_organization_id_fkey",
2472
+ "entityType": "fks",
2473
+ "schema": "public",
2474
+ "table": "organization_role"
2475
+ },
2476
+ {
2477
+ "nameExplicit": false,
2478
+ "columns": [
2479
+ "tenant_id"
2480
+ ],
2481
+ "schemaTo": "public",
2482
+ "tableTo": "organization",
2483
+ "columnsTo": [
2484
+ "id"
2485
+ ],
2486
+ "onUpdate": "NO ACTION",
2487
+ "onDelete": "SET NULL",
2488
+ "name": "roles_tenant_id_organization_id_fkey",
2489
+ "entityType": "fks",
2490
+ "schema": "public",
2491
+ "table": "roles"
2492
+ },
2493
+ {
2494
+ "nameExplicit": false,
2495
+ "columns": [
2496
+ "user_id"
2497
+ ],
2498
+ "schemaTo": "public",
2499
+ "tableTo": "user",
2500
+ "columnsTo": [
2501
+ "id"
2502
+ ],
2503
+ "onUpdate": "NO ACTION",
2504
+ "onDelete": "CASCADE",
2505
+ "name": "session_user_id_user_id_fkey",
2506
+ "entityType": "fks",
2507
+ "schema": "public",
2508
+ "table": "session"
2509
+ },
2510
+ {
2511
+ "nameExplicit": false,
2512
+ "columns": [
2513
+ "tenant_id"
2514
+ ],
2515
+ "schemaTo": "public",
2516
+ "tableTo": "organization",
2517
+ "columnsTo": [
2518
+ "id"
2519
+ ],
2520
+ "onUpdate": "NO ACTION",
2521
+ "onDelete": "SET NULL",
2522
+ "name": "course_sessions_tenant_id_organization_id_fkey",
2523
+ "entityType": "fks",
2524
+ "schema": "public",
2525
+ "table": "course_sessions"
2526
+ },
2527
+ {
2528
+ "nameExplicit": false,
2529
+ "columns": [
2530
+ "course_id"
2531
+ ],
2532
+ "schemaTo": "public",
2533
+ "tableTo": "courses",
2534
+ "columnsTo": [
2535
+ "id"
2536
+ ],
2537
+ "onUpdate": "NO ACTION",
2538
+ "onDelete": "RESTRICT",
2539
+ "name": "course_sessions_course_id_courses_id_fkey",
2540
+ "entityType": "fks",
2541
+ "schema": "public",
2542
+ "table": "course_sessions"
2543
+ },
2544
+ {
2545
+ "nameExplicit": false,
2546
+ "columns": [
2547
+ "tenant_id"
2548
+ ],
2549
+ "schemaTo": "public",
2550
+ "tableTo": "organization",
2551
+ "columnsTo": [
2552
+ "id"
2553
+ ],
2554
+ "onUpdate": "NO ACTION",
2555
+ "onDelete": "RESTRICT",
2556
+ "name": "settings_tenant_id_organization_id_fkey",
2557
+ "entityType": "fks",
2558
+ "schema": "public",
2559
+ "table": "settings"
2560
+ },
2561
+ {
2562
+ "nameExplicit": false,
2563
+ "columns": [
2564
+ "tenant_id"
2565
+ ],
2566
+ "schemaTo": "public",
2567
+ "tableTo": "organization",
2568
+ "columnsTo": [
2569
+ "id"
2570
+ ],
2571
+ "onUpdate": "NO ACTION",
2572
+ "onDelete": "SET NULL",
2573
+ "name": "tags_tenant_id_organization_id_fkey",
2574
+ "entityType": "fks",
2575
+ "schema": "public",
2576
+ "table": "tags"
2577
+ },
2578
+ {
2579
+ "columns": [
2580
+ "id"
2581
+ ],
2582
+ "nameExplicit": false,
2583
+ "name": "account_pkey",
2584
+ "schema": "public",
2585
+ "table": "account",
2586
+ "entityType": "pks"
2587
+ },
2588
+ {
2589
+ "columns": [
2590
+ "id"
2591
+ ],
2592
+ "nameExplicit": false,
2593
+ "name": "courses_pkey",
2594
+ "schema": "public",
2595
+ "table": "courses",
2596
+ "entityType": "pks"
2597
+ },
2598
+ {
2599
+ "columns": [
2600
+ "id"
2601
+ ],
2602
+ "nameExplicit": false,
2603
+ "name": "enrollments_pkey",
2604
+ "schema": "public",
2605
+ "table": "enrollments",
2606
+ "entityType": "pks"
2607
+ },
2608
+ {
2609
+ "columns": [
2610
+ "id"
2611
+ ],
2612
+ "nameExplicit": false,
2613
+ "name": "invitation_pkey",
2614
+ "schema": "public",
2615
+ "table": "invitation",
2616
+ "entityType": "pks"
2617
+ },
2618
+ {
2619
+ "columns": [
2620
+ "id"
2621
+ ],
2622
+ "nameExplicit": false,
2623
+ "name": "local_users_pkey",
2624
+ "schema": "public",
2625
+ "table": "local_users",
2626
+ "entityType": "pks"
2627
+ },
2628
+ {
2629
+ "columns": [
2630
+ "id"
2631
+ ],
2632
+ "nameExplicit": false,
2633
+ "name": "member_pkey",
2634
+ "schema": "public",
2635
+ "table": "member",
2636
+ "entityType": "pks"
2637
+ },
2638
+ {
2639
+ "columns": [
2640
+ "id"
2641
+ ],
2642
+ "nameExplicit": false,
2643
+ "name": "member_roles_pkey",
2644
+ "schema": "public",
2645
+ "table": "member_roles",
2646
+ "entityType": "pks"
2647
+ },
2648
+ {
2649
+ "columns": [
2650
+ "id"
2651
+ ],
2652
+ "nameExplicit": false,
2653
+ "name": "organization_pkey",
2654
+ "schema": "public",
2655
+ "table": "organization",
2656
+ "entityType": "pks"
2657
+ },
2658
+ {
2659
+ "columns": [
2660
+ "id"
2661
+ ],
2662
+ "nameExplicit": false,
2663
+ "name": "organization_role_pkey",
2664
+ "schema": "public",
2665
+ "table": "organization_role",
2666
+ "entityType": "pks"
2667
+ },
2668
+ {
2669
+ "columns": [
2670
+ "id"
2671
+ ],
2672
+ "nameExplicit": false,
2673
+ "name": "roles_pkey",
2674
+ "schema": "public",
2675
+ "table": "roles",
2676
+ "entityType": "pks"
2677
+ },
2678
+ {
2679
+ "columns": [
2680
+ "id"
2681
+ ],
2682
+ "nameExplicit": false,
2683
+ "name": "session_pkey",
2684
+ "schema": "public",
2685
+ "table": "session",
2686
+ "entityType": "pks"
2687
+ },
2688
+ {
2689
+ "columns": [
2690
+ "id"
2691
+ ],
2692
+ "nameExplicit": false,
2693
+ "name": "course_sessions_pkey",
2694
+ "schema": "public",
2695
+ "table": "course_sessions",
2696
+ "entityType": "pks"
2697
+ },
2698
+ {
2699
+ "columns": [
2700
+ "id"
2701
+ ],
2702
+ "nameExplicit": false,
2703
+ "name": "settings_pkey",
2704
+ "schema": "public",
2705
+ "table": "settings",
2706
+ "entityType": "pks"
2707
+ },
2708
+ {
2709
+ "columns": [
2710
+ "id"
2711
+ ],
2712
+ "nameExplicit": false,
2713
+ "name": "tags_pkey",
2714
+ "schema": "public",
2715
+ "table": "tags",
2716
+ "entityType": "pks"
2717
+ },
2718
+ {
2719
+ "columns": [
2720
+ "id"
2721
+ ],
2722
+ "nameExplicit": false,
2723
+ "name": "user_pkey",
2724
+ "schema": "public",
2725
+ "table": "user",
2726
+ "entityType": "pks"
2727
+ },
2728
+ {
2729
+ "columns": [
2730
+ "id"
2731
+ ],
2732
+ "nameExplicit": false,
2733
+ "name": "verification_pkey",
2734
+ "schema": "public",
2735
+ "table": "verification",
2736
+ "entityType": "pks"
2737
+ },
2738
+ {
2739
+ "nameExplicit": false,
2740
+ "columns": [
2741
+ "email"
2742
+ ],
2743
+ "nullsNotDistinct": false,
2744
+ "name": "local_users_email_key",
2745
+ "schema": "public",
2746
+ "table": "local_users",
2747
+ "entityType": "uniques"
2748
+ },
2749
+ {
2750
+ "nameExplicit": false,
2751
+ "columns": [
2752
+ "slug"
2753
+ ],
2754
+ "nullsNotDistinct": false,
2755
+ "name": "organization_slug_key",
2756
+ "schema": "public",
2757
+ "table": "organization",
2758
+ "entityType": "uniques"
2759
+ },
2760
+ {
2761
+ "nameExplicit": false,
2762
+ "columns": [
2763
+ "token"
2764
+ ],
2765
+ "nullsNotDistinct": false,
2766
+ "name": "session_token_key",
2767
+ "schema": "public",
2768
+ "table": "session",
2769
+ "entityType": "uniques"
2770
+ },
2771
+ {
2772
+ "nameExplicit": false,
2773
+ "columns": [
2774
+ "tenant_id"
2775
+ ],
2776
+ "nullsNotDistinct": false,
2777
+ "name": "settings_tenant_id_key",
2778
+ "schema": "public",
2779
+ "table": "settings",
2780
+ "entityType": "uniques"
2781
+ },
2782
+ {
2783
+ "nameExplicit": false,
2784
+ "columns": [
2785
+ "email"
2786
+ ],
2787
+ "nullsNotDistinct": false,
2788
+ "name": "user_email_key",
2789
+ "schema": "public",
2790
+ "table": "user",
2791
+ "entityType": "uniques"
2792
+ }
2793
+ ],
2794
+ "renames": []
2795
+ }