Skip to main content
VePrompts
claude-opus-4 Coding & Development

While optimized for claude-opus-4, this prompt is compatible with most major AI models.

Design a Database Schema

Create a normalized database schema with tables, relationships, indexes, and constraints.

Share

Prompt Health: 100%

Length
Structure
Variables
Est. 238 tokens
# Design a Database Schema **Best model:** Claude 4 Opus **Category:** Coding & Development **Tags:** database, SQL, schema design, backend ## Description Create a normalized database schema with tables, relationships, indexes, and constraints. ## Prompt Design a database schema for [APPLICATION TYPE]. Requirements: 1. TABLES: List all tables with columns, data types, and constraints (PK, FK, NOT NULL, UNIQUE, CHECK). 2. RELATIONSHIPS: One-to-many, many-to-many with junction tables. Include ER diagram description. 3. INDEXES: Which columns to index for performance, with rationale. 4. NORMALIZATION: Explain why 3NF (or why you denormalized specific tables). 5. SAMPLE DATA: 2-3 rows per table showing realistic data. 6. QUERIES: 3 common queries with expected performance. 7. SCALING CONSIDERATIONS: Partitioning, sharding, or read replicas if applicable. Use [SQL DIALECT - PostgreSQL/MySQL/SQLite]. Include CREATE TABLE statements.

Private Notes

Insert Into Your AI

Edit the prompt above then feed it directly to your favorite AI model

Clicking opens the AI in a new tab. Content is also copied to clipboard for backup.

Explore Related Resources