[[ column.name ]]_id = db.Column(db.Integer, db.ForeignKey('[[ column.name ]].id')) [[ column.name ]] = db.relationship('[[ column.name|snake_to_camel ]]', backref=db.backref("[[ name|camel_to_snake|pluralize ]]"))