my-emacs-d/snippets/python-mode/flask_sqlalchemy_model

10 lines
194 B
Plaintext
Raw Normal View History

# -*- mode: snippet -*-
# name: flask_sqlalchemy_model
# key: model
# --
class ${1:name}(db.Model):
__tablename__ = '${2:tablename}'
id = db.Column(db.Integer, primary_key=True)
$0