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