File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -608,7 +608,6 @@ class MurfeyLedger(SQLModel, table=True): # type: ignore
608608class GridSquare (SQLModel , table = True ): # type: ignore
609609 id : Optional [int ] = Field (primary_key = True , default = None )
610610 session_id : int = Field (foreign_key = "session.id" )
611- atlas_id : Optional [int ] = Field (foreign_key = "datacollectiongroup.id" )
612611 name : int
613612 tag : str
614613 x_location : Optional [float ]
@@ -689,12 +688,14 @@ class SearchMap(SQLModel, table=True): # type: ignore
689688
690689class Movie (SQLModel , table = True ): # type: ignore
691690 murfey_id : int = Field (primary_key = True , foreign_key = "murfeyledger.id" )
691+ data_collection_id : Optional [int ] = Field (foreign_key = "datacollection.id" )
692692 foil_hole_id : int = Field (foreign_key = "foilhole.id" , nullable = True , default = None )
693693 path : str
694694 image_number : int
695695 tag : str
696696 preprocessed : bool = False
697697 murfey_ledger : Optional [MurfeyLedger ] = Relationship (back_populates = "movies" )
698+ data_collection : Optional ["DataCollection" ] = Relationship (back_populates = "movies" )
698699 foil_hole : Optional [FoilHole ] = Relationship (back_populates = "movies" )
699700
700701
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ class AutoProcProgram(AutoProcProgramOrig):
5555
5656
5757class GridSquare (GridSquareOrig ):
58+ atlas_id : Optional [int ] = Field (foreign_key = "datacollectiongroup.id" )
5859 scaled_pixel_size : Optional [float ] = None
5960 pixel_location_x : Optional [int ] = None
6061 pixel_location_y : Optional [int ] = None
@@ -91,8 +92,6 @@ class SearchMap(SearchMapOrig):
9192
9293
9394class Movie (MovieOrig ):
94- data_collection_id : Optional [int ] = Field (foreign_key = "datacollection.id" )
95- data_collection : Optional ["DataCollection" ] = Relationship (back_populates = "movies" )
9695 MotionCorrection : List ["MotionCorrection" ] = Relationship (back_populates = "Movie" )
9796 TiltImageAlignment : List ["TiltImageAlignment" ] = Relationship (
9897 back_populates = "Movie"
You can’t perform that action at this time.
0 commit comments