# tape-mybatis-generator-plugin
> MyBatis 代码生成插件
## Uses
in `pom.xml`
```
application
org.mybatis.generator
mybatis-generator-maven-plugin
1.4.0
src/main/resources/mybatis.generator.xml
true
true
Generate MyBatis Artifacts
deploy
generate
mysql
mysql-connector-java
runtime
8.0.33
com.iqudoo.framework
tape-mybaits-generator-plugin
1.0-SNAPSHOT
${project.basedir}/src/lib/tape-mybaits-generator-plugin-1.0-SNAPSHOT.jar
system
```
in `mybatis.generator.xml`
```
```
## Table Template
```
DROP TABLE IF EXISTS `your_table_name`;
CREATE TABLE `your_table_name` (
`guid` bigint(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'GUID',
-- ----------------------------
-- add your other table field
-- ----------------------------
`is_hidden` int(0) NOT NULL DEFAULT 0 COMMENT '隐藏标志',
`is_delete` int(0) NOT NULL DEFAULT 0 COMMENT '删除标志',
`delete_token` varchar(32) NULL DEFAULT '' COMMENT '删除令牌',
`data_version` int(0) NOT NULL DEFAULT 0 COMMENT '数据版本',
`create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
`update_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '更新时间',
PRIMARY KEY (`guid`) USING BTREE
) ENGINE = InnoDB COMMENT = '应用基础信息表' ROW_FORMAT = Dynamic;
```
in `mybatis.generator.xml`
```
```