flaschengeist/geruecht/model/priceList.py

18 lines
666 B
Python
Raw Normal View History

2019-04-11 21:56:55 +00:00
from geruecht import db
class PriceList(db.Model):
2019-04-17 12:46:46 +00:00
""" Database Model for PriceList
PriceList has lots of Drinks and safe all Prices (normal, for club, for other clubs, which catagory, etc)
"""
2019-04-11 21:56:55 +00:00
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False, unique=True)
price = db.Column(db.Integer, nullable=False)
price_club = db.Column(db.Integer, nullable=False)
price_ext_club = db.Column(db.Integer, nullable=False)
category = db.Column(db.Integer, nullable=False)
upPrice = db.Column(db.Integer)
upPrice_club = db.Column(db.Integer)
upPrice_ext_club = db.Column(db.Integer)