Home

Awesome

Actions Status Code QL npm GitHub license semantic-release Open Source? Yes!

Prisma Sequelize Generator

A generator, which takes a Prisma 2 schema.prisma and generates Sequelize Models.

Getting Started

1. Install

npm:

npm install prisma-sequelize-generator --save-dev

yarn:

yarn add -D prisma-sequelize-generator

2. Add the generator to the schema

generator client {
  provider = "prisma-sequelize-generator"
}

With a custom output path (default=./models)

generator client {
  provider = "prisma-sequelize-generator"
  output = "custom-output-path"
}

3. Run generation

prisma:

prisma generate

Supported Node Versions

Node VersionSupport
(Maintenance LTS) 12:heavy_check_mark:
(Active LTS) 14:heavy_check_mark:
(Current) 16:heavy_check_mark: