2020-06-07 20:29:51 +02:00
|
|
|
|
|
|
|
[[ secondary.name ]] = db.Table('[[ secondary.name|camel_to_snake ]]',
|
|
|
|
[%- for column in secondary.columns %]
|
2020-06-04 15:24:18 +02:00
|
|
|
db.Column('[[ column.name ]]_id', db.Integer(), db.ForeignKey('[[ column.name ]].id')),
|
|
|
|
[%- endfor %]
|
|
|
|
)
|