
Database Schema Design
Handles the fundamentals of relational database design with a focus on normalization forms and relationship patterns. You'll use this when you're designing schemas from scratch or refactoring existing ones that have grown messy. It walks through 1NF, 2NF, and 3NF with concrete examples of eliminating repeating groups, partial dependencies, and transitive dependencies. Covers both PostgreSQL and MySQL. The approach is straightforward and example-driven, showing you the wrong way and the right way side by side. Honestly, if you already know your normal forms well, this is basic, but it's solid for getting teams on the same page about schema design principles.
- skills.sh installs
- 597
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill database-schema-design --agent claude-codeInstalls into .claude/skills of the current project.
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()
);
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Backend & APIs, AI & Agent Building, Productivity & Planning, Design & UI/UX, Databases
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Aws S3 Management595
- Database Query Optimization593
- Memory Leak Detection589
- Database Backup Restore588
- Technical Roadmap Planning582
- Accessibility Testing580
- Push Notification Setup580
- Database Schema Documentation576
- App Store Deployment569
- Mobile App Debugging568
- Security Audit Logging568
- Bundle Size Optimization567
- Process Mapping563
- Oauth Implementation558
- Integration Testing557
- Memory Optimization552
- Semantic Versioning552
- Caching Strategy551
- Real Time Features548
- Web Performance Audit548
- Browser Debugging545
- Mobile Offline Support545
- Design System Creation543
- Gcp Cloud Run541