Hi All I am new to Prisma and i was looking into m...
# orm-help
h
Hi All I am new to Prisma and i was looking into migrations using Prisma, for monorepos(Lerna - https://lerna.js.org/) So what i am looking for is.. that i place and maintain each model files or Prisma schema files under its own model specific folder which relates to the feature or resource. For example: User Module will have its own folder and all the things realted to it including the model file. User_Hobbies will hve its own folder and all the things realted to it including the model file. So will the prisma be able to pick model/Schema Files from various folders OR i will have to place them in the same folder, So that Prisma picks it up from the common model folder.
r
Hey @Harish Kumar 👋 If you’re looking to separate the models you define in
schema.prisma
in separate files, it’s not possible currently as Prisma only supports a single
schema.prisma
for now. You can track the status of the request here for more updates 🙂 Also as a workaround, you can keep your database operation in a single folder in your monorepo instead of individual modules and then reference the types/schema directly from that.
h
okay Ryan thanks for that, i will try and get back
💯 1