From 569905a5ceeaed91c3eebd80f3dc5b759abc962f Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 18 Mar 2019 15:56:29 +0000 Subject: [PATCH] New item crumbs data model --- Houdini/Data/Item.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Houdini/Data/Item.py diff --git a/Houdini/Data/Item.py b/Houdini/Data/Item.py new file mode 100644 index 0000000..c421ddc --- /dev/null +++ b/Houdini/Data/Item.py @@ -0,0 +1,16 @@ +from Houdini.Data import db + + +class Item(db.Model): + __tablename__ = 'item' + + ID = db.Column(db.Integer, primary_key=True) + Name = db.Column(db.String(50)) + Type = db.Column(db.SmallInteger, nullable=False, server_default=db.text("1")) + Cost = db.Column(db.Integer, nullable=False, server_default=db.text("0")) + Member = db.Column(db.Boolean, nullable=False, server_default=db.text("false")) + Bait = db.Column(db.Boolean, nullable=False, server_default=db.text("false")) + Patched = db.Column(db.Boolean, nullable=False, server_default=db.text("false")) + EPF = db.Column(db.Boolean, nullable=False, server_default=db.text("false")) + Tour = db.Column(db.Boolean, nullable=False, server_default=db.text("false")) + ReleaseDate = db.Column(db.Date, nullable=False, server_default=db.text("now()"))