What problem does it solve?
This Skill provides a standardized approach to managing your application's database schema, migrations, seeding, and query patterns using Prisma. It ensures consistency and efficiency in database operations.
Core Features & Use Cases
- Schema Definition: Enforces conventions for defining Prisma models, including IDs, timestamps, and relations.
- Migration Management: Guides the process of creating and applying database migrations.
- Query Optimization: Demonstrates best practices for writing efficient database queries, including relation inclusion and filtering.
- Seeding Data: Provides a pattern for populating the database with initial or test data.
- Use Case: When you need to add a new table to your database, define its fields and relations according to project standards, generate the migration, and seed it with initial values.
Quick Start
Use the prisma-database skill to create a new migration after updating the schema.prisma file.