database-schema-design

Design normalized SQL and NoSQL schemas with keys, indexes, and constraints.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/nashirabbash/autorepychatbot --skill database-schema-design-nashirabbash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-schema-design
Source: https://github.com/nashirabbash/autorepychatbot/tree/main/.agents/skills/database-schema-design
Command: npx skills add https://github.com/nashirabbash/autorepychatbot --skill database-schema-design-nashirabbash

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design and optimize database schemas to ensure data integrity, scalability, and maintainable data models across SQL and NoSQL systems.

Core Features & Use Cases

  • Entity definition: identify core objects and attributes, define primary keys and relationships.
  • Normalization & Relationships: apply 1NF–3NF design, establish 1:1, 1:N, and N:M relations with proper foreign keys.
  • Indexing & Migration: plan indexing, constraints, and migration strategies; Use Case: design a schema for an e-commerce platform with users, products, orders, and reviews to ensure efficient queries and data integrity.

Quick Start

Draft a complete, production-ready schema blueprint for a new project including entities, relationships, and normalization guidelines.

Frequently Asked Questions about database-schema-design

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

FAQPage Schema
How do I design a normalized database schema for a new SQL project?

To design a normalized database schema, identify core entities and attributes, define primary keys, and establish 1:1, 1:N, and N:M relationships with foreign keys. Apply 1NF–3NF design rules to ensure data integrity and scalable, maintainable data models.

What is the best way to plan database indexing and constraints for an e-commerce platform?

The best way to plan database indexing and constraints is to define entities like users, products, and orders, then apply normalization and establish relationships. This ensures efficient queries and data integrity across the e-commerce schema.

Can I use this approach for NoSQL schema migration and refactoring?

Yes, this approach supports NoSQL schema migration and refactoring. It generates migration-ready scripts and schema blueprints that define tables, relationships, and indexing strategies to ensure scalable data models during transitions.

How do you apply normalization rules like 1NF through 3NF when defining database tables?

Applying normalization rules involves structuring database tables to eliminate data redundancy. You define entity attributes, enforce primary keys, and apply 1NF, 2NF, and 3NF principles to establish proper relationships and constraints for data integrity.

When do I need to establish 1:1, 1:N, and N:M relationships with foreign keys?

You need to establish 1:1, 1:N, and N:M relationships with foreign keys when defining database entities that interact. Mapping these relationships correctly ensures normalized data models, accurate queries, and reliable data integrity across the schema.

Does this schema design process generate migration-ready scripts?

Yes, the schema design process generates migration-ready scripts. It covers entity definition, normalization, indexing plans, and constraints to produce a complete, production-ready schema blueprint for new projects or database refactoring.