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