Created
February 8, 2019 13:48
-
-
Save pythononwheels/852bc46860c9f64e3ccc1d7329c336ac to your computer and use it in GitHub Desktop.
This file contains 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
@relation.has_many("subtasks") | |
@relation.setup_sql_schema() | |
class Task(Base): | |
schema = { | |
'title' : { 'type' : 'string', 'maxlength' : 35 }, | |
'text' : { 'type' : 'string' }, | |
"votes" : { "type" : "integer", "default" : 0 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment