<#if dataBase == 'Oracle'>
/*
Target   : Oracle
Author
Date:    ${.now?string["yyyy-MM-dd"]}
*/

-- ----------------------------
-- Table structure for ${table.tableName} - ${table.tableComment?default("")}
-- ----------------------------

CREATE TABLE "${db.dbprefix}${table.tableName}" (
<#list table.fields as field>
    ${dBmapper.getFieldSql(field)}<#if field_has_next>,</#if>
</#list>
);

COMMENT ON TABLE ${db.dbprefix?default("")}${table.tableName} is '${table.tableComment}';
<#list table.fields as field>
COMMENT ON COLUMN ${db.dbprefix?default("")}${table.tableName}.${field.fieldName?default("")} is '${field.fieldComment?default("")}';
</#list>
</#if>
<#if dataBase == 'MySQL'>
/*
Target   : MySQL
Author
Date:    ${.now?string["yyyy-MM-dd"]}
*/

-- ----------------------------
-- Table structure for ${table.tableName} - ${table.tableComment?default("")}
-- ----------------------------

CREATE TABLE `${db.dbprefix?default("")}${table.tableName}` (
    <#list table.fields as field>
        ${dBmapper.getFieldSql(field)},
    </#list>
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='${table.tableComment?default("")}';
</#if>