From c56c3f12e2aeca63da2fee6f34b8c602a7cd9953 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 18 Mar 2019 15:56:44 +0000 Subject: [PATCH] New postcard crumbs data model --- Houdini/Data/Mail.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Houdini/Data/Mail.py diff --git a/Houdini/Data/Mail.py b/Houdini/Data/Mail.py new file mode 100644 index 0000000..8fa3510 --- /dev/null +++ b/Houdini/Data/Mail.py @@ -0,0 +1,12 @@ +from Houdini.Data import db + + +class Postcard(db.Model): + __tablename__ = 'postcard' + + ID = db.Column(db.Integer, primary_key=True) + Name = db.Column(db.String(50), nullable=False) + Cost = db.Column(db.Integer, nullable=False, server_default=db.text("10")) + Enabled = db.Column(db.Boolean, nullable=False, server_default=db.text("false")) + +