hisham-cmd commited on
Commit
4f57191
·
verified ·
1 Parent(s): ec31d74

Upload app/models/product.py

Browse files
Files changed (1) hide show
  1. app/models/product.py +1 -0
app/models/product.py CHANGED
@@ -27,6 +27,7 @@ class Product(Base):
27
  is_featured = Column(Boolean, default=False, nullable=False)
28
  is_active = Column(Boolean, default=True, nullable=False)
29
  embedding = Column(JSON, nullable=True)
 
30
  created_at = Column(DateTime, default=lambda: datetime.now(timezone.utc), nullable=False)
31
 
32
  category = relationship("Category", back_populates="products")
 
27
  is_featured = Column(Boolean, default=False, nullable=False)
28
  is_active = Column(Boolean, default=True, nullable=False)
29
  embedding = Column(JSON, nullable=True)
30
+ specs = Column(JSON, nullable=True) # Rich specifications from external sources
31
  created_at = Column(DateTime, default=lambda: datetime.now(timezone.utc), nullable=False)
32
 
33
  category = relationship("Category", back_populates="products")