Refactor AareDB backend and update schemas and paths.
Revised backend schema definitions, removing unnecessary attributes and adding new configurations. Updated file path references to align with the aaredb structure. Cleaned up redundant notebook content and commented out unused database regeneration logic in the backend. Added posting a result to the database
This commit is contained in:
@ -278,10 +278,14 @@ class Results(Base):
|
||||
__tablename__ = "results"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True, autoincrement=True)
|
||||
# pgroup = Column(String(255), nullable=False)
|
||||
result = Column(JSON, nullable=True)
|
||||
result_id = Column(Integer, ForeignKey("experiment_parameters.id"), nullable=False)
|
||||
result = Column(JSON, nullable=False) # store the full result object as JSON
|
||||
sample_id = Column(Integer, ForeignKey("samples.id"), nullable=False)
|
||||
run_id = Column(Integer, ForeignKey("experiment_parameters.id"), nullable=False)
|
||||
|
||||
# optional relationships if you wish to query easily
|
||||
# sample = relationship("SampleModel", backref="results")
|
||||
# experiment_parameters = relationship("ExperimentParametersModel",
|
||||
# backref="results")
|
||||
|
||||
|
||||
# method = Column(String(255), nullable=False)
|
||||
|
Reference in New Issue
Block a user