bb-tech-prisma

Enforce soft deletes, model indexing, and transactional bulk methods in Prisma ORM.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/valentinmathey/Skills-Back-Automation --skill bb-tech-prisma
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bb-tech-prisma
Source: https://github.com/valentinmathey/Skills-Back-Automation/tree/main/skills/bb-tech-prisma
Command: npx skills add https://github.com/valentinmathey/Skills-Back-Automation --skill bb-tech-prisma

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prisma ORM integration often leads to unsafe deletions, missing indexing, and inefficient bulk operations. This skill codifies safe, scalable patterns to protect data integrity and improve performance in Prisma-driven projects.

Core Features & Use Cases

  • Prohibición de Borrados Físicos (Soft Delete): Implementa soft deletes actualizando deletedAt o un flag en lugar de eliminar registros.
  • Indexación Consciente: Asegura índices en claves foráneas y columnas consultadas con frecuencia.
  • Operaciones en Lote Seguras: Prefiere updateMany / createMany y maneja transacciones para cambios masivos.

Quick Start

Configura tus modelos para usar soft delete y añade índices de claves foráneas.

Frequently Asked Questions about bb-tech-prisma

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement soft deletes in Prisma ORM?

To implement soft deletes in Prisma ORM, update a deletedAt timestamp or a boolean flag instead of executing physical deletions, ensuring data integrity and recoverability for critical entities.

What is the best way to handle bulk operations in Prisma ORM?

The best way to handle bulk operations in Prisma ORM is using transactional bulk methods like updateMany and createMany, which ensure safe and efficient modifications for large-scale data changes.

Why do I need indexing on foreign keys in my Prisma schema?

Indexing on foreign keys in your Prisma schema is needed to optimize database performance and query speed, especially when querying critical entities or handling complex PrismaClient operations frequently.

Can I prevent physical deletions when updating critical entities with PrismaClient?

Yes, you can prevent physical deletions when updating critical entities with PrismaClient by enforcing explicit soft-delete patterns that replace delete operations with deletedAt or flag updates.

When should I use transactions for bulk operations in Prisma?

You should use transactions for bulk operations in Prisma whenever executing updateMany or createMany methods on critical entities, ensuring data consistency and satisfying safe bulk operations during complex schema changes.