create-mithaq 0.0.0-stage → 0.1.1

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