From 43932a93e0d8bf73171308b071b7328bd4e2b0f4 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 1 Sep 2025 23:51:51 +0300 Subject: [PATCH] feat: update ozon_product_id to use BigInteger type --- models/marketplace_products.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'