design-database-schema
Design optimized database schemas with proper relationships, constraints, and performance considerations
Imported description, not reviewed yet
This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.
Download
Install
After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.
For this project
It goes in: .claude/commands/
mkdir -p .claude/commands && unzip ~/Downloads/design-database-schema.zip -d .claude/commandsFor your account on the whole machine
It goes in: ~/.claude/commands/
mkdir -p ~/.claude/commands && unzip ~/Downloads/design-database-schema.zip -d ~/.claude/commands
Instructions
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
Advanced Patterns: Implement temporal data, soft deletes, JSONB fields, full-text search, audit logging, and scalability patterns.
Validation: Ensure referential integrity, data consistency, query performance, and future extensibility.
Output: Complete schema design with DDL scripts, ER diagrams, performance analysis, and migration strategy.
Files
- LICENSE1 KB
- design-database-schema.md1.7 KB
What the automatic scan found
We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.
- Needs a lookAllowed tools with no limits
In file cli-tool/components/commands/setup/design-database-schema.md
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).