create-mithaq 0.1.1 → 0.2.0

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