本项目基于原作者starUML的 ddl的插件进行修改。
对MySQL进行了更加完善的适配。
增加了主键自增,字段注释,表注释。
插件路径:
MacOS: /Users//Library/Application Support/StarUML/extensions/
Window: C:\Users\\AppData\Roaming\StarUML\extensions\
Linux: ~/.config/StarUML/extensions/
可将整个文件夹放到对应系统的Extensions目录。
DDL Extension for StarUML 3.0
This extension contain AUTO_INCREMENT, COMMENT, DEFAULT VALUE FOR DATE COLUMN
This extension for StarUML (http://staruml.io) support to generate DDL (Data Definition Language) from ERD. Install this extension from Extension Manager of StarUML.
How to use
Click the menu (Tools > DDL > Generate DDL...)
Select a data model that will be generated to DDL.
Save the generated DDL to a file.
Generation rules
Belows are the rules to convert from ERD elements to DDL.
All entities and columns are conv