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
Sooo we're back to using prisma, which is cool and all, but it doesn't have support for splitting your db schema over multiple files. There's this cool library called prisma-import that might help with this.
For now I'll just keep it in one file, since that's what's officially supported. But in the future it might be worth checking this out.
This script could be help in both model split into multiple files and also for enum & types of Prisma ORM. And there is also a way to import predefined data into database too.
Hope, it would be solve your problem.
Thanks
Sooo we're back to using prisma, which is cool and all, but it doesn't have support for splitting your db schema over multiple files. There's this cool library called prisma-import that might help with this.
For now I'll just keep it in one file, since that's what's officially supported. But in the future it might be worth checking this out.
There is also an open issue in the prisma repo for tracking official support: prisma/prisma#2377. Two PRs for this functionality have already been merged (prisma/prisma-engines#4243 and prisma/prisma-engines#4787), so it's probably coming soon :)
The text was updated successfully, but these errors were encountered: