https://github.com/zzau13/prisma-schema-transformer
Prisma schema post-processor for change names and fields to camelcase and pluralize for push db to a prisma schema
https://github.com/zzau13/prisma-schema-transformer
camelcase migration prisma schema
Last synced: about 1 year ago
JSON representation
Prisma schema post-processor for change names and fields to camelcase and pluralize for push db to a prisma schema
- Host: GitHub
- URL: https://github.com/zzau13/prisma-schema-transformer
- Owner: zzau13
- License: mit
- Created: 2022-05-19T10:28:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-05-12T22:57:19.000Z (about 1 year ago)
- Last Synced: 2025-05-13T00:49:06.426Z (about 1 year ago)
- Topics: camelcase, migration, prisma, schema
- Language: TypeScript
- Homepage:
- Size: 2.52 MB
- Stars: 6
- Watchers: 0
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prisma-schema-trans [](https://www.npmjs.com/package/prisma-schema-trans) [](https://codecov.io/gh/botika/prisma-schema-transformer)
## Description
Prisma schema post-processor for change names and fields to camelcase and pluralize for push db to a prisma schema.
## Usage
```bash
$ prisma-schema-trans -h
```
## ESModule config file
> schema-trans.mjs
```javascript
import { defConfig } from 'prisma-schema-trans';
// Default options
export default defConfig({
deny: [],
omitPluralFields: [],
pluralFields: true,
updatedAtByTrigger: false,
});
```
## Purpose
Facilitate migrations from other frameworks or programming languages.
Creating a prisma schema from an existing database.
Call `prisma-db-pull` with a minimal configuration in a `prisma/back.prisma` file, documentation is not override.
## License
Project is [MIT licensed](./LICENSE).
Fork from [https://github.com/IBM/prisma-schema-transformer](https://github.com/IBM/prisma-schema-transformer)