Spaces:
Sleeping
Sleeping
Upload app/models/product.py
Browse files- 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")
|