What problem does it solve? Keeping database schemas synchronized between ERD documentation and JPA entities is error-prone, and hand-written migration SQL risks data loss or broken foreign keys. This Skill analyzes the differences and produces safe, transactional MySQL migration scripts with rollback plans. ## Core Features & Use Cases - Diff Analysis: Compares ERD documents (ERD.md, ERD_ALIGNMENT.md) against current JPA entity classes to build a structured change list covering table renames, column changes, and FK updates. - Safe SQL Templates: Provides templates for table/column renaming, foreign key changes, nullable column additions, and seed data updates, all wrapped in transactions with paired rollback scripts. - Entity & Doc Synchronization: Guides updating @Table, @Column, and @JoinColumn annotations plus ERD documentation after the migration runs. - Use Case: When renaming a table referenced by multiple foreign keys, the Skill orders child-table changes before parent-table changes and emits both the forward migration and rollback SQL. ## Quick Start Ask the assistant to generate a migration script by comparing doc/ERD.md with the current JPA entities, for example: create a migration script for the ERD alignment changes.