A few examples will be left here to guide users and installer.
This dictionary was created on 2012/03/12.
Field | Type | Null | Default | Comments |
---|---|---|---|---|
collisionTypeID | smallint(6) | No | ||
firstParticle | varchar(10) | No | ||
secondParticle | varchar(10) | No | ||
collisionEnergy | float | No | 0 | |
collisionTypeIDate | timestamp | No | CURRENT_TIMESTAMP | |
collisionTypeCreator | smallint(6) | No | 1 | |
collisionTypeCount | int(11) | Yes | NULL | |
collisionTypeComment | text | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
creatorID | bigint(20) | No | ||
creatorName | varchar(15) | Yes | unknown | |
creatorIDate | timestamp | No | CURRENT_TIMESTAMP | |
creatorCount | int(11) | Yes | NULL | |
creatorComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
detectorConfigurationID | int(11) | No | ||
detectorConfigurationName | varchar(50) | Yes | NULL | |
dTPC | tinyint(4) | Yes | NULL | |
dSVT | tinyint(4) | Yes | NULL | |
dTOF | tinyint(4) | Yes | NULL | |
dEMC | tinyint(4) | Yes | NULL | |
dEEMC | tinyint(4) | Yes | NULL | |
dFPD | tinyint(4) | Yes | NULL | |
dFTPC | tinyint(4) | Yes | NULL | |
dPMD | tinyint(4) | Yes | NULL | |
dRICH | tinyint(4) | Yes | NULL | |
dSSD | tinyint(4) | Yes | NULL | |
dBBC | tinyint(4) | Yes | NULL | |
dBSMD | tinyint(4) | Yes | NULL | |
dESMD | tinyint(4) | Yes | NULL | |
dZDC | tinyint(4) | Yes | NULL | |
dCTB | tinyint(4) | Yes | NULL | |
dTPX | tinyint(4) | Yes | NULL | |
dFGT | tinyint(4) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
detectorStateID | int(11) | No | ||
sTPC | tinyint(4) | Yes | NULL | |
sSVT | tinyint(4) | Yes | NULL | |
sTOF | tinyint(4) | Yes | NULL | |
sEMC | tinyint(4) | Yes | NULL | |
sEEMC | tinyint(4) | Yes | NULL | |
sFPD | tinyint(4) | Yes | NULL | |
sFTPC | tinyint(4) | Yes | NULL | |
sPMD | tinyint(4) | Yes | NULL | |
sRICH | tinyint(4) | Yes | NULL | |
sSSD | tinyint(4) | Yes | NULL | |
sBBC | tinyint(4) | Yes | NULL | |
sBSMD | tinyint(4) | Yes | NULL | |
sESMD | tinyint(4) | Yes | NULL | |
sZDC | tinyint(4) | Yes | NULL | |
sCTB | tinyint(4) | Yes | NULL | |
sTPX | tinyint(4) | Yes | NULL | |
sFGT | tinyint(4) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
eventGeneratorID | smallint(6) | No | ||
eventGeneratorName | varchar(30) | No | ||
eventGeneratorVersion | varchar(10) | Yes | 0 | |
eventGeneratorParams | varchar(200) | Yes | NULL | |
eventGeneratorIDate | timestamp | No | CURRENT_TIMESTAMP | |
eventGeneratorCreator | smallint(6) | No | 1 | |
eventGeneratorCount | int(11) | Yes | NULL | |
eventGeneratorComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileDataID | bigint(20) | No | ||
runParamID | int(11) | No | 0 | |
fileName | varchar(255) | No | ||
baseName | varchar(255) | No | Name without extension | |
sName1 | varchar(255) | No | Will be used for name+runNumber | |
sName2 | varchar(255) | No | Will be used for name before runNumber | |
productionConditionID | mediumint(9) | Yes | NULL | |
numEntries | mediumint(9) | Yes | 0 | |
md5sum | varchar(32) | Yes | 0 | |
fileTypeID | smallint(6) | No | 0 | |
fileSeq | smallint(6) | Yes | NULL | |
fileStream | smallint(6) | Yes | 0 | |
fileDataIDate | timestamp | No | CURRENT_TIMESTAMP | |
fileDataCreator | smallint(6) | No | 1 | |
fileDataCount | int(11) | Yes | NULL | |
fileDataComment | text | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileLocationID | bigint(20) | No | ||
fileDataID | bigint(20) | No | 0 | |
filePathID | bigint(20) | No | 0 | |
storageTypeID | mediumint(9) | No | 0 | |
createTime | timestamp | No | CURRENT_TIMESTAMP | |
insertTime | timestamp | No | 0000-00-00 00:00:00 | |
owner | varchar(15) | Yes | NULL | |
fsize | bigint(20) | Yes | NULL | |
storageSiteID | smallint(6) | No | 0 | |
protection | varchar(15) | Yes | NULL | |
hostID | mediumint(9) | No | 1 | |
availability | tinyint(4) | No | 1 | |
persistent | tinyint(4) | No | 0 | |
sanity | tinyint(4) | No | 1 |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileLocationID | bigint(20) | No |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileLocationID | bigint(20) | No | ||
fileDataID | bigint(20) | No | 0 | |
filePathID | bigint(20) | No | 0 | |
storageTypeID | mediumint(9) | No | 0 | |
createTime | timestamp | No | CURRENT_TIMESTAMP | |
insertTime | timestamp | No | 0000-00-00 00:00:00 | |
owner | varchar(15) | Yes | NULL | |
fsize | bigint(20) | Yes | NULL | |
storageSiteID | smallint(6) | No | 0 | |
protection | varchar(15) | Yes | NULL | |
hostID | mediumint(9) | No | 1 | |
availability | tinyint(4) | No | 1 | |
persistent | tinyint(4) | No | 0 | |
sanity | tinyint(4) | No | 1 |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileLocationID | bigint(20) | No | ||
fileDataID | bigint(20) | No | 0 | |
filePathID | bigint(20) | No | 0 | |
storageTypeID | mediumint(9) | No | 0 | |
createTime | timestamp | No | CURRENT_TIMESTAMP | |
insertTime | timestamp | No | 0000-00-00 00:00:00 | |
owner | varchar(15) | Yes | NULL | |
fsize | bigint(20) | Yes | NULL | |
storageSiteID | smallint(6) | No | 0 | |
protection | varchar(15) | Yes | NULL | |
hostID | mediumint(9) | No | 1 | |
availability | tinyint(4) | No | 1 | |
persistent | tinyint(4) | No | 0 | |
sanity | tinyint(4) | No | 1 |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileLocationID | bigint(20) | No | ||
fileDataID | bigint(20) | No | 0 | |
filePathID | bigint(20) | No | 0 | |
storageTypeID | mediumint(9) | No | 0 | |
createTime | timestamp | No | CURRENT_TIMESTAMP | |
insertTime | timestamp | No | 0000-00-00 00:00:00 | |
owner | varchar(15) | Yes | NULL | |
fsize | bigint(20) | Yes | NULL | |
storageSiteID | smallint(6) | No | 0 | |
protection | varchar(15) | Yes | NULL | |
hostID | mediumint(9) | No | 1 | |
availability | tinyint(4) | No | 1 | |
persistent | tinyint(4) | No | 0 | |
sanity | tinyint(4) | No | 1 |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileLocationID | bigint(20) | No | ||
fileDataID | bigint(20) | No | 0 | |
filePathID | bigint(20) | No | 0 | |
storageTypeID | mediumint(9) | No | 0 | |
createTime | timestamp | No | CURRENT_TIMESTAMP | |
insertTime | timestamp | No | 0000-00-00 00:00:00 | |
owner | varchar(15) | Yes | NULL | |
fsize | bigint(20) | Yes | NULL | |
storageSiteID | smallint(6) | No | 0 | |
protection | varchar(15) | Yes | NULL | |
hostID | mediumint(9) | No | 1 | |
availability | tinyint(4) | No | 1 | |
persistent | tinyint(4) | No | 0 | |
sanity | tinyint(4) | No | 1 |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
parentFileID | bigint(20) | No | 0 | |
childFileID | bigint(20) | No | 0 |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
filePathID | bigint(6) | No | ||
filePathName | varchar(255) | No | ||
filePathIDate | timestamp | No | CURRENT_TIMESTAMP | |
filePathCreator | smallint(6) | No | 1 | |
filePathCount | int(11) | Yes | NULL | |
filePathComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileTypeID | smallint(6) | No | ||
fileTypeName | varchar(30) | No | ||
fileTypeExtension | varchar(15) | No | ||
fileTypeIDate | timestamp | No | CURRENT_TIMESTAMP | |
fileTypeCreator | smallint(6) | No | 1 | |
fileTypeCount | int(11) | Yes | NULL | |
fileTypeComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
hostID | smallint(6) | No | ||
hostName | varchar(30) | No | localhost | |
hostIDate | timestamp | No | CURRENT_TIMESTAMP | |
hostCreator | smallint(6) | No | 1 | |
hostCount | int(11) | Yes | NULL | |
hostComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
productionConditionID | smallint(6) | No | ||
productionTag | varchar(10) | No | ||
libraryVersion | varchar(10) | No | ||
productionConditionIDate | timestamp | No | CURRENT_TIMESTAMP | |
productionConditionCreator | smallint(6) | No | 1 | |
productionConditionCount | int(11) | Yes | NULL | |
productionConditionComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
runParamID | int(11) | No | ||
runNumber | bigint(20) | No | 0 | |
dataTakingStart | timestamp | No | 0000-00-00 00:00:00 | |
dataTakingEnd | timestamp | No | 0000-00-00 00:00:00 | |
dataTakingDay | smallint(6) | Yes | 0 | |
dataTakingYear | smallint(6) | Yes | 0 | |
simulationParamsID | int(11) | Yes | NULL | |
runTypeID | smallint(6) | No | 0 | |
triggerSetupID | smallint(6) | No | 0 | |
detectorConfigurationID | mediumint(9) | No | 0 | |
detectorStateID | mediumint(9) | No | 0 | |
collisionTypeID | smallint(6) | No | 0 | |
magFieldScale | varchar(50) | No | ||
magFieldValue | float | Yes | NULL | |
runParamIDate | timestamp | No | CURRENT_TIMESTAMP | |
runParamCreator | smallint(6) | No | 1 | |
runParamCount | int(11) | Yes | NULL | |
runParamComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
runTypeID | smallint(6) | No | ||
runTypeName | varchar(255) | No | ||
runTypeIDate | timestamp | No | CURRENT_TIMESTAMP | |
runTypeCreator | smallint(6) | No | 1 | |
runTypeCount | int(11) | Yes | NULL | |
runTypeComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
simulationParamsID | int(11) | No | ||
eventGeneratorID | smallint(6) | No | 0 | |
simulationParamIDate | timestamp | No | CURRENT_TIMESTAMP | |
simulationParamCreator | smallint(6) | No | 1 | |
simulationParamCount | int(11) | Yes | NULL | |
simulationParamComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
storageSiteID | smallint(6) | No | ||
storageSiteName | varchar(30) | No | ||
storageSiteLocation | varchar(50) | Yes | NULL | |
storageSiteIDate | timestamp | No | CURRENT_TIMESTAMP | |
storageSiteCreator | smallint(6) | No | 1 | |
storageSiteCount | int(11) | Yes | NULL | |
storageSiteComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
storageTypeID | mediumint(9) | No | ||
storageTypeName | varchar(6) | No | ||
storageTypeIDate | timestamp | No | CURRENT_TIMESTAMP | |
storageTypeCreator | smallint(6) | No | 1 | |
storageTypeCount | int(11) | Yes | NULL | |
storageTypeComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
fileDataID | bigint(20) | No | 0 | |
triggerWordID | mediumint(9) | No | 0 | |
triggerCount | mediumint(9) | Yes | 0 |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
triggerSetupID | smallint(6) | No | ||
triggerSetupName | varchar(50) | No | ||
triggerSetupComposition | varchar(255) | No | ||
triggerSetupIDate | timestamp | No | CURRENT_TIMESTAMP | |
triggerSetupCreator | smallint(6) | No | 1 | |
triggerSetupCount | int(11) | Yes | NULL | |
triggerSetupComment | varchar(512) | Yes | NULL |
Field | Type | Null | Default | Comments |
---|---|---|---|---|
triggerWordID | mediumint(9) | No | ||
triggerWordName | varchar(50) | No | ||
triggerWordVersion | varchar(6) | No | V0.0 | |
triggerWordBits | varchar(6) | No | ||
triggerWordIDate | timestamp | No | CURRENT_TIMESTAMP | |
triggerWordCreator | smallint(6) | No | 1 | |
triggerWordCount | int(11) | Yes | NULL | |
triggerWordComment | varchar(512) | Yes | NULL |
#use FileCatalog; # # All IDs are named after their respective table. This MUST # remain like this. # eventGeneratorID -> eventGenerator+ID in 'EventGenerators' # detectorConfigurationID ->detectorConfiguration+ID in 'DetectorConfigurations' # # etc... # DROP TABLE IF EXISTS EventGenerators; CREATE TABLE EventGenerators ( eventGeneratorID SMALLINT NOT NULL AUTO_INCREMENT, eventGeneratorName VARCHAR(30) NOT NULL, eventGeneratorVersion VARCHAR(10) NOT NULL, eventGeneratorParams VARCHAR(200), eventGeneratorIDate TIMESTAMP NOT NULL, eventGeneratorCreator CHAR(15) DEFAULT 'unknown' NOT NULL, eventGeneratorCount INT, eventGeneratorComment TEXT, UNIQUE EG_EventGeneratorUnique (eventGeneratorName, eventGeneratorVersion, eventGeneratorParams), PRIMARY KEY (eventGeneratorID) ) TYPE=MyISAM; DROP TABLE IF EXISTS DetectorConfigurations; CREATE TABLE DetectorConfigurations ( detectorConfigurationID INT NOT NULL AUTO_INCREMENT, detectorConfigurationName VARCHAR(50) NULL UNIQUE, dTPC TINYINT, dSVT TINYINT, dTOF TINYINT, dEMC TINYINT, dEEMC TINYINT, dFPD TINYINT, dFTPC TINYINT, dPMD TINYINT, dRICH TINYINT, dSSD TINYINT, dBBC TINYINT, dBSMD TINYINT, dESMD TINYINT, PRIMARY KEY (detectorConfigurationID) ) TYPE=MyISAM; # Trigger related tables DROP TABLE IF EXISTS TriggerSetups; CREATE TABLE TriggerSetups ( triggerSetupID SMALLINT NOT NULL AUTO_INCREMENT, triggerSetupName VARCHAR(50) NOT NULL UNIQUE, triggerSetupComposition VARCHAR(255) NOT NULL, triggerSetupIDate TIMESTAMP NOT NULL, triggerSetupCreator CHAR(15) DEFAULT 'unknown' NOT NULL, triggerSetupCount INT, triggerSetupComment TEXT, PRIMARY KEY (triggerSetupID) ) TYPE=MyISAM; DROP TABLE IF EXISTS TriggerCompositions; CREATE TABLE TriggerCompositions ( fileDataID BIGINT NOT NULL, triggerWordID INT NOT NULL, triggerCount MEDIUMINT DEFAULT 0, PRIMARY KEY (fileDataID, triggerWordID) ) TYPE=MyISAM; DROP TABLE IF EXISTS TriggerWords; CREATE TABLE TriggerWords ( triggerWordID mediumint(9) NOT NULL auto_increment, triggerWordName varchar(50) NOT NULL default '', triggerWordVersion varchar(6) NOT NULL default 'V0.0', triggerWordBits varchar(6) NOT NULL default '', triggerWordIDate timestamp(14) NOT NULL, triggerWordCreator varchar(15) NOT NULL default 'unknown', triggerWordCount int(11) default NULL, triggerWordComment text, PRIMARY KEY (triggerWordID), UNIQUE KEY TW_TriggerCharacteristic (triggerWordName,triggerWordVersion,triggerWordBits) ) TYPE=MyISAM; DROP TABLE IF EXISTS CollisionTypes; CREATE TABLE CollisionTypes ( collisionTypeID SMALLINT NOT NULL AUTO_INCREMENT, firstParticle VARCHAR(10) NOT NULL, secondParticle VARCHAR(10) NOT NULL, collisionEnergy FLOAT NOT NULL, PRIMARY KEY (collisionTypeID) ) TYPE=MyISAM; # # A few dictionary tables # DROP TABLE IF EXISTS ProductionConditions; CREATE TABLE ProductionConditions ( productionConditionID SMALLINT NOT NULL AUTO_INCREMENT, productionTag VARCHAR(10) NOT NULL, libraryVersion VARCHAR(10) NOT NULL, productionConditionIDate TIMESTAMP NOT NULL, productionConditionCreator CHAR(15) DEFAULT 'unknown' NOT NULL, productionConditionCount INT, productionConditionComments TEXT, PRIMARY KEY (productionConditionID) ) TYPE=MyISAM; DROP TABLE IF EXISTS StorageSites; CREATE TABLE StorageSites ( storageSiteID SMALLINT NOT NULL AUTO_INCREMENT, storageSiteName VARCHAR(30) NOT NULL, storageSiteLocation VARCHAR(50), storageSiteIDate TIMESTAMP NOT NULL, storageSiteCreator CHAR(15) DEFAULT 'unknown' NOT NULL, storageSiteCount INT, storageSiteComment TEXT, PRIMARY KEY (storageSiteID) ) TYPE=MyISAM; DROP TABLE IF EXISTS FileTypes; CREATE TABLE FileTypes ( fileTypeID SMALLINT NOT NULL AUTO_INCREMENT, fileTypeName VARCHAR(30) NOT NULL UNIQUE, fileTypeExtension VARCHAR(15) NOT NULL, fileTypeIDate TIMESTAMP NOT NULL, fileTypeCreator CHAR(15) DEFAULT 'unknown' NOT NULL, fileTypeCount INT, fileTypeComment TEXT, PRIMARY KEY (fileTypeID) ) TYPE=MyISAM; DROP TABLE IF EXISTS FilePaths; CREATE TABLE FilePaths ( filePathID BIGINT NOT NULL AUTO_INCREMENT, filePathName VARCHAR(255) NOT NULL UNIQUE, filePathIDate TIMESTAMP NOT NULL, filePathCreator CHAR(15) DEFAULT 'unknown' NOT NULL, filePathCount INT, filePathComment TEXT, PRIMARY KEY (filePathID) ) TYPE=MyISAM; DROP TABLE IF EXISTS Hosts; CREATE TABLE Hosts ( hostID SMALLINT NOT NULL AUTO_INCREMENT, hostName VARCHAR(30) NOT NULL DEFAULT 'localhost' UNIQUE, hostIDate TIMESTAMP NOT NULL, hostCreator CHAR(15) DEFAULT 'unknown' NOT NULL, hostCount INT, hostComment TEXT, PRIMARY KEY (hostID) ) TYPE=MyISAM; DROP TABLE IF EXISTS RunTypes; CREATE TABLE RunTypes ( runTypeID SMALLINT NOT NULL AUTO_INCREMENT, runTypeName VARCHAR(255) NOT NULL UNIQUE, runTypeIDate TIMESTAMP NOT NULL, runTypeCreator CHAR(15) DEFAULT 'unknown' NOT NULL, runTypeCount INT, runTypeComment TEXT, PRIMARY KEY (runTypeID) ) TYPE=MyISAM; DROP TABLE IF EXISTS StorageTypes; CREATE TABLE StorageTypes ( storageTypeID MEDIUMINT NOT NULL AUTO_INCREMENT, storageTypeName VARCHAR(6) NOT NULL UNIQUE, storageTypeIDate TIMESTAMP NOT NULL, storageTypeCreator CHAR(15) DEFAULT 'unknown' NOT NULL, storageTypeCount INT, storageTypeComment TEXT, PRIMARY KEY (storageTypeID) ) TYPE=MyISAM; DROP TABLE IF EXISTS SimulationParams; CREATE TABLE SimulationParams ( simulationParamsID INT NOT NULL AUTO_INCREMENT, eventGeneratorID SMALLINT NOT NULL, detectorConfigurationID INT NOT NULL, simulationParamComments TEXT, PRIMARY KEY (simulationParamsID), INDEX SP_EventGeneratorIndex (eventGeneratorID), INDEX SP_DetectorConfigurationIndex (detectorConfigurationID) ) TYPE=MyISAM; DROP TABLE IF EXISTS RunParams; CREATE TABLE RunParams ( runParamID INT NOT NULL AUTO_INCREMENT, runNumber BIGINT NOT NULL UNIQUE, dataTakingStart TIMESTAMP, dataTakingEnd TIMESTAMP, simulationParamsID INT NULL, runTypeID SMALLINT NOT NULL, triggerSetupID SMALLINT NOT NULL, detectorConfigurationID INT NOT NULL, collisionTypeID SMALLINT NOT NULL, magFieldScale VARCHAR(50) NOT NULL, magFieldValue FLOAT, runComments TEXT, PRIMARY KEY (runParamID), INDEX RP_RunNumberIndex (runNumber), INDEX RP_DataTakingStartIndex (dataTakingStart), INDEX RP_DataTakingEndIndex (dataTakingEnd), INDEX RP_MagFieldScaleIndex (magFieldScale), INDEX RP_MagFieldValueIndex (magFieldValue), INDEX RP_SimulationParamsIndex (simulationParamsID), INDEX RP_RunTypeIndex (runTypeID), INDEX RP_TriggerSetupIndex (triggerSetupID), INDEX RP_DetectorConfigurationIndex (detectorConfigurationID), INDEX RP_CollisionTypeIndex (collisionTypeID) ) TYPE=MyISAM; DROP TABLE IF EXISTS FileData; CREATE TABLE FileData ( fileDataID BIGINT NOT NULL AUTO_INCREMENT, runParamID INT NOT NULL, fileName VARCHAR(255) NOT NULL, baseName VARCHAR(255) NOT NULL COMMENT 'Name without extension', sName1 VARCHAR(255) NOT NULL COMMENT 'Will be used for name+runNumber', sName2 VARCHAR(255) NOT NULL COMMENT 'Will be used for name before runNumber', productionConditionID INT NULL, numEntries MEDIUMINT, md5sum CHAR(32) DEFAULT 0, fileTypeID SMALLINT NOT NULL, fileSeq SMALLINT, fileStream SMALLINT, fileDataComments TEXT, PRIMARY KEY (fileDataID), INDEX FD_FileNameIndex (fileName(40)), INDEX FD_BaseNameIndex (baseName), INDEX FD_SName1Index (sName1), INDEX FS_SName2Index (sName2), INDEX FD_RunParamsIndex (runParamID), INDEX FD_ProductionConditionIndex (productionConditionID), INDEX FD_FileTypeIndex (fileTypeID), INDEX FD_FileSeqIndex (fileSeq), UNIQUE FD_FileDataUnique (runParamID, fileName, productionConditionID, fileTypeID, fileSeq) ) TYPE=MyISAM; # FileParents DROP TABLE IF EXISTS FileParents; CREATE TABLE FileParents ( parentFileID BIGINT NOT NULL, childFileID BIGINT NOT NULL, PRIMARY KEY (parentFileID, childFileID) ) TYPE=MyISAM; # FileLocations DROP TABLE IF EXISTS FileLocations; CREATE TABLE FileLocations ( fileLocationID BIGINT NOT NULL AUTO_INCREMENT, fileDataID BIGINT NOT NULL, filePathID BIGINT NOT NULL, storageTypeID MEDIUMINT NOT NULL, createTime TIMESTAMP, insertTime TIMESTAMP NOT NULL, owner VARCHAR(30), fsize BIGINT, storageSiteID SMALLINT NOT NULL, protection VARCHAR(15), hostID BIGINT NOT NULL DEFAULT 1, availability TINYINT NOT NULL DEFAULT 1, persistent TINYINT NOT NULL DEFAULT 0, sanity TINYINT NOT NULL DEFAULT 1, PRIMARY KEY (fileLocationID), INDEX FL_FilePathIndex (filePathID), INDEX FL_FileDataIndex (fileDataID), INDEX FL_StorageTypeIndex (storageTypeID), INDEX FL_StorageSiteIndex (storageSiteID), INDEX FL_HostIndex (hostID), UNIQUE FL_FileLocationUnique (fileDataID, storageTypeID, filePathID, storageSiteID, hostID) ) TYPE=MyISAM;
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <!DOCTYPE SCATALOG [ <!ELEMENT SCATALOG (SITE*)> <!ATTLIST SCATALOG VERSION CDATA #REQUIRED> <!ELEMENT SITE (SERVER+)> <!ATTLIST SITE name (BNL | LBL) #REQUIRED> <!ATTLIST SITE description CDATA #IMPLIED> <!ATTLIST SITE URI CDATA #IMPLIED> <!ELEMENT SERVER (HOST+)> <!ATTLIST SERVER SCOPE (Master | Admin | User) #REQUIRED> <!ELEMENT HOST (ACCESS+)> <!ATTLIST HOST NAME CDATA #REQUIRED> <!ATTLIST HOST DBTYPE CDATA #IMPLIED> <!ATTLIST HOST DBNAME CDATA #REQUIRED> <!ATTLIST HOST PORT CDATA #IMPLIED> <!ELEMENT ACCESS EMPTY> <!ATTLIST ACCESS USER CDATA #IMPLIED> <!ATTLIST ACCESS PASS CDATA #IMPLIED> ]> <SCATALOG VERSION="1.0.1"> <SITE name="BNL"> <SERVER SCOPE="Master"> <HOST NAME="mafata.wherever.net" DBNAME="Catalog_XXX" PORT="1234"> <ACCESS USER="Moi" PASS="HelloWorld"/> </HOST> <HOST NAME="mafata.wherever.net" DBNAME="Catalog_YYY" PORT="1235"> <ACCESS USER="Moi" PASS="HelloWorld"/> </HOST> <HOST NAME="duvall.star.bnl.gov" DBNAME="FileCatalog" PORT=""> <ACCESS USER="FC_master" PASS="AllAccess"/> </HOST> </SERVER> <SERVER SCOPE="Admin"> <HOST NAME="duvall.star.bnl.gov" DBNAME="FileCatalog_BNL" PORT=""> <ACCESS USER="FC_admin" PASS="ExamplePassword"/> </HOST> </SERVER> <SERVER SCOPE="User"> <HOST NAME="duvall.star.bnl.gov" DBNAME="FileCatalog_BNL" PORT=""> <ACCESS USER="FC_user" PASS="FCatalog"/> </HOST> </SERVER> </SITE> </SCATALOG>