Skip to content
CommandImported

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

Files: 1 · Size: 2.7 KB

Download the ZIP

The file carries the license of the original source.

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/commands

  • For 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:

  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

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).

Report

Similar items

  • CommandImported

    code-migrate

    Generate comprehensive migration plans and scripts for transitioning codebases between frameworks, languages, versions, or platforms with minimal disruption.

    MITFiles: 1

  • CommandImported

    create-database-migrations

    Create and manage database migrations with proper versioning and rollback support

    MITFiles: 1

  • CommandImported

    deps-upgrade

    Plan and execute safe, incremental dependency upgrades with minimal risk — including breaking-change migration paths and proper test verification.

    MITFiles: 1

  • CommandImported

    full-stack-feature

    Orchestrate end-to-end full-stack feature development across backend, frontend, database, and infrastructure layers

    MITFiles: 1

  • CommandImported

    legacy-modernize

    Orchestrate legacy system modernization using the strangler fig pattern with gradual component replacement

    MITFiles: 1

  • CommandImported

    migration-assistant

    Comprehensive system migration assistance with planning, analysis, execution, and rollback capabilities

    MITFiles: 1