next-admin
next-admin copied to clipboard
feat: custom generator
Title
Migrate the current generator (prisma-json-schema-generator) to a custom generator that overloads the json schema given by prisma-json-schema-generator.
Type of Change
- [x] New feature
- [ ] Bug fix
- [ ] Documentation update
- [ ] Example update
- [ ] Refactoring
- [ ] Hotfix
- [ ] Security patch
- [ ] UI/UX improvement
Issue
#414
Description
This PR creates a custom Prisma generator that overloads the prisma-json-schema-generator JSON schema and creates it in the node_modules. This has 2 benefits:
- no more DMMF dependency
- no more schema imports on the app side