{{date | date(format="%x", locale=locale)}}
| Date | Description |
|---|---|
| {{row.date | date(format="%x", locale=locale)}} |
{{description | safe}}
|
| No. | Name |
|---|---|
| {{loop.index}} | {{group.group_def.title}} |
| No. | Name |
|---|---|
| {{loop.index}} | {{model_name}} {%- if model.title %} ({{model.title}}){% endif %} |
| No. | Name |
|---|---|
| {{loop.index}} | {{name}} {%- if enum.title %} ({{enum.title}}){% endif %} |
Real Table Name: {{model.table_name}}
{% if model.comment -%}| No. | Name | Type | Null | Length | Key | Comment |
|---|---|---|---|---|---|---|
| {{loop.index}} | {{column | get(key="rename", default=name)}} | {% if column.signed %}signed {% endif %}{{column.type}} | {% if not column.not_null %}Y{% endif %} | {%- if column.length %}{{column.length}}{% endif %} {%- if column.precision %}{{column.precision}}{% endif %} {%- if column.scale %},{{column.scale}}{% endif %} | {% if column.primary %}P{% endif %} |
{%- if column.title %} {{column.title}} {% endif %} {%- if column.enum_values -%}{% for enum in column.enum_values -%}
{{enum.value}}:{{enum | get(key="title", default=enum.name) }}
{%- if enum.comment %} ({{enum.comment}}){% endif %}
{%- if not loop.last %} {% for enum in column.db_enum_values -%}{{enum.name}}
{%- if enum.title %}:{{enum.title}}{% endif %}
{%- if enum.comment %} ({{enum.comment}}){% endif %}
{%- if not loop.last %} {{column.comment}}{% endif -%}
|
All numeric types including double, decimal, etc. are unsigned unless signed is specified for the data type.
| No. | Type | Column Name |
|---|---|---|
| {{loop.index}} | {%- if index %}{{ index | get(key="type", default="INDEX") | upper}} {%- else %}INDEX{% endif %} | {%- if index and index.fields %}{% for name, field in index.fields -%}{{name}} {%- if field and field.length %}({{field.length}}){% endif %} {%- if not loop.last %}, {% endif %} {%- endfor %}{% else %}{{name}}{% endif %} |
| No. | Name | Data Type | Local Column | Foreign Table | Foreign Column | On Delete |
|---|---|---|---|---|---|---|
| {{loop.index}} | {{relation | get(key="title", default=name)}} | {% if type == "one_to_one" %}ONE{% else %}{{type | upper}}{% endif %} | {%- if relation.local %}{{relation.local}}{% else %} {%- if type == "many" or type == "one_to_one" %}-{% else %}{{name}}_id{% endif %} {%- endif %} | {{- relation.model | split(pat="::") | last}} | {%- if relation.foreign %}{{relation.foreign}}{% else %} {%- if type == "many" %}{{model_name}}_id{% else %}-{% endif %} {% endif %} | {{relation | get(key="on_delete", default="")}} |
"-" in column indicates primary key. {%- if config.ignore_foreign_key %} No foreign key constraint is actually set.{% endif -%}
{{enum.comment}}
| Value | Name | Comment |
|---|---|---|
| {{value.value}} | {{value | get(key="title", default=value.name) }} |
{%- if value.comment %}
{{value.comment}}
{% endif -%}
|
{{model.comment}}