From 6c514c873340fa00c70aaeba2fa85c1b7b470ac0 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 18 Mar 2019 15:57:28 +0000 Subject: [PATCH] New Jitsu card crumbs data model --- Houdini/Data/Ninja.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Houdini/Data/Ninja.py diff --git a/Houdini/Data/Ninja.py b/Houdini/Data/Ninja.py new file mode 100644 index 0000000..76b052a --- /dev/null +++ b/Houdini/Data/Ninja.py @@ -0,0 +1,14 @@ +from Houdini.Data import db + + +class Card(db.Model): + __tablename__ = 'card' + + ID = db.Column(db.Integer, primary_key=True) + Name = db.Column(db.String(50), nullable=False) + SetID = db.Column(db.SmallInteger, nullable=False, server_default=db.text("1")) + PowerID = db.Column(db.SmallInteger, nullable=False, server_default=db.text("0")) + Element = db.Column(db.CHAR(1), nullable=False, server_default=db.text("'s'::bpchar")) + Color = db.Column(db.CHAR(1), nullable=False, server_default=db.text("'b'::bpchar")) + Value = db.Column(db.SmallInteger, nullable=False, server_default=db.text("2")) + Description = db.Column(db.String(255), nullable=False, server_default=db.text("''::character varying"))