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,3324 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "ce498403-4d0a-42f3-bff4-8d7474e09ff9",
5
+ "prevIds": [
6
+ "d0d99ddb-da20-4c61-9c94-5e07e5d729a2"
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": "numeric",
580
+ "typeSchema": null,
581
+ "notNull": false,
582
+ "dimensions": 0,
583
+ "default": null,
584
+ "generated": null,
585
+ "identity": null,
586
+ "name": "fee",
587
+ "entityType": "columns",
588
+ "schema": "public",
589
+ "table": "courses"
590
+ },
591
+ {
592
+ "type": "text",
593
+ "typeSchema": null,
594
+ "notNull": false,
595
+ "dimensions": 0,
596
+ "default": null,
597
+ "generated": null,
598
+ "identity": null,
599
+ "name": "currency",
600
+ "entityType": "columns",
601
+ "schema": "public",
602
+ "table": "courses"
603
+ },
604
+ {
605
+ "type": "numeric",
606
+ "typeSchema": null,
607
+ "notNull": false,
608
+ "dimensions": 0,
609
+ "default": null,
610
+ "generated": null,
611
+ "identity": null,
612
+ "name": "level",
613
+ "entityType": "columns",
614
+ "schema": "public",
615
+ "table": "courses"
616
+ },
617
+ {
618
+ "type": "boolean",
619
+ "typeSchema": null,
620
+ "notNull": false,
621
+ "dimensions": 0,
622
+ "default": null,
623
+ "generated": null,
624
+ "identity": null,
625
+ "name": "notifications",
626
+ "entityType": "columns",
627
+ "schema": "public",
628
+ "table": "courses"
629
+ },
630
+ {
631
+ "type": "text",
632
+ "typeSchema": null,
633
+ "notNull": false,
634
+ "dimensions": 0,
635
+ "default": null,
636
+ "generated": null,
637
+ "identity": null,
638
+ "name": "delivery",
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": "audience",
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": "access_code",
665
+ "entityType": "columns",
666
+ "schema": "public",
667
+ "table": "courses"
668
+ },
669
+ {
670
+ "type": "boolean",
671
+ "typeSchema": null,
672
+ "notNull": false,
673
+ "dimensions": 0,
674
+ "default": null,
675
+ "generated": null,
676
+ "identity": null,
677
+ "name": "archived",
678
+ "entityType": "columns",
679
+ "schema": "public",
680
+ "table": "courses"
681
+ },
682
+ {
683
+ "type": "text",
684
+ "typeSchema": null,
685
+ "notNull": false,
686
+ "dimensions": 1,
687
+ "default": null,
688
+ "generated": null,
689
+ "identity": null,
690
+ "name": "topics",
691
+ "entityType": "columns",
692
+ "schema": "public",
693
+ "table": "courses"
694
+ },
695
+ {
696
+ "type": "date",
697
+ "typeSchema": null,
698
+ "notNull": false,
699
+ "dimensions": 0,
700
+ "default": null,
701
+ "generated": null,
702
+ "identity": null,
703
+ "name": "opens_on",
704
+ "entityType": "columns",
705
+ "schema": "public",
706
+ "table": "courses"
707
+ },
708
+ {
709
+ "type": "text",
710
+ "typeSchema": null,
711
+ "notNull": false,
712
+ "dimensions": 0,
713
+ "default": null,
714
+ "generated": null,
715
+ "identity": null,
716
+ "name": "archive_reason",
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": "'draft'",
727
+ "generated": null,
728
+ "identity": null,
729
+ "name": "_status",
730
+ "entityType": "columns",
731
+ "schema": "public",
732
+ "table": "courses"
733
+ },
734
+ {
735
+ "type": "uuid",
736
+ "typeSchema": null,
737
+ "notNull": true,
738
+ "dimensions": 0,
739
+ "default": null,
740
+ "generated": null,
741
+ "identity": null,
742
+ "name": "parent_id",
743
+ "entityType": "columns",
744
+ "schema": "public",
745
+ "table": "courses_tags"
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": "target_id",
756
+ "entityType": "columns",
757
+ "schema": "public",
758
+ "table": "courses_tags"
759
+ },
760
+ {
761
+ "type": "integer",
762
+ "typeSchema": null,
763
+ "notNull": true,
764
+ "dimensions": 0,
765
+ "default": null,
766
+ "generated": null,
767
+ "identity": null,
768
+ "name": "order",
769
+ "entityType": "columns",
770
+ "schema": "public",
771
+ "table": "courses_tags"
772
+ },
773
+ {
774
+ "type": "uuid",
775
+ "typeSchema": null,
776
+ "notNull": true,
777
+ "dimensions": 0,
778
+ "default": "gen_random_uuid()",
779
+ "generated": null,
780
+ "identity": null,
781
+ "name": "id",
782
+ "entityType": "columns",
783
+ "schema": "public",
784
+ "table": "enrollments"
785
+ },
786
+ {
787
+ "type": "timestamp(3) with time zone",
788
+ "typeSchema": null,
789
+ "notNull": true,
790
+ "dimensions": 0,
791
+ "default": "now()",
792
+ "generated": null,
793
+ "identity": null,
794
+ "name": "updated_at",
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": "created_at",
808
+ "entityType": "columns",
809
+ "schema": "public",
810
+ "table": "enrollments"
811
+ },
812
+ {
813
+ "type": "text",
814
+ "typeSchema": null,
815
+ "notNull": false,
816
+ "dimensions": 0,
817
+ "default": null,
818
+ "generated": null,
819
+ "identity": null,
820
+ "name": "tenant_id",
821
+ "entityType": "columns",
822
+ "schema": "public",
823
+ "table": "enrollments"
824
+ },
825
+ {
826
+ "type": "uuid",
827
+ "typeSchema": null,
828
+ "notNull": false,
829
+ "dimensions": 0,
830
+ "default": null,
831
+ "generated": null,
832
+ "identity": null,
833
+ "name": "session_id",
834
+ "entityType": "columns",
835
+ "schema": "public",
836
+ "table": "enrollments"
837
+ },
838
+ {
839
+ "type": "text",
840
+ "typeSchema": null,
841
+ "notNull": false,
842
+ "dimensions": 0,
843
+ "default": null,
844
+ "generated": null,
845
+ "identity": null,
846
+ "name": "student_id",
847
+ "entityType": "columns",
848
+ "schema": "public",
849
+ "table": "enrollments"
850
+ },
851
+ {
852
+ "type": "timestamp(3) with time zone",
853
+ "typeSchema": null,
854
+ "notNull": false,
855
+ "dimensions": 0,
856
+ "default": null,
857
+ "generated": null,
858
+ "identity": null,
859
+ "name": "deleted_at",
860
+ "entityType": "columns",
861
+ "schema": "public",
862
+ "table": "enrollments"
863
+ },
864
+ {
865
+ "type": "text",
866
+ "typeSchema": null,
867
+ "notNull": true,
868
+ "dimensions": 0,
869
+ "default": null,
870
+ "generated": null,
871
+ "identity": null,
872
+ "name": "id",
873
+ "entityType": "columns",
874
+ "schema": "public",
875
+ "table": "invitation"
876
+ },
877
+ {
878
+ "type": "timestamp(3) with time zone",
879
+ "typeSchema": null,
880
+ "notNull": true,
881
+ "dimensions": 0,
882
+ "default": "now()",
883
+ "generated": null,
884
+ "identity": null,
885
+ "name": "updated_at",
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": null,
896
+ "generated": null,
897
+ "identity": null,
898
+ "name": "created_at",
899
+ "entityType": "columns",
900
+ "schema": "public",
901
+ "table": "invitation"
902
+ },
903
+ {
904
+ "type": "text",
905
+ "typeSchema": null,
906
+ "notNull": true,
907
+ "dimensions": 0,
908
+ "default": null,
909
+ "generated": null,
910
+ "identity": null,
911
+ "name": "organization_id",
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": "email",
925
+ "entityType": "columns",
926
+ "schema": "public",
927
+ "table": "invitation"
928
+ },
929
+ {
930
+ "type": "text",
931
+ "typeSchema": null,
932
+ "notNull": false,
933
+ "dimensions": 0,
934
+ "default": null,
935
+ "generated": null,
936
+ "identity": null,
937
+ "name": "role",
938
+ "entityType": "columns",
939
+ "schema": "public",
940
+ "table": "invitation"
941
+ },
942
+ {
943
+ "type": "text",
944
+ "typeSchema": null,
945
+ "notNull": true,
946
+ "dimensions": 0,
947
+ "default": null,
948
+ "generated": null,
949
+ "identity": null,
950
+ "name": "status",
951
+ "entityType": "columns",
952
+ "schema": "public",
953
+ "table": "invitation"
954
+ },
955
+ {
956
+ "type": "timestamp(3) with time zone",
957
+ "typeSchema": null,
958
+ "notNull": true,
959
+ "dimensions": 0,
960
+ "default": null,
961
+ "generated": null,
962
+ "identity": null,
963
+ "name": "expires_at",
964
+ "entityType": "columns",
965
+ "schema": "public",
966
+ "table": "invitation"
967
+ },
968
+ {
969
+ "type": "text",
970
+ "typeSchema": null,
971
+ "notNull": true,
972
+ "dimensions": 0,
973
+ "default": null,
974
+ "generated": null,
975
+ "identity": null,
976
+ "name": "inviter_id",
977
+ "entityType": "columns",
978
+ "schema": "public",
979
+ "table": "invitation"
980
+ },
981
+ {
982
+ "type": "uuid",
983
+ "typeSchema": null,
984
+ "notNull": true,
985
+ "dimensions": 0,
986
+ "default": "gen_random_uuid()",
987
+ "generated": null,
988
+ "identity": null,
989
+ "name": "id",
990
+ "entityType": "columns",
991
+ "schema": "public",
992
+ "table": "local_users"
993
+ },
994
+ {
995
+ "type": "timestamp(3) with time zone",
996
+ "typeSchema": null,
997
+ "notNull": true,
998
+ "dimensions": 0,
999
+ "default": "now()",
1000
+ "generated": null,
1001
+ "identity": null,
1002
+ "name": "updated_at",
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": "created_at",
1016
+ "entityType": "columns",
1017
+ "schema": "public",
1018
+ "table": "local_users"
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "typeSchema": null,
1023
+ "notNull": true,
1024
+ "dimensions": 0,
1025
+ "default": null,
1026
+ "generated": null,
1027
+ "identity": null,
1028
+ "name": "email",
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": "hash",
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": "salt",
1055
+ "entityType": "columns",
1056
+ "schema": "public",
1057
+ "table": "local_users"
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "typeSchema": null,
1062
+ "notNull": false,
1063
+ "dimensions": 0,
1064
+ "default": null,
1065
+ "generated": null,
1066
+ "identity": null,
1067
+ "name": "sessions",
1068
+ "entityType": "columns",
1069
+ "schema": "public",
1070
+ "table": "local_users"
1071
+ },
1072
+ {
1073
+ "type": "numeric",
1074
+ "typeSchema": null,
1075
+ "notNull": false,
1076
+ "dimensions": 0,
1077
+ "default": "'0'",
1078
+ "generated": null,
1079
+ "identity": null,
1080
+ "name": "login_attempts",
1081
+ "entityType": "columns",
1082
+ "schema": "public",
1083
+ "table": "local_users"
1084
+ },
1085
+ {
1086
+ "type": "timestamp(3) with time zone",
1087
+ "typeSchema": null,
1088
+ "notNull": false,
1089
+ "dimensions": 0,
1090
+ "default": null,
1091
+ "generated": null,
1092
+ "identity": null,
1093
+ "name": "lock_until",
1094
+ "entityType": "columns",
1095
+ "schema": "public",
1096
+ "table": "local_users"
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "typeSchema": null,
1101
+ "notNull": false,
1102
+ "dimensions": 0,
1103
+ "default": null,
1104
+ "generated": null,
1105
+ "identity": null,
1106
+ "name": "reset_password_token",
1107
+ "entityType": "columns",
1108
+ "schema": "public",
1109
+ "table": "local_users"
1110
+ },
1111
+ {
1112
+ "type": "numeric",
1113
+ "typeSchema": null,
1114
+ "notNull": false,
1115
+ "dimensions": 0,
1116
+ "default": "'0'",
1117
+ "generated": null,
1118
+ "identity": null,
1119
+ "name": "reset_password_attempts",
1120
+ "entityType": "columns",
1121
+ "schema": "public",
1122
+ "table": "local_users"
1123
+ },
1124
+ {
1125
+ "type": "timestamp(3) with time zone",
1126
+ "typeSchema": null,
1127
+ "notNull": false,
1128
+ "dimensions": 0,
1129
+ "default": null,
1130
+ "generated": null,
1131
+ "identity": null,
1132
+ "name": "reset_password_expiration",
1133
+ "entityType": "columns",
1134
+ "schema": "public",
1135
+ "table": "local_users"
1136
+ },
1137
+ {
1138
+ "type": "boolean",
1139
+ "typeSchema": null,
1140
+ "notNull": false,
1141
+ "dimensions": 0,
1142
+ "default": "false",
1143
+ "generated": null,
1144
+ "identity": null,
1145
+ "name": "_verified",
1146
+ "entityType": "columns",
1147
+ "schema": "public",
1148
+ "table": "local_users"
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "typeSchema": null,
1153
+ "notNull": false,
1154
+ "dimensions": 0,
1155
+ "default": null,
1156
+ "generated": null,
1157
+ "identity": null,
1158
+ "name": "_verification_token",
1159
+ "entityType": "columns",
1160
+ "schema": "public",
1161
+ "table": "local_users"
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "typeSchema": null,
1166
+ "notNull": true,
1167
+ "dimensions": 0,
1168
+ "default": null,
1169
+ "generated": null,
1170
+ "identity": null,
1171
+ "name": "id",
1172
+ "entityType": "columns",
1173
+ "schema": "public",
1174
+ "table": "member"
1175
+ },
1176
+ {
1177
+ "type": "timestamp(3) with time zone",
1178
+ "typeSchema": null,
1179
+ "notNull": true,
1180
+ "dimensions": 0,
1181
+ "default": "now()",
1182
+ "generated": null,
1183
+ "identity": null,
1184
+ "name": "updated_at",
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": null,
1195
+ "generated": null,
1196
+ "identity": null,
1197
+ "name": "created_at",
1198
+ "entityType": "columns",
1199
+ "schema": "public",
1200
+ "table": "member"
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "typeSchema": null,
1205
+ "notNull": true,
1206
+ "dimensions": 0,
1207
+ "default": null,
1208
+ "generated": null,
1209
+ "identity": null,
1210
+ "name": "organization_id",
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": "user_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": "role",
1237
+ "entityType": "columns",
1238
+ "schema": "public",
1239
+ "table": "member"
1240
+ },
1241
+ {
1242
+ "type": "uuid",
1243
+ "typeSchema": null,
1244
+ "notNull": true,
1245
+ "dimensions": 0,
1246
+ "default": "gen_random_uuid()",
1247
+ "generated": null,
1248
+ "identity": null,
1249
+ "name": "id",
1250
+ "entityType": "columns",
1251
+ "schema": "public",
1252
+ "table": "member_roles"
1253
+ },
1254
+ {
1255
+ "type": "timestamp(3) with time zone",
1256
+ "typeSchema": null,
1257
+ "notNull": true,
1258
+ "dimensions": 0,
1259
+ "default": "now()",
1260
+ "generated": null,
1261
+ "identity": null,
1262
+ "name": "updated_at",
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": "created_at",
1276
+ "entityType": "columns",
1277
+ "schema": "public",
1278
+ "table": "member_roles"
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "typeSchema": null,
1283
+ "notNull": false,
1284
+ "dimensions": 0,
1285
+ "default": null,
1286
+ "generated": null,
1287
+ "identity": null,
1288
+ "name": "tenant_id",
1289
+ "entityType": "columns",
1290
+ "schema": "public",
1291
+ "table": "member_roles"
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "typeSchema": null,
1296
+ "notNull": true,
1297
+ "dimensions": 0,
1298
+ "default": null,
1299
+ "generated": null,
1300
+ "identity": null,
1301
+ "name": "user_id",
1302
+ "entityType": "columns",
1303
+ "schema": "public",
1304
+ "table": "member_roles"
1305
+ },
1306
+ {
1307
+ "type": "varchar(60)",
1308
+ "typeSchema": null,
1309
+ "notNull": true,
1310
+ "dimensions": 0,
1311
+ "default": null,
1312
+ "generated": null,
1313
+ "identity": null,
1314
+ "name": "role",
1315
+ "entityType": "columns",
1316
+ "schema": "public",
1317
+ "table": "member_roles"
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "typeSchema": null,
1322
+ "notNull": true,
1323
+ "dimensions": 0,
1324
+ "default": null,
1325
+ "generated": null,
1326
+ "identity": null,
1327
+ "name": "id",
1328
+ "entityType": "columns",
1329
+ "schema": "public",
1330
+ "table": "organization"
1331
+ },
1332
+ {
1333
+ "type": "timestamp(3) with time zone",
1334
+ "typeSchema": null,
1335
+ "notNull": true,
1336
+ "dimensions": 0,
1337
+ "default": "now()",
1338
+ "generated": null,
1339
+ "identity": null,
1340
+ "name": "updated_at",
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": null,
1351
+ "generated": null,
1352
+ "identity": null,
1353
+ "name": "created_at",
1354
+ "entityType": "columns",
1355
+ "schema": "public",
1356
+ "table": "organization"
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "typeSchema": null,
1361
+ "notNull": true,
1362
+ "dimensions": 0,
1363
+ "default": null,
1364
+ "generated": null,
1365
+ "identity": null,
1366
+ "name": "name",
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": "slug",
1380
+ "entityType": "columns",
1381
+ "schema": "public",
1382
+ "table": "organization"
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "typeSchema": null,
1387
+ "notNull": false,
1388
+ "dimensions": 0,
1389
+ "default": null,
1390
+ "generated": null,
1391
+ "identity": null,
1392
+ "name": "logo",
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": "metadata",
1406
+ "entityType": "columns",
1407
+ "schema": "public",
1408
+ "table": "organization"
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "typeSchema": null,
1413
+ "notNull": true,
1414
+ "dimensions": 0,
1415
+ "default": null,
1416
+ "generated": null,
1417
+ "identity": null,
1418
+ "name": "id",
1419
+ "entityType": "columns",
1420
+ "schema": "public",
1421
+ "table": "organization_role"
1422
+ },
1423
+ {
1424
+ "type": "timestamp(3) with time zone",
1425
+ "typeSchema": null,
1426
+ "notNull": false,
1427
+ "dimensions": 0,
1428
+ "default": null,
1429
+ "generated": null,
1430
+ "identity": null,
1431
+ "name": "updated_at",
1432
+ "entityType": "columns",
1433
+ "schema": "public",
1434
+ "table": "organization_role"
1435
+ },
1436
+ {
1437
+ "type": "timestamp(3) with time zone",
1438
+ "typeSchema": null,
1439
+ "notNull": true,
1440
+ "dimensions": 0,
1441
+ "default": null,
1442
+ "generated": null,
1443
+ "identity": null,
1444
+ "name": "created_at",
1445
+ "entityType": "columns",
1446
+ "schema": "public",
1447
+ "table": "organization_role"
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "typeSchema": null,
1452
+ "notNull": true,
1453
+ "dimensions": 0,
1454
+ "default": null,
1455
+ "generated": null,
1456
+ "identity": null,
1457
+ "name": "organization_id",
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": "role",
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": "permission",
1484
+ "entityType": "columns",
1485
+ "schema": "public",
1486
+ "table": "organization_role"
1487
+ },
1488
+ {
1489
+ "type": "uuid",
1490
+ "typeSchema": null,
1491
+ "notNull": true,
1492
+ "dimensions": 0,
1493
+ "default": "gen_random_uuid()",
1494
+ "generated": null,
1495
+ "identity": null,
1496
+ "name": "id",
1497
+ "entityType": "columns",
1498
+ "schema": "public",
1499
+ "table": "roles"
1500
+ },
1501
+ {
1502
+ "type": "timestamp(3) with time zone",
1503
+ "typeSchema": null,
1504
+ "notNull": true,
1505
+ "dimensions": 0,
1506
+ "default": "now()",
1507
+ "generated": null,
1508
+ "identity": null,
1509
+ "name": "updated_at",
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": "created_at",
1523
+ "entityType": "columns",
1524
+ "schema": "public",
1525
+ "table": "roles"
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "typeSchema": null,
1530
+ "notNull": false,
1531
+ "dimensions": 0,
1532
+ "default": null,
1533
+ "generated": null,
1534
+ "identity": null,
1535
+ "name": "tenant_id",
1536
+ "entityType": "columns",
1537
+ "schema": "public",
1538
+ "table": "roles"
1539
+ },
1540
+ {
1541
+ "type": "varchar(60)",
1542
+ "typeSchema": null,
1543
+ "notNull": true,
1544
+ "dimensions": 0,
1545
+ "default": null,
1546
+ "generated": null,
1547
+ "identity": null,
1548
+ "name": "name",
1549
+ "entityType": "columns",
1550
+ "schema": "public",
1551
+ "table": "roles"
1552
+ },
1553
+ {
1554
+ "type": "varchar(60)",
1555
+ "typeSchema": null,
1556
+ "notNull": false,
1557
+ "dimensions": 0,
1558
+ "default": null,
1559
+ "generated": null,
1560
+ "identity": null,
1561
+ "name": "label_ar",
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_en",
1575
+ "entityType": "columns",
1576
+ "schema": "public",
1577
+ "table": "roles"
1578
+ },
1579
+ {
1580
+ "type": "boolean",
1581
+ "typeSchema": null,
1582
+ "notNull": false,
1583
+ "dimensions": 0,
1584
+ "default": "false",
1585
+ "generated": null,
1586
+ "identity": null,
1587
+ "name": "is_system",
1588
+ "entityType": "columns",
1589
+ "schema": "public",
1590
+ "table": "roles"
1591
+ },
1592
+ {
1593
+ "type": "text",
1594
+ "typeSchema": null,
1595
+ "notNull": true,
1596
+ "dimensions": 1,
1597
+ "default": null,
1598
+ "generated": null,
1599
+ "identity": null,
1600
+ "name": "permissions",
1601
+ "entityType": "columns",
1602
+ "schema": "public",
1603
+ "table": "roles"
1604
+ },
1605
+ {
1606
+ "type": "text",
1607
+ "typeSchema": null,
1608
+ "notNull": true,
1609
+ "dimensions": 0,
1610
+ "default": null,
1611
+ "generated": null,
1612
+ "identity": null,
1613
+ "name": "id",
1614
+ "entityType": "columns",
1615
+ "schema": "public",
1616
+ "table": "session"
1617
+ },
1618
+ {
1619
+ "type": "timestamp(3) with time zone",
1620
+ "typeSchema": null,
1621
+ "notNull": true,
1622
+ "dimensions": 0,
1623
+ "default": null,
1624
+ "generated": null,
1625
+ "identity": null,
1626
+ "name": "updated_at",
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": "created_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": "expires_at",
1653
+ "entityType": "columns",
1654
+ "schema": "public",
1655
+ "table": "session"
1656
+ },
1657
+ {
1658
+ "type": "text",
1659
+ "typeSchema": null,
1660
+ "notNull": true,
1661
+ "dimensions": 0,
1662
+ "default": null,
1663
+ "generated": null,
1664
+ "identity": null,
1665
+ "name": "token",
1666
+ "entityType": "columns",
1667
+ "schema": "public",
1668
+ "table": "session"
1669
+ },
1670
+ {
1671
+ "type": "text",
1672
+ "typeSchema": null,
1673
+ "notNull": false,
1674
+ "dimensions": 0,
1675
+ "default": null,
1676
+ "generated": null,
1677
+ "identity": null,
1678
+ "name": "ip_address",
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": "user_agent",
1692
+ "entityType": "columns",
1693
+ "schema": "public",
1694
+ "table": "session"
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "typeSchema": null,
1699
+ "notNull": true,
1700
+ "dimensions": 0,
1701
+ "default": null,
1702
+ "generated": null,
1703
+ "identity": null,
1704
+ "name": "user_id",
1705
+ "entityType": "columns",
1706
+ "schema": "public",
1707
+ "table": "session"
1708
+ },
1709
+ {
1710
+ "type": "text",
1711
+ "typeSchema": null,
1712
+ "notNull": false,
1713
+ "dimensions": 0,
1714
+ "default": null,
1715
+ "generated": null,
1716
+ "identity": null,
1717
+ "name": "impersonated_by",
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": "active_organization_id",
1731
+ "entityType": "columns",
1732
+ "schema": "public",
1733
+ "table": "session"
1734
+ },
1735
+ {
1736
+ "type": "uuid",
1737
+ "typeSchema": null,
1738
+ "notNull": true,
1739
+ "dimensions": 0,
1740
+ "default": "gen_random_uuid()",
1741
+ "generated": null,
1742
+ "identity": null,
1743
+ "name": "id",
1744
+ "entityType": "columns",
1745
+ "schema": "public",
1746
+ "table": "course_sessions"
1747
+ },
1748
+ {
1749
+ "type": "timestamp(3) with time zone",
1750
+ "typeSchema": null,
1751
+ "notNull": true,
1752
+ "dimensions": 0,
1753
+ "default": "now()",
1754
+ "generated": null,
1755
+ "identity": null,
1756
+ "name": "updated_at",
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": "created_at",
1770
+ "entityType": "columns",
1771
+ "schema": "public",
1772
+ "table": "course_sessions"
1773
+ },
1774
+ {
1775
+ "type": "text",
1776
+ "typeSchema": null,
1777
+ "notNull": false,
1778
+ "dimensions": 0,
1779
+ "default": null,
1780
+ "generated": null,
1781
+ "identity": null,
1782
+ "name": "tenant_id",
1783
+ "entityType": "columns",
1784
+ "schema": "public",
1785
+ "table": "course_sessions"
1786
+ },
1787
+ {
1788
+ "type": "uuid",
1789
+ "typeSchema": null,
1790
+ "notNull": true,
1791
+ "dimensions": 0,
1792
+ "default": null,
1793
+ "generated": null,
1794
+ "identity": null,
1795
+ "name": "course_id",
1796
+ "entityType": "columns",
1797
+ "schema": "public",
1798
+ "table": "course_sessions"
1799
+ },
1800
+ {
1801
+ "type": "timestamp(3) with time zone",
1802
+ "typeSchema": null,
1803
+ "notNull": true,
1804
+ "dimensions": 0,
1805
+ "default": null,
1806
+ "generated": null,
1807
+ "identity": null,
1808
+ "name": "starts_at",
1809
+ "entityType": "columns",
1810
+ "schema": "public",
1811
+ "table": "course_sessions"
1812
+ },
1813
+ {
1814
+ "type": "numeric",
1815
+ "typeSchema": null,
1816
+ "notNull": false,
1817
+ "dimensions": 0,
1818
+ "default": null,
1819
+ "generated": null,
1820
+ "identity": null,
1821
+ "name": "capacity",
1822
+ "entityType": "columns",
1823
+ "schema": "public",
1824
+ "table": "course_sessions"
1825
+ },
1826
+ {
1827
+ "type": "text",
1828
+ "typeSchema": null,
1829
+ "notNull": false,
1830
+ "dimensions": 0,
1831
+ "default": null,
1832
+ "generated": null,
1833
+ "identity": null,
1834
+ "name": "venue",
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": "format",
1848
+ "entityType": "columns",
1849
+ "schema": "public",
1850
+ "table": "course_sessions"
1851
+ },
1852
+ {
1853
+ "type": "boolean",
1854
+ "typeSchema": null,
1855
+ "notNull": false,
1856
+ "dimensions": 0,
1857
+ "default": null,
1858
+ "generated": null,
1859
+ "identity": null,
1860
+ "name": "archived",
1861
+ "entityType": "columns",
1862
+ "schema": "public",
1863
+ "table": "course_sessions"
1864
+ },
1865
+ {
1866
+ "type": "uuid",
1867
+ "typeSchema": null,
1868
+ "notNull": true,
1869
+ "dimensions": 0,
1870
+ "default": "gen_random_uuid()",
1871
+ "generated": null,
1872
+ "identity": null,
1873
+ "name": "id",
1874
+ "entityType": "columns",
1875
+ "schema": "public",
1876
+ "table": "settings"
1877
+ },
1878
+ {
1879
+ "type": "timestamp(3) with time zone",
1880
+ "typeSchema": null,
1881
+ "notNull": true,
1882
+ "dimensions": 0,
1883
+ "default": "now()",
1884
+ "generated": null,
1885
+ "identity": null,
1886
+ "name": "updated_at",
1887
+ "entityType": "columns",
1888
+ "schema": "public",
1889
+ "table": "settings"
1890
+ },
1891
+ {
1892
+ "type": "timestamp(3) with time zone",
1893
+ "typeSchema": null,
1894
+ "notNull": true,
1895
+ "dimensions": 0,
1896
+ "default": "now()",
1897
+ "generated": null,
1898
+ "identity": null,
1899
+ "name": "created_at",
1900
+ "entityType": "columns",
1901
+ "schema": "public",
1902
+ "table": "settings"
1903
+ },
1904
+ {
1905
+ "type": "text",
1906
+ "typeSchema": null,
1907
+ "notNull": true,
1908
+ "dimensions": 0,
1909
+ "default": null,
1910
+ "generated": null,
1911
+ "identity": null,
1912
+ "name": "tenant_id",
1913
+ "entityType": "columns",
1914
+ "schema": "public",
1915
+ "table": "settings"
1916
+ },
1917
+ {
1918
+ "type": "varchar(120)",
1919
+ "typeSchema": null,
1920
+ "notNull": true,
1921
+ "dimensions": 0,
1922
+ "default": null,
1923
+ "generated": null,
1924
+ "identity": null,
1925
+ "name": "site_title",
1926
+ "entityType": "columns",
1927
+ "schema": "public",
1928
+ "table": "settings"
1929
+ },
1930
+ {
1931
+ "type": "boolean",
1932
+ "typeSchema": null,
1933
+ "notNull": false,
1934
+ "dimensions": 0,
1935
+ "default": null,
1936
+ "generated": null,
1937
+ "identity": null,
1938
+ "name": "maintenance",
1939
+ "entityType": "columns",
1940
+ "schema": "public",
1941
+ "table": "settings"
1942
+ },
1943
+ {
1944
+ "type": "text",
1945
+ "typeSchema": null,
1946
+ "notNull": false,
1947
+ "dimensions": 0,
1948
+ "default": null,
1949
+ "generated": null,
1950
+ "identity": null,
1951
+ "name": "contact_email",
1952
+ "entityType": "columns",
1953
+ "schema": "public",
1954
+ "table": "settings"
1955
+ },
1956
+ {
1957
+ "type": "text",
1958
+ "typeSchema": null,
1959
+ "notNull": true,
1960
+ "dimensions": 0,
1961
+ "default": "'settings'",
1962
+ "generated": null,
1963
+ "identity": null,
1964
+ "name": "global_type",
1965
+ "entityType": "columns",
1966
+ "schema": "public",
1967
+ "table": "settings"
1968
+ },
1969
+ {
1970
+ "type": "uuid",
1971
+ "typeSchema": null,
1972
+ "notNull": true,
1973
+ "dimensions": 0,
1974
+ "default": "gen_random_uuid()",
1975
+ "generated": null,
1976
+ "identity": null,
1977
+ "name": "id",
1978
+ "entityType": "columns",
1979
+ "schema": "public",
1980
+ "table": "tags"
1981
+ },
1982
+ {
1983
+ "type": "timestamp(3) with time zone",
1984
+ "typeSchema": null,
1985
+ "notNull": true,
1986
+ "dimensions": 0,
1987
+ "default": "now()",
1988
+ "generated": null,
1989
+ "identity": null,
1990
+ "name": "updated_at",
1991
+ "entityType": "columns",
1992
+ "schema": "public",
1993
+ "table": "tags"
1994
+ },
1995
+ {
1996
+ "type": "timestamp(3) with time zone",
1997
+ "typeSchema": null,
1998
+ "notNull": true,
1999
+ "dimensions": 0,
2000
+ "default": "now()",
2001
+ "generated": null,
2002
+ "identity": null,
2003
+ "name": "created_at",
2004
+ "entityType": "columns",
2005
+ "schema": "public",
2006
+ "table": "tags"
2007
+ },
2008
+ {
2009
+ "type": "text",
2010
+ "typeSchema": null,
2011
+ "notNull": false,
2012
+ "dimensions": 0,
2013
+ "default": null,
2014
+ "generated": null,
2015
+ "identity": null,
2016
+ "name": "tenant_id",
2017
+ "entityType": "columns",
2018
+ "schema": "public",
2019
+ "table": "tags"
2020
+ },
2021
+ {
2022
+ "type": "varchar(60)",
2023
+ "typeSchema": null,
2024
+ "notNull": true,
2025
+ "dimensions": 0,
2026
+ "default": null,
2027
+ "generated": null,
2028
+ "identity": null,
2029
+ "name": "name_ar",
2030
+ "entityType": "columns",
2031
+ "schema": "public",
2032
+ "table": "tags"
2033
+ },
2034
+ {
2035
+ "type": "varchar(60)",
2036
+ "typeSchema": null,
2037
+ "notNull": true,
2038
+ "dimensions": 0,
2039
+ "default": null,
2040
+ "generated": null,
2041
+ "identity": null,
2042
+ "name": "name_en",
2043
+ "entityType": "columns",
2044
+ "schema": "public",
2045
+ "table": "tags"
2046
+ },
2047
+ {
2048
+ "type": "text",
2049
+ "typeSchema": null,
2050
+ "notNull": true,
2051
+ "dimensions": 0,
2052
+ "default": null,
2053
+ "generated": null,
2054
+ "identity": null,
2055
+ "name": "id",
2056
+ "entityType": "columns",
2057
+ "schema": "public",
2058
+ "table": "user"
2059
+ },
2060
+ {
2061
+ "type": "timestamp(3) with time zone",
2062
+ "typeSchema": null,
2063
+ "notNull": true,
2064
+ "dimensions": 0,
2065
+ "default": null,
2066
+ "generated": null,
2067
+ "identity": null,
2068
+ "name": "updated_at",
2069
+ "entityType": "columns",
2070
+ "schema": "public",
2071
+ "table": "user"
2072
+ },
2073
+ {
2074
+ "type": "timestamp(3) with time zone",
2075
+ "typeSchema": null,
2076
+ "notNull": true,
2077
+ "dimensions": 0,
2078
+ "default": null,
2079
+ "generated": null,
2080
+ "identity": null,
2081
+ "name": "created_at",
2082
+ "entityType": "columns",
2083
+ "schema": "public",
2084
+ "table": "user"
2085
+ },
2086
+ {
2087
+ "type": "text",
2088
+ "typeSchema": null,
2089
+ "notNull": true,
2090
+ "dimensions": 0,
2091
+ "default": null,
2092
+ "generated": null,
2093
+ "identity": null,
2094
+ "name": "name",
2095
+ "entityType": "columns",
2096
+ "schema": "public",
2097
+ "table": "user"
2098
+ },
2099
+ {
2100
+ "type": "text",
2101
+ "typeSchema": null,
2102
+ "notNull": true,
2103
+ "dimensions": 0,
2104
+ "default": null,
2105
+ "generated": null,
2106
+ "identity": null,
2107
+ "name": "email",
2108
+ "entityType": "columns",
2109
+ "schema": "public",
2110
+ "table": "user"
2111
+ },
2112
+ {
2113
+ "type": "boolean",
2114
+ "typeSchema": null,
2115
+ "notNull": true,
2116
+ "dimensions": 0,
2117
+ "default": null,
2118
+ "generated": null,
2119
+ "identity": null,
2120
+ "name": "email_verified",
2121
+ "entityType": "columns",
2122
+ "schema": "public",
2123
+ "table": "user"
2124
+ },
2125
+ {
2126
+ "type": "text",
2127
+ "typeSchema": null,
2128
+ "notNull": false,
2129
+ "dimensions": 0,
2130
+ "default": null,
2131
+ "generated": null,
2132
+ "identity": null,
2133
+ "name": "image",
2134
+ "entityType": "columns",
2135
+ "schema": "public",
2136
+ "table": "user"
2137
+ },
2138
+ {
2139
+ "type": "text",
2140
+ "typeSchema": null,
2141
+ "notNull": false,
2142
+ "dimensions": 0,
2143
+ "default": null,
2144
+ "generated": null,
2145
+ "identity": null,
2146
+ "name": "role",
2147
+ "entityType": "columns",
2148
+ "schema": "public",
2149
+ "table": "user"
2150
+ },
2151
+ {
2152
+ "type": "boolean",
2153
+ "typeSchema": null,
2154
+ "notNull": false,
2155
+ "dimensions": 0,
2156
+ "default": null,
2157
+ "generated": null,
2158
+ "identity": null,
2159
+ "name": "banned",
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": "ban_reason",
2173
+ "entityType": "columns",
2174
+ "schema": "public",
2175
+ "table": "user"
2176
+ },
2177
+ {
2178
+ "type": "timestamp(3) with time zone",
2179
+ "typeSchema": null,
2180
+ "notNull": false,
2181
+ "dimensions": 0,
2182
+ "default": null,
2183
+ "generated": null,
2184
+ "identity": null,
2185
+ "name": "ban_expires",
2186
+ "entityType": "columns",
2187
+ "schema": "public",
2188
+ "table": "user"
2189
+ },
2190
+ {
2191
+ "type": "text",
2192
+ "typeSchema": null,
2193
+ "notNull": true,
2194
+ "dimensions": 0,
2195
+ "default": null,
2196
+ "generated": null,
2197
+ "identity": null,
2198
+ "name": "id",
2199
+ "entityType": "columns",
2200
+ "schema": "public",
2201
+ "table": "verification"
2202
+ },
2203
+ {
2204
+ "type": "timestamp(3) with time zone",
2205
+ "typeSchema": null,
2206
+ "notNull": true,
2207
+ "dimensions": 0,
2208
+ "default": null,
2209
+ "generated": null,
2210
+ "identity": null,
2211
+ "name": "updated_at",
2212
+ "entityType": "columns",
2213
+ "schema": "public",
2214
+ "table": "verification"
2215
+ },
2216
+ {
2217
+ "type": "timestamp(3) with time zone",
2218
+ "typeSchema": null,
2219
+ "notNull": true,
2220
+ "dimensions": 0,
2221
+ "default": null,
2222
+ "generated": null,
2223
+ "identity": null,
2224
+ "name": "created_at",
2225
+ "entityType": "columns",
2226
+ "schema": "public",
2227
+ "table": "verification"
2228
+ },
2229
+ {
2230
+ "type": "text",
2231
+ "typeSchema": null,
2232
+ "notNull": true,
2233
+ "dimensions": 0,
2234
+ "default": null,
2235
+ "generated": null,
2236
+ "identity": null,
2237
+ "name": "identifier",
2238
+ "entityType": "columns",
2239
+ "schema": "public",
2240
+ "table": "verification"
2241
+ },
2242
+ {
2243
+ "type": "text",
2244
+ "typeSchema": null,
2245
+ "notNull": true,
2246
+ "dimensions": 0,
2247
+ "default": null,
2248
+ "generated": null,
2249
+ "identity": null,
2250
+ "name": "value",
2251
+ "entityType": "columns",
2252
+ "schema": "public",
2253
+ "table": "verification"
2254
+ },
2255
+ {
2256
+ "type": "timestamp(3) with time zone",
2257
+ "typeSchema": null,
2258
+ "notNull": true,
2259
+ "dimensions": 0,
2260
+ "default": null,
2261
+ "generated": null,
2262
+ "identity": null,
2263
+ "name": "expires_at",
2264
+ "entityType": "columns",
2265
+ "schema": "public",
2266
+ "table": "verification"
2267
+ },
2268
+ {
2269
+ "nameExplicit": false,
2270
+ "columns": [
2271
+ {
2272
+ "value": "parent_id",
2273
+ "isExpression": false,
2274
+ "asc": true,
2275
+ "nullsFirst": false,
2276
+ "opclass": null
2277
+ }
2278
+ ],
2279
+ "isUnique": false,
2280
+ "where": null,
2281
+ "with": "",
2282
+ "method": "btree",
2283
+ "concurrently": false,
2284
+ "name": "_courses_versions_parent_id_index",
2285
+ "entityType": "indexes",
2286
+ "schema": "public",
2287
+ "table": "_courses_versions"
2288
+ },
2289
+ {
2290
+ "nameExplicit": false,
2291
+ "columns": [
2292
+ {
2293
+ "value": "latest",
2294
+ "isExpression": false,
2295
+ "asc": true,
2296
+ "nullsFirst": false,
2297
+ "opclass": null
2298
+ }
2299
+ ],
2300
+ "isUnique": false,
2301
+ "where": null,
2302
+ "with": "",
2303
+ "method": "btree",
2304
+ "concurrently": false,
2305
+ "name": "_courses_versions_latest_index",
2306
+ "entityType": "indexes",
2307
+ "schema": "public",
2308
+ "table": "_courses_versions"
2309
+ },
2310
+ {
2311
+ "nameExplicit": false,
2312
+ "columns": [
2313
+ {
2314
+ "value": "created_at",
2315
+ "isExpression": false,
2316
+ "asc": true,
2317
+ "nullsFirst": false,
2318
+ "opclass": null
2319
+ }
2320
+ ],
2321
+ "isUnique": false,
2322
+ "where": null,
2323
+ "with": "",
2324
+ "method": "btree",
2325
+ "concurrently": false,
2326
+ "name": "audit_log_created_at_index",
2327
+ "entityType": "indexes",
2328
+ "schema": "public",
2329
+ "table": "audit_log"
2330
+ },
2331
+ {
2332
+ "nameExplicit": false,
2333
+ "columns": [
2334
+ {
2335
+ "value": "record",
2336
+ "isExpression": false,
2337
+ "asc": true,
2338
+ "nullsFirst": false,
2339
+ "opclass": null
2340
+ }
2341
+ ],
2342
+ "isUnique": false,
2343
+ "where": null,
2344
+ "with": "",
2345
+ "method": "btree",
2346
+ "concurrently": false,
2347
+ "name": "audit_log_record_index",
2348
+ "entityType": "indexes",
2349
+ "schema": "public",
2350
+ "table": "audit_log"
2351
+ },
2352
+ {
2353
+ "nameExplicit": false,
2354
+ "columns": [
2355
+ {
2356
+ "value": "created_at",
2357
+ "isExpression": false,
2358
+ "asc": true,
2359
+ "nullsFirst": false,
2360
+ "opclass": null
2361
+ }
2362
+ ],
2363
+ "isUnique": false,
2364
+ "where": null,
2365
+ "with": "",
2366
+ "method": "btree",
2367
+ "concurrently": false,
2368
+ "name": "courses_created_at_index",
2369
+ "entityType": "indexes",
2370
+ "schema": "public",
2371
+ "table": "courses"
2372
+ },
2373
+ {
2374
+ "nameExplicit": false,
2375
+ "columns": [
2376
+ {
2377
+ "value": "title",
2378
+ "isExpression": false,
2379
+ "asc": true,
2380
+ "nullsFirst": false,
2381
+ "opclass": null
2382
+ }
2383
+ ],
2384
+ "isUnique": false,
2385
+ "where": null,
2386
+ "with": "",
2387
+ "method": "btree",
2388
+ "concurrently": false,
2389
+ "name": "courses_title_index",
2390
+ "entityType": "indexes",
2391
+ "schema": "public",
2392
+ "table": "courses"
2393
+ },
2394
+ {
2395
+ "nameExplicit": false,
2396
+ "columns": [
2397
+ {
2398
+ "value": "_status",
2399
+ "isExpression": false,
2400
+ "asc": true,
2401
+ "nullsFirst": false,
2402
+ "opclass": null
2403
+ }
2404
+ ],
2405
+ "isUnique": false,
2406
+ "where": null,
2407
+ "with": "",
2408
+ "method": "btree",
2409
+ "concurrently": false,
2410
+ "name": "courses__status_index",
2411
+ "entityType": "indexes",
2412
+ "schema": "public",
2413
+ "table": "courses"
2414
+ },
2415
+ {
2416
+ "nameExplicit": false,
2417
+ "columns": [
2418
+ {
2419
+ "value": "parent_id",
2420
+ "isExpression": false,
2421
+ "asc": true,
2422
+ "nullsFirst": false,
2423
+ "opclass": null
2424
+ }
2425
+ ],
2426
+ "isUnique": false,
2427
+ "where": null,
2428
+ "with": "",
2429
+ "method": "btree",
2430
+ "concurrently": false,
2431
+ "name": "courses_tags_parent_id_index",
2432
+ "entityType": "indexes",
2433
+ "schema": "public",
2434
+ "table": "courses_tags"
2435
+ },
2436
+ {
2437
+ "nameExplicit": false,
2438
+ "columns": [
2439
+ {
2440
+ "value": "created_at",
2441
+ "isExpression": false,
2442
+ "asc": true,
2443
+ "nullsFirst": false,
2444
+ "opclass": null
2445
+ }
2446
+ ],
2447
+ "isUnique": false,
2448
+ "where": null,
2449
+ "with": "",
2450
+ "method": "btree",
2451
+ "concurrently": false,
2452
+ "name": "enrollments_created_at_index",
2453
+ "entityType": "indexes",
2454
+ "schema": "public",
2455
+ "table": "enrollments"
2456
+ },
2457
+ {
2458
+ "nameExplicit": false,
2459
+ "columns": [
2460
+ {
2461
+ "value": "created_at",
2462
+ "isExpression": false,
2463
+ "asc": true,
2464
+ "nullsFirst": false,
2465
+ "opclass": null
2466
+ }
2467
+ ],
2468
+ "isUnique": false,
2469
+ "where": null,
2470
+ "with": "",
2471
+ "method": "btree",
2472
+ "concurrently": false,
2473
+ "name": "local_users_created_at_index",
2474
+ "entityType": "indexes",
2475
+ "schema": "public",
2476
+ "table": "local_users"
2477
+ },
2478
+ {
2479
+ "nameExplicit": false,
2480
+ "columns": [
2481
+ {
2482
+ "value": "created_at",
2483
+ "isExpression": false,
2484
+ "asc": true,
2485
+ "nullsFirst": false,
2486
+ "opclass": null
2487
+ }
2488
+ ],
2489
+ "isUnique": false,
2490
+ "where": null,
2491
+ "with": "",
2492
+ "method": "btree",
2493
+ "concurrently": false,
2494
+ "name": "member_roles_created_at_index",
2495
+ "entityType": "indexes",
2496
+ "schema": "public",
2497
+ "table": "member_roles"
2498
+ },
2499
+ {
2500
+ "nameExplicit": false,
2501
+ "columns": [
2502
+ {
2503
+ "value": "user_id",
2504
+ "isExpression": false,
2505
+ "asc": true,
2506
+ "nullsFirst": false,
2507
+ "opclass": null
2508
+ }
2509
+ ],
2510
+ "isUnique": false,
2511
+ "where": null,
2512
+ "with": "",
2513
+ "method": "btree",
2514
+ "concurrently": false,
2515
+ "name": "member_roles_user_id_index",
2516
+ "entityType": "indexes",
2517
+ "schema": "public",
2518
+ "table": "member_roles"
2519
+ },
2520
+ {
2521
+ "nameExplicit": false,
2522
+ "columns": [
2523
+ {
2524
+ "value": "role",
2525
+ "isExpression": false,
2526
+ "asc": true,
2527
+ "nullsFirst": false,
2528
+ "opclass": null
2529
+ }
2530
+ ],
2531
+ "isUnique": false,
2532
+ "where": null,
2533
+ "with": "",
2534
+ "method": "btree",
2535
+ "concurrently": false,
2536
+ "name": "member_roles_role_index",
2537
+ "entityType": "indexes",
2538
+ "schema": "public",
2539
+ "table": "member_roles"
2540
+ },
2541
+ {
2542
+ "nameExplicit": false,
2543
+ "columns": [
2544
+ {
2545
+ "value": "created_at",
2546
+ "isExpression": false,
2547
+ "asc": true,
2548
+ "nullsFirst": false,
2549
+ "opclass": null
2550
+ }
2551
+ ],
2552
+ "isUnique": false,
2553
+ "where": null,
2554
+ "with": "",
2555
+ "method": "btree",
2556
+ "concurrently": false,
2557
+ "name": "roles_created_at_index",
2558
+ "entityType": "indexes",
2559
+ "schema": "public",
2560
+ "table": "roles"
2561
+ },
2562
+ {
2563
+ "nameExplicit": false,
2564
+ "columns": [
2565
+ {
2566
+ "value": "name",
2567
+ "isExpression": false,
2568
+ "asc": true,
2569
+ "nullsFirst": false,
2570
+ "opclass": null
2571
+ }
2572
+ ],
2573
+ "isUnique": false,
2574
+ "where": null,
2575
+ "with": "",
2576
+ "method": "btree",
2577
+ "concurrently": false,
2578
+ "name": "roles_name_index",
2579
+ "entityType": "indexes",
2580
+ "schema": "public",
2581
+ "table": "roles"
2582
+ },
2583
+ {
2584
+ "nameExplicit": false,
2585
+ "columns": [
2586
+ {
2587
+ "value": "created_at",
2588
+ "isExpression": false,
2589
+ "asc": true,
2590
+ "nullsFirst": false,
2591
+ "opclass": null
2592
+ }
2593
+ ],
2594
+ "isUnique": false,
2595
+ "where": null,
2596
+ "with": "",
2597
+ "method": "btree",
2598
+ "concurrently": false,
2599
+ "name": "course_sessions_created_at_index",
2600
+ "entityType": "indexes",
2601
+ "schema": "public",
2602
+ "table": "course_sessions"
2603
+ },
2604
+ {
2605
+ "nameExplicit": false,
2606
+ "columns": [
2607
+ {
2608
+ "value": "created_at",
2609
+ "isExpression": false,
2610
+ "asc": true,
2611
+ "nullsFirst": false,
2612
+ "opclass": null
2613
+ }
2614
+ ],
2615
+ "isUnique": false,
2616
+ "where": null,
2617
+ "with": "",
2618
+ "method": "btree",
2619
+ "concurrently": false,
2620
+ "name": "settings_created_at_index",
2621
+ "entityType": "indexes",
2622
+ "schema": "public",
2623
+ "table": "settings"
2624
+ },
2625
+ {
2626
+ "nameExplicit": false,
2627
+ "columns": [
2628
+ {
2629
+ "value": "created_at",
2630
+ "isExpression": false,
2631
+ "asc": true,
2632
+ "nullsFirst": false,
2633
+ "opclass": null
2634
+ }
2635
+ ],
2636
+ "isUnique": false,
2637
+ "where": null,
2638
+ "with": "",
2639
+ "method": "btree",
2640
+ "concurrently": false,
2641
+ "name": "tags_created_at_index",
2642
+ "entityType": "indexes",
2643
+ "schema": "public",
2644
+ "table": "tags"
2645
+ },
2646
+ {
2647
+ "nameExplicit": false,
2648
+ "columns": [
2649
+ {
2650
+ "value": "name_ar",
2651
+ "isExpression": false,
2652
+ "asc": true,
2653
+ "nullsFirst": false,
2654
+ "opclass": null
2655
+ }
2656
+ ],
2657
+ "isUnique": false,
2658
+ "where": null,
2659
+ "with": "",
2660
+ "method": "btree",
2661
+ "concurrently": false,
2662
+ "name": "tags_name_ar_index",
2663
+ "entityType": "indexes",
2664
+ "schema": "public",
2665
+ "table": "tags"
2666
+ },
2667
+ {
2668
+ "nameExplicit": false,
2669
+ "columns": [
2670
+ {
2671
+ "value": "name_en",
2672
+ "isExpression": false,
2673
+ "asc": true,
2674
+ "nullsFirst": false,
2675
+ "opclass": null
2676
+ }
2677
+ ],
2678
+ "isUnique": false,
2679
+ "where": null,
2680
+ "with": "",
2681
+ "method": "btree",
2682
+ "concurrently": false,
2683
+ "name": "tags_name_index",
2684
+ "entityType": "indexes",
2685
+ "schema": "public",
2686
+ "table": "tags"
2687
+ },
2688
+ {
2689
+ "nameExplicit": false,
2690
+ "columns": [
2691
+ "parent_id"
2692
+ ],
2693
+ "schemaTo": "public",
2694
+ "tableTo": "courses",
2695
+ "columnsTo": [
2696
+ "id"
2697
+ ],
2698
+ "onUpdate": "NO ACTION",
2699
+ "onDelete": "CASCADE",
2700
+ "name": "_courses_versions_parent_id_courses_id_fkey",
2701
+ "entityType": "fks",
2702
+ "schema": "public",
2703
+ "table": "_courses_versions"
2704
+ },
2705
+ {
2706
+ "nameExplicit": false,
2707
+ "columns": [
2708
+ "user_id"
2709
+ ],
2710
+ "schemaTo": "public",
2711
+ "tableTo": "user",
2712
+ "columnsTo": [
2713
+ "id"
2714
+ ],
2715
+ "onUpdate": "NO ACTION",
2716
+ "onDelete": "CASCADE",
2717
+ "name": "account_user_id_user_id_fkey",
2718
+ "entityType": "fks",
2719
+ "schema": "public",
2720
+ "table": "account"
2721
+ },
2722
+ {
2723
+ "nameExplicit": false,
2724
+ "columns": [
2725
+ "tenant_id"
2726
+ ],
2727
+ "schemaTo": "public",
2728
+ "tableTo": "organization",
2729
+ "columnsTo": [
2730
+ "id"
2731
+ ],
2732
+ "onUpdate": "NO ACTION",
2733
+ "onDelete": "SET NULL",
2734
+ "name": "audit_log_tenant_id_organization_id_fkey",
2735
+ "entityType": "fks",
2736
+ "schema": "public",
2737
+ "table": "audit_log"
2738
+ },
2739
+ {
2740
+ "nameExplicit": false,
2741
+ "columns": [
2742
+ "tenant_id"
2743
+ ],
2744
+ "schemaTo": "public",
2745
+ "tableTo": "organization",
2746
+ "columnsTo": [
2747
+ "id"
2748
+ ],
2749
+ "onUpdate": "NO ACTION",
2750
+ "onDelete": "SET NULL",
2751
+ "name": "courses_tenant_id_organization_id_fkey",
2752
+ "entityType": "fks",
2753
+ "schema": "public",
2754
+ "table": "courses"
2755
+ },
2756
+ {
2757
+ "nameExplicit": false,
2758
+ "columns": [
2759
+ "parent_id"
2760
+ ],
2761
+ "schemaTo": "public",
2762
+ "tableTo": "courses",
2763
+ "columnsTo": [
2764
+ "id"
2765
+ ],
2766
+ "onUpdate": "NO ACTION",
2767
+ "onDelete": "CASCADE",
2768
+ "name": "courses_tags_parent_id_courses_id_fkey",
2769
+ "entityType": "fks",
2770
+ "schema": "public",
2771
+ "table": "courses_tags"
2772
+ },
2773
+ {
2774
+ "nameExplicit": false,
2775
+ "columns": [
2776
+ "target_id"
2777
+ ],
2778
+ "schemaTo": "public",
2779
+ "tableTo": "tags",
2780
+ "columnsTo": [
2781
+ "id"
2782
+ ],
2783
+ "onUpdate": "NO ACTION",
2784
+ "onDelete": "CASCADE",
2785
+ "name": "courses_tags_target_id_tags_id_fkey",
2786
+ "entityType": "fks",
2787
+ "schema": "public",
2788
+ "table": "courses_tags"
2789
+ },
2790
+ {
2791
+ "nameExplicit": false,
2792
+ "columns": [
2793
+ "tenant_id"
2794
+ ],
2795
+ "schemaTo": "public",
2796
+ "tableTo": "organization",
2797
+ "columnsTo": [
2798
+ "id"
2799
+ ],
2800
+ "onUpdate": "NO ACTION",
2801
+ "onDelete": "SET NULL",
2802
+ "name": "enrollments_tenant_id_organization_id_fkey",
2803
+ "entityType": "fks",
2804
+ "schema": "public",
2805
+ "table": "enrollments"
2806
+ },
2807
+ {
2808
+ "nameExplicit": false,
2809
+ "columns": [
2810
+ "session_id"
2811
+ ],
2812
+ "schemaTo": "public",
2813
+ "tableTo": "course_sessions",
2814
+ "columnsTo": [
2815
+ "id"
2816
+ ],
2817
+ "onUpdate": "NO ACTION",
2818
+ "onDelete": "SET NULL",
2819
+ "name": "enrollments_session_id_course_sessions_id_fkey",
2820
+ "entityType": "fks",
2821
+ "schema": "public",
2822
+ "table": "enrollments"
2823
+ },
2824
+ {
2825
+ "nameExplicit": false,
2826
+ "columns": [
2827
+ "student_id"
2828
+ ],
2829
+ "schemaTo": "public",
2830
+ "tableTo": "user",
2831
+ "columnsTo": [
2832
+ "id"
2833
+ ],
2834
+ "onUpdate": "NO ACTION",
2835
+ "onDelete": "SET NULL",
2836
+ "name": "enrollments_student_id_user_id_fkey",
2837
+ "entityType": "fks",
2838
+ "schema": "public",
2839
+ "table": "enrollments"
2840
+ },
2841
+ {
2842
+ "nameExplicit": false,
2843
+ "columns": [
2844
+ "organization_id"
2845
+ ],
2846
+ "schemaTo": "public",
2847
+ "tableTo": "organization",
2848
+ "columnsTo": [
2849
+ "id"
2850
+ ],
2851
+ "onUpdate": "NO ACTION",
2852
+ "onDelete": "CASCADE",
2853
+ "name": "invitation_organization_id_organization_id_fkey",
2854
+ "entityType": "fks",
2855
+ "schema": "public",
2856
+ "table": "invitation"
2857
+ },
2858
+ {
2859
+ "nameExplicit": false,
2860
+ "columns": [
2861
+ "inviter_id"
2862
+ ],
2863
+ "schemaTo": "public",
2864
+ "tableTo": "user",
2865
+ "columnsTo": [
2866
+ "id"
2867
+ ],
2868
+ "onUpdate": "NO ACTION",
2869
+ "onDelete": "CASCADE",
2870
+ "name": "invitation_inviter_id_user_id_fkey",
2871
+ "entityType": "fks",
2872
+ "schema": "public",
2873
+ "table": "invitation"
2874
+ },
2875
+ {
2876
+ "nameExplicit": false,
2877
+ "columns": [
2878
+ "organization_id"
2879
+ ],
2880
+ "schemaTo": "public",
2881
+ "tableTo": "organization",
2882
+ "columnsTo": [
2883
+ "id"
2884
+ ],
2885
+ "onUpdate": "NO ACTION",
2886
+ "onDelete": "CASCADE",
2887
+ "name": "member_organization_id_organization_id_fkey",
2888
+ "entityType": "fks",
2889
+ "schema": "public",
2890
+ "table": "member"
2891
+ },
2892
+ {
2893
+ "nameExplicit": false,
2894
+ "columns": [
2895
+ "user_id"
2896
+ ],
2897
+ "schemaTo": "public",
2898
+ "tableTo": "user",
2899
+ "columnsTo": [
2900
+ "id"
2901
+ ],
2902
+ "onUpdate": "NO ACTION",
2903
+ "onDelete": "CASCADE",
2904
+ "name": "member_user_id_user_id_fkey",
2905
+ "entityType": "fks",
2906
+ "schema": "public",
2907
+ "table": "member"
2908
+ },
2909
+ {
2910
+ "nameExplicit": false,
2911
+ "columns": [
2912
+ "tenant_id"
2913
+ ],
2914
+ "schemaTo": "public",
2915
+ "tableTo": "organization",
2916
+ "columnsTo": [
2917
+ "id"
2918
+ ],
2919
+ "onUpdate": "NO ACTION",
2920
+ "onDelete": "SET NULL",
2921
+ "name": "member_roles_tenant_id_organization_id_fkey",
2922
+ "entityType": "fks",
2923
+ "schema": "public",
2924
+ "table": "member_roles"
2925
+ },
2926
+ {
2927
+ "nameExplicit": false,
2928
+ "columns": [
2929
+ "user_id"
2930
+ ],
2931
+ "schemaTo": "public",
2932
+ "tableTo": "user",
2933
+ "columnsTo": [
2934
+ "id"
2935
+ ],
2936
+ "onUpdate": "NO ACTION",
2937
+ "onDelete": "CASCADE",
2938
+ "name": "member_roles_user_id_user_id_fkey",
2939
+ "entityType": "fks",
2940
+ "schema": "public",
2941
+ "table": "member_roles"
2942
+ },
2943
+ {
2944
+ "nameExplicit": false,
2945
+ "columns": [
2946
+ "organization_id"
2947
+ ],
2948
+ "schemaTo": "public",
2949
+ "tableTo": "organization",
2950
+ "columnsTo": [
2951
+ "id"
2952
+ ],
2953
+ "onUpdate": "NO ACTION",
2954
+ "onDelete": "CASCADE",
2955
+ "name": "organization_role_organization_id_organization_id_fkey",
2956
+ "entityType": "fks",
2957
+ "schema": "public",
2958
+ "table": "organization_role"
2959
+ },
2960
+ {
2961
+ "nameExplicit": false,
2962
+ "columns": [
2963
+ "tenant_id"
2964
+ ],
2965
+ "schemaTo": "public",
2966
+ "tableTo": "organization",
2967
+ "columnsTo": [
2968
+ "id"
2969
+ ],
2970
+ "onUpdate": "NO ACTION",
2971
+ "onDelete": "SET NULL",
2972
+ "name": "roles_tenant_id_organization_id_fkey",
2973
+ "entityType": "fks",
2974
+ "schema": "public",
2975
+ "table": "roles"
2976
+ },
2977
+ {
2978
+ "nameExplicit": false,
2979
+ "columns": [
2980
+ "user_id"
2981
+ ],
2982
+ "schemaTo": "public",
2983
+ "tableTo": "user",
2984
+ "columnsTo": [
2985
+ "id"
2986
+ ],
2987
+ "onUpdate": "NO ACTION",
2988
+ "onDelete": "CASCADE",
2989
+ "name": "session_user_id_user_id_fkey",
2990
+ "entityType": "fks",
2991
+ "schema": "public",
2992
+ "table": "session"
2993
+ },
2994
+ {
2995
+ "nameExplicit": false,
2996
+ "columns": [
2997
+ "tenant_id"
2998
+ ],
2999
+ "schemaTo": "public",
3000
+ "tableTo": "organization",
3001
+ "columnsTo": [
3002
+ "id"
3003
+ ],
3004
+ "onUpdate": "NO ACTION",
3005
+ "onDelete": "SET NULL",
3006
+ "name": "course_sessions_tenant_id_organization_id_fkey",
3007
+ "entityType": "fks",
3008
+ "schema": "public",
3009
+ "table": "course_sessions"
3010
+ },
3011
+ {
3012
+ "nameExplicit": false,
3013
+ "columns": [
3014
+ "course_id"
3015
+ ],
3016
+ "schemaTo": "public",
3017
+ "tableTo": "courses",
3018
+ "columnsTo": [
3019
+ "id"
3020
+ ],
3021
+ "onUpdate": "NO ACTION",
3022
+ "onDelete": "RESTRICT",
3023
+ "name": "course_sessions_course_id_courses_id_fkey",
3024
+ "entityType": "fks",
3025
+ "schema": "public",
3026
+ "table": "course_sessions"
3027
+ },
3028
+ {
3029
+ "nameExplicit": false,
3030
+ "columns": [
3031
+ "tenant_id"
3032
+ ],
3033
+ "schemaTo": "public",
3034
+ "tableTo": "organization",
3035
+ "columnsTo": [
3036
+ "id"
3037
+ ],
3038
+ "onUpdate": "NO ACTION",
3039
+ "onDelete": "RESTRICT",
3040
+ "name": "settings_tenant_id_organization_id_fkey",
3041
+ "entityType": "fks",
3042
+ "schema": "public",
3043
+ "table": "settings"
3044
+ },
3045
+ {
3046
+ "nameExplicit": false,
3047
+ "columns": [
3048
+ "tenant_id"
3049
+ ],
3050
+ "schemaTo": "public",
3051
+ "tableTo": "organization",
3052
+ "columnsTo": [
3053
+ "id"
3054
+ ],
3055
+ "onUpdate": "NO ACTION",
3056
+ "onDelete": "SET NULL",
3057
+ "name": "tags_tenant_id_organization_id_fkey",
3058
+ "entityType": "fks",
3059
+ "schema": "public",
3060
+ "table": "tags"
3061
+ },
3062
+ {
3063
+ "columns": [
3064
+ "id"
3065
+ ],
3066
+ "nameExplicit": false,
3067
+ "name": "_courses_versions_pkey",
3068
+ "schema": "public",
3069
+ "table": "_courses_versions",
3070
+ "entityType": "pks"
3071
+ },
3072
+ {
3073
+ "columns": [
3074
+ "id"
3075
+ ],
3076
+ "nameExplicit": false,
3077
+ "name": "account_pkey",
3078
+ "schema": "public",
3079
+ "table": "account",
3080
+ "entityType": "pks"
3081
+ },
3082
+ {
3083
+ "columns": [
3084
+ "id"
3085
+ ],
3086
+ "nameExplicit": false,
3087
+ "name": "audit_log_pkey",
3088
+ "schema": "public",
3089
+ "table": "audit_log",
3090
+ "entityType": "pks"
3091
+ },
3092
+ {
3093
+ "columns": [
3094
+ "id"
3095
+ ],
3096
+ "nameExplicit": false,
3097
+ "name": "courses_pkey",
3098
+ "schema": "public",
3099
+ "table": "courses",
3100
+ "entityType": "pks"
3101
+ },
3102
+ {
3103
+ "columns": [
3104
+ "id"
3105
+ ],
3106
+ "nameExplicit": false,
3107
+ "name": "enrollments_pkey",
3108
+ "schema": "public",
3109
+ "table": "enrollments",
3110
+ "entityType": "pks"
3111
+ },
3112
+ {
3113
+ "columns": [
3114
+ "id"
3115
+ ],
3116
+ "nameExplicit": false,
3117
+ "name": "invitation_pkey",
3118
+ "schema": "public",
3119
+ "table": "invitation",
3120
+ "entityType": "pks"
3121
+ },
3122
+ {
3123
+ "columns": [
3124
+ "id"
3125
+ ],
3126
+ "nameExplicit": false,
3127
+ "name": "local_users_pkey",
3128
+ "schema": "public",
3129
+ "table": "local_users",
3130
+ "entityType": "pks"
3131
+ },
3132
+ {
3133
+ "columns": [
3134
+ "id"
3135
+ ],
3136
+ "nameExplicit": false,
3137
+ "name": "member_pkey",
3138
+ "schema": "public",
3139
+ "table": "member",
3140
+ "entityType": "pks"
3141
+ },
3142
+ {
3143
+ "columns": [
3144
+ "id"
3145
+ ],
3146
+ "nameExplicit": false,
3147
+ "name": "member_roles_pkey",
3148
+ "schema": "public",
3149
+ "table": "member_roles",
3150
+ "entityType": "pks"
3151
+ },
3152
+ {
3153
+ "columns": [
3154
+ "id"
3155
+ ],
3156
+ "nameExplicit": false,
3157
+ "name": "organization_pkey",
3158
+ "schema": "public",
3159
+ "table": "organization",
3160
+ "entityType": "pks"
3161
+ },
3162
+ {
3163
+ "columns": [
3164
+ "id"
3165
+ ],
3166
+ "nameExplicit": false,
3167
+ "name": "organization_role_pkey",
3168
+ "schema": "public",
3169
+ "table": "organization_role",
3170
+ "entityType": "pks"
3171
+ },
3172
+ {
3173
+ "columns": [
3174
+ "id"
3175
+ ],
3176
+ "nameExplicit": false,
3177
+ "name": "roles_pkey",
3178
+ "schema": "public",
3179
+ "table": "roles",
3180
+ "entityType": "pks"
3181
+ },
3182
+ {
3183
+ "columns": [
3184
+ "id"
3185
+ ],
3186
+ "nameExplicit": false,
3187
+ "name": "session_pkey",
3188
+ "schema": "public",
3189
+ "table": "session",
3190
+ "entityType": "pks"
3191
+ },
3192
+ {
3193
+ "columns": [
3194
+ "id"
3195
+ ],
3196
+ "nameExplicit": false,
3197
+ "name": "course_sessions_pkey",
3198
+ "schema": "public",
3199
+ "table": "course_sessions",
3200
+ "entityType": "pks"
3201
+ },
3202
+ {
3203
+ "columns": [
3204
+ "id"
3205
+ ],
3206
+ "nameExplicit": false,
3207
+ "name": "settings_pkey",
3208
+ "schema": "public",
3209
+ "table": "settings",
3210
+ "entityType": "pks"
3211
+ },
3212
+ {
3213
+ "columns": [
3214
+ "id"
3215
+ ],
3216
+ "nameExplicit": false,
3217
+ "name": "tags_pkey",
3218
+ "schema": "public",
3219
+ "table": "tags",
3220
+ "entityType": "pks"
3221
+ },
3222
+ {
3223
+ "columns": [
3224
+ "id"
3225
+ ],
3226
+ "nameExplicit": false,
3227
+ "name": "user_pkey",
3228
+ "schema": "public",
3229
+ "table": "user",
3230
+ "entityType": "pks"
3231
+ },
3232
+ {
3233
+ "columns": [
3234
+ "id"
3235
+ ],
3236
+ "nameExplicit": false,
3237
+ "name": "verification_pkey",
3238
+ "schema": "public",
3239
+ "table": "verification",
3240
+ "entityType": "pks"
3241
+ },
3242
+ {
3243
+ "nameExplicit": false,
3244
+ "columns": [
3245
+ "tenant_id",
3246
+ "user_id",
3247
+ "role"
3248
+ ],
3249
+ "nullsNotDistinct": true,
3250
+ "name": "member_roles_tenant_id_user_id_role_unique",
3251
+ "entityType": "uniques",
3252
+ "schema": "public",
3253
+ "table": "member_roles"
3254
+ },
3255
+ {
3256
+ "nameExplicit": false,
3257
+ "columns": [
3258
+ "tenant_id",
3259
+ "name"
3260
+ ],
3261
+ "nullsNotDistinct": true,
3262
+ "name": "roles_tenant_id_name_unique",
3263
+ "entityType": "uniques",
3264
+ "schema": "public",
3265
+ "table": "roles"
3266
+ },
3267
+ {
3268
+ "nameExplicit": false,
3269
+ "columns": [
3270
+ "email"
3271
+ ],
3272
+ "nullsNotDistinct": false,
3273
+ "name": "local_users_email_key",
3274
+ "schema": "public",
3275
+ "table": "local_users",
3276
+ "entityType": "uniques"
3277
+ },
3278
+ {
3279
+ "nameExplicit": false,
3280
+ "columns": [
3281
+ "slug"
3282
+ ],
3283
+ "nullsNotDistinct": false,
3284
+ "name": "organization_slug_key",
3285
+ "schema": "public",
3286
+ "table": "organization",
3287
+ "entityType": "uniques"
3288
+ },
3289
+ {
3290
+ "nameExplicit": false,
3291
+ "columns": [
3292
+ "token"
3293
+ ],
3294
+ "nullsNotDistinct": false,
3295
+ "name": "session_token_key",
3296
+ "schema": "public",
3297
+ "table": "session",
3298
+ "entityType": "uniques"
3299
+ },
3300
+ {
3301
+ "nameExplicit": false,
3302
+ "columns": [
3303
+ "tenant_id"
3304
+ ],
3305
+ "nullsNotDistinct": false,
3306
+ "name": "settings_tenant_id_key",
3307
+ "schema": "public",
3308
+ "table": "settings",
3309
+ "entityType": "uniques"
3310
+ },
3311
+ {
3312
+ "nameExplicit": false,
3313
+ "columns": [
3314
+ "email"
3315
+ ],
3316
+ "nullsNotDistinct": false,
3317
+ "name": "user_email_key",
3318
+ "schema": "public",
3319
+ "table": "user",
3320
+ "entityType": "uniques"
3321
+ }
3322
+ ],
3323
+ "renames": []
3324
+ }