database-schema-design

Plan database schemas with migrations and constraints for PostgreSQL, MySQL, and SQLite.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/amaledtuning/CODEX_Skills --skill database-schema-design-amaledtuning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-schema-design
Source: https://github.com/amaledtuning/CODEX_Skills/tree/main/skills/omer-metin-skills-for-antigravity-database-schema-design
Command: npx skills add https://github.com/amaledtuning/CODEX_Skills --skill database-schema-design-amaledtuning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

World-class database schema design that reduces production outages by ensuring robust data modeling, well-planned migrations, and strong relational integrity.

Core Features & Use Cases

  • Explicit NOT NULL with sensible defaults to ensure data integrity.
  • Safe, reversible migrations with zero-downtime strategies across PostgreSQL, MySQL, and SQLite.
  • Pattern-driven guidance for foreign keys, indexing, and ORM alignment to prevent common pitfalls, enabling scalable data models for large systems.

Quick Start

Provide your current schema goals and I will generate a scalable, safe Prisma/Drizzle model with reversible migrations.

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 scalable database schema with safe migrations?

Zero-downtime database migrations require safe rollback strategies and pattern-driven guidance for indexing and relationship integrity. This approach prevents production outages by ensuring schema changes are fully reversible across PostgreSQL, MySQL, and SQLite.

What is the best way to enforce data integrity in PostgreSQL schema design?

The best way to enforce data integrity in PostgreSQL schema design is by applying explicit NOT NULL constraints with sensible defaults alongside strict foreign key constraints. These patterns prevent common pitfalls and maintain robust relational models.

Can I use Prisma ORM with zero-downtime database migrations?

Yes, ORM integrations like Prisma or Drizzle support zero-downtime database migrations when paired with pattern-driven schema design. You get scalable data models aligned with safe rollback strategies to prevent production outages during upgrades.

Does this database schema design approach work across MySQL and SQLite?

Yes, this database schema design approach works across MySQL and SQLite environments. It applies consistent pattern-driven guidance for foreign keys, indexing, and safe rollback strategies to ensure scalable data models across different database systems.

When do I need safe rollback strategies for database schema changes?

You need safe rollback strategies for database schema changes when executing production-grade migrations that demand zero-downtime upgrades. Reversible migrations prevent data loss and production outages if a schema deployment fails or encounters unexpected errors.