Database Design
Installation
SKILL.md
Database Design Skill
Comprehensive guide for designing efficient, scalable database schemas for Next.js applications with Supabase and PostgreSQL. From table design and relationships to Row Level Security policies and query optimization, this skill covers everything needed for robust data modeling.
Design normalized schemas, implement secure RLS policies, optimize query performance with proper indexing, and build maintainable data models that scale with your application.
Core Workflows
Workflow 1: Schema Design from Requirements
Purpose: Translate business requirements into database schema
Steps:
- Identify entities and relationships
- Define primary and foreign keys
- Choose appropriate data types
- Add constraints and defaults
- Create indexes for performance