drizzle-seed: how to avoid duplicate key value violates unique constraint for composite keys?
I have a usersWorkspaces table which references users and workspaces. When I run the seed script (I haven't defined any behavior for userWorkspaces), I'm getting the following error:
It seems the seed script is trying to create duplicate entries violating the composite key.
I saw that currently drizzle-seed doesn't support the third parameter in Drizzle tables, which I suppose includes the composite primary key. What's a good way to go around this?
0 Replies