© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•16mo ago•
1 reply
Tristan

Composite Primary Key?

In the latest versions, what would be the correct third argument of a pgTable for composite primary key?

'''(t) => [
primaryKey("ContactToCompany_contactId_companyId").on(
t.contactId,
t.companyId,
),
],'''

gets underlined unfortunately...
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

reference composite primary key
Drizzle TeamDTDrizzle Team / help
3y ago
Composite primary key, multiple primary keys
Drizzle TeamDTDrizzle Team / help
2y ago
Compostie primary key of a composite primary key
Drizzle TeamDTDrizzle Team / help
2y ago
composite primary key migration fail
Drizzle TeamDTDrizzle Team / help
12mo ago