column.html 644 Bytes
{% autoescape false %}

{{ column.accessorName }}: {
    type: {{ column.type }}
    {{ ifTrue('field', column.name) }}
    {{ ifTrue('primaryKey', column.primaryKey) }}
    {{ ifTrue('autoIncrement', column.autoIncrement) }}
    {{ ifFalse('allowNull', column.allowNull) }}
    {{ ifNotUndefined('defaultValue', column.defaultValue) }}
    {{ ifTrue('unique', column.unique) }}
    {{ ifTrue('comment', column.comment) }}
    {{ ifTrue('references', column.references) }}
    {{ ifTrue('referencesKey', column.referencesKey) }}
    {{ ifTrue('onUpdate', column.onUpdate) }}
    {{ ifTrue('onDelete', column.onDelete) }}
}

{% endautoescape %}