diff options
Diffstat (limited to 'pyaggr3g470r/models/category.py')
-rw-r--r-- | pyaggr3g470r/models/category.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyaggr3g470r/models/category.py b/pyaggr3g470r/models/category.py new file mode 100644 index 00000000..513227a5 --- /dev/null +++ b/pyaggr3g470r/models/category.py @@ -0,0 +1,8 @@ +from bootstrap import db + + +class Category(db.Model): + id = db.Column(db.Integer(), primary_key=True) + name = db.Column(db.String()) + + user_id = db.Column(db.Integer, db.ForeignKey('user.id')) |