You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
454 B
18 lines
454 B
6 years ago
|
import flask_sqlalchemy
|
||
|
|
||
|
|
||
|
db = flask_sqlalchemy.SQLAlchemy(session_options=dict(autoflush=False))
|
||
|
|
||
|
|
||
|
class Product(db.Model):
|
||
|
__tablename__ = 'products'
|
||
|
|
||
|
id = db.Column(db.Integer, primary_key=True)
|
||
|
name = db.Column(db.String)
|
||
|
product_name = db.Column(db.String)
|
||
|
price = db.Column(db.String)
|
||
|
time_left = db.Column(db.String)
|
||
|
days_left = db.Column(db.Integer)
|
||
|
url = db.Column(db.String)
|
||
|
image_url = db.Column(db.String)
|