last
This commit is contained in:
@@ -24,7 +24,7 @@ class Product(Base):
|
||||
cree_le = Column(DateTime, default=datetime.utcnow)
|
||||
modifie_le = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
|
||||
|
||||
snapshots = relationship("ProductSnapshot", back_populates="product")
|
||||
snapshots = relationship("ProductSnapshot", back_populates="product", cascade="all, delete-orphan")
|
||||
|
||||
|
||||
class ScrapeRun(Base):
|
||||
@@ -67,6 +67,7 @@ class ProductSnapshot(Base):
|
||||
description = Column(Text, nullable=True)
|
||||
carateristique = Column(Text, nullable=True) # JSON object
|
||||
details = Column(Text, nullable=True) # JSON object
|
||||
categorie_amazon = Column(Text, nullable=True) # Catégorie depuis breadcrumb Amazon
|
||||
chemin_json_brut = Column(Text, nullable=True)
|
||||
statut_scrap = Column(String(32), default="ok")
|
||||
message_erreur = Column(Text, nullable=True)
|
||||
|
||||
Reference in New Issue
Block a user