database-design-guide

Community

Design robust, scalable MySQL schemas.

Authoronzhang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This guide provides a comprehensive framework for designing robust, scalable MySQL schemas, ensuring consistency across projects and reducing data integrity risks.

Core Features & Use Cases

  • Standardized naming conventions (snake_case) for databases, tables, and columns, with clear, descriptive names.
  • Thoughtful data typing guidance, including primary key strategy, audit fields, and proper use of datetime, decimal, and JSON types.
  • Indexing and normalization guidance to optimize query performance while balancing denormalization when appropriate for typical read patterns.
  • Versioned database migrations and environment-specific naming to support Flyway or Liquibase workflows.
  • Real-world templates and patterns tailored for Spring Boot + MyBatis stack, such as user, role, and borrow records tables.

Quick Start

Create a base schema for a BookNexus-like project using snake_case naming, BIGINT unsigned primary keys, DATETIME(3) audit fields, utf8mb4 charset, and Flyway-based migrations.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: database-design-guide
Download link: https://github.com/onzhang/BookNexus/archive/main.zip#database-design-guide

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.