create-mithaq 0.0.0-stage → 0.1.1

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