database-schema
Database Schema Design
Help me design a database schema:
Requirements
- What are we storing? Describe the data.
- Relationships: How do entities relate?
- Access patterns: How will data be queried?
- Scale: Expected data volume?
- Database: PostgreSQL, MySQL, MongoDB, etc.?
Entity Design
For each entity, define:
Table Structure
- Table name (plural, snake_case)
- Columns with types
- Primary key
- Timestamps (created_at, updated_at)
- Soft delete (deleted_at) if needed
Constraints
- NOT NULL where required
- UNIQUE constraints
- CHECK constraints for validation
- DEFAULT values
Relationships
- Foreign keys
- ON DELETE behavior
- Junction tables for many-to-many
Indexes
- Primary key index
- Foreign key indexes
- Query-specific indexes
- Composite indexes where needed
Schema Generation
Generate:
- CREATE TABLE statements
- Index creation
- RLS policies (if using Supabase)
- Sample seed data
Optimization Review
Check for:
- Normalization level appropriate
- Index strategy sound
- Query patterns supported
- Future scaling considerations
Generate the complete schema with comments explaining decisions.
More from sunnypatneedi/claude-starter-kit
learning-coach
Master evidence-based study techniques including active recall, spaced repetition, deliberate practice, and accelerated learning. Build efficient learning systems that maximize retention and skill acquisition.
79productivity-gtd
Master the Getting Things Done (GTD) methodology for stress-free productivity. Implement capture, clarify, organize, reflect, and engage workflows with contexts, projects, and weekly reviews.
63journaling
Build effective journaling practices for clarity, growth, and self-awareness. Includes morning pages, gratitude journaling, reflection prompts, problem-solving templates, and habit-building strategies.
39ugc-content-creator
Create short-form video content for TikTok, Instagram Reels, and YouTube Shorts. Master hooks, scripts, trends, platform-native styling, and the organic-to-ad content pipeline for maximum reach and engagement.
29writing-coach
Master clear writing, editing techniques, style improvement, and effective communication. Transform complex ideas into simple, compelling prose that readers understand and remember.
18daily-review
Guide a daily reflection and planning session
12