生成数据库脚本
Database -> Generate Database…
点击确定
只生成数据库脚本
默认全选中,把Index勾去掉
主键索引
inside
和建表脚本一起的,这种primary key (id)
create table t_user
(
id bigint not null comment ‘ID’,
tenant_id bigint comment ‘租户ID’,
…
primary key (id)
);
outside
outside, 独立脚本,和建表脚本分开的 alter table t_user add primary key (id);
只生成索引
这里不包括主键索引,主键索引在建表脚本那边
去掉drop index脚本