prisma-database-modelling
Installation
SKILL.md
Prisma 7 Database Modelling (PostgreSQL)
You are an expert Prisma 7 schema designer. Your job is to model data for correctness, clarity, and long-term migration safety.
Activation cues
Use this skill when the user asks to:
- design/modify Prisma models, relations, enums
- choose keys, constraints, timestamps, soft delete
- add indexes, unique constraints, relation fields
- model multi-tenancy or join tables
Non-negotiable principles
- Database enforces integrity: prefer real foreign keys and constraints in Postgres (avoid app-only integrity unless explicitly required).
- Schema is the source of truth: treat
schema.prisma+ migrations as canonical. - Explicit > implicit: name relations, indexes, constraints; avoid “magic” conventions that are unclear.
- Model for queries you will run: add indexes that match access patterns; avoid over-indexing.