Make two columns unique (composite primary key)
Hey everyone,
I need to make the
provider_id
and provider_user_id
to be unique together (composite primary key).
After migration it returns that it is not allowed to have multiple primary keys. But it does seem to be the way Drizzle ORM want it to work, I think.
Anyone in here that encountered this before with TypeScript, Drizzle ORM?
Thank you in advance!1 Reply
@Paddy I have a solution if you still need it. Feel free to ping me here.