新的Excel 格式

This commit is contained in:
2019-09-02 23:10:52 +08:00
parent 7d32bb98f3
commit 15a0b5e4d8
4 changed files with 15 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
##(remark)
# drop table if exists `#(tableName)`;
drop table if exists `#(tableName)`;
CREATE TABLE `#(tableName)` (
`id` bigint(20) auto_increment comment '主键',
#for(x : fieldList)
#set(
field=x.field
@@ -13,7 +12,7 @@ CREATE TABLE `#(tableName)` (
`#(field)` #(x.fieldType) #(isMust) #(autoIncrement) comment '#(x.remark)',
#end
#end
PRIMARY KEY (`id`)
PRIMARY KEY (`#(fieldList[0].field)`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 comment '#(remark)';