flaschengeist/geruecht/model/priceList.py

18 lines
662 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
2019-05-02 16:50:59 +00:00
2019-04-17 12:46:46 +00:00
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)