DROP TABLE IF EXISTS `${tablePrefix}${underLineTableName}`;
CREATE TABLE `${tablePrefix}${underLineTableName}`(
    `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增主键',
    `${underLineTableName}_id` CHAR(36) NOT NULL COMMENT '主键',
    <#list fieldList! as field>
        <#if field.fieldType == "number">
    `${field.underLineFieldName}` INT(11)<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        <#elseif field.fieldType == "double">
    `${field.underLineFieldName}` DOUBLE(11, 2)<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        <#elseif field.fieldType == "date">
    `${field.underLineFieldName}` VARCHAR(40)<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        <#elseif field.fieldType == "datetime">
    `${field.underLineFieldName}` VARCHAR(50)<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        <#elseif field.fieldType == "text">
    `${field.underLineFieldName}` TEXT DEFAULT NULL<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        <#elseif field.fieldType == "richText">
    `${field.underLineFieldName}` LONGTEXT DEFAULT NULL<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        <#elseif field.fieldType == "currentUser" || field.fieldType == "currentDepartment" || field.fieldType == "currentRole" || field.fieldType == "currentGroup" || field.fieldType == "currentPosition">
    `${field.underLineFieldName}` VARCHAR(500) DEFAULT NULL<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        <#else>
    `${field.underLineFieldName}` VARCHAR(255)<#if field.fieldDefault??><#else> DEFAULT ${field.fieldDefault}</#if> COMMENT '${field.fieldExplain}',
        </#if>
    </#list>
    `creator` CHAR(36) DEFAULT NULL,
    `gmt_create` datetime DEFAULT NULL,
    `modifier` CHAR(36) DEFAULT NULL,
    `gmt_modified` datetime DEFAULT NULL,
    `is_delete` int(1) DEFAULT '0',
    PRIMARY KEY (`id`, `${underLineTableName}_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;