composite primary key approach shows deprecate
Hi, if I follow this approach:
https://orm.drizzle.team/docs/indexes-constraints#composite-primary-key
to create a primary key. I get a depecrated notification.
Is there a new preferred method and are the docs out of date?
Drizzle ORM - Indexes & Constraints
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
1 Reply
(table) => [primaryKey({ columns: [table.id, table.email] })]
Try this
this new approach was just pushed 2 days ago, so docs not yet updated