Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Why does Prisma require a primary and/or unique key? - Prisma
P
Prisma
•
16mo ago
•
4 replies
jacklyon
Why does Prisma require a primary and/or unique key?
Trying to understand what is involved to work on
https://github.com/prisma/prisma/issues/7944
GitHub
Allow models without unique criteria · Issue #7944 · prisma/prisma
Problem As of now each
"model must have at least one unique criteria
"
. if you don
't have one you would get an error like
: Error validating model
"
_
_
_
"
: Each model must h
.
.
.
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Does prisma allow use of Shared Primary Key?
P
Prisma / help-and-questions
2y ago
Use foreign key as primary key
P
Prisma / help-and-questions
15mo ago
why does prisma require `db` to be provided in `prisma.schema` if I'm also giving it `directUrl`?
P
Prisma / help-and-questions
6mo ago
How to update Prisma @unique
P
Prisma / help-and-questions
12mo ago