prisma-data-model

Community

Clarify Prisma data models for multi-tenant apps.

AuthorArtisanClarinets
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill helps developers understand and enforce a robust Prisma-based data model across multi-tenant applications, ensuring consistent isolation, integrity, and secure access patterns.

Core Features & Use Cases

  • Tenant isolation patterns: enforce tenant scoping on queries and mutations to prevent cross-tenant data leakage.
  • Soft delete and audit readiness: integrate soft-delete fields and audit logging for all mutations.
  • Schema evolution guidance: how to evolve Prisma models, relations, and migrations with RBAC considerations.
  • Use Case: When a new tenant signs up, adapt the schema and queries to ensure tenantId scoping and non-deleted record visibility.

Quick Start

Update prisma/schema.prisma to include tenantId and soft-delete fields, then run npm run prisma:generate, npm run prisma:migrate, and update Zod schemas in lib/validations/.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prisma-data-model
Download link: https://github.com/ArtisanClarinets/crispy-fishstick/archive/main.zip#prisma-data-model

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.