Skip to content

Instantly share code, notes, and snippets.

@deyvisonborges
Last active March 26, 2022 06:40
Show Gist options
  • Save deyvisonborges/d99b832b9e418882962f20beaaeeb312 to your computer and use it in GitHub Desktop.
Save deyvisonborges/d99b832b9e418882962f20beaaeeb312 to your computer and use it in GitHub Desktop.
Como isolar modelos no Prisma

Versão beta

Ainda vou aprimorar o código

Dentro da pasta prisma, criar uma pasta chamada schemas. No schemas, você pode criar seus modelos separados.

dentro do package.json

  "scripts": {
    "gen:schema": "awk 1 ./prisma/schemas/*.prisma >> ./prisma/schema.prisma && npx prisma format"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment