Database Schema
---
title: Database Schema Design
category: development
tags: [database, schema, sql, normalization, data-modeling]
difficulty: intermediate
models: [claude, gpt-4, gemini]
---
# Database Schema Design
Design normalized, performant database schemas with proper relationships,
indexes, constraints, and migration strategies.
## When to Use
- Greenfield database design for new applications
- Schema refactoring for scaling bottlenecks
- Data model review and normalization assessment
- Migration planning between database systems
- Adding new features requiring schema changes
## The Technique
Good schema design balances normalization for data integrity with practical
query performance, considering the application's read/write patterns.
## Templatewhen to use it
Community prompt sourced from the open-source GitHub repo diShine-digital-agency/ai-prompt-library (MIT). A "Database Schema" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
diShine-digital-agency/ai-prompt-library · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions