Unverified Commit 6c198948 authored by Mael Gaonach's avatar Mael Gaonach
Browse files

sample information

parent 0b7a74e9
DROP TABLE IF EXISTS `SSXDataCollection`;
DROP TABLE IF EXISTS `SSXSample`;
DROP TABLE IF EXISTS `SSXSpecimen`;
DROP TABLE IF EXISTS `SSXBuffer`;
CREATE TABLE `SSXBuffer` (
`ssxBufferId` int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
`type` varchar(255) DEFAULT NULL,
`concentration` float DEFAULT NULL
) ENGINE = InnoDB AUTO_INCREMENT = 0 DEFAULT CHARSET = utf8mb4;
CREATE TABLE `SSXSample` (
`ssxSampleId` int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
`ssxBufferId` int(11) unsigned NOT NULL,
`proteinId` int(10) unsigned NOT NULL,
CREATE TABLE `SSXSpecimen` (
`ssxSpecimenId` int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
`specimenId` int(10),
`avgXtalSize` float DEFAULT NULL,
`xtalConcentration` float DEFAULT NULL,
`ligandConcentration` float DEFAULT NULL,
`sampleSupport` varchar(255) DEFAULT NULL,
`jetMaterial` varchar(255) DEFAULT NULL,
FOREIGN KEY (`ssxBufferId`) REFERENCES `SSXBuffer`(`ssxBufferId`) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (`proteinId`) REFERENCES `Protein`(`proteinId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 0 DEFAULT CHARSET = utf8mb4;
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,
`ssxSampleId` int(11) unsigned NOT NULL,
`ssxSpecimenId` int(11) unsigned NOT 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 (`ssxSampleId`) REFERENCES `SSXSample`(`ssxSampleId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 0 DEFAULT CHARSET = utf8mb4;
\ No newline at end of file
FOREIGN KEY (`ssxSpecimenId`) REFERENCES `SSXSpecimen`(`ssxSpecimenId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 0 DEFAULT CHARSET = utf8mb4;
ALTER TABLE
`DataCollectionGroup`
MODIFY
COLUMN `experimentType` enum(
'EM',
'SAD',
'SAD - Inverse Beam',
'OSC',
'Collect - Multiwedge',
'MAD',
'Helical',
'Multi-positional',
'Mesh',
'Burn',
'MAD - Inverse Beam',
'Characterization',
'Dehydration',
'Still',
'SSXChip',
'SSXInjector'
);
\ 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