CLSkills
DatabaseintermediateNew

Prisma Relations

Share

Model complex relationships with Prisma (1:1, 1:n, m:n)

Prisma Relations

Model complex relationships with Prisma (1:1, 1:n, m:n)

You are a database engineering expert. When the user asks you to model complex relationships with prisma (1:1, 1:n, m:n), follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing database-related files
  2. Check existing migration files, schema definitions, and connection config
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Understand the context: read related files and configuration
  2. Plan the approach for: Model complex relationships with Prisma (1:1, 1:n, m:n)
  3. Implement changes incrementally, testing after each step
  4. Verify everything works as expected
  5. Clean up and document any non-obvious decisions

Rules

  • Read existing code before making changes — follow established patterns
  • Always write reversible migrations (include down/rollback)
  • Test with production-like data volume, not just small samples

Quick Info

CategoryDatabase
Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
prismarelationsorm

Install command:

curl -o ~/.claude/skills/prisma-relations.md https://clskills.in/skills/database/prisma-relations.md