Unverified Commit b0797d5e authored by Mael Gaonach's avatar Mael Gaonach
Browse files

sequence wip

parent 6c198948
......@@ -16,11 +16,13 @@ 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,
`repetitionRate` float DEFAULT NULL,
`energyBandwidth` float DEFAULT NULL,
`monoStripe` varchar(255) DEFAULT NULL,
FOREIGN KEY (`dataCollectionId`) REFERENCES `DataCollection`(`dataCollectionId`) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (`ssxSpecimenId`) REFERENCES `SSXSpecimen`(`ssxSpecimenId`) 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;
ALTER TABLE
......@@ -43,4 +45,23 @@ MODIFY
'Still',
'SSXChip',
'SSXInjector'
);
\ No newline at end of file
);
CREATE TABLE `Sequence` (
`sequenceId` int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
) CREATE TABLE `SequenceEvent` (
`sequenceEventId` int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
`sequenceId` int(11) unsigned NOT NULL,
`type` enum(
'XrayDetection',
'XrayExposure',
'LaserExcitation'
) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`time` float NOT NULL,
`duration` float NOT NULL,
`period` float DEFAULT NULL,
`repetition` float DEFAULT NULL,
FOREIGN KEY (`sequenceId`) REFERENCES `Sequence`(`sequenceId`) ON DELETE CASCADE ON UPDATE CASCADE
)
\ No newline at end of file
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