markdown-template.tables-markdown.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktmyoql-code-generator Show documentation
Show all versions of ktmyoql-code-generator Show documentation
kotlin orm -- mysql,mongo , just like ktorm
The newest version!
# `${group}` 组
| 序号 | 表名 | 备注 |
|---|---|---|
<#list entities as entity>
| ${entity_index + 1} | ${entity.getName()} | ${entity.getComment()} |
#list>
<#list entities as entity>
## `${entity.getName()}` : ${entity.getComment()}
| 序号 | 列名 | 类型 | 备注 | 特性 |
|---|---|---|---|---|
<#list entity.getColumns() as field>
| ${style(field,"id",field.getIndex())} | ${style(field,"name",field.getName())} | ${style(field,"sqlType",field.getSqlType())} | ${style(field,"remark",field.getRemark())} | ${style(field,"extra",field.primary())} |
#list>
<#if (entity.getAuks()?size > 0)>
联合唯一索引:
<#list entity.getAuks() as uk>
${uk_index}: ${uk}
#list>
#if>
#list>