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