Prisma Relations Patterns
Provides standardized implementation patterns for modeling and querying complex database relationships using Prisma ORM.
Prisma Relations Patterns is a specialized skill that enables Claude to architect robust database schemas by providing pre-defined patterns for all relationship types. It covers essential modeling scenarios including one-to-one, one-to-many, and many-to-many relationships (both implicit and explicit). Beyond basic schema design, the skill provides optimized TypeScript query snippets for nested creates, upserts, and recursive self-relations like category trees or follower systems. This ensures developers can maintain referential integrity through proper cascade configurations while utilizing efficient data loading strategies like eager loading and selective field inclusion.