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