Design Database Schema
Design optimized database schemas with proper relationships, constraints, and performance considerations
$ npx claude-code-templates@latest --command="setup/design-database-schema" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Design Database Schema
Design optimized database schemas with comprehensive data modeling: $ARGUMENTS
Current Project Context
- Application type: Based on $ARGUMENTS or codebase analysis
- Data requirements: @requirements/ or project documentation
- Existing schema: @prisma/schema.prisma or @migrations/ or database dumps
- Performance needs: Expected scale, query patterns, and data volume
Task
Design comprehensive database schema with optimal structure and performance:
Schema Type: Use $ARGUMENTS to specify relational, NoSQL, hybrid approach, or normalization level Design Framework:- Requirements Analysis - Business entities, relationships, data flow, and access patterns
- Entity Modeling - Tables/collections, attributes, primary/foreign keys, constraints
- Relationship Design - One-to-one, one-to-many, many-to-many associations
- Normalization Strategy - Data consistency vs performance trade-offs
- Performance Optimization - Indexing strategy, query optimization, partitioning
- Security Design - Access control, data encryption, audit trails
Related Claude Code Commands
Setup Docker Containers
Setup Docker containerization with multi-stage builds and development workflows
Setup Development Environment
Setup comprehensive development environment with tools, configurations, and workflows
Setup Linting
Configure comprehensive code linting and quality analysis tools with automated enforcement
Design Rest Api
Design RESTful API architecture with comprehensive endpoints, authentication, and documentation
Create Database Migrations
Create and manage database migrations with proper versioning and rollback support
Update Dependencies
Update and modernize project dependencies with comprehensive testing and compatibility checks
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.