mysql-db-model-design

Community

Standardize MySQL data models and schemas.

Authora747895159
Version1.0.0
Installs0

System Documentation

What problem does it solve?

在设计、创建或修改 MySQL 数据库表时,强制遵循 Buffalo 项目的统一规范,确保审计字段、默认值与命名约定的一致性。

Core Features & Use Cases

  • 统一审计字段注入:为每张表自动添加 version、is_deleted、created_time、created_by、modified_time、modified_by 等字段并确保 NOT NULL 与默认值。
  • 默认值与 NOT NULL 强制:除主键外的所有字段都必须有默认值,数字型默认为 0,字符串默认为 '',并提供字段注释。
  • DDL 模板与合规输出:提供符合规范的 CREATE TABLE 模板和字段注释,便于快速落地。
  • 参考文档与映射:依赖 references/mysql_db_standard.md,确保与项目标准一致。

Quick Start

Generate a standardized CREATE TABLE statement for a new table following the 6 audit fields and default value rules.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: mysql-db-model-design
Download link: https://github.com/a747895159/spring-cloud-study-alibaba/archive/main.zip#mysql-db-model-design

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.