Created
May 27, 2016 02:12
-
-
Save lipemorais/1225688fb540b2e71268735fa550565b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.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