oshipka/vm_gen/templates/_model_m_n_py
Daniel Tsvetkov a567739eaf m_n
2020-06-07 20:29:51 +02:00

6 lines
217 B
Plaintext

[[ secondary.name ]] = db.Table('[[ secondary.name|camel_to_snake ]]',
[%- for column in secondary.columns %]
db.Column('[[ column.name ]]_id', db.Integer(), db.ForeignKey('[[ column.name ]].id')),
[%- endfor %]
)