-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from hormiai76/ssx_processing_results
new tables for SSX processing results
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
INSERT INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2024_07_26_SSX_processing_results.sql', 'ONGOING'); | ||
|
||
CREATE TABLE `SSXProcessingResult`( | ||
`ssxProcessingResultId` int(11) unsigned PRIMARY KEY COMMENT 'Primary key', | ||
`datadcollectionId` int(11) unsigned, | ||
`hitRate` float DEFAULT NULL, | ||
`indexingRate` float DEFAULT NULL, | ||
`indexingType` enum('Preliminary','Final') DEFAULT NULL, | ||
`status` enum('Running', 'Failed', 'Success') DEFAULT NULL, | ||
`createdTimeStamp` timestamp NOT NULL DEFAULT current_timestamp(), | ||
`lastUpdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'last update timestamp', | ||
FOREIGN KEY (`dataCollectionId`) REFERENCES `DataCollection`(`dataCollectionId`) ON DELETE CASCADE ON UPDATE CASCADE | ||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT = 'Processing Results table for SSX experiments.'; | ||
|
||
CREATE TABLE `SSXProcessingResultAttachment`( | ||
`ssxProcessingResultAttachmentId` int(11) unsigned PRIMARY KEY COMMENT 'Primary key', | ||
`ssxProcessingResultId` int(11) unsigned, | ||
`fileName` varchar(255) NOT NULL, | ||
`filePath` varchar(255) NOT NULL, | ||
`fileType` enum('Result','Log', 'Graph') NOT NULL, | ||
`createdTimeStamp` timestamp NOT NULL DEFAULT current_timestamp(), | ||
`lastUpdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'last update timestamp', | ||
FOREIGN KEY (`ssxProcessingResultId`) REFERENCES `SSXProcessingResult`(`ssxProcessingResultId`) ON DELETE CASCADE ON UPDATE CASCADE | ||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT = 'Processing Results attachments table for SSX experiments.'; | ||
|
||
UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2024_07_26_SSX_processing_results.sql'; | ||
|