setup/design-database-schema
Designs a database schema with relationships, constraints and performance in mind.
- Kind
- Prompt
- Works with
- Claude Code
- Source
- Claude Code Templates @ 72e5f237f64d
- Path
- cli-tool/components/commands/setup/design-database-schema.md
- Jobs
- Planning
- Topics
- Databases
Credit
- Made by
- davila7
- Original
- github.com/davila7/claude-code-templates/blob/72e5f237f64d70a…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/commands/design-database-schema.md (run as /design-database-schema)
- Runs scripts
- Yes
- allowed-tools includes Bash
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- 72e5f237f64d
- Licence
- MIT
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# 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**: 1. **Requirements Analysis** - Business entities, relationships, data flow, and access patterns 2. **Entity Modeling** - Tables/collections, attributes, primary/foreign keys, constraints 3. **Relationship Design** - One-to-one, one-to-many, many-to-many associations 4. **Normalization Strategy** - Data consistency vs performance trade-offs 5. **Performance Optimization** - Indexing strategy, query optimization, partitioning 6. **Security Design** - Access control, data encryption, audit trails …