Skip to content

Commit

Permalink
fix: fix product.unique_scans_n server_default
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Jan 10, 2024
1 parent 57e4adb commit 54202d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Product(Base):
product_quantity = Column(Integer)
brands = Column(String)
image_url = Column(String)
unique_scans_n = Column(Integer, nullable=False, server_default=0)
unique_scans_n = Column(Integer, nullable=False, server_default="0")

prices: Mapped[list["Price"]] = relationship(back_populates="product")

Expand Down

0 comments on commit 54202d0

Please sign in to comment.