|
|
@ -3,31 +3,31 @@ |
|
|
|
| seq | name | comment | |
|
|
|
| ---- | --------------- | ------ | |
|
|
|
<#list meta.tables as table> |
|
|
|
| ${table_index+1} | [${table.tableName}](#${table.tableName}) | ${table.tableComment!'N/A'} | |
|
|
|
| ${table_index+1} | [${table.name}](#${table.name}) | ${table.comment!'N/A'} | |
|
|
|
</#list> |
|
|
|
|
|
|
|
<#if config.renderTables> |
|
|
|
<#list meta.tables as table> |
|
|
|
## ${table.tableName} |
|
|
|
## ${table.name} |
|
|
|
|
|
|
|
<#if config.renderColumns> |
|
|
|
### Columns |
|
|
|
<#if config.renderColumns> |
|
|
|
### Columns |
|
|
|
|
|
|
|
| seq | name | type | nullable | auto increment| default | comment | |
|
|
|
| ---- | ------ | ------ | ------ | -------- | ------ | ------ | |
|
|
|
<#list table.columns as column> |
|
|
|
| ${column_index+1} | ${column.name} | ${column.type} | ${column.isNullable?then('YES','')} | ${column.isAutoIncrement?then('YES', '')} | ${column.isNullable?then(column.defaultValue!'NULL', column.defaultValue!'')} | ${column.comment!''} | |
|
|
|
</#list> |
|
|
|
</#if> |
|
|
|
| seq | name | type | nullable | auto increment| default | comment | |
|
|
|
| ---- | ------ | ------ | ------ | -------- | ------ | ------ | |
|
|
|
<#list table.columns as column> |
|
|
|
| ${column_index+1} | ${column.name} | ${column.type} | ${column.isNullable?then('YES','NO')} | ${column.isAutoIncrement?then('YES', 'NO')} | ${column.isNullable?then(column.defaultValue!'NULL', column.defaultValue!'')} | ${column.comment!''} | |
|
|
|
</#list> |
|
|
|
</#if> |
|
|
|
|
|
|
|
<#if config.renderIndexes> |
|
|
|
### Indexes |
|
|
|
|
|
|
|
| seq | name | unique | primary key | columns | |
|
|
|
| ---- | ---- | -------- | -------- | ------ | |
|
|
|
<#list table.indexes as index> |
|
|
|
| ${index_index+1} | ${index.indexName} | ${index.isUniqueKey?then('YES', '')} | ${index.isPrimaryKey?then('YES','')} | ${index.columnNames?join(', ')} | |
|
|
|
</#list> |
|
|
|
<#list table.indexes as index> |
|
|
|
| ${index_index+1} | ${index.name} | ${index.isUniqueKey?then('YES', 'NO')} | ${index.isPrimaryKey?then('YES','NO')} | ${index.columnNames?join(', ')} | |
|
|
|
</#list> |
|
|
|
</#if> |
|
|
|
|
|
|
|
<#if config.renderTriggers> |
|
|
|