You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
datasource db {
provider = "postgresql"
url = env("DB_URL")
}
generator client {
provider = "prisma-client-js"
}
model Doctor {
doctor_id String @id @default(cuid())
first_name String
license_id Int
@@index([doctor_id, license_id], map: "doctor_id_license_id_unique")
}
The Prisma schema is generated with errors because the generated schema looks as follows:
datasource db {
provider = "postgresql"
url = env("DB_URL")
}
generator client {
provider = "prisma-client-js"
}
model Doctor {
id String @id @default(cuid()) <--- id and not doctor_id
first_name String
license_id Int
@@index([doctor_id, license_id], map: "doctor_id_license_id_unique") <--- but here is still doctor_id
}
What you expected to happen
No compilation errors
How to reproduce
import a schema like in the example above
Amplication version
No response
Environment
No response
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
What happened?
When we import this schema:
The Prisma schema is generated with errors because the generated schema looks as follows:
What you expected to happen
No compilation errors
How to reproduce
import a schema like in the example above
Amplication version
No response
Environment
No response
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: