feat(data): add optional label field to Data model

This commit is contained in:
Anushree2005 2025-12-27 17:57:03 +05:30
parent 1061258fde
commit e29a7df45a

View file

@ -29,6 +29,7 @@ class Data(Base):
external_metadata = Column(JSON)
# Store NodeSet as JSON list of strings
node_set = Column(JSON, nullable=True)
label = Column(String, nullable=True)
# MutableDict allows SQLAlchemy to notice key-value pair changes, without it changing a value for a key
# wouldn't be noticed when commiting a database session
pipeline_status = Column(MutableDict.as_mutable(JSON))