database-design

Design database schemas with normalization, indexing, and migration strategies.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps teams design robust, scalable database schemas by guiding decisions around normalization, indexing, and ORM choices.

Core Features & Use Cases

  • Design normalization strategies that minimize redundancy while supporting efficient queries.
  • Select appropriate indexing and foreign key strategies to optimize performance and maintain data integrity.
  • Use-case examples include building a multi-tenant schema, implementing soft deletes, and choosing between serverless or hosted databases based on deployment needs.

Quick Start

Outline your data domain and deployment context, then ask for a tailored schema design including normalization, indexing, and migration 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 scalable database schema for a multi-tenant application?

Designing a scalable multi-tenant database schema involves applying normalization strategies to minimize data redundancy while ensuring efficient queries. You must select appropriate indexing and foreign key constraints to maintain data integrity across isolated tenant boundaries.

What is the best way to plan safe database migrations for production data?

Safe database migrations require enforcing best practices for primary and foreign key constraints, along with strict timestamp management. Planning migrations ensures structural schema changes occur without disrupting data integrity or causing deployment downtime.

How do I choose between serverless and on-premises database deployment options?

Choosing between serverless and on-premises databases depends on your specific project size and deployment context. Evaluating your data domain alongside scalability requirements helps determine the most appropriate hosting strategy for your schema.

When do I need database normalization and how many indexes should I use?

Database normalization is needed to minimize data redundancy and support efficient queries. You should select indexing strategies based on your specific query patterns to optimize read performance without compromising write speed.

Can I implement soft deletes while maintaining foreign key constraints?

Implementing soft deletes while maintaining foreign key constraints requires careful schema design. You can enforce data integrity by using timestamp columns to mark records as deleted instead of physically removing them from the database tables.

Does ORM selection affect my database schema normalization strategy?

ORM selection directly impacts your database schema normalization strategy because different Object-Relational Mappers interact with tables and indexes uniquely. Choosing the right ORM helps balance abstraction with raw query performance optimization.