27 lines
649 B
Python
27 lines
649 B
Python
from app import db, ma
|
|
|
|
|
|
|
|
|
|
|
|
class Promo_Promo(db.Model):
|
|
__tablename__ = 'promo_Promo'
|
|
__table_args__ = {"schema": "public"}
|
|
|
|
id = db.Column(db.Integer,
|
|
primary_key=True,
|
|
autoincrement=True,
|
|
unique=False)
|
|
active = db.Column(db.BOOLEAN())
|
|
name_of_promotion = db.Column(db.VARCHAR(1000))
|
|
money_off_delivery = db.Column(db.DECIMAL(6, 2))
|
|
description = db.Column(db.VARCHAR(1000))
|
|
text_on_ticket = db.Column(db.VARCHAR(100))
|
|
date_created = db.Column(db.DATE())
|
|
|
|
|
|
class Promo_Promo_schema(ma.SQLAlchemyAutoSchema):
|
|
class Meta:
|
|
model = Promo_Promo
|
|
|