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,3933 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "1ca60dfb-1804-4fae-8420-6e10f53563fc",
5
+ "prevIds": [
6
+ "a8c7ed04-7324-4536-8f2f-0c37fe17be36"
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": "text",
235
+ "typeSchema": null,
236
+ "notNull": true,
237
+ "dimensions": 0,
238
+ "default": null,
239
+ "generated": null,
240
+ "identity": null,
241
+ "name": "account_id",
242
+ "entityType": "columns",
243
+ "schema": "public",
244
+ "table": "account"
245
+ },
246
+ {
247
+ "type": "text",
248
+ "typeSchema": null,
249
+ "notNull": true,
250
+ "dimensions": 0,
251
+ "default": null,
252
+ "generated": null,
253
+ "identity": null,
254
+ "name": "provider_id",
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": "user_id",
268
+ "entityType": "columns",
269
+ "schema": "public",
270
+ "table": "account"
271
+ },
272
+ {
273
+ "type": "text",
274
+ "typeSchema": null,
275
+ "notNull": false,
276
+ "dimensions": 0,
277
+ "default": null,
278
+ "generated": null,
279
+ "identity": null,
280
+ "name": "access_token",
281
+ "entityType": "columns",
282
+ "schema": "public",
283
+ "table": "account"
284
+ },
285
+ {
286
+ "type": "text",
287
+ "typeSchema": null,
288
+ "notNull": false,
289
+ "dimensions": 0,
290
+ "default": null,
291
+ "generated": null,
292
+ "identity": null,
293
+ "name": "refresh_token",
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": "id_token",
307
+ "entityType": "columns",
308
+ "schema": "public",
309
+ "table": "account"
310
+ },
311
+ {
312
+ "type": "timestamp(3) with time zone",
313
+ "typeSchema": null,
314
+ "notNull": false,
315
+ "dimensions": 0,
316
+ "default": null,
317
+ "generated": null,
318
+ "identity": null,
319
+ "name": "access_token_expires_at",
320
+ "entityType": "columns",
321
+ "schema": "public",
322
+ "table": "account"
323
+ },
324
+ {
325
+ "type": "timestamp(3) with time zone",
326
+ "typeSchema": null,
327
+ "notNull": false,
328
+ "dimensions": 0,
329
+ "default": null,
330
+ "generated": null,
331
+ "identity": null,
332
+ "name": "refresh_token_expires_at",
333
+ "entityType": "columns",
334
+ "schema": "public",
335
+ "table": "account"
336
+ },
337
+ {
338
+ "type": "text",
339
+ "typeSchema": null,
340
+ "notNull": false,
341
+ "dimensions": 0,
342
+ "default": null,
343
+ "generated": null,
344
+ "identity": null,
345
+ "name": "scope",
346
+ "entityType": "columns",
347
+ "schema": "public",
348
+ "table": "account"
349
+ },
350
+ {
351
+ "type": "text",
352
+ "typeSchema": null,
353
+ "notNull": false,
354
+ "dimensions": 0,
355
+ "default": null,
356
+ "generated": null,
357
+ "identity": null,
358
+ "name": "password",
359
+ "entityType": "columns",
360
+ "schema": "public",
361
+ "table": "account"
362
+ },
363
+ {
364
+ "type": "timestamp(3) with time zone",
365
+ "typeSchema": null,
366
+ "notNull": true,
367
+ "dimensions": 0,
368
+ "default": null,
369
+ "generated": null,
370
+ "identity": null,
371
+ "name": "updated_at",
372
+ "entityType": "columns",
373
+ "schema": "public",
374
+ "table": "account"
375
+ },
376
+ {
377
+ "type": "timestamp(3) with time zone",
378
+ "typeSchema": null,
379
+ "notNull": true,
380
+ "dimensions": 0,
381
+ "default": null,
382
+ "generated": null,
383
+ "identity": null,
384
+ "name": "created_at",
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": "text",
404
+ "typeSchema": null,
405
+ "notNull": true,
406
+ "dimensions": 0,
407
+ "default": null,
408
+ "generated": null,
409
+ "identity": null,
410
+ "name": "organization_id",
411
+ "entityType": "columns",
412
+ "schema": "public",
413
+ "table": "audit_log"
414
+ },
415
+ {
416
+ "type": "varchar(60)",
417
+ "typeSchema": null,
418
+ "notNull": true,
419
+ "dimensions": 0,
420
+ "default": null,
421
+ "generated": null,
422
+ "identity": null,
423
+ "name": "kayan",
424
+ "entityType": "columns",
425
+ "schema": "public",
426
+ "table": "audit_log"
427
+ },
428
+ {
429
+ "type": "text",
430
+ "typeSchema": null,
431
+ "notNull": true,
432
+ "dimensions": 0,
433
+ "default": null,
434
+ "generated": null,
435
+ "identity": null,
436
+ "name": "record",
437
+ "entityType": "columns",
438
+ "schema": "public",
439
+ "table": "audit_log"
440
+ },
441
+ {
442
+ "type": "varchar(60)",
443
+ "typeSchema": null,
444
+ "notNull": true,
445
+ "dimensions": 0,
446
+ "default": null,
447
+ "generated": null,
448
+ "identity": null,
449
+ "name": "operation",
450
+ "entityType": "columns",
451
+ "schema": "public",
452
+ "table": "audit_log"
453
+ },
454
+ {
455
+ "type": "text",
456
+ "typeSchema": null,
457
+ "notNull": false,
458
+ "dimensions": 0,
459
+ "default": null,
460
+ "generated": null,
461
+ "identity": null,
462
+ "name": "actor",
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": "impersonated_by",
476
+ "entityType": "columns",
477
+ "schema": "public",
478
+ "table": "audit_log"
479
+ },
480
+ {
481
+ "type": "text",
482
+ "typeSchema": null,
483
+ "notNull": true,
484
+ "dimensions": 0,
485
+ "default": null,
486
+ "generated": null,
487
+ "identity": null,
488
+ "name": "changes",
489
+ "entityType": "columns",
490
+ "schema": "public",
491
+ "table": "audit_log"
492
+ },
493
+ {
494
+ "type": "timestamp(3) with time zone",
495
+ "typeSchema": null,
496
+ "notNull": true,
497
+ "dimensions": 0,
498
+ "default": "now()",
499
+ "generated": null,
500
+ "identity": null,
501
+ "name": "created_at",
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": "text",
521
+ "typeSchema": null,
522
+ "notNull": true,
523
+ "dimensions": 0,
524
+ "default": null,
525
+ "generated": null,
526
+ "identity": null,
527
+ "name": "organization_id",
528
+ "entityType": "columns",
529
+ "schema": "public",
530
+ "table": "courses"
531
+ },
532
+ {
533
+ "type": "text",
534
+ "typeSchema": null,
535
+ "notNull": false,
536
+ "dimensions": 0,
537
+ "default": null,
538
+ "generated": null,
539
+ "identity": null,
540
+ "name": "title",
541
+ "entityType": "columns",
542
+ "schema": "public",
543
+ "table": "courses"
544
+ },
545
+ {
546
+ "type": "text",
547
+ "typeSchema": null,
548
+ "notNull": false,
549
+ "dimensions": 0,
550
+ "default": null,
551
+ "generated": null,
552
+ "identity": null,
553
+ "name": "summary",
554
+ "entityType": "columns",
555
+ "schema": "public",
556
+ "table": "courses"
557
+ },
558
+ {
559
+ "type": "numeric",
560
+ "typeSchema": null,
561
+ "notNull": false,
562
+ "dimensions": 0,
563
+ "default": null,
564
+ "generated": null,
565
+ "identity": null,
566
+ "name": "fee",
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": "currency",
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": "level",
593
+ "entityType": "columns",
594
+ "schema": "public",
595
+ "table": "courses"
596
+ },
597
+ {
598
+ "type": "boolean",
599
+ "typeSchema": null,
600
+ "notNull": false,
601
+ "dimensions": 0,
602
+ "default": null,
603
+ "generated": null,
604
+ "identity": null,
605
+ "name": "notifications",
606
+ "entityType": "columns",
607
+ "schema": "public",
608
+ "table": "courses"
609
+ },
610
+ {
611
+ "type": "text",
612
+ "typeSchema": null,
613
+ "notNull": false,
614
+ "dimensions": 0,
615
+ "default": null,
616
+ "generated": null,
617
+ "identity": null,
618
+ "name": "delivery",
619
+ "entityType": "columns",
620
+ "schema": "public",
621
+ "table": "courses"
622
+ },
623
+ {
624
+ "type": "text",
625
+ "typeSchema": null,
626
+ "notNull": false,
627
+ "dimensions": 0,
628
+ "default": null,
629
+ "generated": null,
630
+ "identity": null,
631
+ "name": "audience",
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": "access_code",
645
+ "entityType": "columns",
646
+ "schema": "public",
647
+ "table": "courses"
648
+ },
649
+ {
650
+ "type": "boolean",
651
+ "typeSchema": null,
652
+ "notNull": false,
653
+ "dimensions": 0,
654
+ "default": null,
655
+ "generated": null,
656
+ "identity": null,
657
+ "name": "archived",
658
+ "entityType": "columns",
659
+ "schema": "public",
660
+ "table": "courses"
661
+ },
662
+ {
663
+ "type": "text",
664
+ "typeSchema": null,
665
+ "notNull": false,
666
+ "dimensions": 1,
667
+ "default": null,
668
+ "generated": null,
669
+ "identity": null,
670
+ "name": "topics",
671
+ "entityType": "columns",
672
+ "schema": "public",
673
+ "table": "courses"
674
+ },
675
+ {
676
+ "type": "date",
677
+ "typeSchema": null,
678
+ "notNull": false,
679
+ "dimensions": 0,
680
+ "default": null,
681
+ "generated": null,
682
+ "identity": null,
683
+ "name": "opens_on",
684
+ "entityType": "columns",
685
+ "schema": "public",
686
+ "table": "courses"
687
+ },
688
+ {
689
+ "type": "varchar(200)",
690
+ "typeSchema": null,
691
+ "notNull": false,
692
+ "dimensions": 0,
693
+ "default": null,
694
+ "generated": null,
695
+ "identity": null,
696
+ "name": "archive_reason",
697
+ "entityType": "columns",
698
+ "schema": "public",
699
+ "table": "courses"
700
+ },
701
+ {
702
+ "type": "text",
703
+ "typeSchema": null,
704
+ "notNull": false,
705
+ "dimensions": 0,
706
+ "default": "'draft'",
707
+ "generated": null,
708
+ "identity": null,
709
+ "name": "_status",
710
+ "entityType": "columns",
711
+ "schema": "public",
712
+ "table": "courses"
713
+ },
714
+ {
715
+ "type": "jsonb",
716
+ "typeSchema": null,
717
+ "notNull": false,
718
+ "dimensions": 0,
719
+ "default": null,
720
+ "generated": null,
721
+ "identity": null,
722
+ "name": "details",
723
+ "entityType": "columns",
724
+ "schema": "public",
725
+ "table": "courses"
726
+ },
727
+ {
728
+ "type": "uuid",
729
+ "typeSchema": null,
730
+ "notNull": false,
731
+ "dimensions": 0,
732
+ "default": null,
733
+ "generated": null,
734
+ "identity": null,
735
+ "name": "cover_id",
736
+ "entityType": "columns",
737
+ "schema": "public",
738
+ "table": "courses"
739
+ },
740
+ {
741
+ "type": "timestamp(3) with time zone",
742
+ "typeSchema": null,
743
+ "notNull": true,
744
+ "dimensions": 0,
745
+ "default": "now()",
746
+ "generated": null,
747
+ "identity": null,
748
+ "name": "updated_at",
749
+ "entityType": "columns",
750
+ "schema": "public",
751
+ "table": "courses"
752
+ },
753
+ {
754
+ "type": "timestamp(3) with time zone",
755
+ "typeSchema": null,
756
+ "notNull": true,
757
+ "dimensions": 0,
758
+ "default": "now()",
759
+ "generated": null,
760
+ "identity": null,
761
+ "name": "created_at",
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": "text",
820
+ "typeSchema": null,
821
+ "notNull": true,
822
+ "dimensions": 0,
823
+ "default": null,
824
+ "generated": null,
825
+ "identity": null,
826
+ "name": "organization_id",
827
+ "entityType": "columns",
828
+ "schema": "public",
829
+ "table": "enrollments"
830
+ },
831
+ {
832
+ "type": "uuid",
833
+ "typeSchema": null,
834
+ "notNull": true,
835
+ "dimensions": 0,
836
+ "default": null,
837
+ "generated": null,
838
+ "identity": null,
839
+ "name": "session_id",
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": "student_id",
853
+ "entityType": "columns",
854
+ "schema": "public",
855
+ "table": "enrollments"
856
+ },
857
+ {
858
+ "type": "timestamp(3) with time zone",
859
+ "typeSchema": null,
860
+ "notNull": false,
861
+ "dimensions": 0,
862
+ "default": null,
863
+ "generated": null,
864
+ "identity": null,
865
+ "name": "deleted_at",
866
+ "entityType": "columns",
867
+ "schema": "public",
868
+ "table": "enrollments"
869
+ },
870
+ {
871
+ "type": "timestamp(3) with time zone",
872
+ "typeSchema": null,
873
+ "notNull": true,
874
+ "dimensions": 0,
875
+ "default": "now()",
876
+ "generated": null,
877
+ "identity": null,
878
+ "name": "updated_at",
879
+ "entityType": "columns",
880
+ "schema": "public",
881
+ "table": "enrollments"
882
+ },
883
+ {
884
+ "type": "timestamp(3) with time zone",
885
+ "typeSchema": null,
886
+ "notNull": true,
887
+ "dimensions": 0,
888
+ "default": "now()",
889
+ "generated": null,
890
+ "identity": null,
891
+ "name": "created_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": "text",
911
+ "typeSchema": null,
912
+ "notNull": true,
913
+ "dimensions": 0,
914
+ "default": null,
915
+ "generated": null,
916
+ "identity": null,
917
+ "name": "organization_id",
918
+ "entityType": "columns",
919
+ "schema": "public",
920
+ "table": "invitation"
921
+ },
922
+ {
923
+ "type": "text",
924
+ "typeSchema": null,
925
+ "notNull": true,
926
+ "dimensions": 0,
927
+ "default": null,
928
+ "generated": null,
929
+ "identity": null,
930
+ "name": "email",
931
+ "entityType": "columns",
932
+ "schema": "public",
933
+ "table": "invitation"
934
+ },
935
+ {
936
+ "type": "text",
937
+ "typeSchema": null,
938
+ "notNull": false,
939
+ "dimensions": 0,
940
+ "default": null,
941
+ "generated": null,
942
+ "identity": null,
943
+ "name": "role",
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": "status",
957
+ "entityType": "columns",
958
+ "schema": "public",
959
+ "table": "invitation"
960
+ },
961
+ {
962
+ "type": "timestamp(3) with time zone",
963
+ "typeSchema": null,
964
+ "notNull": true,
965
+ "dimensions": 0,
966
+ "default": null,
967
+ "generated": null,
968
+ "identity": null,
969
+ "name": "expires_at",
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": "inviter_id",
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": "now()",
993
+ "generated": null,
994
+ "identity": null,
995
+ "name": "updated_at",
996
+ "entityType": "columns",
997
+ "schema": "public",
998
+ "table": "invitation"
999
+ },
1000
+ {
1001
+ "type": "timestamp(3) with time zone",
1002
+ "typeSchema": null,
1003
+ "notNull": true,
1004
+ "dimensions": 0,
1005
+ "default": null,
1006
+ "generated": null,
1007
+ "identity": null,
1008
+ "name": "created_at",
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": "text",
1028
+ "typeSchema": null,
1029
+ "notNull": true,
1030
+ "dimensions": 0,
1031
+ "default": null,
1032
+ "generated": null,
1033
+ "identity": null,
1034
+ "name": "email",
1035
+ "entityType": "columns",
1036
+ "schema": "public",
1037
+ "table": "local_users"
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "typeSchema": null,
1042
+ "notNull": true,
1043
+ "dimensions": 0,
1044
+ "default": null,
1045
+ "generated": null,
1046
+ "identity": null,
1047
+ "name": "hash",
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": "salt",
1061
+ "entityType": "columns",
1062
+ "schema": "public",
1063
+ "table": "local_users"
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "typeSchema": null,
1068
+ "notNull": false,
1069
+ "dimensions": 0,
1070
+ "default": null,
1071
+ "generated": null,
1072
+ "identity": null,
1073
+ "name": "sessions",
1074
+ "entityType": "columns",
1075
+ "schema": "public",
1076
+ "table": "local_users"
1077
+ },
1078
+ {
1079
+ "type": "numeric",
1080
+ "typeSchema": null,
1081
+ "notNull": false,
1082
+ "dimensions": 0,
1083
+ "default": "'0'",
1084
+ "generated": null,
1085
+ "identity": null,
1086
+ "name": "login_attempts",
1087
+ "entityType": "columns",
1088
+ "schema": "public",
1089
+ "table": "local_users"
1090
+ },
1091
+ {
1092
+ "type": "timestamp(3) with time zone",
1093
+ "typeSchema": null,
1094
+ "notNull": false,
1095
+ "dimensions": 0,
1096
+ "default": null,
1097
+ "generated": null,
1098
+ "identity": null,
1099
+ "name": "lock_until",
1100
+ "entityType": "columns",
1101
+ "schema": "public",
1102
+ "table": "local_users"
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "typeSchema": null,
1107
+ "notNull": false,
1108
+ "dimensions": 0,
1109
+ "default": null,
1110
+ "generated": null,
1111
+ "identity": null,
1112
+ "name": "reset_password_token",
1113
+ "entityType": "columns",
1114
+ "schema": "public",
1115
+ "table": "local_users"
1116
+ },
1117
+ {
1118
+ "type": "numeric",
1119
+ "typeSchema": null,
1120
+ "notNull": false,
1121
+ "dimensions": 0,
1122
+ "default": "'0'",
1123
+ "generated": null,
1124
+ "identity": null,
1125
+ "name": "reset_password_attempts",
1126
+ "entityType": "columns",
1127
+ "schema": "public",
1128
+ "table": "local_users"
1129
+ },
1130
+ {
1131
+ "type": "timestamp(3) with time zone",
1132
+ "typeSchema": null,
1133
+ "notNull": false,
1134
+ "dimensions": 0,
1135
+ "default": null,
1136
+ "generated": null,
1137
+ "identity": null,
1138
+ "name": "reset_password_expiration",
1139
+ "entityType": "columns",
1140
+ "schema": "public",
1141
+ "table": "local_users"
1142
+ },
1143
+ {
1144
+ "type": "boolean",
1145
+ "typeSchema": null,
1146
+ "notNull": false,
1147
+ "dimensions": 0,
1148
+ "default": "false",
1149
+ "generated": null,
1150
+ "identity": null,
1151
+ "name": "_verified",
1152
+ "entityType": "columns",
1153
+ "schema": "public",
1154
+ "table": "local_users"
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "typeSchema": null,
1159
+ "notNull": false,
1160
+ "dimensions": 0,
1161
+ "default": null,
1162
+ "generated": null,
1163
+ "identity": null,
1164
+ "name": "_verification_token",
1165
+ "entityType": "columns",
1166
+ "schema": "public",
1167
+ "table": "local_users"
1168
+ },
1169
+ {
1170
+ "type": "timestamp(3) with time zone",
1171
+ "typeSchema": null,
1172
+ "notNull": true,
1173
+ "dimensions": 0,
1174
+ "default": "now()",
1175
+ "generated": null,
1176
+ "identity": null,
1177
+ "name": "updated_at",
1178
+ "entityType": "columns",
1179
+ "schema": "public",
1180
+ "table": "local_users"
1181
+ },
1182
+ {
1183
+ "type": "timestamp(3) with time zone",
1184
+ "typeSchema": null,
1185
+ "notNull": true,
1186
+ "dimensions": 0,
1187
+ "default": "now()",
1188
+ "generated": null,
1189
+ "identity": null,
1190
+ "name": "created_at",
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": "text",
1210
+ "typeSchema": null,
1211
+ "notNull": true,
1212
+ "dimensions": 0,
1213
+ "default": null,
1214
+ "generated": null,
1215
+ "identity": null,
1216
+ "name": "organization_id",
1217
+ "entityType": "columns",
1218
+ "schema": "public",
1219
+ "table": "media"
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "typeSchema": null,
1224
+ "notNull": true,
1225
+ "dimensions": 0,
1226
+ "default": null,
1227
+ "generated": null,
1228
+ "identity": null,
1229
+ "name": "filename",
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": "mime_type",
1243
+ "entityType": "columns",
1244
+ "schema": "public",
1245
+ "table": "media"
1246
+ },
1247
+ {
1248
+ "type": "numeric",
1249
+ "typeSchema": null,
1250
+ "notNull": true,
1251
+ "dimensions": 0,
1252
+ "default": null,
1253
+ "generated": null,
1254
+ "identity": null,
1255
+ "name": "filesize",
1256
+ "entityType": "columns",
1257
+ "schema": "public",
1258
+ "table": "media"
1259
+ },
1260
+ {
1261
+ "type": "numeric",
1262
+ "typeSchema": null,
1263
+ "notNull": false,
1264
+ "dimensions": 0,
1265
+ "default": null,
1266
+ "generated": null,
1267
+ "identity": null,
1268
+ "name": "width",
1269
+ "entityType": "columns",
1270
+ "schema": "public",
1271
+ "table": "media"
1272
+ },
1273
+ {
1274
+ "type": "numeric",
1275
+ "typeSchema": null,
1276
+ "notNull": false,
1277
+ "dimensions": 0,
1278
+ "default": null,
1279
+ "generated": null,
1280
+ "identity": null,
1281
+ "name": "height",
1282
+ "entityType": "columns",
1283
+ "schema": "public",
1284
+ "table": "media"
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "typeSchema": null,
1289
+ "notNull": true,
1290
+ "dimensions": 0,
1291
+ "default": null,
1292
+ "generated": null,
1293
+ "identity": null,
1294
+ "name": "key",
1295
+ "entityType": "columns",
1296
+ "schema": "public",
1297
+ "table": "media"
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "typeSchema": null,
1302
+ "notNull": true,
1303
+ "dimensions": 0,
1304
+ "default": null,
1305
+ "generated": null,
1306
+ "identity": null,
1307
+ "name": "storage",
1308
+ "entityType": "columns",
1309
+ "schema": "public",
1310
+ "table": "media"
1311
+ },
1312
+ {
1313
+ "type": "varchar(300)",
1314
+ "typeSchema": null,
1315
+ "notNull": true,
1316
+ "dimensions": 0,
1317
+ "default": null,
1318
+ "generated": null,
1319
+ "identity": null,
1320
+ "name": "alt_ar",
1321
+ "entityType": "columns",
1322
+ "schema": "public",
1323
+ "table": "media"
1324
+ },
1325
+ {
1326
+ "type": "varchar(300)",
1327
+ "typeSchema": null,
1328
+ "notNull": true,
1329
+ "dimensions": 0,
1330
+ "default": null,
1331
+ "generated": null,
1332
+ "identity": null,
1333
+ "name": "alt_en",
1334
+ "entityType": "columns",
1335
+ "schema": "public",
1336
+ "table": "media"
1337
+ },
1338
+ {
1339
+ "type": "timestamp(3) with time zone",
1340
+ "typeSchema": null,
1341
+ "notNull": true,
1342
+ "dimensions": 0,
1343
+ "default": "now()",
1344
+ "generated": null,
1345
+ "identity": null,
1346
+ "name": "updated_at",
1347
+ "entityType": "columns",
1348
+ "schema": "public",
1349
+ "table": "media"
1350
+ },
1351
+ {
1352
+ "type": "timestamp(3) with time zone",
1353
+ "typeSchema": null,
1354
+ "notNull": true,
1355
+ "dimensions": 0,
1356
+ "default": "now()",
1357
+ "generated": null,
1358
+ "identity": null,
1359
+ "name": "created_at",
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": "text",
1379
+ "typeSchema": null,
1380
+ "notNull": true,
1381
+ "dimensions": 0,
1382
+ "default": null,
1383
+ "generated": null,
1384
+ "identity": null,
1385
+ "name": "organization_id",
1386
+ "entityType": "columns",
1387
+ "schema": "public",
1388
+ "table": "member"
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "typeSchema": null,
1393
+ "notNull": true,
1394
+ "dimensions": 0,
1395
+ "default": null,
1396
+ "generated": null,
1397
+ "identity": null,
1398
+ "name": "user_id",
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": "role",
1412
+ "entityType": "columns",
1413
+ "schema": "public",
1414
+ "table": "member"
1415
+ },
1416
+ {
1417
+ "type": "timestamp(3) with time zone",
1418
+ "typeSchema": null,
1419
+ "notNull": false,
1420
+ "dimensions": 0,
1421
+ "default": null,
1422
+ "generated": null,
1423
+ "identity": null,
1424
+ "name": "last_seen_at",
1425
+ "entityType": "columns",
1426
+ "schema": "public",
1427
+ "table": "member"
1428
+ },
1429
+ {
1430
+ "type": "timestamp(3) with time zone",
1431
+ "typeSchema": null,
1432
+ "notNull": true,
1433
+ "dimensions": 0,
1434
+ "default": "now()",
1435
+ "generated": null,
1436
+ "identity": null,
1437
+ "name": "updated_at",
1438
+ "entityType": "columns",
1439
+ "schema": "public",
1440
+ "table": "member"
1441
+ },
1442
+ {
1443
+ "type": "timestamp(3) with time zone",
1444
+ "typeSchema": null,
1445
+ "notNull": true,
1446
+ "dimensions": 0,
1447
+ "default": null,
1448
+ "generated": null,
1449
+ "identity": null,
1450
+ "name": "created_at",
1451
+ "entityType": "columns",
1452
+ "schema": "public",
1453
+ "table": "member"
1454
+ },
1455
+ {
1456
+ "type": "uuid",
1457
+ "typeSchema": null,
1458
+ "notNull": true,
1459
+ "dimensions": 0,
1460
+ "default": "gen_random_uuid()",
1461
+ "generated": null,
1462
+ "identity": null,
1463
+ "name": "id",
1464
+ "entityType": "columns",
1465
+ "schema": "public",
1466
+ "table": "member_roles"
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "typeSchema": null,
1471
+ "notNull": true,
1472
+ "dimensions": 0,
1473
+ "default": null,
1474
+ "generated": null,
1475
+ "identity": null,
1476
+ "name": "organization_id",
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": "user_id",
1490
+ "entityType": "columns",
1491
+ "schema": "public",
1492
+ "table": "member_roles"
1493
+ },
1494
+ {
1495
+ "type": "varchar(60)",
1496
+ "typeSchema": null,
1497
+ "notNull": true,
1498
+ "dimensions": 0,
1499
+ "default": null,
1500
+ "generated": null,
1501
+ "identity": null,
1502
+ "name": "role",
1503
+ "entityType": "columns",
1504
+ "schema": "public",
1505
+ "table": "member_roles"
1506
+ },
1507
+ {
1508
+ "type": "timestamp(3) with time zone",
1509
+ "typeSchema": null,
1510
+ "notNull": true,
1511
+ "dimensions": 0,
1512
+ "default": "now()",
1513
+ "generated": null,
1514
+ "identity": null,
1515
+ "name": "updated_at",
1516
+ "entityType": "columns",
1517
+ "schema": "public",
1518
+ "table": "member_roles"
1519
+ },
1520
+ {
1521
+ "type": "timestamp(3) with time zone",
1522
+ "typeSchema": null,
1523
+ "notNull": true,
1524
+ "dimensions": 0,
1525
+ "default": "now()",
1526
+ "generated": null,
1527
+ "identity": null,
1528
+ "name": "created_at",
1529
+ "entityType": "columns",
1530
+ "schema": "public",
1531
+ "table": "member_roles"
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "typeSchema": null,
1536
+ "notNull": true,
1537
+ "dimensions": 0,
1538
+ "default": null,
1539
+ "generated": null,
1540
+ "identity": null,
1541
+ "name": "id",
1542
+ "entityType": "columns",
1543
+ "schema": "public",
1544
+ "table": "organization"
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "typeSchema": null,
1549
+ "notNull": true,
1550
+ "dimensions": 0,
1551
+ "default": null,
1552
+ "generated": null,
1553
+ "identity": null,
1554
+ "name": "name",
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": "slug",
1568
+ "entityType": "columns",
1569
+ "schema": "public",
1570
+ "table": "organization"
1571
+ },
1572
+ {
1573
+ "type": "text",
1574
+ "typeSchema": null,
1575
+ "notNull": false,
1576
+ "dimensions": 0,
1577
+ "default": null,
1578
+ "generated": null,
1579
+ "identity": null,
1580
+ "name": "logo",
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": "metadata",
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": "names",
1607
+ "entityType": "columns",
1608
+ "schema": "public",
1609
+ "table": "organization"
1610
+ },
1611
+ {
1612
+ "type": "timestamp(3) with time zone",
1613
+ "typeSchema": null,
1614
+ "notNull": true,
1615
+ "dimensions": 0,
1616
+ "default": "now()",
1617
+ "generated": null,
1618
+ "identity": null,
1619
+ "name": "updated_at",
1620
+ "entityType": "columns",
1621
+ "schema": "public",
1622
+ "table": "organization"
1623
+ },
1624
+ {
1625
+ "type": "timestamp(3) with time zone",
1626
+ "typeSchema": null,
1627
+ "notNull": true,
1628
+ "dimensions": 0,
1629
+ "default": null,
1630
+ "generated": null,
1631
+ "identity": null,
1632
+ "name": "created_at",
1633
+ "entityType": "columns",
1634
+ "schema": "public",
1635
+ "table": "organization"
1636
+ },
1637
+ {
1638
+ "type": "text",
1639
+ "typeSchema": null,
1640
+ "notNull": true,
1641
+ "dimensions": 0,
1642
+ "default": null,
1643
+ "generated": null,
1644
+ "identity": null,
1645
+ "name": "id",
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": "timestamp(3) with time zone",
1691
+ "typeSchema": null,
1692
+ "notNull": false,
1693
+ "dimensions": 0,
1694
+ "default": null,
1695
+ "generated": null,
1696
+ "identity": null,
1697
+ "name": "updated_at",
1698
+ "entityType": "columns",
1699
+ "schema": "public",
1700
+ "table": "organization_role"
1701
+ },
1702
+ {
1703
+ "type": "timestamp(3) with time zone",
1704
+ "typeSchema": null,
1705
+ "notNull": true,
1706
+ "dimensions": 0,
1707
+ "default": null,
1708
+ "generated": null,
1709
+ "identity": null,
1710
+ "name": "created_at",
1711
+ "entityType": "columns",
1712
+ "schema": "public",
1713
+ "table": "organization_role"
1714
+ },
1715
+ {
1716
+ "type": "uuid",
1717
+ "typeSchema": null,
1718
+ "notNull": true,
1719
+ "dimensions": 0,
1720
+ "default": "gen_random_uuid()",
1721
+ "generated": null,
1722
+ "identity": null,
1723
+ "name": "id",
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": "timestamp(3) with time zone",
1795
+ "typeSchema": null,
1796
+ "notNull": true,
1797
+ "dimensions": 0,
1798
+ "default": "now()",
1799
+ "generated": null,
1800
+ "identity": null,
1801
+ "name": "updated_at",
1802
+ "entityType": "columns",
1803
+ "schema": "public",
1804
+ "table": "roles"
1805
+ },
1806
+ {
1807
+ "type": "timestamp(3) with time zone",
1808
+ "typeSchema": null,
1809
+ "notNull": true,
1810
+ "dimensions": 0,
1811
+ "default": "now()",
1812
+ "generated": null,
1813
+ "identity": null,
1814
+ "name": "created_at",
1815
+ "entityType": "columns",
1816
+ "schema": "public",
1817
+ "table": "roles"
1818
+ },
1819
+ {
1820
+ "type": "text",
1821
+ "typeSchema": null,
1822
+ "notNull": true,
1823
+ "dimensions": 0,
1824
+ "default": null,
1825
+ "generated": null,
1826
+ "identity": null,
1827
+ "name": "id",
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": "timestamp(3) with time zone",
1925
+ "typeSchema": null,
1926
+ "notNull": true,
1927
+ "dimensions": 0,
1928
+ "default": null,
1929
+ "generated": null,
1930
+ "identity": null,
1931
+ "name": "updated_at",
1932
+ "entityType": "columns",
1933
+ "schema": "public",
1934
+ "table": "session"
1935
+ },
1936
+ {
1937
+ "type": "timestamp(3) with time zone",
1938
+ "typeSchema": null,
1939
+ "notNull": true,
1940
+ "dimensions": 0,
1941
+ "default": null,
1942
+ "generated": null,
1943
+ "identity": null,
1944
+ "name": "created_at",
1945
+ "entityType": "columns",
1946
+ "schema": "public",
1947
+ "table": "session"
1948
+ },
1949
+ {
1950
+ "type": "uuid",
1951
+ "typeSchema": null,
1952
+ "notNull": true,
1953
+ "dimensions": 0,
1954
+ "default": "gen_random_uuid()",
1955
+ "generated": null,
1956
+ "identity": null,
1957
+ "name": "id",
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": "varchar(200)",
2068
+ "typeSchema": null,
2069
+ "notNull": false,
2070
+ "dimensions": 0,
2071
+ "default": null,
2072
+ "generated": null,
2073
+ "identity": null,
2074
+ "name": "archive_reason",
2075
+ "entityType": "columns",
2076
+ "schema": "public",
2077
+ "table": "course_sessions"
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": "course_sessions"
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": "course_sessions"
2104
+ },
2105
+ {
2106
+ "type": "uuid",
2107
+ "typeSchema": null,
2108
+ "notNull": true,
2109
+ "dimensions": 0,
2110
+ "default": "gen_random_uuid()",
2111
+ "generated": null,
2112
+ "identity": null,
2113
+ "name": "id",
2114
+ "entityType": "columns",
2115
+ "schema": "public",
2116
+ "table": "settings"
2117
+ },
2118
+ {
2119
+ "type": "text",
2120
+ "typeSchema": null,
2121
+ "notNull": true,
2122
+ "dimensions": 0,
2123
+ "default": null,
2124
+ "generated": null,
2125
+ "identity": null,
2126
+ "name": "organization_id",
2127
+ "entityType": "columns",
2128
+ "schema": "public",
2129
+ "table": "settings"
2130
+ },
2131
+ {
2132
+ "type": "varchar(120)",
2133
+ "typeSchema": null,
2134
+ "notNull": true,
2135
+ "dimensions": 0,
2136
+ "default": null,
2137
+ "generated": null,
2138
+ "identity": null,
2139
+ "name": "site_title",
2140
+ "entityType": "columns",
2141
+ "schema": "public",
2142
+ "table": "settings"
2143
+ },
2144
+ {
2145
+ "type": "boolean",
2146
+ "typeSchema": null,
2147
+ "notNull": false,
2148
+ "dimensions": 0,
2149
+ "default": null,
2150
+ "generated": null,
2151
+ "identity": null,
2152
+ "name": "maintenance",
2153
+ "entityType": "columns",
2154
+ "schema": "public",
2155
+ "table": "settings"
2156
+ },
2157
+ {
2158
+ "type": "text",
2159
+ "typeSchema": null,
2160
+ "notNull": false,
2161
+ "dimensions": 0,
2162
+ "default": null,
2163
+ "generated": null,
2164
+ "identity": null,
2165
+ "name": "contact_email",
2166
+ "entityType": "columns",
2167
+ "schema": "public",
2168
+ "table": "settings"
2169
+ },
2170
+ {
2171
+ "type": "text",
2172
+ "typeSchema": null,
2173
+ "notNull": true,
2174
+ "dimensions": 0,
2175
+ "default": "'settings'",
2176
+ "generated": null,
2177
+ "identity": null,
2178
+ "name": "global_type",
2179
+ "entityType": "columns",
2180
+ "schema": "public",
2181
+ "table": "settings"
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": "settings"
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": "settings"
2208
+ },
2209
+ {
2210
+ "type": "uuid",
2211
+ "typeSchema": null,
2212
+ "notNull": true,
2213
+ "dimensions": 0,
2214
+ "default": "gen_random_uuid()",
2215
+ "generated": null,
2216
+ "identity": null,
2217
+ "name": "id",
2218
+ "entityType": "columns",
2219
+ "schema": "public",
2220
+ "table": "tags"
2221
+ },
2222
+ {
2223
+ "type": "text",
2224
+ "typeSchema": null,
2225
+ "notNull": true,
2226
+ "dimensions": 0,
2227
+ "default": null,
2228
+ "generated": null,
2229
+ "identity": null,
2230
+ "name": "organization_id",
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_ar",
2244
+ "entityType": "columns",
2245
+ "schema": "public",
2246
+ "table": "tags"
2247
+ },
2248
+ {
2249
+ "type": "varchar(60)",
2250
+ "typeSchema": null,
2251
+ "notNull": true,
2252
+ "dimensions": 0,
2253
+ "default": null,
2254
+ "generated": null,
2255
+ "identity": null,
2256
+ "name": "name_en",
2257
+ "entityType": "columns",
2258
+ "schema": "public",
2259
+ "table": "tags"
2260
+ },
2261
+ {
2262
+ "type": "timestamp(3) with time zone",
2263
+ "typeSchema": null,
2264
+ "notNull": true,
2265
+ "dimensions": 0,
2266
+ "default": "now()",
2267
+ "generated": null,
2268
+ "identity": null,
2269
+ "name": "updated_at",
2270
+ "entityType": "columns",
2271
+ "schema": "public",
2272
+ "table": "tags"
2273
+ },
2274
+ {
2275
+ "type": "timestamp(3) with time zone",
2276
+ "typeSchema": null,
2277
+ "notNull": true,
2278
+ "dimensions": 0,
2279
+ "default": "now()",
2280
+ "generated": null,
2281
+ "identity": null,
2282
+ "name": "created_at",
2283
+ "entityType": "columns",
2284
+ "schema": "public",
2285
+ "table": "tags"
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": "id",
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": "name",
2309
+ "entityType": "columns",
2310
+ "schema": "public",
2311
+ "table": "user"
2312
+ },
2313
+ {
2314
+ "type": "text",
2315
+ "typeSchema": null,
2316
+ "notNull": true,
2317
+ "dimensions": 0,
2318
+ "default": null,
2319
+ "generated": null,
2320
+ "identity": null,
2321
+ "name": "email",
2322
+ "entityType": "columns",
2323
+ "schema": "public",
2324
+ "table": "user"
2325
+ },
2326
+ {
2327
+ "type": "boolean",
2328
+ "typeSchema": null,
2329
+ "notNull": true,
2330
+ "dimensions": 0,
2331
+ "default": null,
2332
+ "generated": null,
2333
+ "identity": null,
2334
+ "name": "email_verified",
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": "image",
2348
+ "entityType": "columns",
2349
+ "schema": "public",
2350
+ "table": "user"
2351
+ },
2352
+ {
2353
+ "type": "text",
2354
+ "typeSchema": null,
2355
+ "notNull": false,
2356
+ "dimensions": 0,
2357
+ "default": null,
2358
+ "generated": null,
2359
+ "identity": null,
2360
+ "name": "role",
2361
+ "entityType": "columns",
2362
+ "schema": "public",
2363
+ "table": "user"
2364
+ },
2365
+ {
2366
+ "type": "boolean",
2367
+ "typeSchema": null,
2368
+ "notNull": false,
2369
+ "dimensions": 0,
2370
+ "default": null,
2371
+ "generated": null,
2372
+ "identity": null,
2373
+ "name": "banned",
2374
+ "entityType": "columns",
2375
+ "schema": "public",
2376
+ "table": "user"
2377
+ },
2378
+ {
2379
+ "type": "text",
2380
+ "typeSchema": null,
2381
+ "notNull": false,
2382
+ "dimensions": 0,
2383
+ "default": null,
2384
+ "generated": null,
2385
+ "identity": null,
2386
+ "name": "ban_reason",
2387
+ "entityType": "columns",
2388
+ "schema": "public",
2389
+ "table": "user"
2390
+ },
2391
+ {
2392
+ "type": "timestamp(3) with time zone",
2393
+ "typeSchema": null,
2394
+ "notNull": false,
2395
+ "dimensions": 0,
2396
+ "default": null,
2397
+ "generated": null,
2398
+ "identity": null,
2399
+ "name": "ban_expires",
2400
+ "entityType": "columns",
2401
+ "schema": "public",
2402
+ "table": "user"
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": "user"
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": "user"
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": "id",
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": "identifier",
2452
+ "entityType": "columns",
2453
+ "schema": "public",
2454
+ "table": "verification"
2455
+ },
2456
+ {
2457
+ "type": "text",
2458
+ "typeSchema": null,
2459
+ "notNull": true,
2460
+ "dimensions": 0,
2461
+ "default": null,
2462
+ "generated": null,
2463
+ "identity": null,
2464
+ "name": "value",
2465
+ "entityType": "columns",
2466
+ "schema": "public",
2467
+ "table": "verification"
2468
+ },
2469
+ {
2470
+ "type": "timestamp(3) with time zone",
2471
+ "typeSchema": null,
2472
+ "notNull": true,
2473
+ "dimensions": 0,
2474
+ "default": null,
2475
+ "generated": null,
2476
+ "identity": null,
2477
+ "name": "expires_at",
2478
+ "entityType": "columns",
2479
+ "schema": "public",
2480
+ "table": "verification"
2481
+ },
2482
+ {
2483
+ "type": "timestamp(3) with time zone",
2484
+ "typeSchema": null,
2485
+ "notNull": true,
2486
+ "dimensions": 0,
2487
+ "default": null,
2488
+ "generated": null,
2489
+ "identity": null,
2490
+ "name": "updated_at",
2491
+ "entityType": "columns",
2492
+ "schema": "public",
2493
+ "table": "verification"
2494
+ },
2495
+ {
2496
+ "type": "timestamp(3) with time zone",
2497
+ "typeSchema": null,
2498
+ "notNull": true,
2499
+ "dimensions": 0,
2500
+ "default": null,
2501
+ "generated": null,
2502
+ "identity": null,
2503
+ "name": "created_at",
2504
+ "entityType": "columns",
2505
+ "schema": "public",
2506
+ "table": "verification"
2507
+ },
2508
+ {
2509
+ "nameExplicit": false,
2510
+ "columns": [
2511
+ {
2512
+ "value": "parent_id",
2513
+ "isExpression": false,
2514
+ "asc": true,
2515
+ "nullsFirst": false,
2516
+ "opclass": null
2517
+ }
2518
+ ],
2519
+ "isUnique": false,
2520
+ "where": null,
2521
+ "with": "",
2522
+ "method": "btree",
2523
+ "concurrently": false,
2524
+ "name": "_courses_versions_parent_id_index",
2525
+ "entityType": "indexes",
2526
+ "schema": "public",
2527
+ "table": "_courses_versions"
2528
+ },
2529
+ {
2530
+ "nameExplicit": false,
2531
+ "columns": [
2532
+ {
2533
+ "value": "latest",
2534
+ "isExpression": false,
2535
+ "asc": true,
2536
+ "nullsFirst": false,
2537
+ "opclass": null
2538
+ }
2539
+ ],
2540
+ "isUnique": false,
2541
+ "where": null,
2542
+ "with": "",
2543
+ "method": "btree",
2544
+ "concurrently": false,
2545
+ "name": "_courses_versions_latest_index",
2546
+ "entityType": "indexes",
2547
+ "schema": "public",
2548
+ "table": "_courses_versions"
2549
+ },
2550
+ {
2551
+ "nameExplicit": false,
2552
+ "columns": [
2553
+ {
2554
+ "value": "organization_id",
2555
+ "isExpression": false,
2556
+ "asc": true,
2557
+ "nullsFirst": false,
2558
+ "opclass": null
2559
+ }
2560
+ ],
2561
+ "isUnique": false,
2562
+ "where": null,
2563
+ "with": "",
2564
+ "method": "btree",
2565
+ "concurrently": false,
2566
+ "name": "audit_log_organization_id_index",
2567
+ "entityType": "indexes",
2568
+ "schema": "public",
2569
+ "table": "audit_log"
2570
+ },
2571
+ {
2572
+ "nameExplicit": false,
2573
+ "columns": [
2574
+ {
2575
+ "value": "record",
2576
+ "isExpression": false,
2577
+ "asc": true,
2578
+ "nullsFirst": false,
2579
+ "opclass": null
2580
+ }
2581
+ ],
2582
+ "isUnique": false,
2583
+ "where": null,
2584
+ "with": "",
2585
+ "method": "btree",
2586
+ "concurrently": false,
2587
+ "name": "audit_log_record_index",
2588
+ "entityType": "indexes",
2589
+ "schema": "public",
2590
+ "table": "audit_log"
2591
+ },
2592
+ {
2593
+ "nameExplicit": false,
2594
+ "columns": [
2595
+ {
2596
+ "value": "created_at",
2597
+ "isExpression": false,
2598
+ "asc": true,
2599
+ "nullsFirst": false,
2600
+ "opclass": null
2601
+ }
2602
+ ],
2603
+ "isUnique": false,
2604
+ "where": null,
2605
+ "with": "",
2606
+ "method": "btree",
2607
+ "concurrently": false,
2608
+ "name": "audit_log_created_at_index",
2609
+ "entityType": "indexes",
2610
+ "schema": "public",
2611
+ "table": "audit_log"
2612
+ },
2613
+ {
2614
+ "nameExplicit": false,
2615
+ "columns": [
2616
+ {
2617
+ "value": "organization_id",
2618
+ "isExpression": false,
2619
+ "asc": true,
2620
+ "nullsFirst": false,
2621
+ "opclass": null
2622
+ }
2623
+ ],
2624
+ "isUnique": false,
2625
+ "where": null,
2626
+ "with": "",
2627
+ "method": "btree",
2628
+ "concurrently": false,
2629
+ "name": "courses_organization_id_index",
2630
+ "entityType": "indexes",
2631
+ "schema": "public",
2632
+ "table": "courses"
2633
+ },
2634
+ {
2635
+ "nameExplicit": false,
2636
+ "columns": [
2637
+ {
2638
+ "value": "title",
2639
+ "isExpression": false,
2640
+ "asc": true,
2641
+ "nullsFirst": false,
2642
+ "opclass": null
2643
+ }
2644
+ ],
2645
+ "isUnique": false,
2646
+ "where": null,
2647
+ "with": "",
2648
+ "method": "btree",
2649
+ "concurrently": false,
2650
+ "name": "courses_title_index",
2651
+ "entityType": "indexes",
2652
+ "schema": "public",
2653
+ "table": "courses"
2654
+ },
2655
+ {
2656
+ "nameExplicit": false,
2657
+ "columns": [
2658
+ {
2659
+ "value": "_status",
2660
+ "isExpression": false,
2661
+ "asc": true,
2662
+ "nullsFirst": false,
2663
+ "opclass": null
2664
+ }
2665
+ ],
2666
+ "isUnique": false,
2667
+ "where": null,
2668
+ "with": "",
2669
+ "method": "btree",
2670
+ "concurrently": false,
2671
+ "name": "courses__status_index",
2672
+ "entityType": "indexes",
2673
+ "schema": "public",
2674
+ "table": "courses"
2675
+ },
2676
+ {
2677
+ "nameExplicit": false,
2678
+ "columns": [
2679
+ {
2680
+ "value": "created_at",
2681
+ "isExpression": false,
2682
+ "asc": true,
2683
+ "nullsFirst": false,
2684
+ "opclass": null
2685
+ }
2686
+ ],
2687
+ "isUnique": false,
2688
+ "where": null,
2689
+ "with": "",
2690
+ "method": "btree",
2691
+ "concurrently": false,
2692
+ "name": "courses_created_at_index",
2693
+ "entityType": "indexes",
2694
+ "schema": "public",
2695
+ "table": "courses"
2696
+ },
2697
+ {
2698
+ "nameExplicit": false,
2699
+ "columns": [
2700
+ {
2701
+ "value": "parent_id",
2702
+ "isExpression": false,
2703
+ "asc": true,
2704
+ "nullsFirst": false,
2705
+ "opclass": null
2706
+ }
2707
+ ],
2708
+ "isUnique": false,
2709
+ "where": null,
2710
+ "with": "",
2711
+ "method": "btree",
2712
+ "concurrently": false,
2713
+ "name": "courses_tags_parent_id_index",
2714
+ "entityType": "indexes",
2715
+ "schema": "public",
2716
+ "table": "courses_tags"
2717
+ },
2718
+ {
2719
+ "nameExplicit": true,
2720
+ "columns": [
2721
+ {
2722
+ "value": "target_id",
2723
+ "isExpression": false,
2724
+ "asc": true,
2725
+ "nullsFirst": false,
2726
+ "opclass": null
2727
+ }
2728
+ ],
2729
+ "isUnique": false,
2730
+ "where": null,
2731
+ "with": "",
2732
+ "method": "btree",
2733
+ "concurrently": false,
2734
+ "name": "courses_tags_target_id_index",
2735
+ "entityType": "indexes",
2736
+ "schema": "public",
2737
+ "table": "courses_tags"
2738
+ },
2739
+ {
2740
+ "nameExplicit": false,
2741
+ "columns": [
2742
+ {
2743
+ "value": "organization_id",
2744
+ "isExpression": false,
2745
+ "asc": true,
2746
+ "nullsFirst": false,
2747
+ "opclass": null
2748
+ }
2749
+ ],
2750
+ "isUnique": false,
2751
+ "where": null,
2752
+ "with": "",
2753
+ "method": "btree",
2754
+ "concurrently": false,
2755
+ "name": "enrollments_organization_id_index",
2756
+ "entityType": "indexes",
2757
+ "schema": "public",
2758
+ "table": "enrollments"
2759
+ },
2760
+ {
2761
+ "nameExplicit": false,
2762
+ "columns": [
2763
+ {
2764
+ "value": "created_at",
2765
+ "isExpression": false,
2766
+ "asc": true,
2767
+ "nullsFirst": false,
2768
+ "opclass": null
2769
+ }
2770
+ ],
2771
+ "isUnique": false,
2772
+ "where": null,
2773
+ "with": "",
2774
+ "method": "btree",
2775
+ "concurrently": false,
2776
+ "name": "enrollments_created_at_index",
2777
+ "entityType": "indexes",
2778
+ "schema": "public",
2779
+ "table": "enrollments"
2780
+ },
2781
+ {
2782
+ "nameExplicit": false,
2783
+ "columns": [
2784
+ {
2785
+ "value": "created_at",
2786
+ "isExpression": false,
2787
+ "asc": true,
2788
+ "nullsFirst": false,
2789
+ "opclass": null
2790
+ }
2791
+ ],
2792
+ "isUnique": false,
2793
+ "where": null,
2794
+ "with": "",
2795
+ "method": "btree",
2796
+ "concurrently": false,
2797
+ "name": "local_users_created_at_index",
2798
+ "entityType": "indexes",
2799
+ "schema": "public",
2800
+ "table": "local_users"
2801
+ },
2802
+ {
2803
+ "nameExplicit": false,
2804
+ "columns": [
2805
+ {
2806
+ "value": "organization_id",
2807
+ "isExpression": false,
2808
+ "asc": true,
2809
+ "nullsFirst": false,
2810
+ "opclass": null
2811
+ }
2812
+ ],
2813
+ "isUnique": false,
2814
+ "where": null,
2815
+ "with": "",
2816
+ "method": "btree",
2817
+ "concurrently": false,
2818
+ "name": "media_organization_id_index",
2819
+ "entityType": "indexes",
2820
+ "schema": "public",
2821
+ "table": "media"
2822
+ },
2823
+ {
2824
+ "nameExplicit": false,
2825
+ "columns": [
2826
+ {
2827
+ "value": "filename",
2828
+ "isExpression": false,
2829
+ "asc": true,
2830
+ "nullsFirst": false,
2831
+ "opclass": null
2832
+ }
2833
+ ],
2834
+ "isUnique": false,
2835
+ "where": null,
2836
+ "with": "",
2837
+ "method": "btree",
2838
+ "concurrently": false,
2839
+ "name": "media_filename_index",
2840
+ "entityType": "indexes",
2841
+ "schema": "public",
2842
+ "table": "media"
2843
+ },
2844
+ {
2845
+ "nameExplicit": false,
2846
+ "columns": [
2847
+ {
2848
+ "value": "created_at",
2849
+ "isExpression": false,
2850
+ "asc": true,
2851
+ "nullsFirst": false,
2852
+ "opclass": null
2853
+ }
2854
+ ],
2855
+ "isUnique": false,
2856
+ "where": null,
2857
+ "with": "",
2858
+ "method": "btree",
2859
+ "concurrently": false,
2860
+ "name": "media_created_at_index",
2861
+ "entityType": "indexes",
2862
+ "schema": "public",
2863
+ "table": "media"
2864
+ },
2865
+ {
2866
+ "nameExplicit": false,
2867
+ "columns": [
2868
+ {
2869
+ "value": "organization_id",
2870
+ "isExpression": false,
2871
+ "asc": true,
2872
+ "nullsFirst": false,
2873
+ "opclass": null
2874
+ }
2875
+ ],
2876
+ "isUnique": false,
2877
+ "where": null,
2878
+ "with": "",
2879
+ "method": "btree",
2880
+ "concurrently": false,
2881
+ "name": "member_roles_organization_id_index",
2882
+ "entityType": "indexes",
2883
+ "schema": "public",
2884
+ "table": "member_roles"
2885
+ },
2886
+ {
2887
+ "nameExplicit": false,
2888
+ "columns": [
2889
+ {
2890
+ "value": "user_id",
2891
+ "isExpression": false,
2892
+ "asc": true,
2893
+ "nullsFirst": false,
2894
+ "opclass": null
2895
+ }
2896
+ ],
2897
+ "isUnique": false,
2898
+ "where": null,
2899
+ "with": "",
2900
+ "method": "btree",
2901
+ "concurrently": false,
2902
+ "name": "member_roles_user_id_index",
2903
+ "entityType": "indexes",
2904
+ "schema": "public",
2905
+ "table": "member_roles"
2906
+ },
2907
+ {
2908
+ "nameExplicit": false,
2909
+ "columns": [
2910
+ {
2911
+ "value": "role",
2912
+ "isExpression": false,
2913
+ "asc": true,
2914
+ "nullsFirst": false,
2915
+ "opclass": null
2916
+ }
2917
+ ],
2918
+ "isUnique": false,
2919
+ "where": null,
2920
+ "with": "",
2921
+ "method": "btree",
2922
+ "concurrently": false,
2923
+ "name": "member_roles_role_index",
2924
+ "entityType": "indexes",
2925
+ "schema": "public",
2926
+ "table": "member_roles"
2927
+ },
2928
+ {
2929
+ "nameExplicit": false,
2930
+ "columns": [
2931
+ {
2932
+ "value": "created_at",
2933
+ "isExpression": false,
2934
+ "asc": true,
2935
+ "nullsFirst": false,
2936
+ "opclass": null
2937
+ }
2938
+ ],
2939
+ "isUnique": false,
2940
+ "where": null,
2941
+ "with": "",
2942
+ "method": "btree",
2943
+ "concurrently": false,
2944
+ "name": "member_roles_created_at_index",
2945
+ "entityType": "indexes",
2946
+ "schema": "public",
2947
+ "table": "member_roles"
2948
+ },
2949
+ {
2950
+ "nameExplicit": true,
2951
+ "columns": [
2952
+ {
2953
+ "value": "organization_id",
2954
+ "isExpression": false,
2955
+ "asc": true,
2956
+ "nullsFirst": false,
2957
+ "opclass": null
2958
+ },
2959
+ {
2960
+ "value": "user_id",
2961
+ "isExpression": false,
2962
+ "asc": true,
2963
+ "nullsFirst": false,
2964
+ "opclass": null
2965
+ },
2966
+ {
2967
+ "value": "role",
2968
+ "isExpression": false,
2969
+ "asc": true,
2970
+ "nullsFirst": false,
2971
+ "opclass": null
2972
+ }
2973
+ ],
2974
+ "isUnique": true,
2975
+ "where": null,
2976
+ "with": "",
2977
+ "method": "btree",
2978
+ "concurrently": false,
2979
+ "name": "member_roles_organization_id_user_id_role_idx",
2980
+ "entityType": "indexes",
2981
+ "schema": "public",
2982
+ "table": "member_roles"
2983
+ },
2984
+ {
2985
+ "nameExplicit": false,
2986
+ "columns": [
2987
+ {
2988
+ "value": "organization_id",
2989
+ "isExpression": false,
2990
+ "asc": true,
2991
+ "nullsFirst": false,
2992
+ "opclass": null
2993
+ }
2994
+ ],
2995
+ "isUnique": false,
2996
+ "where": null,
2997
+ "with": "",
2998
+ "method": "btree",
2999
+ "concurrently": false,
3000
+ "name": "roles_organization_id_index",
3001
+ "entityType": "indexes",
3002
+ "schema": "public",
3003
+ "table": "roles"
3004
+ },
3005
+ {
3006
+ "nameExplicit": false,
3007
+ "columns": [
3008
+ {
3009
+ "value": "name",
3010
+ "isExpression": false,
3011
+ "asc": true,
3012
+ "nullsFirst": false,
3013
+ "opclass": null
3014
+ }
3015
+ ],
3016
+ "isUnique": false,
3017
+ "where": null,
3018
+ "with": "",
3019
+ "method": "btree",
3020
+ "concurrently": false,
3021
+ "name": "roles_name_index",
3022
+ "entityType": "indexes",
3023
+ "schema": "public",
3024
+ "table": "roles"
3025
+ },
3026
+ {
3027
+ "nameExplicit": false,
3028
+ "columns": [
3029
+ {
3030
+ "value": "created_at",
3031
+ "isExpression": false,
3032
+ "asc": true,
3033
+ "nullsFirst": false,
3034
+ "opclass": null
3035
+ }
3036
+ ],
3037
+ "isUnique": false,
3038
+ "where": null,
3039
+ "with": "",
3040
+ "method": "btree",
3041
+ "concurrently": false,
3042
+ "name": "roles_created_at_index",
3043
+ "entityType": "indexes",
3044
+ "schema": "public",
3045
+ "table": "roles"
3046
+ },
3047
+ {
3048
+ "nameExplicit": true,
3049
+ "columns": [
3050
+ {
3051
+ "value": "organization_id",
3052
+ "isExpression": false,
3053
+ "asc": true,
3054
+ "nullsFirst": false,
3055
+ "opclass": null
3056
+ },
3057
+ {
3058
+ "value": "name",
3059
+ "isExpression": false,
3060
+ "asc": true,
3061
+ "nullsFirst": false,
3062
+ "opclass": null
3063
+ }
3064
+ ],
3065
+ "isUnique": true,
3066
+ "where": null,
3067
+ "with": "",
3068
+ "method": "btree",
3069
+ "concurrently": false,
3070
+ "name": "roles_organization_id_name_idx",
3071
+ "entityType": "indexes",
3072
+ "schema": "public",
3073
+ "table": "roles"
3074
+ },
3075
+ {
3076
+ "nameExplicit": false,
3077
+ "columns": [
3078
+ {
3079
+ "value": "organization_id",
3080
+ "isExpression": false,
3081
+ "asc": true,
3082
+ "nullsFirst": false,
3083
+ "opclass": null
3084
+ }
3085
+ ],
3086
+ "isUnique": false,
3087
+ "where": null,
3088
+ "with": "",
3089
+ "method": "btree",
3090
+ "concurrently": false,
3091
+ "name": "course_sessions_organization_id_index",
3092
+ "entityType": "indexes",
3093
+ "schema": "public",
3094
+ "table": "course_sessions"
3095
+ },
3096
+ {
3097
+ "nameExplicit": false,
3098
+ "columns": [
3099
+ {
3100
+ "value": "created_at",
3101
+ "isExpression": false,
3102
+ "asc": true,
3103
+ "nullsFirst": false,
3104
+ "opclass": null
3105
+ }
3106
+ ],
3107
+ "isUnique": false,
3108
+ "where": null,
3109
+ "with": "",
3110
+ "method": "btree",
3111
+ "concurrently": false,
3112
+ "name": "course_sessions_created_at_index",
3113
+ "entityType": "indexes",
3114
+ "schema": "public",
3115
+ "table": "course_sessions"
3116
+ },
3117
+ {
3118
+ "nameExplicit": false,
3119
+ "columns": [
3120
+ {
3121
+ "value": "organization_id",
3122
+ "isExpression": false,
3123
+ "asc": true,
3124
+ "nullsFirst": false,
3125
+ "opclass": null
3126
+ }
3127
+ ],
3128
+ "isUnique": false,
3129
+ "where": null,
3130
+ "with": "",
3131
+ "method": "btree",
3132
+ "concurrently": false,
3133
+ "name": "settings_organization_id_index",
3134
+ "entityType": "indexes",
3135
+ "schema": "public",
3136
+ "table": "settings"
3137
+ },
3138
+ {
3139
+ "nameExplicit": false,
3140
+ "columns": [
3141
+ {
3142
+ "value": "created_at",
3143
+ "isExpression": false,
3144
+ "asc": true,
3145
+ "nullsFirst": false,
3146
+ "opclass": null
3147
+ }
3148
+ ],
3149
+ "isUnique": false,
3150
+ "where": null,
3151
+ "with": "",
3152
+ "method": "btree",
3153
+ "concurrently": false,
3154
+ "name": "settings_created_at_index",
3155
+ "entityType": "indexes",
3156
+ "schema": "public",
3157
+ "table": "settings"
3158
+ },
3159
+ {
3160
+ "nameExplicit": false,
3161
+ "columns": [
3162
+ {
3163
+ "value": "organization_id",
3164
+ "isExpression": false,
3165
+ "asc": true,
3166
+ "nullsFirst": false,
3167
+ "opclass": null
3168
+ }
3169
+ ],
3170
+ "isUnique": false,
3171
+ "where": null,
3172
+ "with": "",
3173
+ "method": "btree",
3174
+ "concurrently": false,
3175
+ "name": "tags_organization_id_index",
3176
+ "entityType": "indexes",
3177
+ "schema": "public",
3178
+ "table": "tags"
3179
+ },
3180
+ {
3181
+ "nameExplicit": false,
3182
+ "columns": [
3183
+ {
3184
+ "value": "name_ar",
3185
+ "isExpression": false,
3186
+ "asc": true,
3187
+ "nullsFirst": false,
3188
+ "opclass": null
3189
+ }
3190
+ ],
3191
+ "isUnique": false,
3192
+ "where": null,
3193
+ "with": "",
3194
+ "method": "btree",
3195
+ "concurrently": false,
3196
+ "name": "tags_name_ar_index",
3197
+ "entityType": "indexes",
3198
+ "schema": "public",
3199
+ "table": "tags"
3200
+ },
3201
+ {
3202
+ "nameExplicit": false,
3203
+ "columns": [
3204
+ {
3205
+ "value": "name_en",
3206
+ "isExpression": false,
3207
+ "asc": true,
3208
+ "nullsFirst": false,
3209
+ "opclass": null
3210
+ }
3211
+ ],
3212
+ "isUnique": false,
3213
+ "where": null,
3214
+ "with": "",
3215
+ "method": "btree",
3216
+ "concurrently": false,
3217
+ "name": "tags_name_index",
3218
+ "entityType": "indexes",
3219
+ "schema": "public",
3220
+ "table": "tags"
3221
+ },
3222
+ {
3223
+ "nameExplicit": false,
3224
+ "columns": [
3225
+ {
3226
+ "value": "created_at",
3227
+ "isExpression": false,
3228
+ "asc": true,
3229
+ "nullsFirst": false,
3230
+ "opclass": null
3231
+ }
3232
+ ],
3233
+ "isUnique": false,
3234
+ "where": null,
3235
+ "with": "",
3236
+ "method": "btree",
3237
+ "concurrently": false,
3238
+ "name": "tags_created_at_index",
3239
+ "entityType": "indexes",
3240
+ "schema": "public",
3241
+ "table": "tags"
3242
+ },
3243
+ {
3244
+ "nameExplicit": false,
3245
+ "columns": [
3246
+ "parent_id"
3247
+ ],
3248
+ "schemaTo": "public",
3249
+ "tableTo": "courses",
3250
+ "columnsTo": [
3251
+ "id"
3252
+ ],
3253
+ "onUpdate": "NO ACTION",
3254
+ "onDelete": "CASCADE",
3255
+ "name": "_courses_versions_parent_id_courses_id_fkey",
3256
+ "entityType": "fks",
3257
+ "schema": "public",
3258
+ "table": "_courses_versions"
3259
+ },
3260
+ {
3261
+ "nameExplicit": false,
3262
+ "columns": [
3263
+ "user_id"
3264
+ ],
3265
+ "schemaTo": "public",
3266
+ "tableTo": "user",
3267
+ "columnsTo": [
3268
+ "id"
3269
+ ],
3270
+ "onUpdate": "NO ACTION",
3271
+ "onDelete": "CASCADE",
3272
+ "name": "account_user_id_user_id_fkey",
3273
+ "entityType": "fks",
3274
+ "schema": "public",
3275
+ "table": "account"
3276
+ },
3277
+ {
3278
+ "nameExplicit": false,
3279
+ "columns": [
3280
+ "organization_id"
3281
+ ],
3282
+ "schemaTo": "public",
3283
+ "tableTo": "organization",
3284
+ "columnsTo": [
3285
+ "id"
3286
+ ],
3287
+ "onUpdate": "NO ACTION",
3288
+ "onDelete": "RESTRICT",
3289
+ "name": "audit_log_tenant_id_organization_id_fkey",
3290
+ "entityType": "fks",
3291
+ "schema": "public",
3292
+ "table": "audit_log"
3293
+ },
3294
+ {
3295
+ "nameExplicit": false,
3296
+ "columns": [
3297
+ "organization_id"
3298
+ ],
3299
+ "schemaTo": "public",
3300
+ "tableTo": "organization",
3301
+ "columnsTo": [
3302
+ "id"
3303
+ ],
3304
+ "onUpdate": "NO ACTION",
3305
+ "onDelete": "RESTRICT",
3306
+ "name": "courses_tenant_id_organization_id_fkey",
3307
+ "entityType": "fks",
3308
+ "schema": "public",
3309
+ "table": "courses"
3310
+ },
3311
+ {
3312
+ "nameExplicit": false,
3313
+ "columns": [
3314
+ "cover_id"
3315
+ ],
3316
+ "schemaTo": "public",
3317
+ "tableTo": "media",
3318
+ "columnsTo": [
3319
+ "id"
3320
+ ],
3321
+ "onUpdate": "NO ACTION",
3322
+ "onDelete": "RESTRICT",
3323
+ "name": "courses_cover_id_media_id_fkey",
3324
+ "entityType": "fks",
3325
+ "schema": "public",
3326
+ "table": "courses"
3327
+ },
3328
+ {
3329
+ "nameExplicit": false,
3330
+ "columns": [
3331
+ "parent_id"
3332
+ ],
3333
+ "schemaTo": "public",
3334
+ "tableTo": "courses",
3335
+ "columnsTo": [
3336
+ "id"
3337
+ ],
3338
+ "onUpdate": "NO ACTION",
3339
+ "onDelete": "CASCADE",
3340
+ "name": "courses_tags_parent_id_courses_id_fkey",
3341
+ "entityType": "fks",
3342
+ "schema": "public",
3343
+ "table": "courses_tags"
3344
+ },
3345
+ {
3346
+ "nameExplicit": false,
3347
+ "columns": [
3348
+ "target_id"
3349
+ ],
3350
+ "schemaTo": "public",
3351
+ "tableTo": "tags",
3352
+ "columnsTo": [
3353
+ "id"
3354
+ ],
3355
+ "onUpdate": "NO ACTION",
3356
+ "onDelete": "RESTRICT",
3357
+ "name": "courses_tags_target_id_tags_id_fkey",
3358
+ "entityType": "fks",
3359
+ "schema": "public",
3360
+ "table": "courses_tags"
3361
+ },
3362
+ {
3363
+ "nameExplicit": false,
3364
+ "columns": [
3365
+ "organization_id"
3366
+ ],
3367
+ "schemaTo": "public",
3368
+ "tableTo": "organization",
3369
+ "columnsTo": [
3370
+ "id"
3371
+ ],
3372
+ "onUpdate": "NO ACTION",
3373
+ "onDelete": "RESTRICT",
3374
+ "name": "enrollments_tenant_id_organization_id_fkey",
3375
+ "entityType": "fks",
3376
+ "schema": "public",
3377
+ "table": "enrollments"
3378
+ },
3379
+ {
3380
+ "nameExplicit": false,
3381
+ "columns": [
3382
+ "session_id"
3383
+ ],
3384
+ "schemaTo": "public",
3385
+ "tableTo": "course_sessions",
3386
+ "columnsTo": [
3387
+ "id"
3388
+ ],
3389
+ "onUpdate": "NO ACTION",
3390
+ "onDelete": "RESTRICT",
3391
+ "name": "enrollments_session_id_course_sessions_id_fkey",
3392
+ "entityType": "fks",
3393
+ "schema": "public",
3394
+ "table": "enrollments"
3395
+ },
3396
+ {
3397
+ "nameExplicit": false,
3398
+ "columns": [
3399
+ "student_id"
3400
+ ],
3401
+ "schemaTo": "public",
3402
+ "tableTo": "user",
3403
+ "columnsTo": [
3404
+ "id"
3405
+ ],
3406
+ "onUpdate": "NO ACTION",
3407
+ "onDelete": "RESTRICT",
3408
+ "name": "enrollments_student_id_user_id_fkey",
3409
+ "entityType": "fks",
3410
+ "schema": "public",
3411
+ "table": "enrollments"
3412
+ },
3413
+ {
3414
+ "nameExplicit": false,
3415
+ "columns": [
3416
+ "organization_id"
3417
+ ],
3418
+ "schemaTo": "public",
3419
+ "tableTo": "organization",
3420
+ "columnsTo": [
3421
+ "id"
3422
+ ],
3423
+ "onUpdate": "NO ACTION",
3424
+ "onDelete": "CASCADE",
3425
+ "name": "invitation_organization_id_organization_id_fkey",
3426
+ "entityType": "fks",
3427
+ "schema": "public",
3428
+ "table": "invitation"
3429
+ },
3430
+ {
3431
+ "nameExplicit": false,
3432
+ "columns": [
3433
+ "inviter_id"
3434
+ ],
3435
+ "schemaTo": "public",
3436
+ "tableTo": "user",
3437
+ "columnsTo": [
3438
+ "id"
3439
+ ],
3440
+ "onUpdate": "NO ACTION",
3441
+ "onDelete": "CASCADE",
3442
+ "name": "invitation_inviter_id_user_id_fkey",
3443
+ "entityType": "fks",
3444
+ "schema": "public",
3445
+ "table": "invitation"
3446
+ },
3447
+ {
3448
+ "nameExplicit": false,
3449
+ "columns": [
3450
+ "organization_id"
3451
+ ],
3452
+ "schemaTo": "public",
3453
+ "tableTo": "organization",
3454
+ "columnsTo": [
3455
+ "id"
3456
+ ],
3457
+ "onUpdate": "NO ACTION",
3458
+ "onDelete": "RESTRICT",
3459
+ "name": "media_tenant_id_organization_id_fkey",
3460
+ "entityType": "fks",
3461
+ "schema": "public",
3462
+ "table": "media"
3463
+ },
3464
+ {
3465
+ "nameExplicit": false,
3466
+ "columns": [
3467
+ "organization_id"
3468
+ ],
3469
+ "schemaTo": "public",
3470
+ "tableTo": "organization",
3471
+ "columnsTo": [
3472
+ "id"
3473
+ ],
3474
+ "onUpdate": "NO ACTION",
3475
+ "onDelete": "CASCADE",
3476
+ "name": "member_organization_id_organization_id_fkey",
3477
+ "entityType": "fks",
3478
+ "schema": "public",
3479
+ "table": "member"
3480
+ },
3481
+ {
3482
+ "nameExplicit": false,
3483
+ "columns": [
3484
+ "user_id"
3485
+ ],
3486
+ "schemaTo": "public",
3487
+ "tableTo": "user",
3488
+ "columnsTo": [
3489
+ "id"
3490
+ ],
3491
+ "onUpdate": "NO ACTION",
3492
+ "onDelete": "CASCADE",
3493
+ "name": "member_user_id_user_id_fkey",
3494
+ "entityType": "fks",
3495
+ "schema": "public",
3496
+ "table": "member"
3497
+ },
3498
+ {
3499
+ "nameExplicit": false,
3500
+ "columns": [
3501
+ "organization_id"
3502
+ ],
3503
+ "schemaTo": "public",
3504
+ "tableTo": "organization",
3505
+ "columnsTo": [
3506
+ "id"
3507
+ ],
3508
+ "onUpdate": "NO ACTION",
3509
+ "onDelete": "RESTRICT",
3510
+ "name": "member_roles_tenant_id_organization_id_fkey",
3511
+ "entityType": "fks",
3512
+ "schema": "public",
3513
+ "table": "member_roles"
3514
+ },
3515
+ {
3516
+ "nameExplicit": false,
3517
+ "columns": [
3518
+ "user_id"
3519
+ ],
3520
+ "schemaTo": "public",
3521
+ "tableTo": "user",
3522
+ "columnsTo": [
3523
+ "id"
3524
+ ],
3525
+ "onUpdate": "NO ACTION",
3526
+ "onDelete": "CASCADE",
3527
+ "name": "member_roles_user_id_user_id_fkey",
3528
+ "entityType": "fks",
3529
+ "schema": "public",
3530
+ "table": "member_roles"
3531
+ },
3532
+ {
3533
+ "nameExplicit": false,
3534
+ "columns": [
3535
+ "organization_id"
3536
+ ],
3537
+ "schemaTo": "public",
3538
+ "tableTo": "organization",
3539
+ "columnsTo": [
3540
+ "id"
3541
+ ],
3542
+ "onUpdate": "NO ACTION",
3543
+ "onDelete": "CASCADE",
3544
+ "name": "organization_role_organization_id_organization_id_fkey",
3545
+ "entityType": "fks",
3546
+ "schema": "public",
3547
+ "table": "organization_role"
3548
+ },
3549
+ {
3550
+ "nameExplicit": false,
3551
+ "columns": [
3552
+ "organization_id"
3553
+ ],
3554
+ "schemaTo": "public",
3555
+ "tableTo": "organization",
3556
+ "columnsTo": [
3557
+ "id"
3558
+ ],
3559
+ "onUpdate": "NO ACTION",
3560
+ "onDelete": "RESTRICT",
3561
+ "name": "roles_tenant_id_organization_id_fkey",
3562
+ "entityType": "fks",
3563
+ "schema": "public",
3564
+ "table": "roles"
3565
+ },
3566
+ {
3567
+ "nameExplicit": false,
3568
+ "columns": [
3569
+ "user_id"
3570
+ ],
3571
+ "schemaTo": "public",
3572
+ "tableTo": "user",
3573
+ "columnsTo": [
3574
+ "id"
3575
+ ],
3576
+ "onUpdate": "NO ACTION",
3577
+ "onDelete": "CASCADE",
3578
+ "name": "session_user_id_user_id_fkey",
3579
+ "entityType": "fks",
3580
+ "schema": "public",
3581
+ "table": "session"
3582
+ },
3583
+ {
3584
+ "nameExplicit": false,
3585
+ "columns": [
3586
+ "organization_id"
3587
+ ],
3588
+ "schemaTo": "public",
3589
+ "tableTo": "organization",
3590
+ "columnsTo": [
3591
+ "id"
3592
+ ],
3593
+ "onUpdate": "NO ACTION",
3594
+ "onDelete": "RESTRICT",
3595
+ "name": "course_sessions_tenant_id_organization_id_fkey",
3596
+ "entityType": "fks",
3597
+ "schema": "public",
3598
+ "table": "course_sessions"
3599
+ },
3600
+ {
3601
+ "nameExplicit": false,
3602
+ "columns": [
3603
+ "course_id"
3604
+ ],
3605
+ "schemaTo": "public",
3606
+ "tableTo": "courses",
3607
+ "columnsTo": [
3608
+ "id"
3609
+ ],
3610
+ "onUpdate": "NO ACTION",
3611
+ "onDelete": "RESTRICT",
3612
+ "name": "course_sessions_course_id_courses_id_fkey",
3613
+ "entityType": "fks",
3614
+ "schema": "public",
3615
+ "table": "course_sessions"
3616
+ },
3617
+ {
3618
+ "nameExplicit": false,
3619
+ "columns": [
3620
+ "organization_id"
3621
+ ],
3622
+ "schemaTo": "public",
3623
+ "tableTo": "organization",
3624
+ "columnsTo": [
3625
+ "id"
3626
+ ],
3627
+ "onUpdate": "NO ACTION",
3628
+ "onDelete": "RESTRICT",
3629
+ "name": "settings_tenant_id_organization_id_fkey",
3630
+ "entityType": "fks",
3631
+ "schema": "public",
3632
+ "table": "settings"
3633
+ },
3634
+ {
3635
+ "nameExplicit": false,
3636
+ "columns": [
3637
+ "organization_id"
3638
+ ],
3639
+ "schemaTo": "public",
3640
+ "tableTo": "organization",
3641
+ "columnsTo": [
3642
+ "id"
3643
+ ],
3644
+ "onUpdate": "NO ACTION",
3645
+ "onDelete": "RESTRICT",
3646
+ "name": "tags_tenant_id_organization_id_fkey",
3647
+ "entityType": "fks",
3648
+ "schema": "public",
3649
+ "table": "tags"
3650
+ },
3651
+ {
3652
+ "columns": [
3653
+ "parent_id",
3654
+ "order"
3655
+ ],
3656
+ "nameExplicit": true,
3657
+ "name": "courses_tags_pkey",
3658
+ "entityType": "pks",
3659
+ "schema": "public",
3660
+ "table": "courses_tags"
3661
+ },
3662
+ {
3663
+ "columns": [
3664
+ "id"
3665
+ ],
3666
+ "nameExplicit": false,
3667
+ "name": "_courses_versions_pkey",
3668
+ "schema": "public",
3669
+ "table": "_courses_versions",
3670
+ "entityType": "pks"
3671
+ },
3672
+ {
3673
+ "columns": [
3674
+ "id"
3675
+ ],
3676
+ "nameExplicit": false,
3677
+ "name": "account_pkey",
3678
+ "schema": "public",
3679
+ "table": "account",
3680
+ "entityType": "pks"
3681
+ },
3682
+ {
3683
+ "columns": [
3684
+ "id"
3685
+ ],
3686
+ "nameExplicit": false,
3687
+ "name": "audit_log_pkey",
3688
+ "schema": "public",
3689
+ "table": "audit_log",
3690
+ "entityType": "pks"
3691
+ },
3692
+ {
3693
+ "columns": [
3694
+ "id"
3695
+ ],
3696
+ "nameExplicit": false,
3697
+ "name": "courses_pkey",
3698
+ "schema": "public",
3699
+ "table": "courses",
3700
+ "entityType": "pks"
3701
+ },
3702
+ {
3703
+ "columns": [
3704
+ "id"
3705
+ ],
3706
+ "nameExplicit": false,
3707
+ "name": "enrollments_pkey",
3708
+ "schema": "public",
3709
+ "table": "enrollments",
3710
+ "entityType": "pks"
3711
+ },
3712
+ {
3713
+ "columns": [
3714
+ "id"
3715
+ ],
3716
+ "nameExplicit": false,
3717
+ "name": "invitation_pkey",
3718
+ "schema": "public",
3719
+ "table": "invitation",
3720
+ "entityType": "pks"
3721
+ },
3722
+ {
3723
+ "columns": [
3724
+ "id"
3725
+ ],
3726
+ "nameExplicit": false,
3727
+ "name": "local_users_pkey",
3728
+ "schema": "public",
3729
+ "table": "local_users",
3730
+ "entityType": "pks"
3731
+ },
3732
+ {
3733
+ "columns": [
3734
+ "id"
3735
+ ],
3736
+ "nameExplicit": false,
3737
+ "name": "media_pkey",
3738
+ "schema": "public",
3739
+ "table": "media",
3740
+ "entityType": "pks"
3741
+ },
3742
+ {
3743
+ "columns": [
3744
+ "id"
3745
+ ],
3746
+ "nameExplicit": false,
3747
+ "name": "member_pkey",
3748
+ "schema": "public",
3749
+ "table": "member",
3750
+ "entityType": "pks"
3751
+ },
3752
+ {
3753
+ "columns": [
3754
+ "id"
3755
+ ],
3756
+ "nameExplicit": false,
3757
+ "name": "member_roles_pkey",
3758
+ "schema": "public",
3759
+ "table": "member_roles",
3760
+ "entityType": "pks"
3761
+ },
3762
+ {
3763
+ "columns": [
3764
+ "id"
3765
+ ],
3766
+ "nameExplicit": false,
3767
+ "name": "organization_pkey",
3768
+ "schema": "public",
3769
+ "table": "organization",
3770
+ "entityType": "pks"
3771
+ },
3772
+ {
3773
+ "columns": [
3774
+ "id"
3775
+ ],
3776
+ "nameExplicit": false,
3777
+ "name": "organization_role_pkey",
3778
+ "schema": "public",
3779
+ "table": "organization_role",
3780
+ "entityType": "pks"
3781
+ },
3782
+ {
3783
+ "columns": [
3784
+ "id"
3785
+ ],
3786
+ "nameExplicit": false,
3787
+ "name": "roles_pkey",
3788
+ "schema": "public",
3789
+ "table": "roles",
3790
+ "entityType": "pks"
3791
+ },
3792
+ {
3793
+ "columns": [
3794
+ "id"
3795
+ ],
3796
+ "nameExplicit": false,
3797
+ "name": "session_pkey",
3798
+ "schema": "public",
3799
+ "table": "session",
3800
+ "entityType": "pks"
3801
+ },
3802
+ {
3803
+ "columns": [
3804
+ "id"
3805
+ ],
3806
+ "nameExplicit": false,
3807
+ "name": "course_sessions_pkey",
3808
+ "schema": "public",
3809
+ "table": "course_sessions",
3810
+ "entityType": "pks"
3811
+ },
3812
+ {
3813
+ "columns": [
3814
+ "id"
3815
+ ],
3816
+ "nameExplicit": false,
3817
+ "name": "settings_pkey",
3818
+ "schema": "public",
3819
+ "table": "settings",
3820
+ "entityType": "pks"
3821
+ },
3822
+ {
3823
+ "columns": [
3824
+ "id"
3825
+ ],
3826
+ "nameExplicit": false,
3827
+ "name": "tags_pkey",
3828
+ "schema": "public",
3829
+ "table": "tags",
3830
+ "entityType": "pks"
3831
+ },
3832
+ {
3833
+ "columns": [
3834
+ "id"
3835
+ ],
3836
+ "nameExplicit": false,
3837
+ "name": "user_pkey",
3838
+ "schema": "public",
3839
+ "table": "user",
3840
+ "entityType": "pks"
3841
+ },
3842
+ {
3843
+ "columns": [
3844
+ "id"
3845
+ ],
3846
+ "nameExplicit": false,
3847
+ "name": "verification_pkey",
3848
+ "schema": "public",
3849
+ "table": "verification",
3850
+ "entityType": "pks"
3851
+ },
3852
+ {
3853
+ "nameExplicit": true,
3854
+ "columns": [
3855
+ "session_id",
3856
+ "student_id",
3857
+ "deleted_at"
3858
+ ],
3859
+ "nullsNotDistinct": true,
3860
+ "name": "enrollments_session_id_student_id_deleted_at_unique",
3861
+ "entityType": "uniques",
3862
+ "schema": "public",
3863
+ "table": "enrollments"
3864
+ },
3865
+ {
3866
+ "nameExplicit": false,
3867
+ "columns": [
3868
+ "email"
3869
+ ],
3870
+ "nullsNotDistinct": false,
3871
+ "name": "local_users_email_key",
3872
+ "schema": "public",
3873
+ "table": "local_users",
3874
+ "entityType": "uniques"
3875
+ },
3876
+ {
3877
+ "nameExplicit": false,
3878
+ "columns": [
3879
+ "key"
3880
+ ],
3881
+ "nullsNotDistinct": false,
3882
+ "name": "media_key_key",
3883
+ "schema": "public",
3884
+ "table": "media",
3885
+ "entityType": "uniques"
3886
+ },
3887
+ {
3888
+ "nameExplicit": false,
3889
+ "columns": [
3890
+ "slug"
3891
+ ],
3892
+ "nullsNotDistinct": false,
3893
+ "name": "organization_slug_key",
3894
+ "schema": "public",
3895
+ "table": "organization",
3896
+ "entityType": "uniques"
3897
+ },
3898
+ {
3899
+ "nameExplicit": false,
3900
+ "columns": [
3901
+ "token"
3902
+ ],
3903
+ "nullsNotDistinct": false,
3904
+ "name": "session_token_key",
3905
+ "schema": "public",
3906
+ "table": "session",
3907
+ "entityType": "uniques"
3908
+ },
3909
+ {
3910
+ "nameExplicit": false,
3911
+ "columns": [
3912
+ "organization_id"
3913
+ ],
3914
+ "nullsNotDistinct": false,
3915
+ "name": "settings_tenant_id_key",
3916
+ "schema": "public",
3917
+ "table": "settings",
3918
+ "entityType": "uniques"
3919
+ },
3920
+ {
3921
+ "nameExplicit": false,
3922
+ "columns": [
3923
+ "email"
3924
+ ],
3925
+ "nullsNotDistinct": false,
3926
+ "name": "user_email_key",
3927
+ "schema": "public",
3928
+ "table": "user",
3929
+ "entityType": "uniques"
3930
+ }
3931
+ ],
3932
+ "renames": []
3933
+ }