feat: update ozon_product_id to use BigInteger type
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from sqlalchemy import ForeignKey
|
from sqlalchemy import ForeignKey, BigInteger
|
||||||
from sqlalchemy.orm import Mapped, relationship, mapped_column
|
from sqlalchemy.orm import Mapped, relationship, mapped_column
|
||||||
|
|
||||||
from models import BaseModel
|
from models import BaseModel
|
||||||
@@ -27,7 +27,8 @@ class OzonProduct(BaseModel):
|
|||||||
product_id: Mapped[int] = mapped_column(ForeignKey('products.id'), primary_key=True)
|
product_id: Mapped[int] = mapped_column(ForeignKey('products.id'), primary_key=True)
|
||||||
product: Mapped["Product"] = relationship()
|
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):
|
class YandexProduct(BaseModel):
|
||||||
__tablename__ = 'yandex_products'
|
__tablename__ = 'yandex_products'
|
||||||
|
|||||||
Reference in New Issue
Block a user