${util.escapeHTML2($table.tableName)} #if(!$util.isEmpty($table.logicalName)) (${util.escapeHTML2($table.logicalName)}) #end

#if(!$util.isEmpty($table.description))

$util.escapeHTML2($table.description)

#end #if($table.linkedTable)

$msg.get("note.importedTable")

#end #foreach($column in $table.columns) #end
$msg.get("column.rownum") $msg.get("column.logicalName") $msg.get("column.physicalName") $msg.get("column.type") $msg.get("column.null") $msg.get("column.defaultValue") $msg.get("column.description")
#if($column.primaryKey == true) #end $velocityCount $util.escapeHTML2($column.logicalName) $util.escapeHTML2($column.columnName) $util.escapeHTML2($column.columnType.name)#if($column.columnType.supportSize() && $column.size.length() > 0)($column.size)#end #if($column.notNull == true) N #else Y #end $util.escapeHTML2($column.defaultValue) #if($column.dommain) ${msg.get("column.description.dommain")}: ${util.escapeHTML($column.dommain.name)}
#end #if($column.autoIncrement == true) AUTO INCREMENT
#end #if($column.description!="") $util.escapeHTML($column.description) #elseif($column.autoIncrement == false && !$column.dommain)   #end
#if(!$table.modelSourceConnections.empty)
$msg.get("foreignKeys")
#foreach($conn in $table.modelSourceConnections) #if($velocityCount != 1)
#end

$conn.foreignKeyName

#foreach($mapping in $conn.mapping) #end
ColumnReferenced Column
$mapping.refer.columnName ${util.escapeHTML($conn.target.tableName)}.${util.escapeHTML($mapping.target.columnName)}
#end #end #if(!$util.isEmpty($table.indices))
$msg.get("indices")
#foreach($index in $table.indices) #if($velocityCount != 1)
#end

$index.indexName ($index.indexType.name)

Columns:
#foreach($indexColumn in $index.columns) $indexColumn
#end
#end #end #if(!$table.modelTargetConnections.empty)
$msg.get("referencedTables")

#foreach($conn in $table.modelTargetConnections) #foreach($mapping in $conn.mapping) #end #end
TableColumn
${conn.source.tableName}.${mapping.refer.columnName} $mapping.target.columnName
#end