@@ -605,6 +605,22 @@ CREATE TABLE `BLSampleImage_has_Positioner` (
605605 CONSTRAINT ` BLSampleImageHasPositioner_ibfk2` FOREIGN KEY (` positionerId` ) REFERENCES ` Positioner` (` positionerId` )
606606) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COMMENT= ' Allows a BLSampleImage to store motor positions along with the image' ;
607607/* !40101 SET character_set_client = @saved_cs_client */ ;
608+ DROP TABLE IF EXISTS ` BLSamplePosition` ;
609+ /* !40101 SET @saved_cs_client = @@character_set_client */ ;
610+ /* !40101 SET character_set_client = utf8mb4 */ ;
611+ CREATE TABLE `BLSamplePosition ` (
612+ ` blSamplePositionId` int (11 ) unsigned NOT NULL AUTO_INCREMENT COMMENT ' Primary key (auto-incremented)' ,
613+ ` blSampleId` int (11 ) unsigned NOT NULL COMMENT ' FK, references parent sample' ,
614+ ` posX` double DEFAULT NULL ,
615+ ` posY` double DEFAULT NULL ,
616+ ` posZ` double DEFAULT NULL ,
617+ ` recordTimeStamp` datetime DEFAULT NULL COMMENT ' Creation or last update date/time' ,
618+ ` positionType` enum(' dispensing' ) DEFAULT NULL COMMENT ' Type of marked position (e.g.: dispensing location)' ,
619+ PRIMARY KEY (` blSamplePositionId` ),
620+ KEY ` BLSamplePosition_fk_blSampleId` (` blSampleId` ),
621+ CONSTRAINT ` BLSamplePosition_fk_blSampleId` FOREIGN KEY (` blSampleId` ) REFERENCES ` BLSample` (` blSampleId` )
622+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_general_ci;
623+ /* !40101 SET character_set_client = @saved_cs_client */ ;
608624DROP TABLE IF EXISTS ` BLSampleType` ;
609625/* !40101 SET @saved_cs_client = @@character_set_client */ ;
610626/* !40101 SET character_set_client = utf8mb4 */ ;
@@ -1687,7 +1703,7 @@ CREATE TABLE `DewarRegistry_has_Proposal` (
16871703 CONSTRAINT ` DewarRegistry_has_Proposal_ibfk1` FOREIGN KEY (` dewarRegistryId` ) REFERENCES ` DewarRegistry` (` dewarRegistryId` ),
16881704 CONSTRAINT ` DewarRegistry_has_Proposal_ibfk2` FOREIGN KEY (` proposalId` ) REFERENCES ` Proposal` (` proposalId` ),
16891705 CONSTRAINT ` DewarRegistry_has_Proposal_ibfk3` FOREIGN KEY (` personId` ) REFERENCES ` Person` (` personId` ),
1690- CONSTRAINT ` DewarRegistry_has_Proposal_ibfk4` FOREIGN KEY (` labContactId` ) REFERENCES ` LabContact` (` labContactId` ) ON DELETE NO ACTION ON UPDATE CASCADE
1706+ CONSTRAINT ` DewarRegistry_has_Proposal_ibfk4` FOREIGN KEY (` labContactId` ) REFERENCES ` LabContact` (` labContactId` ) ON DELETE SET NULL ON UPDATE CASCADE
16911707) ENGINE= InnoDB DEFAULT CHARSET= latin1;
16921708/* !40101 SET character_set_client = @saved_cs_client */ ;
16931709DROP TABLE IF EXISTS ` DewarReport` ;
@@ -2396,6 +2412,8 @@ CREATE TABLE `ParticleClassification` (
23962412 ` bFactorFitIntercept` float DEFAULT NULL COMMENT ' Intercept of quadratic fit to refinement resolution against the logarithm of the number of particles' ,
23972413 ` bFactorFitLinear` float DEFAULT NULL COMMENT ' Linear coefficient of quadratic fit to refinement resolution against the logarithm of the number of particles, equal to half of the B factor' ,
23982414 ` bFactorFitQuadratic` float DEFAULT NULL COMMENT ' Quadratic coefficient of quadratic fit to refinement resolution against the logarithm of the number of particles' ,
2415+ ` angularEfficiency` double DEFAULT NULL COMMENT ' Variation in resolution across different angles, 1-2sig/mean' ,
2416+ ` suggestedTilt` double DEFAULT NULL COMMENT ' Suggested stage tilt angle to improve angular efficiency. Unit: degrees' ,
23992417 PRIMARY KEY (` particleClassificationId` ),
24002418 KEY ` ParticleClassification_fk_particleClassificationGroupId` (` particleClassificationGroupId` ),
24012419 CONSTRAINT ` ParticleClassification_fk_particleClassificationGroupId` FOREIGN KEY (` particleClassificationGroupId` ) REFERENCES ` ParticleClassificationGroup` (` particleClassificationGroupId` ) ON DELETE CASCADE ON UPDATE CASCADE
@@ -3456,9 +3474,9 @@ CREATE TABLE `Shipping` (
34563474 KEY ` Shipping_FKIndexStatus` (` shippingStatus` ),
34573475 KEY ` Shipping_ibfk_4` (` deliveryAgent_flightCodePersonId` ),
34583476 CONSTRAINT ` Shipping_ibfk_1` FOREIGN KEY (` proposalId` ) REFERENCES ` Proposal` (` proposalId` ) ON DELETE CASCADE ON UPDATE CASCADE,
3459- CONSTRAINT ` Shipping_ibfk_2` FOREIGN KEY (` sendingLabContactId` ) REFERENCES ` LabContact` (` labContactId` ) ON DELETE CASCADE ON UPDATE CASCADE,
3460- CONSTRAINT ` Shipping_ibfk_3` FOREIGN KEY (` returnLabContactId` ) REFERENCES ` LabContact` (` labContactId` ) ON DELETE CASCADE ON UPDATE CASCADE,
3461- CONSTRAINT ` Shipping_ibfk_4` FOREIGN KEY (` deliveryAgent_flightCodePersonId` ) REFERENCES ` Person` (` personId` )
3477+ CONSTRAINT ` Shipping_ibfk_2` FOREIGN KEY (` sendingLabContactId` ) REFERENCES ` LabContact` (` labContactId` ) ON DELETE SET NULL ON UPDATE CASCADE,
3478+ CONSTRAINT ` Shipping_ibfk_3` FOREIGN KEY (` returnLabContactId` ) REFERENCES ` LabContact` (` labContactId` ) ON DELETE SET NULL ON UPDATE CASCADE,
3479+ CONSTRAINT ` Shipping_ibfk_4` FOREIGN KEY (` deliveryAgent_flightCodePersonId` ) REFERENCES ` Person` (` personId` ) ON DELETE SET NULL ON UPDATE CASCADE
34623480) ENGINE= InnoDB DEFAULT CHARSET= latin1;
34633481/* !40101 SET character_set_client = @saved_cs_client */ ;
34643482DROP TABLE IF EXISTS ` ShippingHasSession` ;
@@ -3762,8 +3780,11 @@ CREATE TABLE `XrayCentringResult` (
37623780 ` boundingBoxMaxZ` float DEFAULT NULL COMMENT ' Maximum z-coordinate of the bounding box containing the crystal (in voxels)' ,
37633781 ` status` enum(' success' ,' failure' ,' pending' ) DEFAULT NULL COMMENT ' to be removed' ,
37643782 ` gridInfoId` int (11 ) unsigned DEFAULT NULL COMMENT ' to be removed' ,
3783+ ` blSampleId` int (11 ) unsigned DEFAULT NULL COMMENT ' The BLSample attributed for this x-ray centring result, i.e. the actual sample even for multi-pins' ,
37653784 PRIMARY KEY (` xrayCentringResultId` ),
37663785 KEY ` xrayCentringId` (` xrayCentringId` ),
3786+ KEY ` XrayCentringResult_fk_blSampleId` (` blSampleId` ),
3787+ CONSTRAINT ` XrayCentringResult_fk_blSampleId` FOREIGN KEY (` blSampleId` ) REFERENCES ` BLSample` (` blSampleId` ) ON DELETE SET NULL ON UPDATE CASCADE,
37673788 CONSTRAINT ` XrayCentringResult_ibfk_1` FOREIGN KEY (` xrayCentringId` ) REFERENCES ` XrayCentring` (` xrayCentringId` ) ON DELETE CASCADE ON UPDATE CASCADE
37683789) ENGINE= InnoDB DEFAULT CHARSET= utf8mb4 COMMENT= ' Xray Centring result.' ;
37693790/* !40101 SET character_set_client = @saved_cs_client */ ;
0 commit comments