create-efforge 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +140 -2
  3. package/dist/addon.js +115 -0
  4. package/dist/bin.js +6 -0
  5. package/dist/cli.js +9 -0
  6. package/dist/commands/add.js +440 -0
  7. package/dist/commands/create.js +186 -0
  8. package/dist/diff.js +72 -0
  9. package/dist/exec.js +20 -0
  10. package/dist/generate.js +181 -0
  11. package/dist/manifest.js +14 -0
  12. package/dist/projectName.js +41 -0
  13. package/dist/prompts/flow.js +111 -0
  14. package/dist/prompts/navigable.js +97 -0
  15. package/dist/routeTree.js +7 -0
  16. package/dist/rules.js +24 -0
  17. package/dist/slots.js +96 -0
  18. package/dist/stack.js +68 -0
  19. package/dist/transforms/addAlchemyResource.js +71 -0
  20. package/dist/transforms/addArrayItem.js +31 -0
  21. package/dist/transforms/addAuthPlugin.js +77 -0
  22. package/dist/transforms/addDevVar.js +18 -0
  23. package/dist/transforms/addExport.js +46 -0
  24. package/dist/transforms/addImport.js +11 -0
  25. package/dist/transforms/addLayer.js +31 -0
  26. package/dist/transforms/addServerFnMiddleware.js +62 -0
  27. package/dist/transforms/addWorkflowSecret.js +43 -0
  28. package/dist/transforms/addWranglerBinding.js +61 -0
  29. package/dist/transforms/appendAgentsSection.js +26 -0
  30. package/dist/transforms/errors.js +7 -0
  31. package/dist/transforms/index.js +40 -0
  32. package/dist/transforms/setWranglerValue.js +40 -0
  33. package/dist/transforms/util.js +219 -0
  34. package/dist/tree.js +1 -0
  35. package/dist/versions.js +73 -0
  36. package/dist/write.js +26 -0
  37. package/package.json +63 -4
  38. package/templates/ai/effect-ai-byok/addon.json +619 -0
  39. package/templates/ai/effect-ai-byok/files/core/llm-crypto.test.ts +47 -0
  40. package/templates/ai/effect-ai-byok/files/core/llm-crypto.ts +76 -0
  41. package/templates/ai/effect-ai-byok/files/core/llm-store.ts +21 -0
  42. package/templates/ai/effect-ai-byok/files/core/llm.ts +32 -0
  43. package/templates/ai/effect-ai-byok/files/drizzle/d1/20261018161056_llm_credential/migration.sql +9 -0
  44. package/templates/ai/effect-ai-byok/files/drizzle/d1/20261018161056_llm_credential/snapshot.json +944 -0
  45. package/templates/ai/effect-ai-byok/files/drizzle/pg/20261018161056_llm_credential/migration.sql +10 -0
  46. package/templates/ai/effect-ai-byok/files/drizzle/pg/20261018161056_llm_credential/snapshot.json +1232 -0
  47. package/templates/ai/effect-ai-byok/files/routes/ai.tsx +193 -0
  48. package/templates/ai/effect-ai-byok/files/schema/d1.ts +16 -0
  49. package/templates/ai/effect-ai-byok/files/schema/pg.ts +14 -0
  50. package/templates/ai/effect-ai-byok/files/server/ai-settings.ts +129 -0
  51. package/templates/ai/effect-ai-byok/files/server/ai.ts +25 -0
  52. package/templates/ai/effect-ai-byok/files/server/llm-env.ts +48 -0
  53. package/templates/ai/effect-ai-byok/files/server/llm-orgs.ts +146 -0
  54. package/templates/ai/effect-ai-byok/files/server/llm-provider.ts +56 -0
  55. package/templates/ai/effect-ai-byok/files/server/llm-store-drizzle.ts +48 -0
  56. package/templates/ai/effect-ai-byok/files/server/llm-store-sql-d1.ts +41 -0
  57. package/templates/ai/effect-ai-byok/files/server/llm-store-sql-pg.ts +41 -0
  58. package/templates/ai/effect-ai-byok/files/sql/d1.sql +8 -0
  59. package/templates/ai/effect-ai-byok/files/sql/pg.sql +8 -0
  60. package/templates/auth/better-auth/addon.json +424 -0
  61. package/templates/auth/better-auth/files/core/Auth.ts +18 -0
  62. package/templates/auth/better-auth/files/drizzle/d1/20261018161054_auth/migration.sql +51 -0
  63. package/templates/auth/better-auth/files/drizzle/d1/20261018161054_auth/snapshot.json +522 -0
  64. package/templates/auth/better-auth/files/drizzle/pg/20261018161053_auth/migration.sql +51 -0
  65. package/templates/auth/better-auth/files/drizzle/pg/20261018161053_auth/snapshot.json +680 -0
  66. package/templates/auth/better-auth/files/lib/auth-client.ts +4 -0
  67. package/templates/auth/better-auth/files/routes/app.tsx +54 -0
  68. package/templates/auth/better-auth/files/schema/d1/auth-schema.ts +86 -0
  69. package/templates/auth/better-auth/files/schema/pg/auth-schema.ts +73 -0
  70. package/templates/auth/better-auth/files/server/auth-live.ts +47 -0
  71. package/templates/auth/better-auth/files/server/session.ts +14 -0
  72. package/templates/auth/better-auth/files/shared/components/auth-card.tsx +32 -0
  73. package/templates/auth/better-auth/files/shared/components/user-menu.tsx +44 -0
  74. package/templates/auth/better-auth/files/shared/drizzle/d1/drizzle.config.ts +7 -0
  75. package/templates/auth/better-auth/files/shared/drizzle/pg/drizzle.config.ts +10 -0
  76. package/templates/auth/better-auth/files/shared/lib/form.ts +5 -0
  77. package/templates/auth/better-auth/files/shared/lib/redirect.ts +6 -0
  78. package/templates/auth/better-auth/files/shared/routes/app/index.tsx +54 -0
  79. package/templates/auth/better-auth/files/shared/routes/sign-in.tsx +85 -0
  80. package/templates/auth/better-auth/files/shared/routes/sign-up.tsx +91 -0
  81. package/templates/auth/better-auth/files/shared/server/auth-route.ts +15 -0
  82. package/templates/auth/better-auth/files/shared/server/auth.ts +22 -0
  83. package/templates/auth/better-auth/files/shared/server/db/d1-drizzle.ts +25 -0
  84. package/templates/auth/better-auth/files/shared/server/db/d1-effect-sql.ts +17 -0
  85. package/templates/auth/better-auth/files/shared/server/db/pg-drizzle.ts +32 -0
  86. package/templates/auth/better-auth/files/shared/server/db/pg-effect-sql.ts +29 -0
  87. package/templates/auth/better-auth/files/shared/server/require-session.ts +20 -0
  88. package/templates/auth/better-auth/files/sql/d1/0002_auth.sql +13 -0
  89. package/templates/auth/better-auth/files/sql/pg/0002_auth.sql +13 -0
  90. package/templates/auth/better-auth-orgs/addon.json +463 -0
  91. package/templates/auth/better-auth-orgs/files/components/org-switcher.tsx +65 -0
  92. package/templates/auth/better-auth-orgs/files/core/Auth.ts +20 -0
  93. package/templates/auth/better-auth-orgs/files/drizzle/d1/20261018161055_auth/migration.sql +88 -0
  94. package/templates/auth/better-auth-orgs/files/drizzle/d1/20261018161055_auth/snapshot.json +862 -0
  95. package/templates/auth/better-auth-orgs/files/drizzle/pg/20261018161055_auth/migration.sql +88 -0
  96. package/templates/auth/better-auth-orgs/files/drizzle/pg/20261018161055_auth/snapshot.json +1127 -0
  97. package/templates/auth/better-auth-orgs/files/lib/auth-client.ts +5 -0
  98. package/templates/auth/better-auth-orgs/files/routes/accept-invite.$id.tsx +68 -0
  99. package/templates/auth/better-auth-orgs/files/routes/app/settings/index.tsx +27 -0
  100. package/templates/auth/better-auth-orgs/files/routes/app/settings/members.tsx +198 -0
  101. package/templates/auth/better-auth-orgs/files/routes/app/settings.tsx +30 -0
  102. package/templates/auth/better-auth-orgs/files/routes/app.tsx +58 -0
  103. package/templates/auth/better-auth-orgs/files/routes/onboarding.tsx +66 -0
  104. package/templates/auth/better-auth-orgs/files/schema/d1/auth-schema.ts +139 -0
  105. package/templates/auth/better-auth-orgs/files/schema/pg/auth-schema.ts +124 -0
  106. package/templates/auth/better-auth-orgs/files/server/auth-live.ts +52 -0
  107. package/templates/auth/better-auth-orgs/files/server/session.ts +44 -0
  108. package/templates/auth/better-auth-orgs/files/sql/d1/0002_auth.sql +27 -0
  109. package/templates/auth/better-auth-orgs/files/sql/pg/0002_auth.sql +27 -0
  110. package/templates/base/addon.json +212 -0
  111. package/templates/base/files/AGENTS.md +70 -0
  112. package/templates/base/files/CLAUDE.md +1 -0
  113. package/templates/base/files/README.md +28 -0
  114. package/templates/base/files/core/package.json +13 -0
  115. package/templates/base/files/core/src/index.ts +2 -0
  116. package/templates/base/files/core/test/core.test.ts +4 -0
  117. package/templates/base/files/core/tsconfig.json +6 -0
  118. package/templates/base/files/gitignore +11 -0
  119. package/templates/base/files/pnpm-workspace.yaml +11 -0
  120. package/templates/base/files/root/package.json +16 -0
  121. package/templates/base/files/root/tsconfig.base.json +19 -0
  122. package/templates/base/files/root/turbo.json +9 -0
  123. package/templates/base/files/root/vite.config.ts +61 -0
  124. package/templates/base/files/web/components.json +21 -0
  125. package/templates/base/files/web/package.json +17 -0
  126. package/templates/base/files/web/src/components/theme-provider.tsx +57 -0
  127. package/templates/base/files/web/src/components/theme-toggle.tsx +34 -0
  128. package/templates/base/files/web/src/components/ui/avatar.tsx +93 -0
  129. package/templates/base/files/web/src/components/ui/button.tsx +61 -0
  130. package/templates/base/files/web/src/components/ui/card.tsx +74 -0
  131. package/templates/base/files/web/src/components/ui/dialog.tsx +141 -0
  132. package/templates/base/files/web/src/components/ui/dropdown-menu.tsx +225 -0
  133. package/templates/base/files/web/src/components/ui/input.tsx +20 -0
  134. package/templates/base/files/web/src/components/ui/label.tsx +18 -0
  135. package/templates/base/files/web/src/components/ui/sonner.tsx +45 -0
  136. package/templates/base/files/web/src/components/widgets.tsx +4 -0
  137. package/templates/base/files/web/src/lib/utils.ts +6 -0
  138. package/templates/base/files/web/src/router.tsx +12 -0
  139. package/templates/base/files/web/src/routes/__root.tsx +42 -0
  140. package/templates/base/files/web/src/routes/app/index.tsx +27 -0
  141. package/templates/base/files/web/src/routes/app/settings.tsx +29 -0
  142. package/templates/base/files/web/src/routes/app.tsx +47 -0
  143. package/templates/base/files/web/src/routes/index.tsx +51 -0
  144. package/templates/base/files/web/src/server/greeting.ts +12 -0
  145. package/templates/base/files/web/src/server/layers.ts +10 -0
  146. package/templates/base/files/web/src/server/runtime.ts +5 -0
  147. package/templates/base/files/web/src/styles.css +81 -0
  148. package/templates/base/files/web/tsconfig.json +11 -0
  149. package/templates/base/files/web/vite.config.ts +9 -0
  150. package/templates/database/d1/addon.json +118 -0
  151. package/templates/database/d1/files/package.json +12 -0
  152. package/templates/database/d1/files/tsconfig.json +5 -0
  153. package/templates/database/postgres/addon.json +142 -0
  154. package/templates/database/postgres/files/docker-compose.yml +21 -0
  155. package/templates/database/postgres/files/package.json +12 -0
  156. package/templates/database/postgres/files/runtime.ts +12 -0
  157. package/templates/database/postgres/files/tsconfig.json +5 -0
  158. package/templates/extras/browser/addon.json +173 -0
  159. package/templates/extras/browser/files/BrowserContainer.ts +14 -0
  160. package/templates/extras/browser/files/app/Dockerfile +15 -0
  161. package/templates/extras/browser/files/app/dockerignore +1 -0
  162. package/templates/extras/browser/files/app/package-lock +605 -0
  163. package/templates/extras/browser/files/app/package.json +9 -0
  164. package/templates/extras/browser/files/app/src/server.ts +78 -0
  165. package/templates/extras/browser/files/app/src/url-policy.ts +115 -0
  166. package/templates/extras/browser/files/app/tsconfig.json +6 -0
  167. package/templates/extras/browser/files/browser.ts +34 -0
  168. package/templates/extras/browser/files/core-browser.ts +21 -0
  169. package/templates/extras/browser/files/run-browser.ts +25 -0
  170. package/templates/extras/email/addon.json +182 -0
  171. package/templates/extras/email/files/core-mailer.ts +28 -0
  172. package/templates/extras/email/files/invitation-email.ts +38 -0
  173. package/templates/extras/email/files/mailer.ts +58 -0
  174. package/templates/extras/realtime/addon.json +135 -0
  175. package/templates/extras/realtime/files/Room.ts +46 -0
  176. package/templates/extras/realtime/files/core-realtime.ts +19 -0
  177. package/templates/extras/realtime/files/realtime-demo.tsx +40 -0
  178. package/templates/extras/realtime/files/realtime-limits.test.ts +32 -0
  179. package/templates/extras/realtime/files/realtime-limits.ts +35 -0
  180. package/templates/extras/realtime/files/realtime-route.ts +39 -0
  181. package/templates/extras/realtime/files/realtime.ts +39 -0
  182. package/templates/extras/realtime/files/use-room.ts +67 -0
  183. package/templates/extras/storage/addon.json +132 -0
  184. package/templates/extras/storage/files/core-storage.ts +64 -0
  185. package/templates/extras/storage/files/storage-route.ts +50 -0
  186. package/templates/extras/storage/files/storage-security.test.ts +71 -0
  187. package/templates/extras/storage/files/storage-security.ts +92 -0
  188. package/templates/extras/storage/files/storage.ts +84 -0
  189. package/templates/extras/workflows/addon.json +95 -0
  190. package/templates/extras/workflows/files/Example.ts +42 -0
  191. package/templates/extras/workflows/files/core-jobs.ts +45 -0
  192. package/templates/extras/workflows/files/example-job.ts +36 -0
  193. package/templates/extras/workflows/files/jobs.ts +34 -0
  194. package/templates/infra/alchemy/addon.json +37 -0
  195. package/templates/infra/alchemy/files/README.md +27 -0
  196. package/templates/infra/alchemy/files/alchemy.run.ts +36 -0
  197. package/templates/infra/alchemy/files/github/deploy.yml +63 -0
  198. package/templates/infra/alchemy/files/tsconfig.json +5 -0
  199. package/templates/infra/alchemy/files/vite.config.ts +30 -0
  200. package/templates/orm/drizzle/addon.json +188 -0
  201. package/templates/orm/drizzle/files/d1/Database.ts +7 -0
  202. package/templates/orm/drizzle/files/d1/drizzle/20261018154417_init/migration.sql +10 -0
  203. package/templates/orm/drizzle/files/d1/drizzle/20261018154417_init/snapshot.json +60 -0
  204. package/templates/orm/drizzle/files/d1/drizzle.config.ts +7 -0
  205. package/templates/orm/drizzle/files/d1/layer.ts +13 -0
  206. package/templates/orm/drizzle/files/d1/migrate.ts +37 -0
  207. package/templates/orm/drizzle/files/d1/schema.ts +15 -0
  208. package/templates/orm/drizzle/files/pg/Database.ts +7 -0
  209. package/templates/orm/drizzle/files/pg/drizzle/20261018154416_init/migration.sql +10 -0
  210. package/templates/orm/drizzle/files/pg/drizzle/20261018154416_init/snapshot.json +75 -0
  211. package/templates/orm/drizzle/files/pg/drizzle.config.ts +10 -0
  212. package/templates/orm/drizzle/files/pg/layer.ts +16 -0
  213. package/templates/orm/drizzle/files/pg/migrate.ts +24 -0
  214. package/templates/orm/drizzle/files/pg/schema.ts +11 -0
  215. package/templates/orm/drizzle/files/shared/index.ts +2 -0
  216. package/templates/orm/drizzle/files/shared/notes.ts +15 -0
  217. package/templates/orm/drizzle/files/shared/page.tsx +50 -0
  218. package/templates/orm/effect-sql/addon.json +124 -0
  219. package/templates/orm/effect-sql/files/d1/layer.ts +13 -0
  220. package/templates/orm/effect-sql/files/d1/migrate.ts +20 -0
  221. package/templates/orm/effect-sql/files/d1/schema.ts +7 -0
  222. package/templates/orm/effect-sql/files/d1-sql/0001_init.sql +10 -0
  223. package/templates/orm/effect-sql/files/pg/layer.ts +16 -0
  224. package/templates/orm/effect-sql/files/pg/migrate.ts +66 -0
  225. package/templates/orm/effect-sql/files/pg/schema.ts +7 -0
  226. package/templates/orm/effect-sql/files/pg-sql/0001_init.sql +10 -0
  227. package/templates/orm/effect-sql/files/shared/Database.ts +7 -0
  228. package/templates/orm/effect-sql/files/shared/index.ts +2 -0
  229. package/templates/orm/effect-sql/files/shared/notes.ts +18 -0
  230. package/templates/orm/effect-sql/files/shared/page.tsx +50 -0
  231. package/templates/runtime/cloudflare/addon.json +52 -0
  232. package/templates/runtime/cloudflare/files/cloudflare.ts +10 -0
  233. package/templates/runtime/cloudflare/files/routes.ts +5 -0
  234. package/templates/runtime/cloudflare/files/server.ts +22 -0
  235. package/templates/runtime/cloudflare/files/tsconfig.json +12 -0
  236. package/templates/runtime/cloudflare/files/vite.config.ts +20 -0
  237. package/templates/runtime/cloudflare/files/wrangler.jsonc +8 -0
@@ -0,0 +1,1232 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "25a92137-a841-4fe1-a33d-bd9d274f8977",
5
+ "prevIds": ["8e6f8310-20e4-4feb-bc5b-5274cdbd0dfd"],
6
+ "ddl": [
7
+ {
8
+ "isRlsEnabled": false,
9
+ "name": "llm_credential",
10
+ "entityType": "tables",
11
+ "schema": "public"
12
+ },
13
+ {
14
+ "isRlsEnabled": false,
15
+ "name": "account",
16
+ "entityType": "tables",
17
+ "schema": "public"
18
+ },
19
+ {
20
+ "isRlsEnabled": false,
21
+ "name": "invitation",
22
+ "entityType": "tables",
23
+ "schema": "public"
24
+ },
25
+ {
26
+ "isRlsEnabled": false,
27
+ "name": "member",
28
+ "entityType": "tables",
29
+ "schema": "public"
30
+ },
31
+ {
32
+ "isRlsEnabled": false,
33
+ "name": "organization",
34
+ "entityType": "tables",
35
+ "schema": "public"
36
+ },
37
+ {
38
+ "isRlsEnabled": false,
39
+ "name": "session",
40
+ "entityType": "tables",
41
+ "schema": "public"
42
+ },
43
+ {
44
+ "isRlsEnabled": false,
45
+ "name": "user",
46
+ "entityType": "tables",
47
+ "schema": "public"
48
+ },
49
+ {
50
+ "isRlsEnabled": false,
51
+ "name": "verification",
52
+ "entityType": "tables",
53
+ "schema": "public"
54
+ },
55
+ {
56
+ "isRlsEnabled": false,
57
+ "name": "note",
58
+ "entityType": "tables",
59
+ "schema": "public"
60
+ },
61
+ {
62
+ "type": "text",
63
+ "typeSchema": null,
64
+ "notNull": true,
65
+ "dimensions": 0,
66
+ "default": null,
67
+ "generated": null,
68
+ "identity": null,
69
+ "name": "org_id",
70
+ "entityType": "columns",
71
+ "schema": "public",
72
+ "table": "llm_credential"
73
+ },
74
+ {
75
+ "type": "text",
76
+ "typeSchema": null,
77
+ "notNull": true,
78
+ "dimensions": 0,
79
+ "default": null,
80
+ "generated": null,
81
+ "identity": null,
82
+ "name": "provider",
83
+ "entityType": "columns",
84
+ "schema": "public",
85
+ "table": "llm_credential"
86
+ },
87
+ {
88
+ "type": "text",
89
+ "typeSchema": null,
90
+ "notNull": true,
91
+ "dimensions": 0,
92
+ "default": null,
93
+ "generated": null,
94
+ "identity": null,
95
+ "name": "model",
96
+ "entityType": "columns",
97
+ "schema": "public",
98
+ "table": "llm_credential"
99
+ },
100
+ {
101
+ "type": "text",
102
+ "typeSchema": null,
103
+ "notNull": true,
104
+ "dimensions": 0,
105
+ "default": null,
106
+ "generated": null,
107
+ "identity": null,
108
+ "name": "encrypted_key",
109
+ "entityType": "columns",
110
+ "schema": "public",
111
+ "table": "llm_credential"
112
+ },
113
+ {
114
+ "type": "text",
115
+ "typeSchema": null,
116
+ "notNull": false,
117
+ "dimensions": 0,
118
+ "default": null,
119
+ "generated": null,
120
+ "identity": null,
121
+ "name": "base_url",
122
+ "entityType": "columns",
123
+ "schema": "public",
124
+ "table": "llm_credential"
125
+ },
126
+ {
127
+ "type": "timestamp with time zone",
128
+ "typeSchema": null,
129
+ "notNull": true,
130
+ "dimensions": 0,
131
+ "default": "now()",
132
+ "generated": null,
133
+ "identity": null,
134
+ "name": "updated_at",
135
+ "entityType": "columns",
136
+ "schema": "public",
137
+ "table": "llm_credential"
138
+ },
139
+ {
140
+ "type": "text",
141
+ "typeSchema": null,
142
+ "notNull": true,
143
+ "dimensions": 0,
144
+ "default": null,
145
+ "generated": null,
146
+ "identity": null,
147
+ "name": "id",
148
+ "entityType": "columns",
149
+ "schema": "public",
150
+ "table": "account"
151
+ },
152
+ {
153
+ "type": "text",
154
+ "typeSchema": null,
155
+ "notNull": true,
156
+ "dimensions": 0,
157
+ "default": null,
158
+ "generated": null,
159
+ "identity": null,
160
+ "name": "account_id",
161
+ "entityType": "columns",
162
+ "schema": "public",
163
+ "table": "account"
164
+ },
165
+ {
166
+ "type": "text",
167
+ "typeSchema": null,
168
+ "notNull": true,
169
+ "dimensions": 0,
170
+ "default": null,
171
+ "generated": null,
172
+ "identity": null,
173
+ "name": "provider_id",
174
+ "entityType": "columns",
175
+ "schema": "public",
176
+ "table": "account"
177
+ },
178
+ {
179
+ "type": "text",
180
+ "typeSchema": null,
181
+ "notNull": true,
182
+ "dimensions": 0,
183
+ "default": null,
184
+ "generated": null,
185
+ "identity": null,
186
+ "name": "user_id",
187
+ "entityType": "columns",
188
+ "schema": "public",
189
+ "table": "account"
190
+ },
191
+ {
192
+ "type": "text",
193
+ "typeSchema": null,
194
+ "notNull": false,
195
+ "dimensions": 0,
196
+ "default": null,
197
+ "generated": null,
198
+ "identity": null,
199
+ "name": "access_token",
200
+ "entityType": "columns",
201
+ "schema": "public",
202
+ "table": "account"
203
+ },
204
+ {
205
+ "type": "text",
206
+ "typeSchema": null,
207
+ "notNull": false,
208
+ "dimensions": 0,
209
+ "default": null,
210
+ "generated": null,
211
+ "identity": null,
212
+ "name": "refresh_token",
213
+ "entityType": "columns",
214
+ "schema": "public",
215
+ "table": "account"
216
+ },
217
+ {
218
+ "type": "text",
219
+ "typeSchema": null,
220
+ "notNull": false,
221
+ "dimensions": 0,
222
+ "default": null,
223
+ "generated": null,
224
+ "identity": null,
225
+ "name": "id_token",
226
+ "entityType": "columns",
227
+ "schema": "public",
228
+ "table": "account"
229
+ },
230
+ {
231
+ "type": "timestamp",
232
+ "typeSchema": null,
233
+ "notNull": false,
234
+ "dimensions": 0,
235
+ "default": null,
236
+ "generated": null,
237
+ "identity": null,
238
+ "name": "access_token_expires_at",
239
+ "entityType": "columns",
240
+ "schema": "public",
241
+ "table": "account"
242
+ },
243
+ {
244
+ "type": "timestamp",
245
+ "typeSchema": null,
246
+ "notNull": false,
247
+ "dimensions": 0,
248
+ "default": null,
249
+ "generated": null,
250
+ "identity": null,
251
+ "name": "refresh_token_expires_at",
252
+ "entityType": "columns",
253
+ "schema": "public",
254
+ "table": "account"
255
+ },
256
+ {
257
+ "type": "text",
258
+ "typeSchema": null,
259
+ "notNull": false,
260
+ "dimensions": 0,
261
+ "default": null,
262
+ "generated": null,
263
+ "identity": null,
264
+ "name": "scope",
265
+ "entityType": "columns",
266
+ "schema": "public",
267
+ "table": "account"
268
+ },
269
+ {
270
+ "type": "text",
271
+ "typeSchema": null,
272
+ "notNull": false,
273
+ "dimensions": 0,
274
+ "default": null,
275
+ "generated": null,
276
+ "identity": null,
277
+ "name": "password",
278
+ "entityType": "columns",
279
+ "schema": "public",
280
+ "table": "account"
281
+ },
282
+ {
283
+ "type": "timestamp",
284
+ "typeSchema": null,
285
+ "notNull": true,
286
+ "dimensions": 0,
287
+ "default": "now()",
288
+ "generated": null,
289
+ "identity": null,
290
+ "name": "created_at",
291
+ "entityType": "columns",
292
+ "schema": "public",
293
+ "table": "account"
294
+ },
295
+ {
296
+ "type": "timestamp",
297
+ "typeSchema": null,
298
+ "notNull": true,
299
+ "dimensions": 0,
300
+ "default": null,
301
+ "generated": null,
302
+ "identity": null,
303
+ "name": "updated_at",
304
+ "entityType": "columns",
305
+ "schema": "public",
306
+ "table": "account"
307
+ },
308
+ {
309
+ "type": "text",
310
+ "typeSchema": null,
311
+ "notNull": true,
312
+ "dimensions": 0,
313
+ "default": null,
314
+ "generated": null,
315
+ "identity": null,
316
+ "name": "id",
317
+ "entityType": "columns",
318
+ "schema": "public",
319
+ "table": "invitation"
320
+ },
321
+ {
322
+ "type": "text",
323
+ "typeSchema": null,
324
+ "notNull": true,
325
+ "dimensions": 0,
326
+ "default": null,
327
+ "generated": null,
328
+ "identity": null,
329
+ "name": "organization_id",
330
+ "entityType": "columns",
331
+ "schema": "public",
332
+ "table": "invitation"
333
+ },
334
+ {
335
+ "type": "text",
336
+ "typeSchema": null,
337
+ "notNull": true,
338
+ "dimensions": 0,
339
+ "default": null,
340
+ "generated": null,
341
+ "identity": null,
342
+ "name": "email",
343
+ "entityType": "columns",
344
+ "schema": "public",
345
+ "table": "invitation"
346
+ },
347
+ {
348
+ "type": "text",
349
+ "typeSchema": null,
350
+ "notNull": false,
351
+ "dimensions": 0,
352
+ "default": null,
353
+ "generated": null,
354
+ "identity": null,
355
+ "name": "role",
356
+ "entityType": "columns",
357
+ "schema": "public",
358
+ "table": "invitation"
359
+ },
360
+ {
361
+ "type": "text",
362
+ "typeSchema": null,
363
+ "notNull": true,
364
+ "dimensions": 0,
365
+ "default": "'pending'",
366
+ "generated": null,
367
+ "identity": null,
368
+ "name": "status",
369
+ "entityType": "columns",
370
+ "schema": "public",
371
+ "table": "invitation"
372
+ },
373
+ {
374
+ "type": "timestamp",
375
+ "typeSchema": null,
376
+ "notNull": true,
377
+ "dimensions": 0,
378
+ "default": null,
379
+ "generated": null,
380
+ "identity": null,
381
+ "name": "expires_at",
382
+ "entityType": "columns",
383
+ "schema": "public",
384
+ "table": "invitation"
385
+ },
386
+ {
387
+ "type": "timestamp",
388
+ "typeSchema": null,
389
+ "notNull": true,
390
+ "dimensions": 0,
391
+ "default": "now()",
392
+ "generated": null,
393
+ "identity": null,
394
+ "name": "created_at",
395
+ "entityType": "columns",
396
+ "schema": "public",
397
+ "table": "invitation"
398
+ },
399
+ {
400
+ "type": "text",
401
+ "typeSchema": null,
402
+ "notNull": true,
403
+ "dimensions": 0,
404
+ "default": null,
405
+ "generated": null,
406
+ "identity": null,
407
+ "name": "inviter_id",
408
+ "entityType": "columns",
409
+ "schema": "public",
410
+ "table": "invitation"
411
+ },
412
+ {
413
+ "type": "text",
414
+ "typeSchema": null,
415
+ "notNull": true,
416
+ "dimensions": 0,
417
+ "default": null,
418
+ "generated": null,
419
+ "identity": null,
420
+ "name": "id",
421
+ "entityType": "columns",
422
+ "schema": "public",
423
+ "table": "member"
424
+ },
425
+ {
426
+ "type": "text",
427
+ "typeSchema": null,
428
+ "notNull": true,
429
+ "dimensions": 0,
430
+ "default": null,
431
+ "generated": null,
432
+ "identity": null,
433
+ "name": "organization_id",
434
+ "entityType": "columns",
435
+ "schema": "public",
436
+ "table": "member"
437
+ },
438
+ {
439
+ "type": "text",
440
+ "typeSchema": null,
441
+ "notNull": true,
442
+ "dimensions": 0,
443
+ "default": null,
444
+ "generated": null,
445
+ "identity": null,
446
+ "name": "user_id",
447
+ "entityType": "columns",
448
+ "schema": "public",
449
+ "table": "member"
450
+ },
451
+ {
452
+ "type": "text",
453
+ "typeSchema": null,
454
+ "notNull": true,
455
+ "dimensions": 0,
456
+ "default": "'member'",
457
+ "generated": null,
458
+ "identity": null,
459
+ "name": "role",
460
+ "entityType": "columns",
461
+ "schema": "public",
462
+ "table": "member"
463
+ },
464
+ {
465
+ "type": "timestamp",
466
+ "typeSchema": null,
467
+ "notNull": true,
468
+ "dimensions": 0,
469
+ "default": null,
470
+ "generated": null,
471
+ "identity": null,
472
+ "name": "created_at",
473
+ "entityType": "columns",
474
+ "schema": "public",
475
+ "table": "member"
476
+ },
477
+ {
478
+ "type": "text",
479
+ "typeSchema": null,
480
+ "notNull": true,
481
+ "dimensions": 0,
482
+ "default": null,
483
+ "generated": null,
484
+ "identity": null,
485
+ "name": "id",
486
+ "entityType": "columns",
487
+ "schema": "public",
488
+ "table": "organization"
489
+ },
490
+ {
491
+ "type": "text",
492
+ "typeSchema": null,
493
+ "notNull": true,
494
+ "dimensions": 0,
495
+ "default": null,
496
+ "generated": null,
497
+ "identity": null,
498
+ "name": "name",
499
+ "entityType": "columns",
500
+ "schema": "public",
501
+ "table": "organization"
502
+ },
503
+ {
504
+ "type": "text",
505
+ "typeSchema": null,
506
+ "notNull": true,
507
+ "dimensions": 0,
508
+ "default": null,
509
+ "generated": null,
510
+ "identity": null,
511
+ "name": "slug",
512
+ "entityType": "columns",
513
+ "schema": "public",
514
+ "table": "organization"
515
+ },
516
+ {
517
+ "type": "text",
518
+ "typeSchema": null,
519
+ "notNull": false,
520
+ "dimensions": 0,
521
+ "default": null,
522
+ "generated": null,
523
+ "identity": null,
524
+ "name": "logo",
525
+ "entityType": "columns",
526
+ "schema": "public",
527
+ "table": "organization"
528
+ },
529
+ {
530
+ "type": "timestamp",
531
+ "typeSchema": null,
532
+ "notNull": true,
533
+ "dimensions": 0,
534
+ "default": null,
535
+ "generated": null,
536
+ "identity": null,
537
+ "name": "created_at",
538
+ "entityType": "columns",
539
+ "schema": "public",
540
+ "table": "organization"
541
+ },
542
+ {
543
+ "type": "text",
544
+ "typeSchema": null,
545
+ "notNull": false,
546
+ "dimensions": 0,
547
+ "default": null,
548
+ "generated": null,
549
+ "identity": null,
550
+ "name": "metadata",
551
+ "entityType": "columns",
552
+ "schema": "public",
553
+ "table": "organization"
554
+ },
555
+ {
556
+ "type": "text",
557
+ "typeSchema": null,
558
+ "notNull": true,
559
+ "dimensions": 0,
560
+ "default": null,
561
+ "generated": null,
562
+ "identity": null,
563
+ "name": "id",
564
+ "entityType": "columns",
565
+ "schema": "public",
566
+ "table": "session"
567
+ },
568
+ {
569
+ "type": "timestamp",
570
+ "typeSchema": null,
571
+ "notNull": true,
572
+ "dimensions": 0,
573
+ "default": null,
574
+ "generated": null,
575
+ "identity": null,
576
+ "name": "expires_at",
577
+ "entityType": "columns",
578
+ "schema": "public",
579
+ "table": "session"
580
+ },
581
+ {
582
+ "type": "text",
583
+ "typeSchema": null,
584
+ "notNull": true,
585
+ "dimensions": 0,
586
+ "default": null,
587
+ "generated": null,
588
+ "identity": null,
589
+ "name": "token",
590
+ "entityType": "columns",
591
+ "schema": "public",
592
+ "table": "session"
593
+ },
594
+ {
595
+ "type": "timestamp",
596
+ "typeSchema": null,
597
+ "notNull": true,
598
+ "dimensions": 0,
599
+ "default": "now()",
600
+ "generated": null,
601
+ "identity": null,
602
+ "name": "created_at",
603
+ "entityType": "columns",
604
+ "schema": "public",
605
+ "table": "session"
606
+ },
607
+ {
608
+ "type": "timestamp",
609
+ "typeSchema": null,
610
+ "notNull": true,
611
+ "dimensions": 0,
612
+ "default": null,
613
+ "generated": null,
614
+ "identity": null,
615
+ "name": "updated_at",
616
+ "entityType": "columns",
617
+ "schema": "public",
618
+ "table": "session"
619
+ },
620
+ {
621
+ "type": "text",
622
+ "typeSchema": null,
623
+ "notNull": false,
624
+ "dimensions": 0,
625
+ "default": null,
626
+ "generated": null,
627
+ "identity": null,
628
+ "name": "ip_address",
629
+ "entityType": "columns",
630
+ "schema": "public",
631
+ "table": "session"
632
+ },
633
+ {
634
+ "type": "text",
635
+ "typeSchema": null,
636
+ "notNull": false,
637
+ "dimensions": 0,
638
+ "default": null,
639
+ "generated": null,
640
+ "identity": null,
641
+ "name": "user_agent",
642
+ "entityType": "columns",
643
+ "schema": "public",
644
+ "table": "session"
645
+ },
646
+ {
647
+ "type": "text",
648
+ "typeSchema": null,
649
+ "notNull": true,
650
+ "dimensions": 0,
651
+ "default": null,
652
+ "generated": null,
653
+ "identity": null,
654
+ "name": "user_id",
655
+ "entityType": "columns",
656
+ "schema": "public",
657
+ "table": "session"
658
+ },
659
+ {
660
+ "type": "text",
661
+ "typeSchema": null,
662
+ "notNull": false,
663
+ "dimensions": 0,
664
+ "default": null,
665
+ "generated": null,
666
+ "identity": null,
667
+ "name": "active_organization_id",
668
+ "entityType": "columns",
669
+ "schema": "public",
670
+ "table": "session"
671
+ },
672
+ {
673
+ "type": "text",
674
+ "typeSchema": null,
675
+ "notNull": true,
676
+ "dimensions": 0,
677
+ "default": null,
678
+ "generated": null,
679
+ "identity": null,
680
+ "name": "id",
681
+ "entityType": "columns",
682
+ "schema": "public",
683
+ "table": "user"
684
+ },
685
+ {
686
+ "type": "text",
687
+ "typeSchema": null,
688
+ "notNull": true,
689
+ "dimensions": 0,
690
+ "default": null,
691
+ "generated": null,
692
+ "identity": null,
693
+ "name": "name",
694
+ "entityType": "columns",
695
+ "schema": "public",
696
+ "table": "user"
697
+ },
698
+ {
699
+ "type": "text",
700
+ "typeSchema": null,
701
+ "notNull": true,
702
+ "dimensions": 0,
703
+ "default": null,
704
+ "generated": null,
705
+ "identity": null,
706
+ "name": "email",
707
+ "entityType": "columns",
708
+ "schema": "public",
709
+ "table": "user"
710
+ },
711
+ {
712
+ "type": "boolean",
713
+ "typeSchema": null,
714
+ "notNull": true,
715
+ "dimensions": 0,
716
+ "default": "false",
717
+ "generated": null,
718
+ "identity": null,
719
+ "name": "email_verified",
720
+ "entityType": "columns",
721
+ "schema": "public",
722
+ "table": "user"
723
+ },
724
+ {
725
+ "type": "text",
726
+ "typeSchema": null,
727
+ "notNull": false,
728
+ "dimensions": 0,
729
+ "default": null,
730
+ "generated": null,
731
+ "identity": null,
732
+ "name": "image",
733
+ "entityType": "columns",
734
+ "schema": "public",
735
+ "table": "user"
736
+ },
737
+ {
738
+ "type": "timestamp",
739
+ "typeSchema": null,
740
+ "notNull": true,
741
+ "dimensions": 0,
742
+ "default": "now()",
743
+ "generated": null,
744
+ "identity": null,
745
+ "name": "created_at",
746
+ "entityType": "columns",
747
+ "schema": "public",
748
+ "table": "user"
749
+ },
750
+ {
751
+ "type": "timestamp",
752
+ "typeSchema": null,
753
+ "notNull": true,
754
+ "dimensions": 0,
755
+ "default": "now()",
756
+ "generated": null,
757
+ "identity": null,
758
+ "name": "updated_at",
759
+ "entityType": "columns",
760
+ "schema": "public",
761
+ "table": "user"
762
+ },
763
+ {
764
+ "type": "text",
765
+ "typeSchema": null,
766
+ "notNull": true,
767
+ "dimensions": 0,
768
+ "default": null,
769
+ "generated": null,
770
+ "identity": null,
771
+ "name": "id",
772
+ "entityType": "columns",
773
+ "schema": "public",
774
+ "table": "verification"
775
+ },
776
+ {
777
+ "type": "text",
778
+ "typeSchema": null,
779
+ "notNull": true,
780
+ "dimensions": 0,
781
+ "default": null,
782
+ "generated": null,
783
+ "identity": null,
784
+ "name": "identifier",
785
+ "entityType": "columns",
786
+ "schema": "public",
787
+ "table": "verification"
788
+ },
789
+ {
790
+ "type": "text",
791
+ "typeSchema": null,
792
+ "notNull": true,
793
+ "dimensions": 0,
794
+ "default": null,
795
+ "generated": null,
796
+ "identity": null,
797
+ "name": "value",
798
+ "entityType": "columns",
799
+ "schema": "public",
800
+ "table": "verification"
801
+ },
802
+ {
803
+ "type": "timestamp",
804
+ "typeSchema": null,
805
+ "notNull": true,
806
+ "dimensions": 0,
807
+ "default": null,
808
+ "generated": null,
809
+ "identity": null,
810
+ "name": "expires_at",
811
+ "entityType": "columns",
812
+ "schema": "public",
813
+ "table": "verification"
814
+ },
815
+ {
816
+ "type": "timestamp",
817
+ "typeSchema": null,
818
+ "notNull": true,
819
+ "dimensions": 0,
820
+ "default": "now()",
821
+ "generated": null,
822
+ "identity": null,
823
+ "name": "created_at",
824
+ "entityType": "columns",
825
+ "schema": "public",
826
+ "table": "verification"
827
+ },
828
+ {
829
+ "type": "timestamp",
830
+ "typeSchema": null,
831
+ "notNull": true,
832
+ "dimensions": 0,
833
+ "default": "now()",
834
+ "generated": null,
835
+ "identity": null,
836
+ "name": "updated_at",
837
+ "entityType": "columns",
838
+ "schema": "public",
839
+ "table": "verification"
840
+ },
841
+ {
842
+ "type": "uuid",
843
+ "typeSchema": null,
844
+ "notNull": true,
845
+ "dimensions": 0,
846
+ "default": "gen_random_uuid()",
847
+ "generated": null,
848
+ "identity": null,
849
+ "name": "id",
850
+ "entityType": "columns",
851
+ "schema": "public",
852
+ "table": "note"
853
+ },
854
+ {
855
+ "type": "text",
856
+ "typeSchema": null,
857
+ "notNull": false,
858
+ "dimensions": 0,
859
+ "default": null,
860
+ "generated": null,
861
+ "identity": null,
862
+ "name": "org_id",
863
+ "entityType": "columns",
864
+ "schema": "public",
865
+ "table": "note"
866
+ },
867
+ {
868
+ "type": "text",
869
+ "typeSchema": null,
870
+ "notNull": true,
871
+ "dimensions": 0,
872
+ "default": null,
873
+ "generated": null,
874
+ "identity": null,
875
+ "name": "title",
876
+ "entityType": "columns",
877
+ "schema": "public",
878
+ "table": "note"
879
+ },
880
+ {
881
+ "type": "timestamp with time zone",
882
+ "typeSchema": null,
883
+ "notNull": true,
884
+ "dimensions": 0,
885
+ "default": "now()",
886
+ "generated": null,
887
+ "identity": null,
888
+ "name": "created_at",
889
+ "entityType": "columns",
890
+ "schema": "public",
891
+ "table": "note"
892
+ },
893
+ {
894
+ "nameExplicit": true,
895
+ "columns": [
896
+ {
897
+ "value": "user_id",
898
+ "isExpression": false,
899
+ "asc": true,
900
+ "nullsFirst": false,
901
+ "opclass": null
902
+ }
903
+ ],
904
+ "isUnique": false,
905
+ "where": null,
906
+ "with": "",
907
+ "method": "btree",
908
+ "concurrently": false,
909
+ "name": "account_userId_idx",
910
+ "entityType": "indexes",
911
+ "schema": "public",
912
+ "table": "account"
913
+ },
914
+ {
915
+ "nameExplicit": true,
916
+ "columns": [
917
+ {
918
+ "value": "organization_id",
919
+ "isExpression": false,
920
+ "asc": true,
921
+ "nullsFirst": false,
922
+ "opclass": null
923
+ }
924
+ ],
925
+ "isUnique": false,
926
+ "where": null,
927
+ "with": "",
928
+ "method": "btree",
929
+ "concurrently": false,
930
+ "name": "invitation_organizationId_idx",
931
+ "entityType": "indexes",
932
+ "schema": "public",
933
+ "table": "invitation"
934
+ },
935
+ {
936
+ "nameExplicit": true,
937
+ "columns": [
938
+ {
939
+ "value": "email",
940
+ "isExpression": false,
941
+ "asc": true,
942
+ "nullsFirst": false,
943
+ "opclass": null
944
+ }
945
+ ],
946
+ "isUnique": false,
947
+ "where": null,
948
+ "with": "",
949
+ "method": "btree",
950
+ "concurrently": false,
951
+ "name": "invitation_email_idx",
952
+ "entityType": "indexes",
953
+ "schema": "public",
954
+ "table": "invitation"
955
+ },
956
+ {
957
+ "nameExplicit": true,
958
+ "columns": [
959
+ {
960
+ "value": "organization_id",
961
+ "isExpression": false,
962
+ "asc": true,
963
+ "nullsFirst": false,
964
+ "opclass": null
965
+ }
966
+ ],
967
+ "isUnique": false,
968
+ "where": null,
969
+ "with": "",
970
+ "method": "btree",
971
+ "concurrently": false,
972
+ "name": "member_organizationId_idx",
973
+ "entityType": "indexes",
974
+ "schema": "public",
975
+ "table": "member"
976
+ },
977
+ {
978
+ "nameExplicit": true,
979
+ "columns": [
980
+ {
981
+ "value": "user_id",
982
+ "isExpression": false,
983
+ "asc": true,
984
+ "nullsFirst": false,
985
+ "opclass": null
986
+ }
987
+ ],
988
+ "isUnique": false,
989
+ "where": null,
990
+ "with": "",
991
+ "method": "btree",
992
+ "concurrently": false,
993
+ "name": "member_userId_idx",
994
+ "entityType": "indexes",
995
+ "schema": "public",
996
+ "table": "member"
997
+ },
998
+ {
999
+ "nameExplicit": true,
1000
+ "columns": [
1001
+ {
1002
+ "value": "user_id",
1003
+ "isExpression": false,
1004
+ "asc": true,
1005
+ "nullsFirst": false,
1006
+ "opclass": null
1007
+ }
1008
+ ],
1009
+ "isUnique": false,
1010
+ "where": null,
1011
+ "with": "",
1012
+ "method": "btree",
1013
+ "concurrently": false,
1014
+ "name": "session_userId_idx",
1015
+ "entityType": "indexes",
1016
+ "schema": "public",
1017
+ "table": "session"
1018
+ },
1019
+ {
1020
+ "nameExplicit": true,
1021
+ "columns": [
1022
+ {
1023
+ "value": "identifier",
1024
+ "isExpression": false,
1025
+ "asc": true,
1026
+ "nullsFirst": false,
1027
+ "opclass": null
1028
+ }
1029
+ ],
1030
+ "isUnique": false,
1031
+ "where": null,
1032
+ "with": "",
1033
+ "method": "btree",
1034
+ "concurrently": false,
1035
+ "name": "verification_identifier_idx",
1036
+ "entityType": "indexes",
1037
+ "schema": "public",
1038
+ "table": "verification"
1039
+ },
1040
+ {
1041
+ "nameExplicit": false,
1042
+ "columns": ["org_id"],
1043
+ "schemaTo": "public",
1044
+ "tableTo": "organization",
1045
+ "columnsTo": ["id"],
1046
+ "onUpdate": "NO ACTION",
1047
+ "onDelete": "CASCADE",
1048
+ "name": "llm_credential_org_id_organization_id_fkey",
1049
+ "entityType": "fks",
1050
+ "schema": "public",
1051
+ "table": "llm_credential"
1052
+ },
1053
+ {
1054
+ "nameExplicit": false,
1055
+ "columns": ["user_id"],
1056
+ "schemaTo": "public",
1057
+ "tableTo": "user",
1058
+ "columnsTo": ["id"],
1059
+ "onUpdate": "NO ACTION",
1060
+ "onDelete": "CASCADE",
1061
+ "name": "account_user_id_user_id_fkey",
1062
+ "entityType": "fks",
1063
+ "schema": "public",
1064
+ "table": "account"
1065
+ },
1066
+ {
1067
+ "nameExplicit": false,
1068
+ "columns": ["organization_id"],
1069
+ "schemaTo": "public",
1070
+ "tableTo": "organization",
1071
+ "columnsTo": ["id"],
1072
+ "onUpdate": "NO ACTION",
1073
+ "onDelete": "CASCADE",
1074
+ "name": "invitation_organization_id_organization_id_fkey",
1075
+ "entityType": "fks",
1076
+ "schema": "public",
1077
+ "table": "invitation"
1078
+ },
1079
+ {
1080
+ "nameExplicit": false,
1081
+ "columns": ["inviter_id"],
1082
+ "schemaTo": "public",
1083
+ "tableTo": "user",
1084
+ "columnsTo": ["id"],
1085
+ "onUpdate": "NO ACTION",
1086
+ "onDelete": "CASCADE",
1087
+ "name": "invitation_inviter_id_user_id_fkey",
1088
+ "entityType": "fks",
1089
+ "schema": "public",
1090
+ "table": "invitation"
1091
+ },
1092
+ {
1093
+ "nameExplicit": false,
1094
+ "columns": ["organization_id"],
1095
+ "schemaTo": "public",
1096
+ "tableTo": "organization",
1097
+ "columnsTo": ["id"],
1098
+ "onUpdate": "NO ACTION",
1099
+ "onDelete": "CASCADE",
1100
+ "name": "member_organization_id_organization_id_fkey",
1101
+ "entityType": "fks",
1102
+ "schema": "public",
1103
+ "table": "member"
1104
+ },
1105
+ {
1106
+ "nameExplicit": false,
1107
+ "columns": ["user_id"],
1108
+ "schemaTo": "public",
1109
+ "tableTo": "user",
1110
+ "columnsTo": ["id"],
1111
+ "onUpdate": "NO ACTION",
1112
+ "onDelete": "CASCADE",
1113
+ "name": "member_user_id_user_id_fkey",
1114
+ "entityType": "fks",
1115
+ "schema": "public",
1116
+ "table": "member"
1117
+ },
1118
+ {
1119
+ "nameExplicit": false,
1120
+ "columns": ["user_id"],
1121
+ "schemaTo": "public",
1122
+ "tableTo": "user",
1123
+ "columnsTo": ["id"],
1124
+ "onUpdate": "NO ACTION",
1125
+ "onDelete": "CASCADE",
1126
+ "name": "session_user_id_user_id_fkey",
1127
+ "entityType": "fks",
1128
+ "schema": "public",
1129
+ "table": "session"
1130
+ },
1131
+ {
1132
+ "columns": ["org_id"],
1133
+ "nameExplicit": false,
1134
+ "name": "llm_credential_pkey",
1135
+ "schema": "public",
1136
+ "table": "llm_credential",
1137
+ "entityType": "pks"
1138
+ },
1139
+ {
1140
+ "columns": ["id"],
1141
+ "nameExplicit": false,
1142
+ "name": "account_pkey",
1143
+ "schema": "public",
1144
+ "table": "account",
1145
+ "entityType": "pks"
1146
+ },
1147
+ {
1148
+ "columns": ["id"],
1149
+ "nameExplicit": false,
1150
+ "name": "invitation_pkey",
1151
+ "schema": "public",
1152
+ "table": "invitation",
1153
+ "entityType": "pks"
1154
+ },
1155
+ {
1156
+ "columns": ["id"],
1157
+ "nameExplicit": false,
1158
+ "name": "member_pkey",
1159
+ "schema": "public",
1160
+ "table": "member",
1161
+ "entityType": "pks"
1162
+ },
1163
+ {
1164
+ "columns": ["id"],
1165
+ "nameExplicit": false,
1166
+ "name": "organization_pkey",
1167
+ "schema": "public",
1168
+ "table": "organization",
1169
+ "entityType": "pks"
1170
+ },
1171
+ {
1172
+ "columns": ["id"],
1173
+ "nameExplicit": false,
1174
+ "name": "session_pkey",
1175
+ "schema": "public",
1176
+ "table": "session",
1177
+ "entityType": "pks"
1178
+ },
1179
+ {
1180
+ "columns": ["id"],
1181
+ "nameExplicit": false,
1182
+ "name": "user_pkey",
1183
+ "schema": "public",
1184
+ "table": "user",
1185
+ "entityType": "pks"
1186
+ },
1187
+ {
1188
+ "columns": ["id"],
1189
+ "nameExplicit": false,
1190
+ "name": "verification_pkey",
1191
+ "schema": "public",
1192
+ "table": "verification",
1193
+ "entityType": "pks"
1194
+ },
1195
+ {
1196
+ "columns": ["id"],
1197
+ "nameExplicit": false,
1198
+ "name": "note_pkey",
1199
+ "schema": "public",
1200
+ "table": "note",
1201
+ "entityType": "pks"
1202
+ },
1203
+ {
1204
+ "nameExplicit": false,
1205
+ "columns": ["slug"],
1206
+ "nullsNotDistinct": false,
1207
+ "name": "organization_slug_key",
1208
+ "schema": "public",
1209
+ "table": "organization",
1210
+ "entityType": "uniques"
1211
+ },
1212
+ {
1213
+ "nameExplicit": false,
1214
+ "columns": ["token"],
1215
+ "nullsNotDistinct": false,
1216
+ "name": "session_token_key",
1217
+ "schema": "public",
1218
+ "table": "session",
1219
+ "entityType": "uniques"
1220
+ },
1221
+ {
1222
+ "nameExplicit": false,
1223
+ "columns": ["email"],
1224
+ "nullsNotDistinct": false,
1225
+ "name": "user_email_key",
1226
+ "schema": "public",
1227
+ "table": "user",
1228
+ "entityType": "uniques"
1229
+ }
1230
+ ],
1231
+ "renames": []
1232
+ }