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