feat: update ozon_product_id to use BigInteger type

This commit is contained in:
2025-09-01 23:51:51 +03:00
parent d10fa2f08a
commit 43932a93e0

View File

@@ -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'