DT
Drizzle TeamAzzam
How to add multiple tables in a single export object
So for example I have these tables
now I would like to have a single export object for these tables
What I tried to do
now this export has three tables inside it where i can insert data to them at once
the issue is when using "and" in
it creates multiple zod intersections, so what is the best way to add multiple tables schema in a single export zodobject in drizzle.
A
Azzam•15d ago
nvm using works
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More PostsError: No database connection string was provided to `neon()`.Hi.
Here is my code:
`import { neon } from "@neondatabase/serverless";
import "dotenv/config";
imSchema for that links user > friendsHello, I am trying to do a schema that links users and friends (https://gist.github.com/imaginamundocannot migrate database: PostgresError: unterminated /* comment at or near "/*# logs:
```
Tasks: 10 successful, 10 total
Cached: 2 cached, 10 total
Time: 6.717s
📦 Issue with JSON + TypScriptHere's my code:
```ts
.findFirst({ where: eq(globalBans.offender.id, userID) });
```
Here's my schem