diff --git a/models/marketplace_products.py b/models/marketplace_products.py index 3c73638..de0910c 100644 --- a/models/marketplace_products.py +++ b/models/marketplace_products.py @@ -1,4 +1,4 @@ -from sqlalchemy import ForeignKey +from sqlalchemy import ForeignKey, BigInteger from sqlalchemy.orm import Mapped, relationship, mapped_column from models import BaseModel @@ -27,7 +27,8 @@ class OzonProduct(BaseModel): product_id: Mapped[int] = mapped_column(ForeignKey('products.id'), primary_key=True) product: Mapped["Product"] = relationship() - ozon_product_id: Mapped[int] = mapped_column(nullable=False) + ozon_product_id: Mapped[int] = mapped_column(BigInteger, nullable=False) + class YandexProduct(BaseModel): __tablename__ = 'yandex_products'