Add YASnippets for Flask-SQLAlchemy models
…both normal and translatable
This commit is contained in:
10
snippets/python-mode/flask_sqlalchemy_model
Normal file
10
snippets/python-mode/flask_sqlalchemy_model
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- 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
|
Reference in New Issue
Block a user