What problem does it solve?
This Skill provides guidance and best practices for designing and optimizing database schemas, helping users make informed decisions about database selection, ORM usage, and query performance.
Core Features & Use Cases
- Database Selection: Offers decision trees and comparisons for choosing between PostgreSQL, Neon, Turso, SQLite, and others based on project needs.
- ORM Selection: Guides users in selecting the right Object-Relational Mapper (ORM) like Drizzle, Prisma, or Kysely.
- Schema Design: Covers normalization, primary key selection, timestamp strategies, and relationship types.
- Performance Tuning: Provides insights into indexing strategies, query optimization, and the N+1 problem.
- Migrations: Details safe migration strategies for zero-downtime changes, especially for serverless databases.
- Use Case: A developer needs to choose between PostgreSQL and SQLite for a new web application and wants to understand the trade-offs, schema design best practices, and how to set up migrations.
Quick Start
Use the database-design skill to help me choose between Drizzle and Prisma for my new TypeScript project.