Database Schema Design
Normalization-focused schema design guide for PostgreSQL and MySQL covering 1NF through 3NF and entity-relationship patterns.
- CCM score
- 39 of 100
- skills.sh installs
- 601
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers table design from new schemas through normalization analysis, with 1NF, 2NF, and 3NF reference guides
- Includes a Quick Start that splits a repeating-group
product_idscolumn into anordersandorder_itemstable pair - Provides an entity-relationship patterns guide for 1:1, 1:N, and N:N relationships with foreign key constraints
- Designed for planning data models and table structures for PostgreSQL and MySQL before deployment
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill database-schema-design -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Database Schema Design
Table of Contents
Overview
Design scalable, normalized database schemas with proper relationships, constraints, and data types. Includes normalization techniques, relationship patterns, and constraint strategies.
When to Use
- New database schema design
- Data model planning
- Table structure definition
- Relationship design (1:1, 1:N, N:N)
- Normalization analysis
- Constraint and trigger planning
- Performance optimization at schema level
Quick Start
PostgreSQL - Eliminate Repeating Groups:
-- NOT 1NF: repeating group in single column
CREATE TABLE orders_bad (
id UUID PRIMARY KEY,
customer_name VARCHAR(255),
product_ids VARCHAR(255) -- "1,2,3" - repeating group
);
-- 1NF: separate table for repeating data
CREATE TABLE orders (
id UUID PRIMARY KEY,
customer_name VARCHAR(255),
created_at TIMESTAMP DEFAULT NOW()
);
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Category
- Databases
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Aws S3 Management600
- Database Backup Restore596
- Database Query Optimization596
- Memory Leak Detection594
- Technical Roadmap Planning585
- Accessibility Testing584
- Push Notification Setup583
- Database Schema Documentation581
- Data Visualization577
- Security Audit Logging574
- App Store Deployment572
- Mobile App Debugging572
- Bundle Size Optimization570
- Process Mapping570
- Integration Testing566
- Oauth Implementation561
- Memory Optimization557
- Semantic Versioning556
- Caching Strategy553
- Web Performance Audit551
- Real Time Features550
- Browser Debugging548
- Mobile Offline Support548
- Causal Inference546
Similar to Database Schema Design
More Databasesdatabase-migration-managementaj-geddes/useful-ai-prompts506 installsStructured database migration guidance covering schema versioning, rollbacks, and data transformations for PostgreSQL and MySQL.
nosql-database-designaj-geddes/useful-ai-prompts495 installsSchema design guidance for MongoDB and DynamoDB covering document modeling, indexing, and query-driven denormalization.
postgresql-table-designwshobson/agents29.8K installsRules-driven PostgreSQL schema guidance covering types, constraints, indexing, partitioning, and gotchas, with a deeper reference file.
postgresqlsickn33/agentic-awesome-skills664 installsSchema design guidance for PostgreSQL covering data types, constraints, indexing, and table patterns, with explicit gotchas.