Lightlines
By prisma

prisma-next-contract

prisma1.9k installs

Change your data contract and regenerate its types.

What it does

Edits a Prisma Next data contract and emits its canonical contract representation and TypeScript types.

When to use it

Use when changing models, fields, relations, indexes, enums, namespaces, control policies, or extension configuration, or troubleshooting contract emission.

How to use it

Give it a contract change in an existing project; it edits the source and regenerates the colocated contract artifacts.

What you provide

  • An existing project

Latest review

What you need · 4

Requires the Prisma Next CLI to emit the contract after source edits.

An existing database enables the optional brownfield workflow that infers a contract from its live schema.


Access · 2

This skill

an existing database

Read

Reads the live database schema

@prisma-next/extension-pgvector

Execute

Installs the pgvector extension package