create-mithaq 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1094 -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,4113 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "0d2813a4-7433-42e6-96a4-6d92223ad544",
5
+ "prevIds": [
6
+ "b25a974d-1e21-4717-9d56-ef3c4d7ebe44"
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": "text",
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": "text",
501
+ "typeSchema": null,
502
+ "notNull": false,
503
+ "dimensions": 0,
504
+ "default": null,
505
+ "generated": null,
506
+ "identity": null,
507
+ "name": "changed",
508
+ "entityType": "columns",
509
+ "schema": "public",
510
+ "table": "audit_log"
511
+ },
512
+ {
513
+ "type": "timestamp(3) with time zone",
514
+ "typeSchema": null,
515
+ "notNull": true,
516
+ "dimensions": 0,
517
+ "default": "now()",
518
+ "generated": null,
519
+ "identity": null,
520
+ "name": "created_at",
521
+ "entityType": "columns",
522
+ "schema": "public",
523
+ "table": "audit_log"
524
+ },
525
+ {
526
+ "type": "uuid",
527
+ "typeSchema": null,
528
+ "notNull": true,
529
+ "dimensions": 0,
530
+ "default": "gen_random_uuid()",
531
+ "generated": null,
532
+ "identity": null,
533
+ "name": "id",
534
+ "entityType": "columns",
535
+ "schema": "public",
536
+ "table": "backoffice_log"
537
+ },
538
+ {
539
+ "type": "text",
540
+ "typeSchema": null,
541
+ "notNull": true,
542
+ "dimensions": 0,
543
+ "default": null,
544
+ "generated": null,
545
+ "identity": null,
546
+ "name": "action",
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",
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": "actor_email",
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",
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": "target_email",
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": "previous_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": "role",
625
+ "entityType": "columns",
626
+ "schema": "public",
627
+ "table": "backoffice_log"
628
+ },
629
+ {
630
+ "type": "text",
631
+ "typeSchema": null,
632
+ "notNull": false,
633
+ "dimensions": 0,
634
+ "default": null,
635
+ "generated": null,
636
+ "identity": null,
637
+ "name": "ban_reason",
638
+ "entityType": "columns",
639
+ "schema": "public",
640
+ "table": "backoffice_log"
641
+ },
642
+ {
643
+ "type": "timestamp(3) with time zone",
644
+ "typeSchema": null,
645
+ "notNull": true,
646
+ "dimensions": 0,
647
+ "default": "now()",
648
+ "generated": null,
649
+ "identity": null,
650
+ "name": "created_at",
651
+ "entityType": "columns",
652
+ "schema": "public",
653
+ "table": "backoffice_log"
654
+ },
655
+ {
656
+ "type": "uuid",
657
+ "typeSchema": null,
658
+ "notNull": true,
659
+ "dimensions": 0,
660
+ "default": "gen_random_uuid()",
661
+ "generated": null,
662
+ "identity": null,
663
+ "name": "id",
664
+ "entityType": "columns",
665
+ "schema": "public",
666
+ "table": "courses"
667
+ },
668
+ {
669
+ "type": "text",
670
+ "typeSchema": null,
671
+ "notNull": true,
672
+ "dimensions": 0,
673
+ "default": null,
674
+ "generated": null,
675
+ "identity": null,
676
+ "name": "organization_id",
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": "title",
690
+ "entityType": "columns",
691
+ "schema": "public",
692
+ "table": "courses"
693
+ },
694
+ {
695
+ "type": "text",
696
+ "typeSchema": null,
697
+ "notNull": false,
698
+ "dimensions": 0,
699
+ "default": null,
700
+ "generated": null,
701
+ "identity": null,
702
+ "name": "summary",
703
+ "entityType": "columns",
704
+ "schema": "public",
705
+ "table": "courses"
706
+ },
707
+ {
708
+ "type": "numeric",
709
+ "typeSchema": null,
710
+ "notNull": false,
711
+ "dimensions": 0,
712
+ "default": null,
713
+ "generated": null,
714
+ "identity": null,
715
+ "name": "fee",
716
+ "entityType": "columns",
717
+ "schema": "public",
718
+ "table": "courses"
719
+ },
720
+ {
721
+ "type": "text",
722
+ "typeSchema": null,
723
+ "notNull": false,
724
+ "dimensions": 0,
725
+ "default": null,
726
+ "generated": null,
727
+ "identity": null,
728
+ "name": "currency",
729
+ "entityType": "columns",
730
+ "schema": "public",
731
+ "table": "courses"
732
+ },
733
+ {
734
+ "type": "numeric",
735
+ "typeSchema": null,
736
+ "notNull": false,
737
+ "dimensions": 0,
738
+ "default": null,
739
+ "generated": null,
740
+ "identity": null,
741
+ "name": "level",
742
+ "entityType": "columns",
743
+ "schema": "public",
744
+ "table": "courses"
745
+ },
746
+ {
747
+ "type": "boolean",
748
+ "typeSchema": null,
749
+ "notNull": false,
750
+ "dimensions": 0,
751
+ "default": null,
752
+ "generated": null,
753
+ "identity": null,
754
+ "name": "notifications",
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": "delivery",
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": "audience",
781
+ "entityType": "columns",
782
+ "schema": "public",
783
+ "table": "courses"
784
+ },
785
+ {
786
+ "type": "text",
787
+ "typeSchema": null,
788
+ "notNull": false,
789
+ "dimensions": 0,
790
+ "default": null,
791
+ "generated": null,
792
+ "identity": null,
793
+ "name": "access_code",
794
+ "entityType": "columns",
795
+ "schema": "public",
796
+ "table": "courses"
797
+ },
798
+ {
799
+ "type": "boolean",
800
+ "typeSchema": null,
801
+ "notNull": false,
802
+ "dimensions": 0,
803
+ "default": null,
804
+ "generated": null,
805
+ "identity": null,
806
+ "name": "archived",
807
+ "entityType": "columns",
808
+ "schema": "public",
809
+ "table": "courses"
810
+ },
811
+ {
812
+ "type": "text",
813
+ "typeSchema": null,
814
+ "notNull": false,
815
+ "dimensions": 1,
816
+ "default": null,
817
+ "generated": null,
818
+ "identity": null,
819
+ "name": "topics",
820
+ "entityType": "columns",
821
+ "schema": "public",
822
+ "table": "courses"
823
+ },
824
+ {
825
+ "type": "date",
826
+ "typeSchema": null,
827
+ "notNull": false,
828
+ "dimensions": 0,
829
+ "default": null,
830
+ "generated": null,
831
+ "identity": null,
832
+ "name": "opens_on",
833
+ "entityType": "columns",
834
+ "schema": "public",
835
+ "table": "courses"
836
+ },
837
+ {
838
+ "type": "varchar(200)",
839
+ "typeSchema": null,
840
+ "notNull": false,
841
+ "dimensions": 0,
842
+ "default": null,
843
+ "generated": null,
844
+ "identity": null,
845
+ "name": "archive_reason",
846
+ "entityType": "columns",
847
+ "schema": "public",
848
+ "table": "courses"
849
+ },
850
+ {
851
+ "type": "text",
852
+ "typeSchema": null,
853
+ "notNull": false,
854
+ "dimensions": 0,
855
+ "default": "'draft'",
856
+ "generated": null,
857
+ "identity": null,
858
+ "name": "_status",
859
+ "entityType": "columns",
860
+ "schema": "public",
861
+ "table": "courses"
862
+ },
863
+ {
864
+ "type": "jsonb",
865
+ "typeSchema": null,
866
+ "notNull": false,
867
+ "dimensions": 0,
868
+ "default": null,
869
+ "generated": null,
870
+ "identity": null,
871
+ "name": "details",
872
+ "entityType": "columns",
873
+ "schema": "public",
874
+ "table": "courses"
875
+ },
876
+ {
877
+ "type": "uuid",
878
+ "typeSchema": null,
879
+ "notNull": false,
880
+ "dimensions": 0,
881
+ "default": null,
882
+ "generated": null,
883
+ "identity": null,
884
+ "name": "cover_id",
885
+ "entityType": "columns",
886
+ "schema": "public",
887
+ "table": "courses"
888
+ },
889
+ {
890
+ "type": "boolean",
891
+ "typeSchema": null,
892
+ "notNull": false,
893
+ "dimensions": 0,
894
+ "default": null,
895
+ "generated": null,
896
+ "identity": null,
897
+ "name": "self_enroll",
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": "updated_at",
911
+ "entityType": "columns",
912
+ "schema": "public",
913
+ "table": "courses"
914
+ },
915
+ {
916
+ "type": "timestamp(3) with time zone",
917
+ "typeSchema": null,
918
+ "notNull": true,
919
+ "dimensions": 0,
920
+ "default": "now()",
921
+ "generated": null,
922
+ "identity": null,
923
+ "name": "created_at",
924
+ "entityType": "columns",
925
+ "schema": "public",
926
+ "table": "courses"
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": "parent_id",
937
+ "entityType": "columns",
938
+ "schema": "public",
939
+ "table": "courses_tags"
940
+ },
941
+ {
942
+ "type": "uuid",
943
+ "typeSchema": null,
944
+ "notNull": true,
945
+ "dimensions": 0,
946
+ "default": null,
947
+ "generated": null,
948
+ "identity": null,
949
+ "name": "target_id",
950
+ "entityType": "columns",
951
+ "schema": "public",
952
+ "table": "courses_tags"
953
+ },
954
+ {
955
+ "type": "integer",
956
+ "typeSchema": null,
957
+ "notNull": true,
958
+ "dimensions": 0,
959
+ "default": null,
960
+ "generated": null,
961
+ "identity": null,
962
+ "name": "order",
963
+ "entityType": "columns",
964
+ "schema": "public",
965
+ "table": "courses_tags"
966
+ },
967
+ {
968
+ "type": "uuid",
969
+ "typeSchema": null,
970
+ "notNull": true,
971
+ "dimensions": 0,
972
+ "default": "gen_random_uuid()",
973
+ "generated": null,
974
+ "identity": null,
975
+ "name": "id",
976
+ "entityType": "columns",
977
+ "schema": "public",
978
+ "table": "enrollments"
979
+ },
980
+ {
981
+ "type": "text",
982
+ "typeSchema": null,
983
+ "notNull": true,
984
+ "dimensions": 0,
985
+ "default": null,
986
+ "generated": null,
987
+ "identity": null,
988
+ "name": "organization_id",
989
+ "entityType": "columns",
990
+ "schema": "public",
991
+ "table": "enrollments"
992
+ },
993
+ {
994
+ "type": "uuid",
995
+ "typeSchema": null,
996
+ "notNull": true,
997
+ "dimensions": 0,
998
+ "default": null,
999
+ "generated": null,
1000
+ "identity": null,
1001
+ "name": "session_id",
1002
+ "entityType": "columns",
1003
+ "schema": "public",
1004
+ "table": "enrollments"
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "typeSchema": null,
1009
+ "notNull": true,
1010
+ "dimensions": 0,
1011
+ "default": null,
1012
+ "generated": null,
1013
+ "identity": null,
1014
+ "name": "student_id",
1015
+ "entityType": "columns",
1016
+ "schema": "public",
1017
+ "table": "enrollments"
1018
+ },
1019
+ {
1020
+ "type": "timestamp(3) with time zone",
1021
+ "typeSchema": null,
1022
+ "notNull": false,
1023
+ "dimensions": 0,
1024
+ "default": null,
1025
+ "generated": null,
1026
+ "identity": null,
1027
+ "name": "deleted_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": "updated_at",
1041
+ "entityType": "columns",
1042
+ "schema": "public",
1043
+ "table": "enrollments"
1044
+ },
1045
+ {
1046
+ "type": "timestamp(3) with time zone",
1047
+ "typeSchema": null,
1048
+ "notNull": true,
1049
+ "dimensions": 0,
1050
+ "default": "now()",
1051
+ "generated": null,
1052
+ "identity": null,
1053
+ "name": "created_at",
1054
+ "entityType": "columns",
1055
+ "schema": "public",
1056
+ "table": "enrollments"
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": "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": "organization_id",
1080
+ "entityType": "columns",
1081
+ "schema": "public",
1082
+ "table": "invitation"
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "typeSchema": null,
1087
+ "notNull": true,
1088
+ "dimensions": 0,
1089
+ "default": null,
1090
+ "generated": null,
1091
+ "identity": null,
1092
+ "name": "email",
1093
+ "entityType": "columns",
1094
+ "schema": "public",
1095
+ "table": "invitation"
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "typeSchema": null,
1100
+ "notNull": false,
1101
+ "dimensions": 0,
1102
+ "default": null,
1103
+ "generated": null,
1104
+ "identity": null,
1105
+ "name": "role",
1106
+ "entityType": "columns",
1107
+ "schema": "public",
1108
+ "table": "invitation"
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "typeSchema": null,
1113
+ "notNull": true,
1114
+ "dimensions": 0,
1115
+ "default": null,
1116
+ "generated": null,
1117
+ "identity": null,
1118
+ "name": "status",
1119
+ "entityType": "columns",
1120
+ "schema": "public",
1121
+ "table": "invitation"
1122
+ },
1123
+ {
1124
+ "type": "timestamp(3) with time zone",
1125
+ "typeSchema": null,
1126
+ "notNull": true,
1127
+ "dimensions": 0,
1128
+ "default": null,
1129
+ "generated": null,
1130
+ "identity": null,
1131
+ "name": "expires_at",
1132
+ "entityType": "columns",
1133
+ "schema": "public",
1134
+ "table": "invitation"
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "typeSchema": null,
1139
+ "notNull": true,
1140
+ "dimensions": 0,
1141
+ "default": null,
1142
+ "generated": null,
1143
+ "identity": null,
1144
+ "name": "inviter_id",
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": "now()",
1155
+ "generated": null,
1156
+ "identity": null,
1157
+ "name": "updated_at",
1158
+ "entityType": "columns",
1159
+ "schema": "public",
1160
+ "table": "invitation"
1161
+ },
1162
+ {
1163
+ "type": "timestamp(3) with time zone",
1164
+ "typeSchema": null,
1165
+ "notNull": true,
1166
+ "dimensions": 0,
1167
+ "default": null,
1168
+ "generated": null,
1169
+ "identity": null,
1170
+ "name": "created_at",
1171
+ "entityType": "columns",
1172
+ "schema": "public",
1173
+ "table": "invitation"
1174
+ },
1175
+ {
1176
+ "type": "uuid",
1177
+ "typeSchema": null,
1178
+ "notNull": true,
1179
+ "dimensions": 0,
1180
+ "default": "gen_random_uuid()",
1181
+ "generated": null,
1182
+ "identity": null,
1183
+ "name": "id",
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": "email",
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": "hash",
1210
+ "entityType": "columns",
1211
+ "schema": "public",
1212
+ "table": "local_users"
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "typeSchema": null,
1217
+ "notNull": true,
1218
+ "dimensions": 0,
1219
+ "default": null,
1220
+ "generated": null,
1221
+ "identity": null,
1222
+ "name": "salt",
1223
+ "entityType": "columns",
1224
+ "schema": "public",
1225
+ "table": "local_users"
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "typeSchema": null,
1230
+ "notNull": false,
1231
+ "dimensions": 0,
1232
+ "default": null,
1233
+ "generated": null,
1234
+ "identity": null,
1235
+ "name": "sessions",
1236
+ "entityType": "columns",
1237
+ "schema": "public",
1238
+ "table": "local_users"
1239
+ },
1240
+ {
1241
+ "type": "numeric",
1242
+ "typeSchema": null,
1243
+ "notNull": false,
1244
+ "dimensions": 0,
1245
+ "default": "'0'",
1246
+ "generated": null,
1247
+ "identity": null,
1248
+ "name": "login_attempts",
1249
+ "entityType": "columns",
1250
+ "schema": "public",
1251
+ "table": "local_users"
1252
+ },
1253
+ {
1254
+ "type": "timestamp(3) with time zone",
1255
+ "typeSchema": null,
1256
+ "notNull": false,
1257
+ "dimensions": 0,
1258
+ "default": null,
1259
+ "generated": null,
1260
+ "identity": null,
1261
+ "name": "lock_until",
1262
+ "entityType": "columns",
1263
+ "schema": "public",
1264
+ "table": "local_users"
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "typeSchema": null,
1269
+ "notNull": false,
1270
+ "dimensions": 0,
1271
+ "default": null,
1272
+ "generated": null,
1273
+ "identity": null,
1274
+ "name": "reset_password_token",
1275
+ "entityType": "columns",
1276
+ "schema": "public",
1277
+ "table": "local_users"
1278
+ },
1279
+ {
1280
+ "type": "numeric",
1281
+ "typeSchema": null,
1282
+ "notNull": false,
1283
+ "dimensions": 0,
1284
+ "default": "'0'",
1285
+ "generated": null,
1286
+ "identity": null,
1287
+ "name": "reset_password_attempts",
1288
+ "entityType": "columns",
1289
+ "schema": "public",
1290
+ "table": "local_users"
1291
+ },
1292
+ {
1293
+ "type": "timestamp(3) with time zone",
1294
+ "typeSchema": null,
1295
+ "notNull": false,
1296
+ "dimensions": 0,
1297
+ "default": null,
1298
+ "generated": null,
1299
+ "identity": null,
1300
+ "name": "reset_password_expiration",
1301
+ "entityType": "columns",
1302
+ "schema": "public",
1303
+ "table": "local_users"
1304
+ },
1305
+ {
1306
+ "type": "boolean",
1307
+ "typeSchema": null,
1308
+ "notNull": false,
1309
+ "dimensions": 0,
1310
+ "default": "false",
1311
+ "generated": null,
1312
+ "identity": null,
1313
+ "name": "_verified",
1314
+ "entityType": "columns",
1315
+ "schema": "public",
1316
+ "table": "local_users"
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "typeSchema": null,
1321
+ "notNull": false,
1322
+ "dimensions": 0,
1323
+ "default": null,
1324
+ "generated": null,
1325
+ "identity": null,
1326
+ "name": "_verification_token",
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": "updated_at",
1340
+ "entityType": "columns",
1341
+ "schema": "public",
1342
+ "table": "local_users"
1343
+ },
1344
+ {
1345
+ "type": "timestamp(3) with time zone",
1346
+ "typeSchema": null,
1347
+ "notNull": true,
1348
+ "dimensions": 0,
1349
+ "default": "now()",
1350
+ "generated": null,
1351
+ "identity": null,
1352
+ "name": "created_at",
1353
+ "entityType": "columns",
1354
+ "schema": "public",
1355
+ "table": "local_users"
1356
+ },
1357
+ {
1358
+ "type": "uuid",
1359
+ "typeSchema": null,
1360
+ "notNull": true,
1361
+ "dimensions": 0,
1362
+ "default": "gen_random_uuid()",
1363
+ "generated": null,
1364
+ "identity": null,
1365
+ "name": "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": "organization_id",
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": "filename",
1392
+ "entityType": "columns",
1393
+ "schema": "public",
1394
+ "table": "media"
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "typeSchema": null,
1399
+ "notNull": true,
1400
+ "dimensions": 0,
1401
+ "default": null,
1402
+ "generated": null,
1403
+ "identity": null,
1404
+ "name": "mime_type",
1405
+ "entityType": "columns",
1406
+ "schema": "public",
1407
+ "table": "media"
1408
+ },
1409
+ {
1410
+ "type": "numeric",
1411
+ "typeSchema": null,
1412
+ "notNull": true,
1413
+ "dimensions": 0,
1414
+ "default": null,
1415
+ "generated": null,
1416
+ "identity": null,
1417
+ "name": "filesize",
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": "width",
1431
+ "entityType": "columns",
1432
+ "schema": "public",
1433
+ "table": "media"
1434
+ },
1435
+ {
1436
+ "type": "numeric",
1437
+ "typeSchema": null,
1438
+ "notNull": false,
1439
+ "dimensions": 0,
1440
+ "default": null,
1441
+ "generated": null,
1442
+ "identity": null,
1443
+ "name": "height",
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": "key",
1457
+ "entityType": "columns",
1458
+ "schema": "public",
1459
+ "table": "media"
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "typeSchema": null,
1464
+ "notNull": true,
1465
+ "dimensions": 0,
1466
+ "default": null,
1467
+ "generated": null,
1468
+ "identity": null,
1469
+ "name": "storage",
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_ar",
1483
+ "entityType": "columns",
1484
+ "schema": "public",
1485
+ "table": "media"
1486
+ },
1487
+ {
1488
+ "type": "varchar(300)",
1489
+ "typeSchema": null,
1490
+ "notNull": true,
1491
+ "dimensions": 0,
1492
+ "default": null,
1493
+ "generated": null,
1494
+ "identity": null,
1495
+ "name": "alt_en",
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": "updated_at",
1509
+ "entityType": "columns",
1510
+ "schema": "public",
1511
+ "table": "media"
1512
+ },
1513
+ {
1514
+ "type": "timestamp(3) with time zone",
1515
+ "typeSchema": null,
1516
+ "notNull": true,
1517
+ "dimensions": 0,
1518
+ "default": "now()",
1519
+ "generated": null,
1520
+ "identity": null,
1521
+ "name": "created_at",
1522
+ "entityType": "columns",
1523
+ "schema": "public",
1524
+ "table": "media"
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": "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": "organization_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": "user_id",
1561
+ "entityType": "columns",
1562
+ "schema": "public",
1563
+ "table": "member"
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "typeSchema": null,
1568
+ "notNull": true,
1569
+ "dimensions": 0,
1570
+ "default": null,
1571
+ "generated": null,
1572
+ "identity": null,
1573
+ "name": "role",
1574
+ "entityType": "columns",
1575
+ "schema": "public",
1576
+ "table": "member"
1577
+ },
1578
+ {
1579
+ "type": "timestamp(3) with time zone",
1580
+ "typeSchema": null,
1581
+ "notNull": false,
1582
+ "dimensions": 0,
1583
+ "default": null,
1584
+ "generated": null,
1585
+ "identity": null,
1586
+ "name": "last_seen_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": "now()",
1597
+ "generated": null,
1598
+ "identity": null,
1599
+ "name": "updated_at",
1600
+ "entityType": "columns",
1601
+ "schema": "public",
1602
+ "table": "member"
1603
+ },
1604
+ {
1605
+ "type": "timestamp(3) with time zone",
1606
+ "typeSchema": null,
1607
+ "notNull": true,
1608
+ "dimensions": 0,
1609
+ "default": null,
1610
+ "generated": null,
1611
+ "identity": null,
1612
+ "name": "created_at",
1613
+ "entityType": "columns",
1614
+ "schema": "public",
1615
+ "table": "member"
1616
+ },
1617
+ {
1618
+ "type": "uuid",
1619
+ "typeSchema": null,
1620
+ "notNull": true,
1621
+ "dimensions": 0,
1622
+ "default": "gen_random_uuid()",
1623
+ "generated": null,
1624
+ "identity": null,
1625
+ "name": "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": "organization_id",
1639
+ "entityType": "columns",
1640
+ "schema": "public",
1641
+ "table": "member_roles"
1642
+ },
1643
+ {
1644
+ "type": "text",
1645
+ "typeSchema": null,
1646
+ "notNull": true,
1647
+ "dimensions": 0,
1648
+ "default": null,
1649
+ "generated": null,
1650
+ "identity": null,
1651
+ "name": "user_id",
1652
+ "entityType": "columns",
1653
+ "schema": "public",
1654
+ "table": "member_roles"
1655
+ },
1656
+ {
1657
+ "type": "varchar(60)",
1658
+ "typeSchema": null,
1659
+ "notNull": true,
1660
+ "dimensions": 0,
1661
+ "default": null,
1662
+ "generated": null,
1663
+ "identity": null,
1664
+ "name": "role",
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": "updated_at",
1678
+ "entityType": "columns",
1679
+ "schema": "public",
1680
+ "table": "member_roles"
1681
+ },
1682
+ {
1683
+ "type": "timestamp(3) with time zone",
1684
+ "typeSchema": null,
1685
+ "notNull": true,
1686
+ "dimensions": 0,
1687
+ "default": "now()",
1688
+ "generated": null,
1689
+ "identity": null,
1690
+ "name": "created_at",
1691
+ "entityType": "columns",
1692
+ "schema": "public",
1693
+ "table": "member_roles"
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": "id",
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": "name",
1717
+ "entityType": "columns",
1718
+ "schema": "public",
1719
+ "table": "organization"
1720
+ },
1721
+ {
1722
+ "type": "text",
1723
+ "typeSchema": null,
1724
+ "notNull": true,
1725
+ "dimensions": 0,
1726
+ "default": null,
1727
+ "generated": null,
1728
+ "identity": null,
1729
+ "name": "slug",
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": "logo",
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": "metadata",
1756
+ "entityType": "columns",
1757
+ "schema": "public",
1758
+ "table": "organization"
1759
+ },
1760
+ {
1761
+ "type": "text",
1762
+ "typeSchema": null,
1763
+ "notNull": false,
1764
+ "dimensions": 0,
1765
+ "default": null,
1766
+ "generated": null,
1767
+ "identity": null,
1768
+ "name": "names",
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": "now()",
1779
+ "generated": null,
1780
+ "identity": null,
1781
+ "name": "updated_at",
1782
+ "entityType": "columns",
1783
+ "schema": "public",
1784
+ "table": "organization"
1785
+ },
1786
+ {
1787
+ "type": "timestamp(3) with time zone",
1788
+ "typeSchema": null,
1789
+ "notNull": true,
1790
+ "dimensions": 0,
1791
+ "default": null,
1792
+ "generated": null,
1793
+ "identity": null,
1794
+ "name": "created_at",
1795
+ "entityType": "columns",
1796
+ "schema": "public",
1797
+ "table": "organization"
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": "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": "organization_id",
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": "role",
1834
+ "entityType": "columns",
1835
+ "schema": "public",
1836
+ "table": "organization_role"
1837
+ },
1838
+ {
1839
+ "type": "text",
1840
+ "typeSchema": null,
1841
+ "notNull": true,
1842
+ "dimensions": 0,
1843
+ "default": null,
1844
+ "generated": null,
1845
+ "identity": null,
1846
+ "name": "permission",
1847
+ "entityType": "columns",
1848
+ "schema": "public",
1849
+ "table": "organization_role"
1850
+ },
1851
+ {
1852
+ "type": "timestamp(3) with time zone",
1853
+ "typeSchema": null,
1854
+ "notNull": false,
1855
+ "dimensions": 0,
1856
+ "default": null,
1857
+ "generated": null,
1858
+ "identity": null,
1859
+ "name": "updated_at",
1860
+ "entityType": "columns",
1861
+ "schema": "public",
1862
+ "table": "organization_role"
1863
+ },
1864
+ {
1865
+ "type": "timestamp(3) with time zone",
1866
+ "typeSchema": null,
1867
+ "notNull": true,
1868
+ "dimensions": 0,
1869
+ "default": null,
1870
+ "generated": null,
1871
+ "identity": null,
1872
+ "name": "created_at",
1873
+ "entityType": "columns",
1874
+ "schema": "public",
1875
+ "table": "organization_role"
1876
+ },
1877
+ {
1878
+ "type": "uuid",
1879
+ "typeSchema": null,
1880
+ "notNull": true,
1881
+ "dimensions": 0,
1882
+ "default": "gen_random_uuid()",
1883
+ "generated": null,
1884
+ "identity": null,
1885
+ "name": "id",
1886
+ "entityType": "columns",
1887
+ "schema": "public",
1888
+ "table": "roles"
1889
+ },
1890
+ {
1891
+ "type": "text",
1892
+ "typeSchema": null,
1893
+ "notNull": true,
1894
+ "dimensions": 0,
1895
+ "default": null,
1896
+ "generated": null,
1897
+ "identity": null,
1898
+ "name": "organization_id",
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": "name",
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_ar",
1925
+ "entityType": "columns",
1926
+ "schema": "public",
1927
+ "table": "roles"
1928
+ },
1929
+ {
1930
+ "type": "varchar(60)",
1931
+ "typeSchema": null,
1932
+ "notNull": true,
1933
+ "dimensions": 0,
1934
+ "default": null,
1935
+ "generated": null,
1936
+ "identity": null,
1937
+ "name": "label_en",
1938
+ "entityType": "columns",
1939
+ "schema": "public",
1940
+ "table": "roles"
1941
+ },
1942
+ {
1943
+ "type": "text",
1944
+ "typeSchema": null,
1945
+ "notNull": true,
1946
+ "dimensions": 1,
1947
+ "default": null,
1948
+ "generated": null,
1949
+ "identity": null,
1950
+ "name": "permissions",
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": "updated_at",
1964
+ "entityType": "columns",
1965
+ "schema": "public",
1966
+ "table": "roles"
1967
+ },
1968
+ {
1969
+ "type": "timestamp(3) with time zone",
1970
+ "typeSchema": null,
1971
+ "notNull": true,
1972
+ "dimensions": 0,
1973
+ "default": "now()",
1974
+ "generated": null,
1975
+ "identity": null,
1976
+ "name": "created_at",
1977
+ "entityType": "columns",
1978
+ "schema": "public",
1979
+ "table": "roles"
1980
+ },
1981
+ {
1982
+ "type": "text",
1983
+ "typeSchema": null,
1984
+ "notNull": true,
1985
+ "dimensions": 0,
1986
+ "default": null,
1987
+ "generated": null,
1988
+ "identity": null,
1989
+ "name": "id",
1990
+ "entityType": "columns",
1991
+ "schema": "public",
1992
+ "table": "session"
1993
+ },
1994
+ {
1995
+ "type": "timestamp(3) with time zone",
1996
+ "typeSchema": null,
1997
+ "notNull": true,
1998
+ "dimensions": 0,
1999
+ "default": null,
2000
+ "generated": null,
2001
+ "identity": null,
2002
+ "name": "expires_at",
2003
+ "entityType": "columns",
2004
+ "schema": "public",
2005
+ "table": "session"
2006
+ },
2007
+ {
2008
+ "type": "text",
2009
+ "typeSchema": null,
2010
+ "notNull": true,
2011
+ "dimensions": 0,
2012
+ "default": null,
2013
+ "generated": null,
2014
+ "identity": null,
2015
+ "name": "token",
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": "ip_address",
2029
+ "entityType": "columns",
2030
+ "schema": "public",
2031
+ "table": "session"
2032
+ },
2033
+ {
2034
+ "type": "text",
2035
+ "typeSchema": null,
2036
+ "notNull": false,
2037
+ "dimensions": 0,
2038
+ "default": null,
2039
+ "generated": null,
2040
+ "identity": null,
2041
+ "name": "user_agent",
2042
+ "entityType": "columns",
2043
+ "schema": "public",
2044
+ "table": "session"
2045
+ },
2046
+ {
2047
+ "type": "text",
2048
+ "typeSchema": null,
2049
+ "notNull": true,
2050
+ "dimensions": 0,
2051
+ "default": null,
2052
+ "generated": null,
2053
+ "identity": null,
2054
+ "name": "user_id",
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": "impersonated_by",
2068
+ "entityType": "columns",
2069
+ "schema": "public",
2070
+ "table": "session"
2071
+ },
2072
+ {
2073
+ "type": "text",
2074
+ "typeSchema": null,
2075
+ "notNull": false,
2076
+ "dimensions": 0,
2077
+ "default": null,
2078
+ "generated": null,
2079
+ "identity": null,
2080
+ "name": "active_organization_id",
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": "updated_at",
2094
+ "entityType": "columns",
2095
+ "schema": "public",
2096
+ "table": "session"
2097
+ },
2098
+ {
2099
+ "type": "timestamp(3) with time zone",
2100
+ "typeSchema": null,
2101
+ "notNull": true,
2102
+ "dimensions": 0,
2103
+ "default": null,
2104
+ "generated": null,
2105
+ "identity": null,
2106
+ "name": "created_at",
2107
+ "entityType": "columns",
2108
+ "schema": "public",
2109
+ "table": "session"
2110
+ },
2111
+ {
2112
+ "type": "uuid",
2113
+ "typeSchema": null,
2114
+ "notNull": true,
2115
+ "dimensions": 0,
2116
+ "default": "gen_random_uuid()",
2117
+ "generated": null,
2118
+ "identity": null,
2119
+ "name": "id",
2120
+ "entityType": "columns",
2121
+ "schema": "public",
2122
+ "table": "course_sessions"
2123
+ },
2124
+ {
2125
+ "type": "text",
2126
+ "typeSchema": null,
2127
+ "notNull": true,
2128
+ "dimensions": 0,
2129
+ "default": null,
2130
+ "generated": null,
2131
+ "identity": null,
2132
+ "name": "organization_id",
2133
+ "entityType": "columns",
2134
+ "schema": "public",
2135
+ "table": "course_sessions"
2136
+ },
2137
+ {
2138
+ "type": "uuid",
2139
+ "typeSchema": null,
2140
+ "notNull": true,
2141
+ "dimensions": 0,
2142
+ "default": null,
2143
+ "generated": null,
2144
+ "identity": null,
2145
+ "name": "course_id",
2146
+ "entityType": "columns",
2147
+ "schema": "public",
2148
+ "table": "course_sessions"
2149
+ },
2150
+ {
2151
+ "type": "timestamp(3) with time zone",
2152
+ "typeSchema": null,
2153
+ "notNull": true,
2154
+ "dimensions": 0,
2155
+ "default": null,
2156
+ "generated": null,
2157
+ "identity": null,
2158
+ "name": "starts_at",
2159
+ "entityType": "columns",
2160
+ "schema": "public",
2161
+ "table": "course_sessions"
2162
+ },
2163
+ {
2164
+ "type": "numeric",
2165
+ "typeSchema": null,
2166
+ "notNull": false,
2167
+ "dimensions": 0,
2168
+ "default": null,
2169
+ "generated": null,
2170
+ "identity": null,
2171
+ "name": "capacity",
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": "venue",
2185
+ "entityType": "columns",
2186
+ "schema": "public",
2187
+ "table": "course_sessions"
2188
+ },
2189
+ {
2190
+ "type": "text",
2191
+ "typeSchema": null,
2192
+ "notNull": false,
2193
+ "dimensions": 0,
2194
+ "default": null,
2195
+ "generated": null,
2196
+ "identity": null,
2197
+ "name": "format",
2198
+ "entityType": "columns",
2199
+ "schema": "public",
2200
+ "table": "course_sessions"
2201
+ },
2202
+ {
2203
+ "type": "boolean",
2204
+ "typeSchema": null,
2205
+ "notNull": false,
2206
+ "dimensions": 0,
2207
+ "default": null,
2208
+ "generated": null,
2209
+ "identity": null,
2210
+ "name": "archived",
2211
+ "entityType": "columns",
2212
+ "schema": "public",
2213
+ "table": "course_sessions"
2214
+ },
2215
+ {
2216
+ "type": "jsonb",
2217
+ "typeSchema": null,
2218
+ "notNull": false,
2219
+ "dimensions": 0,
2220
+ "default": null,
2221
+ "generated": null,
2222
+ "identity": null,
2223
+ "name": "details",
2224
+ "entityType": "columns",
2225
+ "schema": "public",
2226
+ "table": "course_sessions"
2227
+ },
2228
+ {
2229
+ "type": "varchar(200)",
2230
+ "typeSchema": null,
2231
+ "notNull": false,
2232
+ "dimensions": 0,
2233
+ "default": null,
2234
+ "generated": null,
2235
+ "identity": null,
2236
+ "name": "archive_reason",
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": "updated_at",
2250
+ "entityType": "columns",
2251
+ "schema": "public",
2252
+ "table": "course_sessions"
2253
+ },
2254
+ {
2255
+ "type": "timestamp(3) with time zone",
2256
+ "typeSchema": null,
2257
+ "notNull": true,
2258
+ "dimensions": 0,
2259
+ "default": "now()",
2260
+ "generated": null,
2261
+ "identity": null,
2262
+ "name": "created_at",
2263
+ "entityType": "columns",
2264
+ "schema": "public",
2265
+ "table": "course_sessions"
2266
+ },
2267
+ {
2268
+ "type": "uuid",
2269
+ "typeSchema": null,
2270
+ "notNull": true,
2271
+ "dimensions": 0,
2272
+ "default": "gen_random_uuid()",
2273
+ "generated": null,
2274
+ "identity": null,
2275
+ "name": "id",
2276
+ "entityType": "columns",
2277
+ "schema": "public",
2278
+ "table": "settings"
2279
+ },
2280
+ {
2281
+ "type": "text",
2282
+ "typeSchema": null,
2283
+ "notNull": true,
2284
+ "dimensions": 0,
2285
+ "default": null,
2286
+ "generated": null,
2287
+ "identity": null,
2288
+ "name": "organization_id",
2289
+ "entityType": "columns",
2290
+ "schema": "public",
2291
+ "table": "settings"
2292
+ },
2293
+ {
2294
+ "type": "boolean",
2295
+ "typeSchema": null,
2296
+ "notNull": false,
2297
+ "dimensions": 0,
2298
+ "default": null,
2299
+ "generated": null,
2300
+ "identity": null,
2301
+ "name": "maintenance",
2302
+ "entityType": "columns",
2303
+ "schema": "public",
2304
+ "table": "settings"
2305
+ },
2306
+ {
2307
+ "type": "text",
2308
+ "typeSchema": null,
2309
+ "notNull": false,
2310
+ "dimensions": 0,
2311
+ "default": null,
2312
+ "generated": null,
2313
+ "identity": null,
2314
+ "name": "contact_email",
2315
+ "entityType": "columns",
2316
+ "schema": "public",
2317
+ "table": "settings"
2318
+ },
2319
+ {
2320
+ "type": "text",
2321
+ "typeSchema": null,
2322
+ "notNull": true,
2323
+ "dimensions": 0,
2324
+ "default": "'settings'",
2325
+ "generated": null,
2326
+ "identity": null,
2327
+ "name": "global_type",
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": "updated_at",
2341
+ "entityType": "columns",
2342
+ "schema": "public",
2343
+ "table": "settings"
2344
+ },
2345
+ {
2346
+ "type": "timestamp(3) with time zone",
2347
+ "typeSchema": null,
2348
+ "notNull": true,
2349
+ "dimensions": 0,
2350
+ "default": "now()",
2351
+ "generated": null,
2352
+ "identity": null,
2353
+ "name": "created_at",
2354
+ "entityType": "columns",
2355
+ "schema": "public",
2356
+ "table": "settings"
2357
+ },
2358
+ {
2359
+ "type": "uuid",
2360
+ "typeSchema": null,
2361
+ "notNull": true,
2362
+ "dimensions": 0,
2363
+ "default": "gen_random_uuid()",
2364
+ "generated": null,
2365
+ "identity": null,
2366
+ "name": "id",
2367
+ "entityType": "columns",
2368
+ "schema": "public",
2369
+ "table": "tags"
2370
+ },
2371
+ {
2372
+ "type": "text",
2373
+ "typeSchema": null,
2374
+ "notNull": true,
2375
+ "dimensions": 0,
2376
+ "default": null,
2377
+ "generated": null,
2378
+ "identity": null,
2379
+ "name": "organization_id",
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_ar",
2393
+ "entityType": "columns",
2394
+ "schema": "public",
2395
+ "table": "tags"
2396
+ },
2397
+ {
2398
+ "type": "varchar(60)",
2399
+ "typeSchema": null,
2400
+ "notNull": true,
2401
+ "dimensions": 0,
2402
+ "default": null,
2403
+ "generated": null,
2404
+ "identity": null,
2405
+ "name": "name_en",
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": "updated_at",
2419
+ "entityType": "columns",
2420
+ "schema": "public",
2421
+ "table": "tags"
2422
+ },
2423
+ {
2424
+ "type": "timestamp(3) with time zone",
2425
+ "typeSchema": null,
2426
+ "notNull": true,
2427
+ "dimensions": 0,
2428
+ "default": "now()",
2429
+ "generated": null,
2430
+ "identity": null,
2431
+ "name": "created_at",
2432
+ "entityType": "columns",
2433
+ "schema": "public",
2434
+ "table": "tags"
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": "id",
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": "name",
2458
+ "entityType": "columns",
2459
+ "schema": "public",
2460
+ "table": "user"
2461
+ },
2462
+ {
2463
+ "type": "text",
2464
+ "typeSchema": null,
2465
+ "notNull": true,
2466
+ "dimensions": 0,
2467
+ "default": null,
2468
+ "generated": null,
2469
+ "identity": null,
2470
+ "name": "email",
2471
+ "entityType": "columns",
2472
+ "schema": "public",
2473
+ "table": "user"
2474
+ },
2475
+ {
2476
+ "type": "boolean",
2477
+ "typeSchema": null,
2478
+ "notNull": true,
2479
+ "dimensions": 0,
2480
+ "default": null,
2481
+ "generated": null,
2482
+ "identity": null,
2483
+ "name": "email_verified",
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": "image",
2497
+ "entityType": "columns",
2498
+ "schema": "public",
2499
+ "table": "user"
2500
+ },
2501
+ {
2502
+ "type": "text",
2503
+ "typeSchema": null,
2504
+ "notNull": false,
2505
+ "dimensions": 0,
2506
+ "default": null,
2507
+ "generated": null,
2508
+ "identity": null,
2509
+ "name": "role",
2510
+ "entityType": "columns",
2511
+ "schema": "public",
2512
+ "table": "user"
2513
+ },
2514
+ {
2515
+ "type": "boolean",
2516
+ "typeSchema": null,
2517
+ "notNull": false,
2518
+ "dimensions": 0,
2519
+ "default": null,
2520
+ "generated": null,
2521
+ "identity": null,
2522
+ "name": "banned",
2523
+ "entityType": "columns",
2524
+ "schema": "public",
2525
+ "table": "user"
2526
+ },
2527
+ {
2528
+ "type": "text",
2529
+ "typeSchema": null,
2530
+ "notNull": false,
2531
+ "dimensions": 0,
2532
+ "default": null,
2533
+ "generated": null,
2534
+ "identity": null,
2535
+ "name": "ban_reason",
2536
+ "entityType": "columns",
2537
+ "schema": "public",
2538
+ "table": "user"
2539
+ },
2540
+ {
2541
+ "type": "timestamp(3) with time zone",
2542
+ "typeSchema": null,
2543
+ "notNull": false,
2544
+ "dimensions": 0,
2545
+ "default": null,
2546
+ "generated": null,
2547
+ "identity": null,
2548
+ "name": "ban_expires",
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": "updated_at",
2562
+ "entityType": "columns",
2563
+ "schema": "public",
2564
+ "table": "user"
2565
+ },
2566
+ {
2567
+ "type": "timestamp(3) with time zone",
2568
+ "typeSchema": null,
2569
+ "notNull": true,
2570
+ "dimensions": 0,
2571
+ "default": null,
2572
+ "generated": null,
2573
+ "identity": null,
2574
+ "name": "created_at",
2575
+ "entityType": "columns",
2576
+ "schema": "public",
2577
+ "table": "user"
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": "id",
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": "identifier",
2601
+ "entityType": "columns",
2602
+ "schema": "public",
2603
+ "table": "verification"
2604
+ },
2605
+ {
2606
+ "type": "text",
2607
+ "typeSchema": null,
2608
+ "notNull": true,
2609
+ "dimensions": 0,
2610
+ "default": null,
2611
+ "generated": null,
2612
+ "identity": null,
2613
+ "name": "value",
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": "expires_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": "updated_at",
2640
+ "entityType": "columns",
2641
+ "schema": "public",
2642
+ "table": "verification"
2643
+ },
2644
+ {
2645
+ "type": "timestamp(3) with time zone",
2646
+ "typeSchema": null,
2647
+ "notNull": true,
2648
+ "dimensions": 0,
2649
+ "default": null,
2650
+ "generated": null,
2651
+ "identity": null,
2652
+ "name": "created_at",
2653
+ "entityType": "columns",
2654
+ "schema": "public",
2655
+ "table": "verification"
2656
+ },
2657
+ {
2658
+ "nameExplicit": false,
2659
+ "columns": [
2660
+ {
2661
+ "value": "parent_id",
2662
+ "isExpression": false,
2663
+ "asc": true,
2664
+ "nullsFirst": false,
2665
+ "opclass": null
2666
+ }
2667
+ ],
2668
+ "isUnique": false,
2669
+ "where": null,
2670
+ "with": "",
2671
+ "method": "btree",
2672
+ "concurrently": false,
2673
+ "name": "_courses_versions_parent_id_index",
2674
+ "entityType": "indexes",
2675
+ "schema": "public",
2676
+ "table": "_courses_versions"
2677
+ },
2678
+ {
2679
+ "nameExplicit": false,
2680
+ "columns": [
2681
+ {
2682
+ "value": "latest",
2683
+ "isExpression": false,
2684
+ "asc": true,
2685
+ "nullsFirst": false,
2686
+ "opclass": null
2687
+ }
2688
+ ],
2689
+ "isUnique": false,
2690
+ "where": null,
2691
+ "with": "",
2692
+ "method": "btree",
2693
+ "concurrently": false,
2694
+ "name": "_courses_versions_latest_index",
2695
+ "entityType": "indexes",
2696
+ "schema": "public",
2697
+ "table": "_courses_versions"
2698
+ },
2699
+ {
2700
+ "nameExplicit": false,
2701
+ "columns": [
2702
+ {
2703
+ "value": "organization_id",
2704
+ "isExpression": false,
2705
+ "asc": true,
2706
+ "nullsFirst": false,
2707
+ "opclass": null
2708
+ }
2709
+ ],
2710
+ "isUnique": false,
2711
+ "where": null,
2712
+ "with": "",
2713
+ "method": "btree",
2714
+ "concurrently": false,
2715
+ "name": "audit_log_organization_id_index",
2716
+ "entityType": "indexes",
2717
+ "schema": "public",
2718
+ "table": "audit_log"
2719
+ },
2720
+ {
2721
+ "nameExplicit": false,
2722
+ "columns": [
2723
+ {
2724
+ "value": "record",
2725
+ "isExpression": false,
2726
+ "asc": true,
2727
+ "nullsFirst": false,
2728
+ "opclass": null
2729
+ }
2730
+ ],
2731
+ "isUnique": false,
2732
+ "where": null,
2733
+ "with": "",
2734
+ "method": "btree",
2735
+ "concurrently": false,
2736
+ "name": "audit_log_record_index",
2737
+ "entityType": "indexes",
2738
+ "schema": "public",
2739
+ "table": "audit_log"
2740
+ },
2741
+ {
2742
+ "nameExplicit": false,
2743
+ "columns": [
2744
+ {
2745
+ "value": "created_at",
2746
+ "isExpression": false,
2747
+ "asc": true,
2748
+ "nullsFirst": false,
2749
+ "opclass": null
2750
+ }
2751
+ ],
2752
+ "isUnique": false,
2753
+ "where": null,
2754
+ "with": "",
2755
+ "method": "btree",
2756
+ "concurrently": false,
2757
+ "name": "audit_log_created_at_index",
2758
+ "entityType": "indexes",
2759
+ "schema": "public",
2760
+ "table": "audit_log"
2761
+ },
2762
+ {
2763
+ "nameExplicit": false,
2764
+ "columns": [
2765
+ {
2766
+ "value": "created_at",
2767
+ "isExpression": false,
2768
+ "asc": true,
2769
+ "nullsFirst": false,
2770
+ "opclass": null
2771
+ }
2772
+ ],
2773
+ "isUnique": false,
2774
+ "where": null,
2775
+ "with": "",
2776
+ "method": "btree",
2777
+ "concurrently": false,
2778
+ "name": "backoffice_log_created_at_index",
2779
+ "entityType": "indexes",
2780
+ "schema": "public",
2781
+ "table": "backoffice_log"
2782
+ },
2783
+ {
2784
+ "nameExplicit": false,
2785
+ "columns": [
2786
+ {
2787
+ "value": "organization_id",
2788
+ "isExpression": false,
2789
+ "asc": true,
2790
+ "nullsFirst": false,
2791
+ "opclass": null
2792
+ }
2793
+ ],
2794
+ "isUnique": false,
2795
+ "where": null,
2796
+ "with": "",
2797
+ "method": "btree",
2798
+ "concurrently": false,
2799
+ "name": "courses_organization_id_index",
2800
+ "entityType": "indexes",
2801
+ "schema": "public",
2802
+ "table": "courses"
2803
+ },
2804
+ {
2805
+ "nameExplicit": false,
2806
+ "columns": [
2807
+ {
2808
+ "value": "title",
2809
+ "isExpression": false,
2810
+ "asc": true,
2811
+ "nullsFirst": false,
2812
+ "opclass": null
2813
+ }
2814
+ ],
2815
+ "isUnique": false,
2816
+ "where": null,
2817
+ "with": "",
2818
+ "method": "btree",
2819
+ "concurrently": false,
2820
+ "name": "courses_title_index",
2821
+ "entityType": "indexes",
2822
+ "schema": "public",
2823
+ "table": "courses"
2824
+ },
2825
+ {
2826
+ "nameExplicit": false,
2827
+ "columns": [
2828
+ {
2829
+ "value": "_status",
2830
+ "isExpression": false,
2831
+ "asc": true,
2832
+ "nullsFirst": false,
2833
+ "opclass": null
2834
+ }
2835
+ ],
2836
+ "isUnique": false,
2837
+ "where": null,
2838
+ "with": "",
2839
+ "method": "btree",
2840
+ "concurrently": false,
2841
+ "name": "courses__status_index",
2842
+ "entityType": "indexes",
2843
+ "schema": "public",
2844
+ "table": "courses"
2845
+ },
2846
+ {
2847
+ "nameExplicit": false,
2848
+ "columns": [
2849
+ {
2850
+ "value": "created_at",
2851
+ "isExpression": false,
2852
+ "asc": true,
2853
+ "nullsFirst": false,
2854
+ "opclass": null
2855
+ }
2856
+ ],
2857
+ "isUnique": false,
2858
+ "where": null,
2859
+ "with": "",
2860
+ "method": "btree",
2861
+ "concurrently": false,
2862
+ "name": "courses_created_at_index",
2863
+ "entityType": "indexes",
2864
+ "schema": "public",
2865
+ "table": "courses"
2866
+ },
2867
+ {
2868
+ "nameExplicit": false,
2869
+ "columns": [
2870
+ {
2871
+ "value": "parent_id",
2872
+ "isExpression": false,
2873
+ "asc": true,
2874
+ "nullsFirst": false,
2875
+ "opclass": null
2876
+ }
2877
+ ],
2878
+ "isUnique": false,
2879
+ "where": null,
2880
+ "with": "",
2881
+ "method": "btree",
2882
+ "concurrently": false,
2883
+ "name": "courses_tags_parent_id_index",
2884
+ "entityType": "indexes",
2885
+ "schema": "public",
2886
+ "table": "courses_tags"
2887
+ },
2888
+ {
2889
+ "nameExplicit": true,
2890
+ "columns": [
2891
+ {
2892
+ "value": "target_id",
2893
+ "isExpression": false,
2894
+ "asc": true,
2895
+ "nullsFirst": false,
2896
+ "opclass": null
2897
+ }
2898
+ ],
2899
+ "isUnique": false,
2900
+ "where": null,
2901
+ "with": "",
2902
+ "method": "btree",
2903
+ "concurrently": false,
2904
+ "name": "courses_tags_target_id_index",
2905
+ "entityType": "indexes",
2906
+ "schema": "public",
2907
+ "table": "courses_tags"
2908
+ },
2909
+ {
2910
+ "nameExplicit": false,
2911
+ "columns": [
2912
+ {
2913
+ "value": "organization_id",
2914
+ "isExpression": false,
2915
+ "asc": true,
2916
+ "nullsFirst": false,
2917
+ "opclass": null
2918
+ }
2919
+ ],
2920
+ "isUnique": false,
2921
+ "where": null,
2922
+ "with": "",
2923
+ "method": "btree",
2924
+ "concurrently": false,
2925
+ "name": "enrollments_organization_id_index",
2926
+ "entityType": "indexes",
2927
+ "schema": "public",
2928
+ "table": "enrollments"
2929
+ },
2930
+ {
2931
+ "nameExplicit": false,
2932
+ "columns": [
2933
+ {
2934
+ "value": "created_at",
2935
+ "isExpression": false,
2936
+ "asc": true,
2937
+ "nullsFirst": false,
2938
+ "opclass": null
2939
+ }
2940
+ ],
2941
+ "isUnique": false,
2942
+ "where": null,
2943
+ "with": "",
2944
+ "method": "btree",
2945
+ "concurrently": false,
2946
+ "name": "enrollments_created_at_index",
2947
+ "entityType": "indexes",
2948
+ "schema": "public",
2949
+ "table": "enrollments"
2950
+ },
2951
+ {
2952
+ "nameExplicit": false,
2953
+ "columns": [
2954
+ {
2955
+ "value": "created_at",
2956
+ "isExpression": false,
2957
+ "asc": true,
2958
+ "nullsFirst": false,
2959
+ "opclass": null
2960
+ }
2961
+ ],
2962
+ "isUnique": false,
2963
+ "where": null,
2964
+ "with": "",
2965
+ "method": "btree",
2966
+ "concurrently": false,
2967
+ "name": "local_users_created_at_index",
2968
+ "entityType": "indexes",
2969
+ "schema": "public",
2970
+ "table": "local_users"
2971
+ },
2972
+ {
2973
+ "nameExplicit": false,
2974
+ "columns": [
2975
+ {
2976
+ "value": "organization_id",
2977
+ "isExpression": false,
2978
+ "asc": true,
2979
+ "nullsFirst": false,
2980
+ "opclass": null
2981
+ }
2982
+ ],
2983
+ "isUnique": false,
2984
+ "where": null,
2985
+ "with": "",
2986
+ "method": "btree",
2987
+ "concurrently": false,
2988
+ "name": "media_organization_id_index",
2989
+ "entityType": "indexes",
2990
+ "schema": "public",
2991
+ "table": "media"
2992
+ },
2993
+ {
2994
+ "nameExplicit": false,
2995
+ "columns": [
2996
+ {
2997
+ "value": "filename",
2998
+ "isExpression": false,
2999
+ "asc": true,
3000
+ "nullsFirst": false,
3001
+ "opclass": null
3002
+ }
3003
+ ],
3004
+ "isUnique": false,
3005
+ "where": null,
3006
+ "with": "",
3007
+ "method": "btree",
3008
+ "concurrently": false,
3009
+ "name": "media_filename_index",
3010
+ "entityType": "indexes",
3011
+ "schema": "public",
3012
+ "table": "media"
3013
+ },
3014
+ {
3015
+ "nameExplicit": false,
3016
+ "columns": [
3017
+ {
3018
+ "value": "created_at",
3019
+ "isExpression": false,
3020
+ "asc": true,
3021
+ "nullsFirst": false,
3022
+ "opclass": null
3023
+ }
3024
+ ],
3025
+ "isUnique": false,
3026
+ "where": null,
3027
+ "with": "",
3028
+ "method": "btree",
3029
+ "concurrently": false,
3030
+ "name": "media_created_at_index",
3031
+ "entityType": "indexes",
3032
+ "schema": "public",
3033
+ "table": "media"
3034
+ },
3035
+ {
3036
+ "nameExplicit": false,
3037
+ "columns": [
3038
+ {
3039
+ "value": "organization_id",
3040
+ "isExpression": false,
3041
+ "asc": true,
3042
+ "nullsFirst": false,
3043
+ "opclass": null
3044
+ }
3045
+ ],
3046
+ "isUnique": false,
3047
+ "where": null,
3048
+ "with": "",
3049
+ "method": "btree",
3050
+ "concurrently": false,
3051
+ "name": "member_roles_organization_id_index",
3052
+ "entityType": "indexes",
3053
+ "schema": "public",
3054
+ "table": "member_roles"
3055
+ },
3056
+ {
3057
+ "nameExplicit": false,
3058
+ "columns": [
3059
+ {
3060
+ "value": "user_id",
3061
+ "isExpression": false,
3062
+ "asc": true,
3063
+ "nullsFirst": false,
3064
+ "opclass": null
3065
+ }
3066
+ ],
3067
+ "isUnique": false,
3068
+ "where": null,
3069
+ "with": "",
3070
+ "method": "btree",
3071
+ "concurrently": false,
3072
+ "name": "member_roles_user_id_index",
3073
+ "entityType": "indexes",
3074
+ "schema": "public",
3075
+ "table": "member_roles"
3076
+ },
3077
+ {
3078
+ "nameExplicit": false,
3079
+ "columns": [
3080
+ {
3081
+ "value": "role",
3082
+ "isExpression": false,
3083
+ "asc": true,
3084
+ "nullsFirst": false,
3085
+ "opclass": null
3086
+ }
3087
+ ],
3088
+ "isUnique": false,
3089
+ "where": null,
3090
+ "with": "",
3091
+ "method": "btree",
3092
+ "concurrently": false,
3093
+ "name": "member_roles_role_index",
3094
+ "entityType": "indexes",
3095
+ "schema": "public",
3096
+ "table": "member_roles"
3097
+ },
3098
+ {
3099
+ "nameExplicit": false,
3100
+ "columns": [
3101
+ {
3102
+ "value": "created_at",
3103
+ "isExpression": false,
3104
+ "asc": true,
3105
+ "nullsFirst": false,
3106
+ "opclass": null
3107
+ }
3108
+ ],
3109
+ "isUnique": false,
3110
+ "where": null,
3111
+ "with": "",
3112
+ "method": "btree",
3113
+ "concurrently": false,
3114
+ "name": "member_roles_created_at_index",
3115
+ "entityType": "indexes",
3116
+ "schema": "public",
3117
+ "table": "member_roles"
3118
+ },
3119
+ {
3120
+ "nameExplicit": true,
3121
+ "columns": [
3122
+ {
3123
+ "value": "organization_id",
3124
+ "isExpression": false,
3125
+ "asc": true,
3126
+ "nullsFirst": false,
3127
+ "opclass": null
3128
+ },
3129
+ {
3130
+ "value": "user_id",
3131
+ "isExpression": false,
3132
+ "asc": true,
3133
+ "nullsFirst": false,
3134
+ "opclass": null
3135
+ },
3136
+ {
3137
+ "value": "role",
3138
+ "isExpression": false,
3139
+ "asc": true,
3140
+ "nullsFirst": false,
3141
+ "opclass": null
3142
+ }
3143
+ ],
3144
+ "isUnique": true,
3145
+ "where": null,
3146
+ "with": "",
3147
+ "method": "btree",
3148
+ "concurrently": false,
3149
+ "name": "member_roles_organization_id_user_id_role_idx",
3150
+ "entityType": "indexes",
3151
+ "schema": "public",
3152
+ "table": "member_roles"
3153
+ },
3154
+ {
3155
+ "nameExplicit": false,
3156
+ "columns": [
3157
+ {
3158
+ "value": "organization_id",
3159
+ "isExpression": false,
3160
+ "asc": true,
3161
+ "nullsFirst": false,
3162
+ "opclass": null
3163
+ }
3164
+ ],
3165
+ "isUnique": false,
3166
+ "where": null,
3167
+ "with": "",
3168
+ "method": "btree",
3169
+ "concurrently": false,
3170
+ "name": "roles_organization_id_index",
3171
+ "entityType": "indexes",
3172
+ "schema": "public",
3173
+ "table": "roles"
3174
+ },
3175
+ {
3176
+ "nameExplicit": false,
3177
+ "columns": [
3178
+ {
3179
+ "value": "name",
3180
+ "isExpression": false,
3181
+ "asc": true,
3182
+ "nullsFirst": false,
3183
+ "opclass": null
3184
+ }
3185
+ ],
3186
+ "isUnique": false,
3187
+ "where": null,
3188
+ "with": "",
3189
+ "method": "btree",
3190
+ "concurrently": false,
3191
+ "name": "roles_name_index",
3192
+ "entityType": "indexes",
3193
+ "schema": "public",
3194
+ "table": "roles"
3195
+ },
3196
+ {
3197
+ "nameExplicit": false,
3198
+ "columns": [
3199
+ {
3200
+ "value": "created_at",
3201
+ "isExpression": false,
3202
+ "asc": true,
3203
+ "nullsFirst": false,
3204
+ "opclass": null
3205
+ }
3206
+ ],
3207
+ "isUnique": false,
3208
+ "where": null,
3209
+ "with": "",
3210
+ "method": "btree",
3211
+ "concurrently": false,
3212
+ "name": "roles_created_at_index",
3213
+ "entityType": "indexes",
3214
+ "schema": "public",
3215
+ "table": "roles"
3216
+ },
3217
+ {
3218
+ "nameExplicit": true,
3219
+ "columns": [
3220
+ {
3221
+ "value": "organization_id",
3222
+ "isExpression": false,
3223
+ "asc": true,
3224
+ "nullsFirst": false,
3225
+ "opclass": null
3226
+ },
3227
+ {
3228
+ "value": "name",
3229
+ "isExpression": false,
3230
+ "asc": true,
3231
+ "nullsFirst": false,
3232
+ "opclass": null
3233
+ }
3234
+ ],
3235
+ "isUnique": true,
3236
+ "where": null,
3237
+ "with": "",
3238
+ "method": "btree",
3239
+ "concurrently": false,
3240
+ "name": "roles_organization_id_name_idx",
3241
+ "entityType": "indexes",
3242
+ "schema": "public",
3243
+ "table": "roles"
3244
+ },
3245
+ {
3246
+ "nameExplicit": false,
3247
+ "columns": [
3248
+ {
3249
+ "value": "organization_id",
3250
+ "isExpression": false,
3251
+ "asc": true,
3252
+ "nullsFirst": false,
3253
+ "opclass": null
3254
+ }
3255
+ ],
3256
+ "isUnique": false,
3257
+ "where": null,
3258
+ "with": "",
3259
+ "method": "btree",
3260
+ "concurrently": false,
3261
+ "name": "course_sessions_organization_id_index",
3262
+ "entityType": "indexes",
3263
+ "schema": "public",
3264
+ "table": "course_sessions"
3265
+ },
3266
+ {
3267
+ "nameExplicit": false,
3268
+ "columns": [
3269
+ {
3270
+ "value": "created_at",
3271
+ "isExpression": false,
3272
+ "asc": true,
3273
+ "nullsFirst": false,
3274
+ "opclass": null
3275
+ }
3276
+ ],
3277
+ "isUnique": false,
3278
+ "where": null,
3279
+ "with": "",
3280
+ "method": "btree",
3281
+ "concurrently": false,
3282
+ "name": "course_sessions_created_at_index",
3283
+ "entityType": "indexes",
3284
+ "schema": "public",
3285
+ "table": "course_sessions"
3286
+ },
3287
+ {
3288
+ "nameExplicit": false,
3289
+ "columns": [
3290
+ {
3291
+ "value": "organization_id",
3292
+ "isExpression": false,
3293
+ "asc": true,
3294
+ "nullsFirst": false,
3295
+ "opclass": null
3296
+ }
3297
+ ],
3298
+ "isUnique": false,
3299
+ "where": null,
3300
+ "with": "",
3301
+ "method": "btree",
3302
+ "concurrently": false,
3303
+ "name": "settings_organization_id_index",
3304
+ "entityType": "indexes",
3305
+ "schema": "public",
3306
+ "table": "settings"
3307
+ },
3308
+ {
3309
+ "nameExplicit": false,
3310
+ "columns": [
3311
+ {
3312
+ "value": "created_at",
3313
+ "isExpression": false,
3314
+ "asc": true,
3315
+ "nullsFirst": false,
3316
+ "opclass": null
3317
+ }
3318
+ ],
3319
+ "isUnique": false,
3320
+ "where": null,
3321
+ "with": "",
3322
+ "method": "btree",
3323
+ "concurrently": false,
3324
+ "name": "settings_created_at_index",
3325
+ "entityType": "indexes",
3326
+ "schema": "public",
3327
+ "table": "settings"
3328
+ },
3329
+ {
3330
+ "nameExplicit": false,
3331
+ "columns": [
3332
+ {
3333
+ "value": "organization_id",
3334
+ "isExpression": false,
3335
+ "asc": true,
3336
+ "nullsFirst": false,
3337
+ "opclass": null
3338
+ }
3339
+ ],
3340
+ "isUnique": false,
3341
+ "where": null,
3342
+ "with": "",
3343
+ "method": "btree",
3344
+ "concurrently": false,
3345
+ "name": "tags_organization_id_index",
3346
+ "entityType": "indexes",
3347
+ "schema": "public",
3348
+ "table": "tags"
3349
+ },
3350
+ {
3351
+ "nameExplicit": false,
3352
+ "columns": [
3353
+ {
3354
+ "value": "name_ar",
3355
+ "isExpression": false,
3356
+ "asc": true,
3357
+ "nullsFirst": false,
3358
+ "opclass": null
3359
+ }
3360
+ ],
3361
+ "isUnique": false,
3362
+ "where": null,
3363
+ "with": "",
3364
+ "method": "btree",
3365
+ "concurrently": false,
3366
+ "name": "tags_name_ar_index",
3367
+ "entityType": "indexes",
3368
+ "schema": "public",
3369
+ "table": "tags"
3370
+ },
3371
+ {
3372
+ "nameExplicit": false,
3373
+ "columns": [
3374
+ {
3375
+ "value": "name_en",
3376
+ "isExpression": false,
3377
+ "asc": true,
3378
+ "nullsFirst": false,
3379
+ "opclass": null
3380
+ }
3381
+ ],
3382
+ "isUnique": false,
3383
+ "where": null,
3384
+ "with": "",
3385
+ "method": "btree",
3386
+ "concurrently": false,
3387
+ "name": "tags_name_index",
3388
+ "entityType": "indexes",
3389
+ "schema": "public",
3390
+ "table": "tags"
3391
+ },
3392
+ {
3393
+ "nameExplicit": false,
3394
+ "columns": [
3395
+ {
3396
+ "value": "created_at",
3397
+ "isExpression": false,
3398
+ "asc": true,
3399
+ "nullsFirst": false,
3400
+ "opclass": null
3401
+ }
3402
+ ],
3403
+ "isUnique": false,
3404
+ "where": null,
3405
+ "with": "",
3406
+ "method": "btree",
3407
+ "concurrently": false,
3408
+ "name": "tags_created_at_index",
3409
+ "entityType": "indexes",
3410
+ "schema": "public",
3411
+ "table": "tags"
3412
+ },
3413
+ {
3414
+ "nameExplicit": false,
3415
+ "columns": [
3416
+ "parent_id"
3417
+ ],
3418
+ "schemaTo": "public",
3419
+ "tableTo": "courses",
3420
+ "columnsTo": [
3421
+ "id"
3422
+ ],
3423
+ "onUpdate": "NO ACTION",
3424
+ "onDelete": "CASCADE",
3425
+ "name": "_courses_versions_parent_id_courses_id_fkey",
3426
+ "entityType": "fks",
3427
+ "schema": "public",
3428
+ "table": "_courses_versions"
3429
+ },
3430
+ {
3431
+ "nameExplicit": false,
3432
+ "columns": [
3433
+ "user_id"
3434
+ ],
3435
+ "schemaTo": "public",
3436
+ "tableTo": "user",
3437
+ "columnsTo": [
3438
+ "id"
3439
+ ],
3440
+ "onUpdate": "NO ACTION",
3441
+ "onDelete": "CASCADE",
3442
+ "name": "account_user_id_user_id_fkey",
3443
+ "entityType": "fks",
3444
+ "schema": "public",
3445
+ "table": "account"
3446
+ },
3447
+ {
3448
+ "nameExplicit": false,
3449
+ "columns": [
3450
+ "organization_id"
3451
+ ],
3452
+ "schemaTo": "public",
3453
+ "tableTo": "organization",
3454
+ "columnsTo": [
3455
+ "id"
3456
+ ],
3457
+ "onUpdate": "NO ACTION",
3458
+ "onDelete": "RESTRICT",
3459
+ "name": "audit_log_tenant_id_organization_id_fkey",
3460
+ "entityType": "fks",
3461
+ "schema": "public",
3462
+ "table": "audit_log"
3463
+ },
3464
+ {
3465
+ "nameExplicit": false,
3466
+ "columns": [
3467
+ "organization_id"
3468
+ ],
3469
+ "schemaTo": "public",
3470
+ "tableTo": "organization",
3471
+ "columnsTo": [
3472
+ "id"
3473
+ ],
3474
+ "onUpdate": "NO ACTION",
3475
+ "onDelete": "RESTRICT",
3476
+ "name": "courses_tenant_id_organization_id_fkey",
3477
+ "entityType": "fks",
3478
+ "schema": "public",
3479
+ "table": "courses"
3480
+ },
3481
+ {
3482
+ "nameExplicit": false,
3483
+ "columns": [
3484
+ "cover_id"
3485
+ ],
3486
+ "schemaTo": "public",
3487
+ "tableTo": "media",
3488
+ "columnsTo": [
3489
+ "id"
3490
+ ],
3491
+ "onUpdate": "NO ACTION",
3492
+ "onDelete": "RESTRICT",
3493
+ "name": "courses_cover_id_media_id_fkey",
3494
+ "entityType": "fks",
3495
+ "schema": "public",
3496
+ "table": "courses"
3497
+ },
3498
+ {
3499
+ "nameExplicit": false,
3500
+ "columns": [
3501
+ "parent_id"
3502
+ ],
3503
+ "schemaTo": "public",
3504
+ "tableTo": "courses",
3505
+ "columnsTo": [
3506
+ "id"
3507
+ ],
3508
+ "onUpdate": "NO ACTION",
3509
+ "onDelete": "CASCADE",
3510
+ "name": "courses_tags_parent_id_courses_id_fkey",
3511
+ "entityType": "fks",
3512
+ "schema": "public",
3513
+ "table": "courses_tags"
3514
+ },
3515
+ {
3516
+ "nameExplicit": false,
3517
+ "columns": [
3518
+ "target_id"
3519
+ ],
3520
+ "schemaTo": "public",
3521
+ "tableTo": "tags",
3522
+ "columnsTo": [
3523
+ "id"
3524
+ ],
3525
+ "onUpdate": "NO ACTION",
3526
+ "onDelete": "RESTRICT",
3527
+ "name": "courses_tags_target_id_tags_id_fkey",
3528
+ "entityType": "fks",
3529
+ "schema": "public",
3530
+ "table": "courses_tags"
3531
+ },
3532
+ {
3533
+ "nameExplicit": false,
3534
+ "columns": [
3535
+ "organization_id"
3536
+ ],
3537
+ "schemaTo": "public",
3538
+ "tableTo": "organization",
3539
+ "columnsTo": [
3540
+ "id"
3541
+ ],
3542
+ "onUpdate": "NO ACTION",
3543
+ "onDelete": "RESTRICT",
3544
+ "name": "enrollments_tenant_id_organization_id_fkey",
3545
+ "entityType": "fks",
3546
+ "schema": "public",
3547
+ "table": "enrollments"
3548
+ },
3549
+ {
3550
+ "nameExplicit": false,
3551
+ "columns": [
3552
+ "session_id"
3553
+ ],
3554
+ "schemaTo": "public",
3555
+ "tableTo": "course_sessions",
3556
+ "columnsTo": [
3557
+ "id"
3558
+ ],
3559
+ "onUpdate": "NO ACTION",
3560
+ "onDelete": "RESTRICT",
3561
+ "name": "enrollments_session_id_course_sessions_id_fkey",
3562
+ "entityType": "fks",
3563
+ "schema": "public",
3564
+ "table": "enrollments"
3565
+ },
3566
+ {
3567
+ "nameExplicit": false,
3568
+ "columns": [
3569
+ "student_id"
3570
+ ],
3571
+ "schemaTo": "public",
3572
+ "tableTo": "user",
3573
+ "columnsTo": [
3574
+ "id"
3575
+ ],
3576
+ "onUpdate": "NO ACTION",
3577
+ "onDelete": "RESTRICT",
3578
+ "name": "enrollments_student_id_user_id_fkey",
3579
+ "entityType": "fks",
3580
+ "schema": "public",
3581
+ "table": "enrollments"
3582
+ },
3583
+ {
3584
+ "nameExplicit": false,
3585
+ "columns": [
3586
+ "organization_id"
3587
+ ],
3588
+ "schemaTo": "public",
3589
+ "tableTo": "organization",
3590
+ "columnsTo": [
3591
+ "id"
3592
+ ],
3593
+ "onUpdate": "NO ACTION",
3594
+ "onDelete": "CASCADE",
3595
+ "name": "invitation_organization_id_organization_id_fkey",
3596
+ "entityType": "fks",
3597
+ "schema": "public",
3598
+ "table": "invitation"
3599
+ },
3600
+ {
3601
+ "nameExplicit": false,
3602
+ "columns": [
3603
+ "inviter_id"
3604
+ ],
3605
+ "schemaTo": "public",
3606
+ "tableTo": "user",
3607
+ "columnsTo": [
3608
+ "id"
3609
+ ],
3610
+ "onUpdate": "NO ACTION",
3611
+ "onDelete": "CASCADE",
3612
+ "name": "invitation_inviter_id_user_id_fkey",
3613
+ "entityType": "fks",
3614
+ "schema": "public",
3615
+ "table": "invitation"
3616
+ },
3617
+ {
3618
+ "nameExplicit": false,
3619
+ "columns": [
3620
+ "organization_id"
3621
+ ],
3622
+ "schemaTo": "public",
3623
+ "tableTo": "organization",
3624
+ "columnsTo": [
3625
+ "id"
3626
+ ],
3627
+ "onUpdate": "NO ACTION",
3628
+ "onDelete": "RESTRICT",
3629
+ "name": "media_tenant_id_organization_id_fkey",
3630
+ "entityType": "fks",
3631
+ "schema": "public",
3632
+ "table": "media"
3633
+ },
3634
+ {
3635
+ "nameExplicit": false,
3636
+ "columns": [
3637
+ "organization_id"
3638
+ ],
3639
+ "schemaTo": "public",
3640
+ "tableTo": "organization",
3641
+ "columnsTo": [
3642
+ "id"
3643
+ ],
3644
+ "onUpdate": "NO ACTION",
3645
+ "onDelete": "CASCADE",
3646
+ "name": "member_organization_id_organization_id_fkey",
3647
+ "entityType": "fks",
3648
+ "schema": "public",
3649
+ "table": "member"
3650
+ },
3651
+ {
3652
+ "nameExplicit": false,
3653
+ "columns": [
3654
+ "user_id"
3655
+ ],
3656
+ "schemaTo": "public",
3657
+ "tableTo": "user",
3658
+ "columnsTo": [
3659
+ "id"
3660
+ ],
3661
+ "onUpdate": "NO ACTION",
3662
+ "onDelete": "CASCADE",
3663
+ "name": "member_user_id_user_id_fkey",
3664
+ "entityType": "fks",
3665
+ "schema": "public",
3666
+ "table": "member"
3667
+ },
3668
+ {
3669
+ "nameExplicit": false,
3670
+ "columns": [
3671
+ "organization_id"
3672
+ ],
3673
+ "schemaTo": "public",
3674
+ "tableTo": "organization",
3675
+ "columnsTo": [
3676
+ "id"
3677
+ ],
3678
+ "onUpdate": "NO ACTION",
3679
+ "onDelete": "RESTRICT",
3680
+ "name": "member_roles_tenant_id_organization_id_fkey",
3681
+ "entityType": "fks",
3682
+ "schema": "public",
3683
+ "table": "member_roles"
3684
+ },
3685
+ {
3686
+ "nameExplicit": false,
3687
+ "columns": [
3688
+ "user_id"
3689
+ ],
3690
+ "schemaTo": "public",
3691
+ "tableTo": "user",
3692
+ "columnsTo": [
3693
+ "id"
3694
+ ],
3695
+ "onUpdate": "NO ACTION",
3696
+ "onDelete": "CASCADE",
3697
+ "name": "member_roles_user_id_user_id_fkey",
3698
+ "entityType": "fks",
3699
+ "schema": "public",
3700
+ "table": "member_roles"
3701
+ },
3702
+ {
3703
+ "nameExplicit": false,
3704
+ "columns": [
3705
+ "organization_id"
3706
+ ],
3707
+ "schemaTo": "public",
3708
+ "tableTo": "organization",
3709
+ "columnsTo": [
3710
+ "id"
3711
+ ],
3712
+ "onUpdate": "NO ACTION",
3713
+ "onDelete": "CASCADE",
3714
+ "name": "organization_role_organization_id_organization_id_fkey",
3715
+ "entityType": "fks",
3716
+ "schema": "public",
3717
+ "table": "organization_role"
3718
+ },
3719
+ {
3720
+ "nameExplicit": false,
3721
+ "columns": [
3722
+ "organization_id"
3723
+ ],
3724
+ "schemaTo": "public",
3725
+ "tableTo": "organization",
3726
+ "columnsTo": [
3727
+ "id"
3728
+ ],
3729
+ "onUpdate": "NO ACTION",
3730
+ "onDelete": "RESTRICT",
3731
+ "name": "roles_tenant_id_organization_id_fkey",
3732
+ "entityType": "fks",
3733
+ "schema": "public",
3734
+ "table": "roles"
3735
+ },
3736
+ {
3737
+ "nameExplicit": false,
3738
+ "columns": [
3739
+ "user_id"
3740
+ ],
3741
+ "schemaTo": "public",
3742
+ "tableTo": "user",
3743
+ "columnsTo": [
3744
+ "id"
3745
+ ],
3746
+ "onUpdate": "NO ACTION",
3747
+ "onDelete": "CASCADE",
3748
+ "name": "session_user_id_user_id_fkey",
3749
+ "entityType": "fks",
3750
+ "schema": "public",
3751
+ "table": "session"
3752
+ },
3753
+ {
3754
+ "nameExplicit": false,
3755
+ "columns": [
3756
+ "organization_id"
3757
+ ],
3758
+ "schemaTo": "public",
3759
+ "tableTo": "organization",
3760
+ "columnsTo": [
3761
+ "id"
3762
+ ],
3763
+ "onUpdate": "NO ACTION",
3764
+ "onDelete": "RESTRICT",
3765
+ "name": "course_sessions_tenant_id_organization_id_fkey",
3766
+ "entityType": "fks",
3767
+ "schema": "public",
3768
+ "table": "course_sessions"
3769
+ },
3770
+ {
3771
+ "nameExplicit": false,
3772
+ "columns": [
3773
+ "course_id"
3774
+ ],
3775
+ "schemaTo": "public",
3776
+ "tableTo": "courses",
3777
+ "columnsTo": [
3778
+ "id"
3779
+ ],
3780
+ "onUpdate": "NO ACTION",
3781
+ "onDelete": "RESTRICT",
3782
+ "name": "course_sessions_course_id_courses_id_fkey",
3783
+ "entityType": "fks",
3784
+ "schema": "public",
3785
+ "table": "course_sessions"
3786
+ },
3787
+ {
3788
+ "nameExplicit": false,
3789
+ "columns": [
3790
+ "organization_id"
3791
+ ],
3792
+ "schemaTo": "public",
3793
+ "tableTo": "organization",
3794
+ "columnsTo": [
3795
+ "id"
3796
+ ],
3797
+ "onUpdate": "NO ACTION",
3798
+ "onDelete": "RESTRICT",
3799
+ "name": "settings_tenant_id_organization_id_fkey",
3800
+ "entityType": "fks",
3801
+ "schema": "public",
3802
+ "table": "settings"
3803
+ },
3804
+ {
3805
+ "nameExplicit": false,
3806
+ "columns": [
3807
+ "organization_id"
3808
+ ],
3809
+ "schemaTo": "public",
3810
+ "tableTo": "organization",
3811
+ "columnsTo": [
3812
+ "id"
3813
+ ],
3814
+ "onUpdate": "NO ACTION",
3815
+ "onDelete": "RESTRICT",
3816
+ "name": "tags_tenant_id_organization_id_fkey",
3817
+ "entityType": "fks",
3818
+ "schema": "public",
3819
+ "table": "tags"
3820
+ },
3821
+ {
3822
+ "columns": [
3823
+ "parent_id",
3824
+ "order"
3825
+ ],
3826
+ "nameExplicit": true,
3827
+ "name": "courses_tags_pkey",
3828
+ "entityType": "pks",
3829
+ "schema": "public",
3830
+ "table": "courses_tags"
3831
+ },
3832
+ {
3833
+ "columns": [
3834
+ "id"
3835
+ ],
3836
+ "nameExplicit": false,
3837
+ "name": "_courses_versions_pkey",
3838
+ "schema": "public",
3839
+ "table": "_courses_versions",
3840
+ "entityType": "pks"
3841
+ },
3842
+ {
3843
+ "columns": [
3844
+ "id"
3845
+ ],
3846
+ "nameExplicit": false,
3847
+ "name": "account_pkey",
3848
+ "schema": "public",
3849
+ "table": "account",
3850
+ "entityType": "pks"
3851
+ },
3852
+ {
3853
+ "columns": [
3854
+ "id"
3855
+ ],
3856
+ "nameExplicit": false,
3857
+ "name": "audit_log_pkey",
3858
+ "schema": "public",
3859
+ "table": "audit_log",
3860
+ "entityType": "pks"
3861
+ },
3862
+ {
3863
+ "columns": [
3864
+ "id"
3865
+ ],
3866
+ "nameExplicit": false,
3867
+ "name": "backoffice_log_pkey",
3868
+ "schema": "public",
3869
+ "table": "backoffice_log",
3870
+ "entityType": "pks"
3871
+ },
3872
+ {
3873
+ "columns": [
3874
+ "id"
3875
+ ],
3876
+ "nameExplicit": false,
3877
+ "name": "courses_pkey",
3878
+ "schema": "public",
3879
+ "table": "courses",
3880
+ "entityType": "pks"
3881
+ },
3882
+ {
3883
+ "columns": [
3884
+ "id"
3885
+ ],
3886
+ "nameExplicit": false,
3887
+ "name": "enrollments_pkey",
3888
+ "schema": "public",
3889
+ "table": "enrollments",
3890
+ "entityType": "pks"
3891
+ },
3892
+ {
3893
+ "columns": [
3894
+ "id"
3895
+ ],
3896
+ "nameExplicit": false,
3897
+ "name": "invitation_pkey",
3898
+ "schema": "public",
3899
+ "table": "invitation",
3900
+ "entityType": "pks"
3901
+ },
3902
+ {
3903
+ "columns": [
3904
+ "id"
3905
+ ],
3906
+ "nameExplicit": false,
3907
+ "name": "local_users_pkey",
3908
+ "schema": "public",
3909
+ "table": "local_users",
3910
+ "entityType": "pks"
3911
+ },
3912
+ {
3913
+ "columns": [
3914
+ "id"
3915
+ ],
3916
+ "nameExplicit": false,
3917
+ "name": "media_pkey",
3918
+ "schema": "public",
3919
+ "table": "media",
3920
+ "entityType": "pks"
3921
+ },
3922
+ {
3923
+ "columns": [
3924
+ "id"
3925
+ ],
3926
+ "nameExplicit": false,
3927
+ "name": "member_pkey",
3928
+ "schema": "public",
3929
+ "table": "member",
3930
+ "entityType": "pks"
3931
+ },
3932
+ {
3933
+ "columns": [
3934
+ "id"
3935
+ ],
3936
+ "nameExplicit": false,
3937
+ "name": "member_roles_pkey",
3938
+ "schema": "public",
3939
+ "table": "member_roles",
3940
+ "entityType": "pks"
3941
+ },
3942
+ {
3943
+ "columns": [
3944
+ "id"
3945
+ ],
3946
+ "nameExplicit": false,
3947
+ "name": "organization_pkey",
3948
+ "schema": "public",
3949
+ "table": "organization",
3950
+ "entityType": "pks"
3951
+ },
3952
+ {
3953
+ "columns": [
3954
+ "id"
3955
+ ],
3956
+ "nameExplicit": false,
3957
+ "name": "organization_role_pkey",
3958
+ "schema": "public",
3959
+ "table": "organization_role",
3960
+ "entityType": "pks"
3961
+ },
3962
+ {
3963
+ "columns": [
3964
+ "id"
3965
+ ],
3966
+ "nameExplicit": false,
3967
+ "name": "roles_pkey",
3968
+ "schema": "public",
3969
+ "table": "roles",
3970
+ "entityType": "pks"
3971
+ },
3972
+ {
3973
+ "columns": [
3974
+ "id"
3975
+ ],
3976
+ "nameExplicit": false,
3977
+ "name": "session_pkey",
3978
+ "schema": "public",
3979
+ "table": "session",
3980
+ "entityType": "pks"
3981
+ },
3982
+ {
3983
+ "columns": [
3984
+ "id"
3985
+ ],
3986
+ "nameExplicit": false,
3987
+ "name": "course_sessions_pkey",
3988
+ "schema": "public",
3989
+ "table": "course_sessions",
3990
+ "entityType": "pks"
3991
+ },
3992
+ {
3993
+ "columns": [
3994
+ "id"
3995
+ ],
3996
+ "nameExplicit": false,
3997
+ "name": "settings_pkey",
3998
+ "schema": "public",
3999
+ "table": "settings",
4000
+ "entityType": "pks"
4001
+ },
4002
+ {
4003
+ "columns": [
4004
+ "id"
4005
+ ],
4006
+ "nameExplicit": false,
4007
+ "name": "tags_pkey",
4008
+ "schema": "public",
4009
+ "table": "tags",
4010
+ "entityType": "pks"
4011
+ },
4012
+ {
4013
+ "columns": [
4014
+ "id"
4015
+ ],
4016
+ "nameExplicit": false,
4017
+ "name": "user_pkey",
4018
+ "schema": "public",
4019
+ "table": "user",
4020
+ "entityType": "pks"
4021
+ },
4022
+ {
4023
+ "columns": [
4024
+ "id"
4025
+ ],
4026
+ "nameExplicit": false,
4027
+ "name": "verification_pkey",
4028
+ "schema": "public",
4029
+ "table": "verification",
4030
+ "entityType": "pks"
4031
+ },
4032
+ {
4033
+ "nameExplicit": true,
4034
+ "columns": [
4035
+ "session_id",
4036
+ "student_id",
4037
+ "deleted_at"
4038
+ ],
4039
+ "nullsNotDistinct": true,
4040
+ "name": "enrollments_session_id_student_id_deleted_at_unique",
4041
+ "entityType": "uniques",
4042
+ "schema": "public",
4043
+ "table": "enrollments"
4044
+ },
4045
+ {
4046
+ "nameExplicit": false,
4047
+ "columns": [
4048
+ "email"
4049
+ ],
4050
+ "nullsNotDistinct": false,
4051
+ "name": "local_users_email_key",
4052
+ "schema": "public",
4053
+ "table": "local_users",
4054
+ "entityType": "uniques"
4055
+ },
4056
+ {
4057
+ "nameExplicit": false,
4058
+ "columns": [
4059
+ "key"
4060
+ ],
4061
+ "nullsNotDistinct": false,
4062
+ "name": "media_key_key",
4063
+ "schema": "public",
4064
+ "table": "media",
4065
+ "entityType": "uniques"
4066
+ },
4067
+ {
4068
+ "nameExplicit": false,
4069
+ "columns": [
4070
+ "slug"
4071
+ ],
4072
+ "nullsNotDistinct": false,
4073
+ "name": "organization_slug_key",
4074
+ "schema": "public",
4075
+ "table": "organization",
4076
+ "entityType": "uniques"
4077
+ },
4078
+ {
4079
+ "nameExplicit": false,
4080
+ "columns": [
4081
+ "token"
4082
+ ],
4083
+ "nullsNotDistinct": false,
4084
+ "name": "session_token_key",
4085
+ "schema": "public",
4086
+ "table": "session",
4087
+ "entityType": "uniques"
4088
+ },
4089
+ {
4090
+ "nameExplicit": false,
4091
+ "columns": [
4092
+ "organization_id"
4093
+ ],
4094
+ "nullsNotDistinct": false,
4095
+ "name": "settings_tenant_id_key",
4096
+ "schema": "public",
4097
+ "table": "settings",
4098
+ "entityType": "uniques"
4099
+ },
4100
+ {
4101
+ "nameExplicit": false,
4102
+ "columns": [
4103
+ "email"
4104
+ ],
4105
+ "nullsNotDistinct": false,
4106
+ "name": "user_email_key",
4107
+ "schema": "public",
4108
+ "table": "user",
4109
+ "entityType": "uniques"
4110
+ }
4111
+ ],
4112
+ "renames": []
4113
+ }