from sqlalchemy import Column, String, Boolean, Integer, ForeignKey
from sqlalchemy.orm import relationship
from app.models.base import db, Base
from app.models.base import Base
__author__ = '七月'


class ProductImage(Base):
    id = Column(Integer, primary_key=True)
    product_id = db.Column(db.Integer, db.ForeignKey('product.id'),
        nullable=False)
    img = db.Column(db.LargeBinary(length=65536), nullable=False)

24ff85943913f3f888cf69b6591bd0dbe70f6857
<mask token>


class ProductImage(Base):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class ProductImage(Base):
    id = Column(Integer, primary_key=True)
    product_id = db.Column(db.Integer, db.ForeignKey('product.id'),
        nullable=False)
    img = db.Column(db.LargeBinary(length=65536), nullable=False)

<mask token>
__author__ = '七月'


class ProductImage(Base):
    id = Column(Integer, primary_key=True)
    product_id = db.Column(db.Integer, db.ForeignKey('product.id'),
        nullable=False)
    img = db.Column(db.LargeBinary(length=65536), nullable=False)

from sqlalchemy import Column, String, Boolean, Integer, ForeignKey
from sqlalchemy.orm import relationship
from app.models.base import db, Base
from app.models.base import Base
__author__ = '七月'


class ProductImage(Base):
    id = Column(Integer, primary_key=True)
    product_id = db.Column(db.Integer, db.ForeignKey('product.id'),
        nullable=False)
    img = db.Column(db.LargeBinary(length=65536), nullable=False)
