database-design

Design database schemas with normalization, indexing, and ORM selection.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/bibekshrestha77/VehicleRent --skill database-design-bibekshrestha77
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/bibekshrestha77/VehicleRent/tree/main/VehicleRentingSystem/.agent/skills/database-design
Command: npx skills add https://github.com/bibekshrestha77/VehicleRent --skill database-design-bibekshrestha77

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Database design is a structured discipline that helps teams build scalable, maintainable data models and avoid costly migrations by guiding decisions early.

Core Features & Use Cases

  • Schema design best practices: normalization, primary keys, relationships, and naming conventions.
  • Indexing strategy and performance guidance: when to add indexes, composite indexes, and how to analyze queries.
  • ORM selection and serverless database considerations: mapping between application needs and tools like Prisma, Drizzle, Neon, Turso, and PostgreSQL.
  • Migration planning and governance: safe, zero-downtime migration patterns and change management.

Quick Start

Describe your data model and deployment constraints, and I will propose a database design, indexing plan, and ORM strategy.

Frequently Asked Questions about database-design

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

FAQPage Schema
How do I design a database schema for a scalable web application?

To design a database schema for a scalable web application, apply normalization principles, define primary keys and relationships, and establish consistent naming conventions. This ensures maintainable data models and prevents costly future migrations.

When do I need composite indexes in PostgreSQL?

You need composite indexes in PostgreSQL when queries filter on multiple columns simultaneously. Analyzing query patterns helps determine the optimal column order for composite indexes, significantly improving read performance for complex lookups.

What is the best way to plan zero-downtime database migrations?

The best way to plan zero-downtime database migrations involves using safe migration patterns and strict change governance. This approach applies safe schema modifications without locking tables or disrupting application availability.

Should I use Prisma or Drizzle ORM for a serverless database?

Choosing between Prisma or Drizzle ORM for a serverless database depends on your application needs and deployment constraints. Evaluate how each ORM maps to your schema and handles serverless connection pooling.

Does this database design approach work with serverless platforms like Neon and Turso?

Yes, this database design approach works with serverless platforms like Neon and Turso. It provides specific guidance on mapping schema design and indexing strategies to the constraints of serverless database architectures.

How do I select the right primary keys and relationships for my data model?

Selecting the right primary keys and relationships requires enforcing normalization rules and analyzing your data access patterns. Proper key selection ensures data integrity and efficient query performance across your application.