新的Excel 格式
This commit is contained in:
@@ -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)';
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user