prisma-schema-trans
v1.5.4
Published
Prisma schema post-processor for change names and fields to camelcase and pluralize for push db to a prisma schema.
Downloads
158
Readme
prisma-schema-trans
Description
Prisma schema post-processor for change names and fields to camelcase and pluralize for push db to a prisma schema.
Usage
$ prisma-schema-trans -h
ESModule config file
schema-trans.mjs
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.