Fr0xy
Fr0xy
PPrisma
Created by Chrissy on 8/10/2024 in #help-and-questions
Prisma-to-sql
4 replies
PPrisma
Created by mata on 8/13/2024 in #help-and-questions
Share prisma schema and client between two backend services.
generator clientHttp {
provider = "prisma-client-js"
output = "../httpServer/node_modules/@prisma/client"
}

generator clientWs {
provider = "prisma-client-js"
output = "../wsServer/node_modules/@prisma/client"
}
generator clientHttp {
provider = "prisma-client-js"
output = "../httpServer/node_modules/@prisma/client"
}

generator clientWs {
provider = "prisma-client-js"
output = "../wsServer/node_modules/@prisma/client"
}
4 replies
PPrisma
Created by mata on 8/13/2024 in #help-and-questions
Share prisma schema and client between two backend services.
Your folder structure is good, what you need to do is having 2 generators inside you schema.prisma (https://www.prisma.io/docs/orm/prisma-schema/overview/generators) in this way you will be able to specify the output of both like this:
4 replies
PPrisma
Created by citrinitas on 8/14/2024 in #help-and-questions
index without preview feature
I am using this often
4 replies
PPrisma
Created by citrinitas on 8/14/2024 in #help-and-questions
index without preview feature
I dont think this is a preview feature, here is the doc: https://www.prisma.io/docs/orm/prisma-schema/data-model/indexes
4 replies