Skip to content

Instantly share code, notes, and snippets.

@lipemorais
Created May 27, 2016 02:12
Show Gist options
  • Save lipemorais/1225688fb540b2e71268735fa550565b to your computer and use it in GitHub Desktop.
Save lipemorais/1225688fb540b2e71268735fa550565b to your computer and use it in GitHub Desktop.
'.source.python':
'model':
'prefix': 'sam'
'body': """
class ${1:MODELNAME}(db.Model):
__tablename__ = "${2:TABLENAME}"
${3:FIELDNAMES}
def __init__(self):
${4:# TODO add initializer fields}
def __repr__(self):
return ${5}
def __str__(self):
return $5
"""
'description': 'Flask SQL Alchemy Model template'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment