This section contains SQL statements that create database tables to accommodate the data in some of the reference set release files. Each table creation is accompanied by a summary of the relevant release file specification. The selection of reference set types shown on this page is incomplete but includes at least one example reference set that includes an additional column of each of the permitted types (componentId, string and integer).
DROP TABLE IF EXISTS `full_refset_Simple`; CREATE TABLE `full_refset_Simple` ( `id` char(36) NOT NULL DEFAULT '', `effectiveTime` DATETIME NOT NULL DEFAULT '2000-01-31 00:00:00', `active` TINYINT NOT NULL DEFAULT 0, `moduleId` BIGINT NOT NULL DEFAULT 0, `refsetId` BIGINT NOT NULL DEFAULT 0, `referencedComponentId` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`,`effectiveTime`)) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; |
DROP TABLE IF EXISTS `full_refset_Language`; CREATE TABLE `full_refset_Language` ( `id` char(36) NOT NULL DEFAULT '', `effectiveTime` DATETIME NOT NULL DEFAULT '2000-01-31 00:00:00', `active` TINYINT NOT NULL DEFAULT 0, `moduleId` BIGINT NOT NULL DEFAULT 0, `refsetId` BIGINT NOT NULL DEFAULT 0, `referencedComponentId` BIGINT NOT NULL DEFAULT 0, `acceptabilityId` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`,`effectiveTime`)) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; |
DROP TABLE IF EXISTS `full_refset_ExtendedMap`; CREATE TABLE `full_refset_ExtendedMap` ( `id` char(36) NOT NULL DEFAULT '', `effectiveTime` DATETIME NOT NULL DEFAULT '2000-01-31 00:00:00', `active` TINYINT NOT NULL DEFAULT 0, `moduleId` BIGINT NOT NULL DEFAULT 0, `refsetId` BIGINT NOT NULL DEFAULT 0, `referencedComponentId` BIGINT NOT NULL DEFAULT 0, `mapGroup` INT NOT NULL DEFAULT 0, `mapPriority` INT NOT NULL DEFAULT 0, `mapRule` TEXT NOT NULL, `mapAdvice` TEXT NOT NULL, `mapTarget` VARCHAR (200) NOT NULL DEFAULT '', `correlationId` BIGINT NOT NULL DEFAULT 0, `mapCategoryId` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`,`effectiveTime`)) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; |
DROP TABLE IF EXISTS `full_refset_ModuleDependency`; CREATE TABLE `full_refset_ModuleDependency` ( `id` char(36) NOT NULL DEFAULT '', `effectiveTime` DATETIME NOT NULL DEFAULT '2000-01-31 00:00:00', `active` TINYINT NOT NULL DEFAULT 0, `moduleId` BIGINT NOT NULL DEFAULT 0, `refsetId` BIGINT NOT NULL DEFAULT 0, `referencedComponentId` BIGINT NOT NULL DEFAULT 0, `sourceEffectiveTime` DATETIME NOT NULL DEFAULT '2000-01-31 00:00:00', `targetEffectiveTime` DATETIME NOT NULL DEFAULT '2000-01-31 00:00:00', PRIMARY KEY (`id`,`effectiveTime`)) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4; |