prisma2 Questions
1
I would like to change the name and location of the prisma folder. Currently it called prisma and it sits on the root folder of my nextjs project. I'd like to name it db and have it within the src ...
2
Solved
how can i set string(varchar) length for string type be 50 and define a column be TEXT in prisma schema, for user table i want name be varchar(50) and bio be Text column.
im creating my tables by p...
Obau asked 24/7, 2020 at 18:9
1
Solved
I'm trying to make two 1:1 relations in one model in Prisma ORM, but got following error:
Error validating model "Person": Ambiguous relation detected. The fields placeOfBirth and placeO...
Conductivity asked 6/5, 2021 at 5:29
0
I've been looking at Prisma (Nodejs ORM) and have been wondering how to share the autogenerated TypeScript types with a front-end application. As far as I can tell, the Prisma client auto-generates...
1
Solved
I have this not so straightforward model relationship in Prisma. User --< Enrollment >-- Course and I can't figure out how to ensure the Course title field is unique just among that user's cr...
From asked 23/4, 2021 at 8:59
0
Say one has a prisma data model specified like this
// schema.prisma
model Transaction {
id Int @id @default(autoincrement())
// other stuff...
}
What if one wanted to start the ids at some arbitr...
© 2022 - 2024 — McMap. All rights reserved.