Skip to content

Commit 7cbe2b2

Browse files
committed
And the other way
1 parent d55ee94 commit 7cbe2b2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/murfey/util/db.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,13 +816,17 @@ class BFactorParameters(SQLModel, table=True): # type: ignore
816816
class_number: int
817817
mask_file: str
818818
run: bool = True
819+
processing_job: Optional[ProcessingJob] = Relationship(
820+
back_populates="bfactor_parameters"
821+
)
819822

820823

821824
class BFactors(SQLModel, table=True): # type: ignore
822825
bfactor_directory: str = Field(primary_key=True)
823826
pj_id: int = Field(primary_key=True, foreign_key="processingjob.processingJobId")
824827
number_of_particles: int
825828
resolution: float
829+
processing_job: Optional[ProcessingJob] = Relationship(back_populates="bfactors")
826830

827831

828832
class MotionCorrection(SQLModel, table=True): # type: ignore

0 commit comments

Comments
 (0)