Commit 1a337f03 authored by CEVAER's avatar CEVAER

Added id as PK in Product table

parent 4a79b0ab
......@@ -49,7 +49,8 @@ acq_acq = Table('many_Acquisition_has_many_Acquisition', Base.metadata,
class Product(Base):
__tablename__ = "Product"
filename = Column(String(), primary_key=True, unique=True, nullable=False)
id = Column(String(), primary_key=True, nullable=False)
filename = Column(String(), unique=True, nullable=False)
grid_type = Column(String(), nullable=False)
id_Acquisition = Column(String(), ForeignKey('Acquisition.id', ondelete='CASCADE'), nullable=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment