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