database-ops
CommunityMaster Prisma schema, migrations, and data models.
Authorcode-craka
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Managing database schema changes, ensuring data integrity, and optimizing queries can be complex and error-prone. This Skill provides a structured approach to database operations for Afilo's digital marketplace using Prisma ORM with Neon PostgreSQL.
Core Features & Use Cases
- Schema Management: Guides through updating
schema.prismaand generating database migrations with a clear checklist. - Query Optimization: Offers best practices for efficient data retrieval, including using
includefor related data and batch operations. - Data Relationships: Defines and manages complex relationships between core models like products, users, and chat systems.
- Use Case: A data engineer needs to add a new field to the
productstable and ensure all related data models are updated. This skill provides a checklist for schema migration, helps optimize queries for the new field, and ensures data validation.
Quick Start
Use the database-ops skill to add a new is_featured boolean field to the products table in schema.prisma, then generate and apply the necessary migration.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: database-ops Download link: https://github.com/code-craka/afilo-nextjs-shopify-app/archive/main.zip#database-ops Please download this .zip file, extract it, and install it in the .claude/skills/ directory.