Unverified Commit 867b1ba2 authored by Mael Gaonach's avatar Mael Gaonach
Browse files

generalize

parent 6680b225
DROP TABLE IF EXISTS `SSXDataCollection`;
DROP TABLE IF EXISTS `SSXSpecimen`;
CREATE TABLE `SSXSpecimen` (
`ssxSpecimenId` int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
`specimenId` int(10),
`avgXtalSize` float DEFAULT NULL,
`ligandConcentration` float DEFAULT NULL,
`sampleSupport` varchar(255) DEFAULT NULL,
`jetMaterial` varchar(255) DEFAULT NULL,
FOREIGN KEY (`specimenId`) REFERENCES `Specimen`(`specimenId`) ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE TABLE `SSXDataCollection` (
`ssxDataCollectionId` int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
`dataCollectionId` int(10) unsigned NOT NULL,
`ssxSpecimenId` int(11) unsigned NOT NULL,
`SequenceId` int(11) unsigned DEFAULT NULL,
ALTER TABLE
`DataCollection`
ADD
`sequenceId` int(11) unsigned DEFAULT NULL,
ADD
`repetitionRate` float DEFAULT NULL,
ADD
`energyBandwidth` float DEFAULT NULL,
ADD
`monoStripe` varchar(255) DEFAULT NULL,
FOREIGN KEY (`dataCollectionId`) REFERENCES `DataCollection`(`dataCollectionId`) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (`ssxSpecimenId`) REFERENCES `SSXSpecimen`(`ssxSpecimenId`),
FOREIGN KEY (`SequenceId`) REFERENCES `Sequence`(`SequenceId`)
) ENGINE = InnoDB AUTO_INCREMENT = 0 DEFAULT CHARSET = utf8mb4;
ADD
FOREIGN KEY (`sequenceId`) REFERENCES `Sequence`(`sequenceId`);
ALTER TABLE
`DataCollectionGroup`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment