An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# prisma-schema-trans [![npm version](https://badge.fury.io/js/prisma-schema-trans.svg)](https://www.npmjs.com/package/prisma-schema-trans) [![codecov](https://codecov.io/gh/botika/prisma-schema-transformer/branch/master/graph/badge.svg?token=5AQGYN30DL)](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)