-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version	5.1.22-rc-community


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;


--
-- Create schema mddl4sm
--

CREATE DATABASE IF NOT EXISTS mddl4sm;
USE mddl4sm;

--
-- Definition of table `accretion`
--

DROP TABLE IF EXISTS `accretion`;
CREATE TABLE `accretion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `accretiontype` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `scheduletype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `accretion` bit(1) DEFAULT NULL,
  `accretionbehavior` decimal(19,2) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_accretion` (`source`),
  KEY `accretion_dayruletype` (`dayruletype`),
  KEY `accretion_calculationtype` (`calculationtype`),
  KEY `debtissuedata_accretion` (`debtissuedata`),
  KEY `accretion_indicatorstype` (`indicatorstype`),
  KEY `accretion_scheduletype` (`scheduletype`),
  KEY `accretion_accretiontype` (`accretiontype`),
  CONSTRAINT `accretion_accretiontype` FOREIGN KEY (`accretiontype`) REFERENCES `accretiontype` (`id`),
  CONSTRAINT `accretion_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `accretion_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `accretion_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `accretion_scheduletype` FOREIGN KEY (`scheduletype`) REFERENCES `scheduletype` (`id`),
  CONSTRAINT `debtissuedata_accretion` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `source_accretion` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `accretion`
--

/*!40000 ALTER TABLE `accretion` DISABLE KEYS */;
/*!40000 ALTER TABLE `accretion` ENABLE KEYS */;


--
-- Definition of table `accretiontype`
--

DROP TABLE IF EXISTS `accretiontype`;
CREATE TABLE `accretiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `accretiontype`
--

/*!40000 ALTER TABLE `accretiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `accretiontype` ENABLE KEYS */;


--
-- Definition of table `accrual`
--

DROP TABLE IF EXISTS `accrual`;
CREATE TABLE `accrual` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `accrualbasistype` int(11) DEFAULT NULL,
  `accrualconventiontype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `daysinmonth` decimal(19,2) DEFAULT NULL,
  `daysinyear` decimal(19,2) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_accrual` (`source`),
  KEY `accrual_dayruletype` (`dayruletype`),
  KEY `accrual_accrualbasistype` (`accrualbasistype`),
  KEY `accrual_indicatorstype` (`indicatorstype`),
  KEY `accral_accrualconventiontype` (`accrualconventiontype`),
  CONSTRAINT `accral_accrualconventiontype` FOREIGN KEY (`accrualconventiontype`) REFERENCES `accrualconventiontype` (`id`),
  CONSTRAINT `accrual_accrualbasistype` FOREIGN KEY (`accrualbasistype`) REFERENCES `accrualbasistype` (`id`),
  CONSTRAINT `accrual_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `accrual_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `source_accrual` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `accrual`
--

/*!40000 ALTER TABLE `accrual` DISABLE KEYS */;
/*!40000 ALTER TABLE `accrual` ENABLE KEYS */;


--
-- Definition of table `accrualbasistype`
--

DROP TABLE IF EXISTS `accrualbasistype`;
CREATE TABLE `accrualbasistype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `accrualbasistype`
--

/*!40000 ALTER TABLE `accrualbasistype` DISABLE KEYS */;
/*!40000 ALTER TABLE `accrualbasistype` ENABLE KEYS */;


--
-- Definition of table `accrualconventiontype`
--

DROP TABLE IF EXISTS `accrualconventiontype`;
CREATE TABLE `accrualconventiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `accrualconventiontype`
--

/*!40000 ALTER TABLE `accrualconventiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `accrualconventiontype` ENABLE KEYS */;


--
-- Definition of table `address`
--

DROP TABLE IF EXISTS `address`;
CREATE TABLE `address` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `address` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_address` (`source`),
  CONSTRAINT `source_address` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `address`
--

/*!40000 ALTER TABLE `address` DISABLE KEYS */;
/*!40000 ALTER TABLE `address` ENABLE KEYS */;


--
-- Definition of table `agencyrankings`
--

DROP TABLE IF EXISTS `agencyrankings`;
CREATE TABLE `agencyrankings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `agent` int(11) DEFAULT NULL,
  `codetype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_agencyrankings` (`source`),
  KEY `agencyrnkings_instrmentdmain` (`instrumentdomain`),
  KEY `agencyrankings_agent` (`agent`),
  KEY `agencyrankings_codetype` (`codetype`),
  CONSTRAINT `agencyrankings_agent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`),
  CONSTRAINT `agencyrankings_codetype` FOREIGN KEY (`codetype`) REFERENCES `codetype` (`id`),
  CONSTRAINT `agencyrnkings_instrmentdmain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_agencyrankings` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `agencyrankings`
--

/*!40000 ALTER TABLE `agencyrankings` DISABLE KEYS */;
/*!40000 ALTER TABLE `agencyrankings` ENABLE KEYS */;


--
-- Definition of table `agencyratings`
--

DROP TABLE IF EXISTS `agencyratings`;
CREATE TABLE `agencyratings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `agent` int(11) DEFAULT NULL,
  `ratingtype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_agencyratings` (`source`),
  KEY `agencyratings_ratingtype` (`ratingtype`),
  KEY `issuerclass_agencyratings` (`issuerclass`),
  KEY `agencyratings_instrmentdmain` (`instrumentdomain`),
  KEY `agencyratings_agent` (`agent`),
  CONSTRAINT `agencyratings_agent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`),
  CONSTRAINT `agencyratings_instrmentdmain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `agencyratings_ratingtype` FOREIGN KEY (`ratingtype`) REFERENCES `ratingtype` (`id`),
  CONSTRAINT `issuerclass_agencyratings` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `source_agencyratings` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `agencyratings`
--

/*!40000 ALTER TABLE `agencyratings` DISABLE KEYS */;
/*!40000 ALTER TABLE `agencyratings` ENABLE KEYS */;


--
-- Definition of table `agent`
--

DROP TABLE IF EXISTS `agent`;
CREATE TABLE `agent` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `agenttype` int(11) DEFAULT NULL,
  `entitytype` int(11) DEFAULT NULL,
  `industryidentifier` int(11) DEFAULT NULL,
  `location` int(11) DEFAULT NULL,
  `partystatustype` int(11) DEFAULT NULL,
  `codetype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_agent` (`source`),
  KEY `agent_location` (`location`),
  KEY `agent_agenttype` (`agenttype`),
  KEY `agent_industryidentifier` (`industryidentifier`),
  KEY `agent_partystatustype` (`partystatustype`),
  KEY `agent_codetype` (`codetype`),
  KEY `agent_entitytype` (`entitytype`),
  CONSTRAINT `agent_agenttype` FOREIGN KEY (`agenttype`) REFERENCES `agenttype` (`id`),
  CONSTRAINT `agent_codetype` FOREIGN KEY (`codetype`) REFERENCES `codetype` (`id`),
  CONSTRAINT `agent_entitytype` FOREIGN KEY (`entitytype`) REFERENCES `entitytype` (`id`),
  CONSTRAINT `agent_industryidentifier` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `agent_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `agent_partystatustype` FOREIGN KEY (`partystatustype`) REFERENCES `partystatustype` (`id`),
  CONSTRAINT `source_agent` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `agent`
--

/*!40000 ALTER TABLE `agent` DISABLE KEYS */;
/*!40000 ALTER TABLE `agent` ENABLE KEYS */;


--
-- Definition of table `agenttype`
--

DROP TABLE IF EXISTS `agenttype`;
CREATE TABLE `agenttype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `agenttype`
--

/*!40000 ALTER TABLE `agenttype` DISABLE KEYS */;
/*!40000 ALTER TABLE `agenttype` ENABLE KEYS */;


--
-- Definition of table `agreedrestrictions`
--

DROP TABLE IF EXISTS `agreedrestrictions`;
CREATE TABLE `agreedrestrictions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `agreedrestriction` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_agreedrestrictions` (`source`),
  CONSTRAINT `source_agreedrestrictions` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `agreedrestrictions`
--

/*!40000 ALTER TABLE `agreedrestrictions` DISABLE KEYS */;
/*!40000 ALTER TABLE `agreedrestrictions` ENABLE KEYS */;


--
-- Definition of table `allowedindebtedness`
--

DROP TABLE IF EXISTS `allowedindebtedness`;
CREATE TABLE `allowedindebtedness` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `allowedindebtedness` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_allowedindebtedness` (`source`),
  CONSTRAINT `source_allowedindebtedness` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `allowedindebtedness`
--

/*!40000 ALTER TABLE `allowedindebtedness` DISABLE KEYS */;
/*!40000 ALTER TABLE `allowedindebtedness` ENABLE KEYS */;


--
-- Definition of table `amortization`
--

DROP TABLE IF EXISTS `amortization`;
CREATE TABLE `amortization` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `amortizationbehavior` int(11) DEFAULT NULL,
  `amortizationtype` int(11) DEFAULT NULL,
  `amortization` bit(1) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` date DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_amortization` (`source`),
  KEY `amrtizatin_amrtizatinbehavir` (`amortizationbehavior`),
  KEY `amrtization_amortizationtype` (`amortizationtype`),
  KEY `debtissuedata_amortization` (`debtissuedata`),
  CONSTRAINT `amrtizatin_amrtizatinbehavir` FOREIGN KEY (`amortizationbehavior`) REFERENCES `amortizationbehavior` (`id`),
  CONSTRAINT `amrtization_amortizationtype` FOREIGN KEY (`amortizationtype`) REFERENCES `amortizationtype` (`id`),
  CONSTRAINT `debtissuedata_amortization` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `source_amortization` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `amortization`
--

/*!40000 ALTER TABLE `amortization` DISABLE KEYS */;
/*!40000 ALTER TABLE `amortization` ENABLE KEYS */;


--
-- Definition of table `amortizationbehavior`
--

DROP TABLE IF EXISTS `amortizationbehavior`;
CREATE TABLE `amortizationbehavior` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `amortizationbehaviour` decimal(19,2) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `amrtizatinbehavir_valatinref` (`valuationref`),
  KEY `amrtiztinbehvir_clclatintype` (`calculationtype`),
  KEY `amrtiztinbehavir_valatintype` (`valuationtype`),
  KEY `amrtztnbhvr_qnttydscrptintyp` (`quantitydescriptiontype`),
  KEY `amrtiztinbehavir_qantitytype` (`quantitytype`),
  KEY `amrtiztinbehvir_marketcenter` (`marketcenter`),
  KEY `amrtiztinbehvir_indictrstype` (`indicatorstype`),
  CONSTRAINT `amrtizatinbehavir_valatinref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `amrtiztinbehavir_qantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `amrtiztinbehavir_valatintype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `amrtiztinbehvir_clclatintype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `amrtiztinbehvir_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `amrtiztinbehvir_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `amrtztnbhvr_qnttydscrptintyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `amortizationbehavior`
--

/*!40000 ALTER TABLE `amortizationbehavior` DISABLE KEYS */;
/*!40000 ALTER TABLE `amortizationbehavior` ENABLE KEYS */;


--
-- Definition of table `amortizationtype`
--

DROP TABLE IF EXISTS `amortizationtype`;
CREATE TABLE `amortizationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `amortizationtype`
--

/*!40000 ALTER TABLE `amortizationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `amortizationtype` ENABLE KEYS */;


--
-- Definition of table `amountoutstanding`
--

DROP TABLE IF EXISTS `amountoutstanding`;
CREATE TABLE `amountoutstanding` (
  `id` int(11) NOT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `amountoutstanding` decimal(19,2) DEFAULT NULL,
  `amountoutstandingdate` date DEFAULT NULL,
  `freefloat` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `amnttstanding_instrmentdmain` (`instrumentdomain`),
  KEY `amountoutstanding_currency` (`currency`),
  KEY `amntotstanding_indicatrstype` (`indicatorstype`),
  CONSTRAINT `amntotstanding_indicatrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `amnttstanding_instrmentdmain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `amountoutstanding_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `amountoutstanding`
--

/*!40000 ALTER TABLE `amountoutstanding` DISABLE KEYS */;
/*!40000 ALTER TABLE `amountoutstanding` ENABLE KEYS */;


--
-- Definition of table `amountoutstandingtype`
--

DROP TABLE IF EXISTS `amountoutstandingtype`;
CREATE TABLE `amountoutstandingtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `amountoutstandingtype`
--

/*!40000 ALTER TABLE `amountoutstandingtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `amountoutstandingtype` ENABLE KEYS */;


--
-- Definition of table `ask`
--

DROP TABLE IF EXISTS `ask`;
CREATE TABLE `ask` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `yieldtype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `high` decimal(19,2) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `open` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `yield` decimal(19,2) DEFAULT NULL,
  `foreignexchangedomain_ask` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ask_marketidentifier` (`marketidentifier`),
  KEY `source_ask` (`source`),
  KEY `foreignexchangedomain_ask` (`foreignexchangedomain_ask`),
  KEY `ask_instrumentdomain` (`instrumentdomain`),
  KEY `ask_yieldtype` (`yieldtype`),
  CONSTRAINT `ask_ibfk_1` FOREIGN KEY (`foreignexchangedomain_ask`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `ask_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `ask_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `ask_yieldtype` FOREIGN KEY (`yieldtype`) REFERENCES `yieldtype` (`id`),
  CONSTRAINT `source_ask` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ask`
--

/*!40000 ALTER TABLE `ask` DISABLE KEYS */;
/*!40000 ALTER TABLE `ask` ENABLE KEYS */;


--
-- Definition of table `bid`
--

DROP TABLE IF EXISTS `bid`;
CREATE TABLE `bid` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `yieldtype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `high` decimal(19,2) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `open` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `yield` decimal(19,2) DEFAULT NULL,
  `foreignexchangedomain_bid` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bid_marketidentifier` (`marketidentifier`),
  KEY `source_bid` (`source`),
  KEY `bid_instrumentdomain` (`instrumentdomain`),
  KEY `foreignexchangedomain_bid` (`foreignexchangedomain_bid`),
  KEY `bid_yieldtype` (`yieldtype`),
  CONSTRAINT `bid_ibfk_1` FOREIGN KEY (`foreignexchangedomain_bid`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `bid_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `bid_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `bid_yieldtype` FOREIGN KEY (`yieldtype`) REFERENCES `yieldtype` (`id`),
  CONSTRAINT `source_bid` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bid`
--

/*!40000 ALTER TABLE `bid` DISABLE KEYS */;
/*!40000 ALTER TABLE `bid` ENABLE KEYS */;


--
-- Definition of table `blocking`
--

DROP TABLE IF EXISTS `blocking`;
CREATE TABLE `blocking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayruletype` varchar(255) DEFAULT NULL,
  `blocking` date DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `blocking`
--

/*!40000 ALTER TABLE `blocking` DISABLE KEYS */;
/*!40000 ALTER TABLE `blocking` ENABLE KEYS */;


--
-- Definition of table `businessclass`
--

DROP TABLE IF EXISTS `businessclass`;
CREATE TABLE `businessclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitystatustype` int(11) DEFAULT NULL,
  `replacemententity` int(11) DEFAULT NULL,
  `replacementtype` int(11) DEFAULT NULL,
  `comment` longtext,
  `creationdate` date DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `parentid` int(11) DEFAULT NULL,
  `reviewdate` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `ultimateparentid` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bsinessclss_replcemententity` (`replacemententity`),
  KEY `source_businessclass` (`source`),
  KEY `bsinessclass_replacementtype` (`replacementtype`),
  KEY `bsinessclass_entitystatstype` (`entitystatustype`),
  CONSTRAINT `bsinessclass_entitystatstype` FOREIGN KEY (`entitystatustype`) REFERENCES `entitystatustype` (`id`),
  CONSTRAINT `bsinessclass_replacementtype` FOREIGN KEY (`replacementtype`) REFERENCES `replacementtype` (`id`),
  CONSTRAINT `bsinessclss_replcemententity` FOREIGN KEY (`replacemententity`) REFERENCES `replacemententity` (`id`),
  CONSTRAINT `source_businessclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `businessclass`
--

/*!40000 ALTER TABLE `businessclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `businessclass` ENABLE KEYS */;


--
-- Definition of table `caedomain`
--

DROP TABLE IF EXISTS `caedomain`;
CREATE TABLE `caedomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `snaptype` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `caedomain_snaptype` (`snaptype`),
  CONSTRAINT `caedomain_snaptype` FOREIGN KEY (`snaptype`) REFERENCES `snaptype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `caedomain`
--

/*!40000 ALTER TABLE `caedomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `caedomain` ENABLE KEYS */;


--
-- Definition of table `caedomaintype`
--

DROP TABLE IF EXISTS `caedomaintype`;
CREATE TABLE `caedomaintype` (
  `caedomain_id` int(11) NOT NULL,
  `snapdate` date DEFAULT NULL,
  PRIMARY KEY (`caedomain_id`),
  KEY `FK9B2015056FA3B5DA` (`caedomain_id`),
  CONSTRAINT `FK9B2015056FA3B5DA` FOREIGN KEY (`caedomain_id`) REFERENCES `caedomain` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `caedomaintype`
--

/*!40000 ALTER TABLE `caedomaintype` DISABLE KEYS */;
/*!40000 ALTER TABLE `caedomaintype` ENABLE KEYS */;


--
-- Definition of table `caeidentifier`
--

DROP TABLE IF EXISTS `caeidentifier`;
CREATE TABLE `caeidentifier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `caeidentifier` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_caeidentifier` (`source`),
  CONSTRAINT `source_caeidentifier` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `caeidentifier`
--

/*!40000 ALTER TABLE `caeidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `caeidentifier` ENABLE KEYS */;


--
-- Definition of table `caelifecycletype`
--

DROP TABLE IF EXISTS `caelifecycletype`;
CREATE TABLE `caelifecycletype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `caelifecycletype`
--

/*!40000 ALTER TABLE `caelifecycletype` DISABLE KEYS */;
/*!40000 ALTER TABLE `caelifecycletype` ENABLE KEYS */;


--
-- Definition of table `caestatustype`
--

DROP TABLE IF EXISTS `caestatustype`;
CREATE TABLE `caestatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `caestatustype`
--

/*!40000 ALTER TABLE `caestatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `caestatustype` ENABLE KEYS */;


--
-- Definition of table `caetype`
--

DROP TABLE IF EXISTS `caetype`;
CREATE TABLE `caetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `caetype`
--

/*!40000 ALTER TABLE `caetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `caetype` ENABLE KEYS */;


--
-- Definition of table `calculationtype`
--

DROP TABLE IF EXISTS `calculationtype`;
CREATE TABLE `calculationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `calculationtype`
--

/*!40000 ALTER TABLE `calculationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `calculationtype` ENABLE KEYS */;


--
-- Definition of table `callable`
--

DROP TABLE IF EXISTS `callable`;
CREATE TABLE `callable` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `callabletype` int(11) DEFAULT NULL,
  `callconditiontype` int(11) DEFAULT NULL,
  `specialredemption` int(11) DEFAULT NULL,
  `exerciserightstype` int(11) DEFAULT NULL,
  `cleanupinstrument` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `callable` bit(1) DEFAULT NULL,
  `cleanup` decimal(19,2) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `isdeclining` bit(1) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `makewholecall` bit(1) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `notificationduration` varchar(255) DEFAULT NULL,
  `notificationend` date DEFAULT NULL,
  `notificationstart` date DEFAULT NULL,
  `partial` bit(1) DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  `taxreasons` bit(1) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_callable` (`source`),
  KEY `callable_specialredemption` (`specialredemption`),
  KEY `callable_instrumentdomain` (`instrumentdomain`),
  KEY `callable_cleanupinstrument` (`cleanupinstrument`),
  KEY `callable_callconditiontype` (`callconditiontype`),
  KEY `callable_callabletype` (`callabletype`),
  KEY `callable_exerciserightstype` (`exerciserightstype`),
  CONSTRAINT `callable_callabletype` FOREIGN KEY (`callabletype`) REFERENCES `callabletype` (`id`),
  CONSTRAINT `callable_callconditiontype` FOREIGN KEY (`callconditiontype`) REFERENCES `callconditiontype` (`id`),
  CONSTRAINT `callable_cleanupinstrument` FOREIGN KEY (`cleanupinstrument`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `callable_exerciserightstype` FOREIGN KEY (`exerciserightstype`) REFERENCES `exerciserightstype` (`id`),
  CONSTRAINT `callable_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `callable_specialredemption` FOREIGN KEY (`specialredemption`) REFERENCES `specialredemption` (`id`),
  CONSTRAINT `source_callable` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `callable`
--

/*!40000 ALTER TABLE `callable` DISABLE KEYS */;
/*!40000 ALTER TABLE `callable` ENABLE KEYS */;


--
-- Definition of table `callabletype`
--

DROP TABLE IF EXISTS `callabletype`;
CREATE TABLE `callabletype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `callabletype`
--

/*!40000 ALTER TABLE `callabletype` DISABLE KEYS */;
/*!40000 ALTER TABLE `callabletype` ENABLE KEYS */;


--
-- Definition of table `callconditiontype`
--

DROP TABLE IF EXISTS `callconditiontype`;
CREATE TABLE `callconditiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `callconditiontype`
--

/*!40000 ALTER TABLE `callconditiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `callconditiontype` ENABLE KEYS */;


--
-- Definition of table `capitalizationtype`
--

DROP TABLE IF EXISTS `capitalizationtype`;
CREATE TABLE `capitalizationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `capitalizationtype`
--

/*!40000 ALTER TABLE `capitalizationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `capitalizationtype` ENABLE KEYS */;


--
-- Definition of table `cashdomain`
--

DROP TABLE IF EXISTS `cashdomain`;
CREATE TABLE `cashdomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_cashdomain` (`source`),
  CONSTRAINT `source_cashdomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `cashdomain`
--

/*!40000 ALTER TABLE `cashdomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `cashdomain` ENABLE KEYS */;


--
-- Definition of table `changedirection`
--

DROP TABLE IF EXISTS `changedirection`;
CREATE TABLE `changedirection` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `changedirection`
--

/*!40000 ALTER TABLE `changedirection` DISABLE KEYS */;
/*!40000 ALTER TABLE `changedirection` ENABLE KEYS */;


--
-- Definition of table `changetype`
--

DROP TABLE IF EXISTS `changetype`;
CREATE TABLE `changetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `changetype`
--

/*!40000 ALTER TABLE `changetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `changetype` ENABLE KEYS */;


--
-- Definition of table `clearinghouse`
--

DROP TABLE IF EXISTS `clearinghouse`;
CREATE TABLE `clearinghouse` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clearinghouse` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_clearinghouse` (`source`),
  CONSTRAINT `source_clearinghouse` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clearinghouse`
--

/*!40000 ALTER TABLE `clearinghouse` DISABLE KEYS */;
/*!40000 ALTER TABLE `clearinghouse` ENABLE KEYS */;


--
-- Definition of table `clearingprocess`
--

DROP TABLE IF EXISTS `clearingprocess`;
CREATE TABLE `clearingprocess` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clearinghouse` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_clearingprocess` (`source`),
  CONSTRAINT `source_clearingprocess` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clearingprocess`
--

/*!40000 ALTER TABLE `clearingprocess` DISABLE KEYS */;
/*!40000 ALTER TABLE `clearingprocess` ENABLE KEYS */;


--
-- Definition of table `clearingsettlement`
--

DROP TABLE IF EXISTS `clearingsettlement`;
CREATE TABLE `clearingsettlement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clearinghouse` int(11) DEFAULT NULL,
  `clearingprocess` int(11) DEFAULT NULL,
  `clearingsystem` int(11) DEFAULT NULL,
  `depositoryname` int(11) DEFAULT NULL,
  `depositorysystem` int(11) DEFAULT NULL,
  `marketidentifier` int(11) DEFAULT NULL,
  `settlementtype` int(11) DEFAULT NULL,
  `currency` varchar(255) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `clringsttlmnt_mrktidentifier` (`marketidentifier`),
  KEY `cleringsettlement_cleringhse` (`clearinghouse`),
  KEY `source_clearingsettlement` (`source`),
  KEY `issuedata_clearingsettlement` (`issuedata`),
  KEY `clringsttlmnt_depsitrysystem` (`depositorysystem`),
  KEY `clringsettlement_depsitrynme` (`depositoryname`),
  KEY `clringsttlmnt_settlementtype` (`settlementtype`),
  KEY `clringsttlment_cleringsystem` (`clearingsystem`),
  KEY `clringsttlment_cleringprcess` (`clearingprocess`),
  CONSTRAINT `cleringsettlement_cleringhse` FOREIGN KEY (`clearinghouse`) REFERENCES `clearinghouse` (`id`),
  CONSTRAINT `clringsettlement_depsitrynme` FOREIGN KEY (`depositoryname`) REFERENCES `depositoryname` (`id`),
  CONSTRAINT `clringsttlment_cleringprcess` FOREIGN KEY (`clearingprocess`) REFERENCES `clearingprocess` (`id`),
  CONSTRAINT `clringsttlment_cleringsystem` FOREIGN KEY (`clearingsystem`) REFERENCES `clearingsystem` (`id`),
  CONSTRAINT `clringsttlmnt_depsitrysystem` FOREIGN KEY (`depositorysystem`) REFERENCES `depositorysystem` (`id`),
  CONSTRAINT `clringsttlmnt_mrktidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `clringsttlmnt_settlementtype` FOREIGN KEY (`settlementtype`) REFERENCES `settlementtype` (`id`),
  CONSTRAINT `issuedata_clearingsettlement` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `source_clearingsettlement` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clearingsettlement`
--

/*!40000 ALTER TABLE `clearingsettlement` DISABLE KEYS */;
/*!40000 ALTER TABLE `clearingsettlement` ENABLE KEYS */;


--
-- Definition of table `clearingsettlementagent`
--

DROP TABLE IF EXISTS `clearingsettlementagent`;
CREATE TABLE `clearingsettlementagent` (
  `agent` int(11) NOT NULL,
  `clearingsettlement` int(11) NOT NULL,
  KEY `clrngsttlmnt_clrngsttlmntgnt` (`agent`),
  KEY `agent_gentclearingsettlement` (`clearingsettlement`),
  CONSTRAINT `agent_gentclearingsettlement` FOREIGN KEY (`clearingsettlement`) REFERENCES `clearingsettlement` (`id`),
  CONSTRAINT `clrngsttlmnt_clrngsttlmntgnt` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clearingsettlementagent`
--

/*!40000 ALTER TABLE `clearingsettlementagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `clearingsettlementagent` ENABLE KEYS */;


--
-- Definition of table `clearingsystem`
--

DROP TABLE IF EXISTS `clearingsystem`;
CREATE TABLE `clearingsystem` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clearingsystem` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_clearingsystem` (`source`),
  CONSTRAINT `source_clearingsystem` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clearingsystem`
--

/*!40000 ALTER TABLE `clearingsystem` DISABLE KEYS */;
/*!40000 ALTER TABLE `clearingsystem` ENABLE KEYS */;


--
-- Definition of table `closetype`
--

DROP TABLE IF EXISTS `closetype`;
CREATE TABLE `closetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `closetype`
--

/*!40000 ALTER TABLE `closetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `closetype` ENABLE KEYS */;


--
-- Definition of table `closingdatetype`
--

DROP TABLE IF EXISTS `closingdatetype`;
CREATE TABLE `closingdatetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `closingdatetype`
--

/*!40000 ALTER TABLE `closingdatetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `closingdatetype` ENABLE KEYS */;


--
-- Definition of table `code`
--

DROP TABLE IF EXISTS `code`;
CREATE TABLE `code` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayruletype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `nameref` varchar(255) DEFAULT NULL,
  `namerefvalidity` varchar(255) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_code` (`source`),
  KEY `code_dayruletype` (`dayruletype`),
  CONSTRAINT `code_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `source_code` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `code`
--

/*!40000 ALTER TABLE `code` DISABLE KEYS */;
/*!40000 ALTER TABLE `code` ENABLE KEYS */;


--
-- Definition of table `codetype`
--

DROP TABLE IF EXISTS `codetype`;
CREATE TABLE `codetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `codetype`
--

/*!40000 ALTER TABLE `codetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `codetype` ENABLE KEYS */;


--
-- Definition of table `collateral`
--

DROP TABLE IF EXISTS `collateral`;
CREATE TABLE `collateral` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `collateraltype` int(11) DEFAULT NULL,
  `interestrate` int(11) DEFAULT NULL,
  `maturity` int(11) DEFAULT NULL,
  `underlying` int(11) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `collateral_interestrate` (`interestrate`),
  KEY `source_collateral` (`source`),
  KEY `issuedata_collateral` (`issuedata`),
  KEY `collateral_underlying` (`underlying`),
  KEY `collateral_maturity` (`maturity`),
  KEY `collateral_collateraltype` (`collateraltype`),
  CONSTRAINT `collateral_collateraltype` FOREIGN KEY (`collateraltype`) REFERENCES `collateraltype` (`id`),
  CONSTRAINT `collateral_interestrate` FOREIGN KEY (`interestrate`) REFERENCES `interestrate` (`id`),
  CONSTRAINT `collateral_maturity` FOREIGN KEY (`maturity`) REFERENCES `maturity` (`id`),
  CONSTRAINT `collateral_underlying` FOREIGN KEY (`underlying`) REFERENCES `underlying` (`id`),
  CONSTRAINT `issuedata_collateral` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `source_collateral` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `collateral`
--

/*!40000 ALTER TABLE `collateral` DISABLE KEYS */;
/*!40000 ALTER TABLE `collateral` ENABLE KEYS */;


--
-- Definition of table `collateraltype`
--

DROP TABLE IF EXISTS `collateraltype`;
CREATE TABLE `collateraltype` (
  `id` int(11) NOT NULL,
  `code` int(11) DEFAULT NULL,
  `name` int(11) DEFAULT NULL,
  `previouscode` int(11) DEFAULT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `collateraltype_previouscode` (`previouscode`),
  KEY `collateraltype_name` (`name`),
  KEY `collateraltype_code` (`code`),
  CONSTRAINT `collateraltype_code` FOREIGN KEY (`code`) REFERENCES `schemeinfo` (`id`),
  CONSTRAINT `collateraltype_name` FOREIGN KEY (`name`) REFERENCES `name` (`id`),
  CONSTRAINT `collateraltype_previouscode` FOREIGN KEY (`previouscode`) REFERENCES `previouscode` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `collateraltype`
--

/*!40000 ALTER TABLE `collateraltype` DISABLE KEYS */;
/*!40000 ALTER TABLE `collateraltype` ENABLE KEYS */;


--
-- Definition of table `comment`
--

DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `comment` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_comment` (`source`),
  CONSTRAINT `source_comment` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `comment`
--

/*!40000 ALTER TABLE `comment` DISABLE KEYS */;
/*!40000 ALTER TABLE `comment` ENABLE KEYS */;


--
-- Definition of table `commoditydomain`
--

DROP TABLE IF EXISTS `commoditydomain`;
CREATE TABLE `commoditydomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `snaptype` int(11) NOT NULL,
  `snaptime` datetime DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `commoditydomain_snaptype` (`snaptype`),
  KEY `source_commoditydomain` (`source`),
  CONSTRAINT `commoditydomain_snaptype` FOREIGN KEY (`snaptype`) REFERENCES `snaptype` (`id`),
  CONSTRAINT `source_commoditydomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `commoditydomain`
--

/*!40000 ALTER TABLE `commoditydomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `commoditydomain` ENABLE KEYS */;


--
-- Definition of table `component`
--

DROP TABLE IF EXISTS `component`;
CREATE TABLE `component` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `componentidentifier` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `basevalue` decimal(19,2) DEFAULT NULL,
  `componentvalue` decimal(19,2) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `valuationref` varchar(255) DEFAULT NULL,
  `weighting` decimal(19,2) DEFAULT NULL,
  `indexdomain_component` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_component` (`source`),
  KEY `indexdomain_component` (`indexdomain_component`),
  KEY `component_calculationtype` (`dayruletype`),
  KEY `component_unittype` (`unittype`),
  KEY `component_valuationtype` (`valuationtype`),
  KEY `cmponent_componentidentifier` (`componentidentifier`),
  KEY `cmpnent_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `component_quantitytype` (`quantitytype`),
  KEY `component_indicatorstype` (`indicatorstype`),
  CONSTRAINT `cmpnent_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `cmponent_componentidentifier` FOREIGN KEY (`componentidentifier`) REFERENCES `componentidentifier` (`id`),
  CONSTRAINT `component_calculationtype` FOREIGN KEY (`dayruletype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `component_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `component_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `component_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `component_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `indexdomain_component` FOREIGN KEY (`indexdomain_component`) REFERENCES `indexdomain` (`id`),
  CONSTRAINT `source_component` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `component`
--

/*!40000 ALTER TABLE `component` DISABLE KEYS */;
/*!40000 ALTER TABLE `component` ENABLE KEYS */;


--
-- Definition of table `componentidentifier`
--

DROP TABLE IF EXISTS `componentidentifier`;
CREATE TABLE `componentidentifier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumentstatustype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `codescheme` varchar(255) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cmpnntidntfr_instrmntsttstyp` (`instrumentstatustype`),
  KEY `source_componentidentifier` (`source`),
  CONSTRAINT `cmpnntidntfr_instrmntsttstyp` FOREIGN KEY (`instrumentstatustype`) REFERENCES `instrumentstatustype` (`id`),
  CONSTRAINT `source_componentidentifier` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `componentidentifier`
--

/*!40000 ALTER TABLE `componentidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `componentidentifier` ENABLE KEYS */;


--
-- Definition of table `compounding`
--

DROP TABLE IF EXISTS `compounding`;
CREATE TABLE `compounding` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `compounding` bit(1) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_compounding` (`source`),
  CONSTRAINT `source_compounding` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `compounding`
--

/*!40000 ALTER TABLE `compounding` DISABLE KEYS */;
/*!40000 ALTER TABLE `compounding` ENABLE KEYS */;


--
-- Definition of table `compulsory`
--

DROP TABLE IF EXISTS `compulsory`;
CREATE TABLE `compulsory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `compulsory` bit(1) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_compulsory` (`source`),
  CONSTRAINT `source_compulsory` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `compulsory`
--

/*!40000 ALTER TABLE `compulsory` DISABLE KEYS */;
/*!40000 ALTER TABLE `compulsory` ENABLE KEYS */;


--
-- Definition of table `contacttype`
--

DROP TABLE IF EXISTS `contacttype`;
CREATE TABLE `contacttype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `contacttype`
--

/*!40000 ALTER TABLE `contacttype` DISABLE KEYS */;
/*!40000 ALTER TABLE `contacttype` ENABLE KEYS */;


--
-- Definition of table `convertible`
--

DROP TABLE IF EXISTS `convertible`;
CREATE TABLE `convertible` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `convertibletype` int(11) DEFAULT NULL,
  `relatedto` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `dayofweektype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `convertible` bit(1) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `issuerchoice` bit(1) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_convertible` (`source`),
  KEY `convertible_instrumentdomain` (`instrumentdomain`),
  KEY `convertible_dayofweek` (`dayofweektype`),
  KEY `convertible_relatedto` (`relatedto`),
  KEY `convertible_dayruletype` (`dayruletype`),
  KEY `convertible_convertibletype` (`convertibletype`),
  CONSTRAINT `convertible_convertibletype` FOREIGN KEY (`convertibletype`) REFERENCES `convertibletype` (`id`),
  CONSTRAINT `convertible_dayofweek` FOREIGN KEY (`dayofweektype`) REFERENCES `dayofweek` (`id`),
  CONSTRAINT `convertible_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `convertible_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `convertible_relatedto` FOREIGN KEY (`relatedto`) REFERENCES `relatedto` (`id`),
  CONSTRAINT `source_convertible` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `convertible`
--

/*!40000 ALTER TABLE `convertible` DISABLE KEYS */;
/*!40000 ALTER TABLE `convertible` ENABLE KEYS */;


--
-- Definition of table `convertibletype`
--

DROP TABLE IF EXISTS `convertibletype`;
CREATE TABLE `convertibletype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `convertibletype`
--

/*!40000 ALTER TABLE `convertibletype` DISABLE KEYS */;
/*!40000 ALTER TABLE `convertibletype` ENABLE KEYS */;


--
-- Definition of table `corporateactionsclass`
--

DROP TABLE IF EXISTS `corporateactionsclass`;
CREATE TABLE `corporateactionsclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `corporatechangesubclass` int(11) DEFAULT NULL,
  `datachangesubclass` int(11) DEFAULT NULL,
  `distributionsubclass` int(11) DEFAULT NULL,
  `holderactionsubclass` int(11) DEFAULT NULL,
  `issuancesubclass` int(11) DEFAULT NULL,
  `paymentactionsubclass` int(11) DEFAULT NULL,
  `redemptionsubclass` int(11) DEFAULT NULL,
  `restructuresubclass` int(11) DEFAULT NULL,
  `statuschangesubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `crprtctinsclss_dtchngesbclss` (`datachangesubclass`),
  KEY `crprtctnsclss_crprtchngsbcls` (`corporatechangesubclass`),
  KEY `crprtctnsclss_hldrctinsbclss` (`holderactionsubclass`),
  KEY `source_corporateactionsclass` (`source`),
  KEY `crprtctnsclss_pymntctnsbclss` (`paymentactionsubclass`),
  KEY `crprtectinsclss_issncesbclss` (`issuancesubclass`),
  KEY `crprtctinsclss_rdmptinsbclss` (`redemptionsubclass`),
  KEY `crprtctnsclss_sttschngsbclss` (`statuschangesubclass`),
  KEY `crprtctinsclss_rstrctrsbclss` (`restructuresubclass`),
  KEY `crprtctnsclss_dstrbtinsbclss` (`distributionsubclass`),
  CONSTRAINT `crprtctinsclss_dtchngesbclss` FOREIGN KEY (`datachangesubclass`) REFERENCES `datachangesubclass` (`id`),
  CONSTRAINT `crprtctinsclss_rdmptinsbclss` FOREIGN KEY (`redemptionsubclass`) REFERENCES `redemptionsubclass` (`id`),
  CONSTRAINT `crprtctinsclss_rstrctrsbclss` FOREIGN KEY (`restructuresubclass`) REFERENCES `restructuresubclass` (`id`),
  CONSTRAINT `crprtctnsclss_crprtchngsbcls` FOREIGN KEY (`corporatechangesubclass`) REFERENCES `corporatechangesubclass` (`id`),
  CONSTRAINT `crprtctnsclss_dstrbtinsbclss` FOREIGN KEY (`distributionsubclass`) REFERENCES `distributionsubclass` (`id`),
  CONSTRAINT `crprtctnsclss_hldrctinsbclss` FOREIGN KEY (`holderactionsubclass`) REFERENCES `holderactionsubclass` (`id`),
  CONSTRAINT `crprtctnsclss_pymntctnsbclss` FOREIGN KEY (`paymentactionsubclass`) REFERENCES `paymentactionsubclass` (`id`),
  CONSTRAINT `crprtctnsclss_sttschngsbclss` FOREIGN KEY (`statuschangesubclass`) REFERENCES `statuschangesubclass` (`id`),
  CONSTRAINT `crprtectinsclss_issncesbclss` FOREIGN KEY (`issuancesubclass`) REFERENCES `issuancesubclass` (`id`),
  CONSTRAINT `source_corporateactionsclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `corporateactionsclass`
--

/*!40000 ALTER TABLE `corporateactionsclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `corporateactionsclass` ENABLE KEYS */;


--
-- Definition of table `corporatechangesubclass`
--

DROP TABLE IF EXISTS `corporatechangesubclass`;
CREATE TABLE `corporatechangesubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `elgibilityqntitydscriptintyp` int(11) DEFAULT NULL,
  `eligibilityquantitytype` int(11) DEFAULT NULL,
  `eligibilitytype` int(11) DEFAULT NULL,
  `offerdeliver` int(11) DEFAULT NULL,
  `offerreceive` int(11) DEFAULT NULL,
  `offerdayruletype` int(11) DEFAULT NULL,
  `offerperiodtype` int(11) DEFAULT NULL,
  `offeragent` int(11) DEFAULT NULL,
  `acceptancemaxval` decimal(19,2) DEFAULT NULL,
  `acceptanceminval` decimal(19,2) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `eligibilitymaxval` decimal(19,2) DEFAULT NULL,
  `eligibilityminval` decimal(19,2) DEFAULT NULL,
  `eligibilityrecorddate` date DEFAULT NULL,
  `fulloffer` bit(1) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `offercompulsory` bit(1) DEFAULT NULL,
  `offerconfirmationdate` date DEFAULT NULL,
  `offerdeadlinedate` date DEFAULT NULL,
  `offerduration` varchar(255) DEFAULT NULL,
  `offerenddate` date DEFAULT NULL,
  `offerrecurrable` bit(1) DEFAULT NULL,
  `offerregulatorydate` date DEFAULT NULL,
  `offerstartdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `cedmain_crpratechangesbclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sorce_corporatechangesbclass` (`source`),
  KEY `crprtchngsbclss_ffrdyrletype` (`offerdayruletype`),
  KEY `crprtchngsbcl_lgbltyqnttyty` (`eligibilityquantitytype`),
  KEY `crprtchngesbclss_fferdeliver` (`offerdeliver`),
  KEY `crprtchngsbclss_lgbltyrngtyp` (`eligibilitytype`),
  KEY `crprtechngesbclass_fferagent` (`offeragent`),
  KEY `crprtchngesbclss_meetingtype` (`meetingtype`),
  KEY `crprtchngsbclss_ffrperidtype` (`offerperiodtype`),
  KEY `crprtchngesbclss_fferreceive` (`offerreceive`),
  KEY `cedmain_crpratechangesbclass` (`cedmain_crpratechangesbclass`),
  KEY `crpratechangesbclass_caetype` (`caetype`),
  KEY `crprtchngsbclss_clifcycltype` (`caelifecycletype`),
  KEY `crprtechngesbclss_cesttstype` (`caestatustype`),
  KEY `crprtchngsbcl_lgbltyqnttyds` (`elgibilityqntitydscriptintyp`),
  KEY `crprtchngsbclss_indictrstype` (`indicatorstype`),
  KEY `crprtechangesbclass_isserref` (`issuerref`),
  CONSTRAINT `cedmain_crpratechangesbclass` FOREIGN KEY (`cedmain_crpratechangesbclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `crpratechangesbclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `crprtchngesbclss_fferdeliver` FOREIGN KEY (`offerdeliver`) REFERENCES `deliver` (`id`),
  CONSTRAINT `crprtchngesbclss_fferreceive` FOREIGN KEY (`offerreceive`) REFERENCES `receive` (`id`),
  CONSTRAINT `crprtchngesbclss_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `crprtchngsbclss_clifcycltype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `crprtchngsbclss_ffrdyrletype` FOREIGN KEY (`offerdayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `crprtchngsbclss_ffrperidtype` FOREIGN KEY (`offerperiodtype`) REFERENCES `periodtype` (`id`),
  CONSTRAINT `crprtchngsbclss_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `crprtchngsbclss_lgbltyrngtyp` FOREIGN KEY (`eligibilitytype`) REFERENCES `rangetype` (`id`),
  CONSTRAINT `crprtchngsbcl_lgbltyqnttyds` FOREIGN KEY (`elgibilityqntitydscriptintyp`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `crprtchngsbcl_lgbltyqnttyty` FOREIGN KEY (`eligibilityquantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `crprtechangesbclass_isserref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `crprtechngesbclass_fferagent` FOREIGN KEY (`offeragent`) REFERENCES `agent` (`id`),
  CONSTRAINT `crprtechngesbclss_cesttstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `sorce_corporatechangesbclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `corporatechangesubclass`
--

/*!40000 ALTER TABLE `corporatechangesubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `corporatechangesubclass` ENABLE KEYS */;


--
-- Definition of table `corporatechangesubclassagent`
--

DROP TABLE IF EXISTS `corporatechangesubclassagent`;
CREATE TABLE `corporatechangesubclassagent` (
  `agent` int(11) NOT NULL,
  `corporatechangesubclass` int(11) NOT NULL,
  KEY `agent_gentcrprtechngesbclass` (`corporatechangesubclass`),
  KEY `crprtchngsbcl_crprtchngsbcl` (`agent`),
  CONSTRAINT `agent_gentcrprtechngesbclass` FOREIGN KEY (`corporatechangesubclass`) REFERENCES `corporatechangesubclass` (`id`),
  CONSTRAINT `crprtchngsbcl_crprtchngsbcl` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `corporatechangesubclassagent`
--

/*!40000 ALTER TABLE `corporatechangesubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `corporatechangesubclassagent` ENABLE KEYS */;


--
-- Definition of table `corporateeventsclass`
--

DROP TABLE IF EXISTS `corporateeventsclass`;
CREATE TABLE `corporateeventsclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `corporatesubclass` int(11) DEFAULT NULL,
  `meetingsubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_corporateeventsclass` (`source`),
  KEY `crprteventsclss_crprtesbclss` (`corporatesubclass`),
  KEY `crprtevntsclss_meetingsbclss` (`meetingsubclass`),
  CONSTRAINT `crprteventsclss_crprtesbclss` FOREIGN KEY (`corporatesubclass`) REFERENCES `corporatesubclass` (`id`),
  CONSTRAINT `crprtevntsclss_meetingsbclss` FOREIGN KEY (`meetingsubclass`) REFERENCES `meetingsubclass` (`id`),
  CONSTRAINT `source_corporateeventsclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `corporateeventsclass`
--

/*!40000 ALTER TABLE `corporateeventsclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `corporateeventsclass` ENABLE KEYS */;


--
-- Definition of table `corporatesubclass`
--

DROP TABLE IF EXISTS `corporatesubclass`;
CREATE TABLE `corporatesubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingetype` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) NOT NULL,
  `caestatustype` int(11) NOT NULL,
  `caetype` int(11) NOT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `announcementdate` date NOT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `relatedcaeid` int(11) DEFAULT NULL,
  `caedomain_corporatesubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_corporatesubclass` (`source`),
  KEY `caedomain_corporatesubclass` (`caedomain_corporatesubclass`),
  KEY `corporatesubclass_caetype` (`caetype`),
  KEY `crporatesbclass_caestatstype` (`caestatustype`),
  KEY `crprtesbclss_celifecycletype` (`caelifecycletype`),
  KEY `corporatesubclass_issuerref` (`issuerref`),
  KEY `crpratesbclass_indicatrstype` (`indicatorstype`),
  KEY `corporatesbclass_meetingtype` (`meetingetype`),
  CONSTRAINT `caedomain_corporatesubclass` FOREIGN KEY (`caedomain_corporatesubclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `corporatesbclass_meetingtype` FOREIGN KEY (`meetingetype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `corporatesubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `corporatesubclass_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `crporatesbclass_caestatstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `crpratesbclass_indicatrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `crprtesbclss_celifecycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `source_corporatesubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `corporatesubclass`
--

/*!40000 ALTER TABLE `corporatesubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `corporatesubclass` ENABLE KEYS */;


--
-- Definition of table `corporatesubclassagent`
--

DROP TABLE IF EXISTS `corporatesubclassagent`;
CREATE TABLE `corporatesubclassagent` (
  `agent` int(11) NOT NULL,
  `corporatesubclass` int(11) NOT NULL,
  KEY `crprtsbclss_crprtesbclssgent` (`agent`),
  KEY `agent_agentcorporatesubclass` (`corporatesubclass`),
  CONSTRAINT `agent_agentcorporatesubclass` FOREIGN KEY (`corporatesubclass`) REFERENCES `corporatesubclass` (`id`),
  CONSTRAINT `crprtsbclss_crprtesbclssgent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `corporatesubclassagent`
--

/*!40000 ALTER TABLE `corporatesubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `corporatesubclassagent` ENABLE KEYS */;


--
-- Definition of table `counterpartyclass`
--

DROP TABLE IF EXISTS `counterpartyclass`;
CREATE TABLE `counterpartyclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitystatustype` int(11) DEFAULT NULL,
  `replacemententity` int(11) DEFAULT NULL,
  `replacementtype` int(11) DEFAULT NULL,
  `comment` longtext,
  `creationdate` date DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `incorpdate` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `parentid` int(11) DEFAULT NULL,
  `reviewdate` date DEFAULT NULL,
  `shortname` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `ultimateparentid` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cntrprtyclss_rplcemententity` (`replacemententity`),
  KEY `source_counterpartyclass` (`source`),
  KEY `cnterprtyclss_replcementtype` (`replacementtype`),
  KEY `cnterprtyclss_entitysttstype` (`entitystatustype`),
  CONSTRAINT `cnterprtyclss_entitysttstype` FOREIGN KEY (`entitystatustype`) REFERENCES `entitystatustype` (`id`),
  CONSTRAINT `cnterprtyclss_replcementtype` FOREIGN KEY (`replacementtype`) REFERENCES `replacementtype` (`id`),
  CONSTRAINT `cntrprtyclss_rplcemententity` FOREIGN KEY (`replacemententity`) REFERENCES `replacemententity` (`id`),
  CONSTRAINT `source_counterpartyclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `counterpartyclass`
--

/*!40000 ALTER TABLE `counterpartyclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `counterpartyclass` ENABLE KEYS */;


--
-- Definition of table `counterpartyownership`
--

DROP TABLE IF EXISTS `counterpartyownership`;
CREATE TABLE `counterpartyownership` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `businessClass` int(11) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `percent` decimal(19,2) DEFAULT NULL,
  `reviewdate` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `counterpartyclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_counterpartyownership` (`source`),
  KEY `cntrprtywnership_bsinessclss` (`businessClass`),
  KEY `cntrprtyclss_cntrprtywnrship` (`counterpartyclass`),
  CONSTRAINT `cntrprtyclss_cntrprtywnrship` FOREIGN KEY (`counterpartyclass`) REFERENCES `counterpartyclass` (`id`),
  CONSTRAINT `cntrprtywnership_bsinessclss` FOREIGN KEY (`businessClass`) REFERENCES `businessclass` (`id`),
  CONSTRAINT `source_counterpartyownership` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `counterpartyownership`
--

/*!40000 ALTER TABLE `counterpartyownership` DISABLE KEYS */;
/*!40000 ALTER TABLE `counterpartyownership` ENABLE KEYS */;


--
-- Definition of table `country`
--

DROP TABLE IF EXISTS `country`;
CREATE TABLE `country` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `country`
--

/*!40000 ALTER TABLE `country` DISABLE KEYS */;
/*!40000 ALTER TABLE `country` ENABLE KEYS */;


--
-- Definition of table `creationdate`
--

DROP TABLE IF EXISTS `creationdate`;
CREATE TABLE `creationdate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayruletype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `creationdate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `creationdate_dayruletype` (`dayruletype`),
  KEY `creationdate_marketcenter` (`marketcenter`),
  KEY `creationdate_indicatorstype` (`indicatorstype`),
  CONSTRAINT `creationdate_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `creationdate_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `creationdate_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `creationdate`
--

/*!40000 ALTER TABLE `creationdate` DISABLE KEYS */;
/*!40000 ALTER TABLE `creationdate` ENABLE KEYS */;


--
-- Definition of table `creditdefaultswapissuedata`
--

DROP TABLE IF EXISTS `creditdefaultswapissuedata`;
CREATE TABLE `creditdefaultswapissuedata` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `seniority` int(11) NOT NULL,
  `restructuringtype` int(11) NOT NULL,
  `attachmentpoint` decimal(19,2) DEFAULT NULL,
  `detachmentpoint` decimal(19,2) DEFAULT NULL,
  `notionalpercentageotstanding` decimal(19,2) DEFAULT NULL,
  `originlntinlprcentgetstnding` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `crdtdfltswpssdt_rstrctrngtyp` (`restructuringtype`),
  KEY `crdtdfltswpissdt_nstrmntdmin` (`id`),
  KEY `crditdefltswpissedt_senirity` (`seniority`),
  CONSTRAINT `crditdefltswpissedt_senirity` FOREIGN KEY (`seniority`) REFERENCES `seniority` (`id`),
  CONSTRAINT `crdtdfltswpissdt_nstrmntdmin` FOREIGN KEY (`id`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `crdtdfltswpssdt_rstrctrngtyp` FOREIGN KEY (`restructuringtype`) REFERENCES `restructuringtype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `creditdefaultswapissuedata`
--

/*!40000 ALTER TABLE `creditdefaultswapissuedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `creditdefaultswapissuedata` ENABLE KEYS */;


--
-- Definition of table `creditdefaultswapunderlying`
--

DROP TABLE IF EXISTS `creditdefaultswapunderlying`;
CREATE TABLE `creditdefaultswapunderlying` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `underlyingseniority` int(11) NOT NULL,
  `underlyingrestructuringtype` int(11) NOT NULL,
  `underlyingattachmentpoint` decimal(19,2) DEFAULT NULL,
  `underlyingdetachmentpoint` decimal(19,2) DEFAULT NULL,
  `undrlyingntinlprcenttstnding` decimal(19,2) DEFAULT NULL,
  `undrlyngrgnlntnlprcnttstndng` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `crdtdfltswpndrlyn_nstrmntdmn` (`id`),
  KEY `crdtdfltswpnd_ndrlyngrstrct` (`underlyingrestructuringtype`),
  KEY `crdtdfltswpndrl_ndrlyngsnrty` (`underlyingseniority`),
  CONSTRAINT `crdtdfltswpndrl_ndrlyngsnrty` FOREIGN KEY (`underlyingseniority`) REFERENCES `seniority` (`id`),
  CONSTRAINT `crdtdfltswpndrlyn_nstrmntdmn` FOREIGN KEY (`id`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `crdtdfltswpnd_ndrlyngrstrct` FOREIGN KEY (`underlyingrestructuringtype`) REFERENCES `restructuringtype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `creditdefaultswapunderlying`
--

/*!40000 ALTER TABLE `creditdefaultswapunderlying` DISABLE KEYS */;
/*!40000 ALTER TABLE `creditdefaultswapunderlying` ENABLE KEYS */;


--
-- Definition of table `creditenhancement`
--

DROP TABLE IF EXISTS `creditenhancement`;
CREATE TABLE `creditenhancement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `creaditenhancementtype` int(11) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_creditenhancement` (`source`),
  KEY `debtissedt_creditenhancement` (`debtissuedata`),
  KEY `crditnhncmnt_crditnhncmnttyp` (`creaditenhancementtype`),
  CONSTRAINT `crditnhncmnt_crditnhncmnttyp` FOREIGN KEY (`creaditenhancementtype`) REFERENCES `creditenhancementtype` (`id`),
  CONSTRAINT `debtissedt_creditenhancement` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `source_creditenhancement` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `creditenhancement`
--

/*!40000 ALTER TABLE `creditenhancement` DISABLE KEYS */;
/*!40000 ALTER TABLE `creditenhancement` ENABLE KEYS */;


--
-- Definition of table `creditenhancementagent`
--

DROP TABLE IF EXISTS `creditenhancementagent`;
CREATE TABLE `creditenhancementagent` (
  `agent` int(11) NOT NULL,
  `creditenhancement` int(11) NOT NULL,
  KEY `crditnhncmnt_crditnhncmntgnt` (`agent`),
  KEY `agent_agentcreditenhancement` (`creditenhancement`),
  CONSTRAINT `agent_agentcreditenhancement` FOREIGN KEY (`creditenhancement`) REFERENCES `creditenhancement` (`id`),
  CONSTRAINT `crditnhncmnt_crditnhncmntgnt` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `creditenhancementagent`
--

/*!40000 ALTER TABLE `creditenhancementagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `creditenhancementagent` ENABLE KEYS */;


--
-- Definition of table `creditenhancementtype`
--

DROP TABLE IF EXISTS `creditenhancementtype`;
CREATE TABLE `creditenhancementtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `creditenhancementtype`
--

/*!40000 ALTER TABLE `creditenhancementtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `creditenhancementtype` ENABLE KEYS */;


--
-- Definition of table `crossrate`
--

DROP TABLE IF EXISTS `crossrate`;
CREATE TABLE `crossrate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `crossrate` varchar(255) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `multiplierscheme` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_crossrate` (`source`),
  CONSTRAINT `source_crossrate` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `crossrate`
--

/*!40000 ALTER TABLE `crossrate` DISABLE KEYS */;
/*!40000 ALTER TABLE `crossrate` ENABLE KEYS */;


--
-- Definition of table `currency`
--

DROP TABLE IF EXISTS `currency`;
CREATE TABLE `currency` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `currency`
--

/*!40000 ALTER TABLE `currency` DISABLE KEYS */;
/*!40000 ALTER TABLE `currency` ENABLE KEYS */;


--
-- Definition of table `datachangesubclass`
--

DROP TABLE IF EXISTS `datachangesubclass`;
CREATE TABLE `datachangesubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caeidentifier` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) DEFAULT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `relatedto` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier1` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `datavaluechangetime` date DEFAULT NULL,
  `datavaluenew` varchar(255) DEFAULT NULL,
  `datavalueold` varchar(255) DEFAULT NULL,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `caedomain_datachangesubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_datachangesubclass` (`source`),
  KEY `dtchngesbclass_caeidentifier` (`caeidentifier`),
  KEY `dtchngsbclss_ntityidentifier` (`entityidentifier`),
  KEY `datachangesubclass_relatedto` (`relatedto`),
  KEY `datachangesubclass_caetype` (`caetype`),
  KEY `dtchangesbclass_caestatstype` (`caestatustype`),
  KEY `dtchngsbclss_celifecycletype` (`caelifecycletype`),
  KEY `dtachangesbclass_meetingtype` (`meetingtype`),
  KEY `caedomain_datachangesubclass` (`caedomain_datachangesubclass`),
  KEY `datachangesubclass_issuerref` (`issuerref`),
  KEY `dtchngesbclass_indicatrstype` (`indicatorstype`),
  CONSTRAINT `caedomain_datachangesubclass` FOREIGN KEY (`caedomain_datachangesubclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `datachangesubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `datachangesubclass_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `datachangesubclass_relatedto` FOREIGN KEY (`relatedto`) REFERENCES `relatedto` (`id`),
  CONSTRAINT `dtachangesbclass_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `dtchangesbclass_caestatstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `dtchngesbclass_caeidentifier` FOREIGN KEY (`caeidentifier`) REFERENCES `caeidentifier` (`id`),
  CONSTRAINT `dtchngesbclass_indicatrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `dtchngsbclss_celifecycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `dtchngsbclss_ntityidentifier` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `source_datachangesubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `datachangesubclass`
--

/*!40000 ALTER TABLE `datachangesubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `datachangesubclass` ENABLE KEYS */;


--
-- Definition of table `datachangesubclassagent`
--

DROP TABLE IF EXISTS `datachangesubclassagent`;
CREATE TABLE `datachangesubclassagent` (
  `agent` int(11) NOT NULL,
  `datachangesubclass` int(11) NOT NULL,
  KEY `agent_agentdatachangesbclass` (`datachangesubclass`),
  KEY `dtchngsbclss_dtchngsbclssgnt` (`agent`),
  CONSTRAINT `agent_agentdatachangesbclass` FOREIGN KEY (`datachangesubclass`) REFERENCES `datachangesubclass` (`id`),
  CONSTRAINT `dtchngsbclss_dtchngsbclssgnt` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `datachangesubclassagent`
--

/*!40000 ALTER TABLE `datachangesubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `datachangesubclassagent` ENABLE KEYS */;


--
-- Definition of table `datavaluechange`
--

DROP TABLE IF EXISTS `datavaluechange`;
CREATE TABLE `datavaluechange` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datavaluenew` varchar(255) DEFAULT NULL,
  `datavalueold` varchar(255) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  `sttschngesbclss_dtvalechange` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_datavaluechange` (`source`),
  KEY `sttschngesbclss_dtvalechange` (`sttschngesbclss_dtvalechange`),
  CONSTRAINT `source_datavaluechange` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `sttschngesbclss_dtvalechange` FOREIGN KEY (`sttschngesbclss_dtvalechange`) REFERENCES `statuschangesubclass` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `datavaluechange`
--

/*!40000 ALTER TABLE `datavaluechange` DISABLE KEYS */;
/*!40000 ALTER TABLE `datavaluechange` ENABLE KEYS */;


--
-- Definition of table `dayofweek`
--

DROP TABLE IF EXISTS `dayofweek`;
CREATE TABLE `dayofweek` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hours` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dayofweek_hours` (`hours`),
  CONSTRAINT `dayofweek_hours` FOREIGN KEY (`hours`) REFERENCES `hours` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `dayofweek`
--

/*!40000 ALTER TABLE `dayofweek` DISABLE KEYS */;
/*!40000 ALTER TABLE `dayofweek` ENABLE KEYS */;


--
-- Definition of table `dayruletype`
--

DROP TABLE IF EXISTS `dayruletype`;
CREATE TABLE `dayruletype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `dayruletype`
--

/*!40000 ALTER TABLE `dayruletype` DISABLE KEYS */;
/*!40000 ALTER TABLE `dayruletype` ENABLE KEYS */;


--
-- Definition of table `daysinmonth`
--

DROP TABLE IF EXISTS `daysinmonth`;
CREATE TABLE `daysinmonth` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `daysinmonth` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `daysinmonth`
--

/*!40000 ALTER TABLE `daysinmonth` DISABLE KEYS */;
/*!40000 ALTER TABLE `daysinmonth` ENABLE KEYS */;


--
-- Definition of table `daysinyear`
--

DROP TABLE IF EXISTS `daysinyear`;
CREATE TABLE `daysinyear` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `daysinyear` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `daysinyear`
--

/*!40000 ALTER TABLE `daysinyear` DISABLE KEYS */;
/*!40000 ALTER TABLE `daysinyear` ENABLE KEYS */;


--
-- Definition of table `deadlinetype`
--

DROP TABLE IF EXISTS `deadlinetype`;
CREATE TABLE `deadlinetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `deadlinetype`
--

/*!40000 ALTER TABLE `deadlinetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `deadlinetype` ENABLE KEYS */;


--
-- Definition of table `debtindicatorstype`
--

DROP TABLE IF EXISTS `debtindicatorstype`;
CREATE TABLE `debtindicatorstype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `debtindicatorstype`
--

/*!40000 ALTER TABLE `debtindicatorstype` DISABLE KEYS */;
/*!40000 ALTER TABLE `debtindicatorstype` ENABLE KEYS */;


--
-- Definition of table `debtissuedata`
--

DROP TABLE IF EXISTS `debtissuedata`;
CREATE TABLE `debtissuedata` (
  `id` int(11) NOT NULL,
  `convertible` int(11) DEFAULT NULL,
  `debtindicatorstype` int(11) DEFAULT NULL,
  `striptype` int(11) DEFAULT NULL,
  `strippbleinstrmentidentifier` int(11) DEFAULT NULL,
  `coupontype_type` varchar(255) DEFAULT NULL,
  `coupontype_id` bigint(20) DEFAULT NULL,
  `createdate` date DEFAULT NULL,
  `modifieddate` date DEFAULT NULL,
  `overallotment` decimal(19,2) DEFAULT NULL,
  `strippable` bit(1) DEFAULT NULL,
  `subscriptionduration` varchar(255) DEFAULT NULL,
  `subscriptionend` date DEFAULT NULL,
  `subscriptionminval` decimal(19,2) DEFAULT NULL,
  `subscriptionstart` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `debtissedt_debtindicatrstype` (`debtindicatorstype`),
  KEY `source_debtissuedata` (`source`),
  KEY `debtissuedata_convertible` (`convertible`),
  KEY `dbtssdt_strppblnstrmntidntfr` (`strippbleinstrmentidentifier`),
  KEY `debtissuedata_striptype` (`striptype`),
  KEY `debtissedata_instrmentdomain` (`id`),
  CONSTRAINT `dbtssdt_strppblnstrmntidntfr` FOREIGN KEY (`strippbleinstrmentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `debtissedata_instrmentdomain` FOREIGN KEY (`id`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `debtissedt_debtindicatrstype` FOREIGN KEY (`debtindicatorstype`) REFERENCES `debtindicatorstype` (`id`),
  CONSTRAINT `debtissuedata_convertible` FOREIGN KEY (`convertible`) REFERENCES `convertible` (`id`),
  CONSTRAINT `debtissuedata_striptype` FOREIGN KEY (`striptype`) REFERENCES `striptype` (`id`),
  CONSTRAINT `source_debtissuedata` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `debtissuedata`
--

/*!40000 ALTER TABLE `debtissuedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `debtissuedata` ENABLE KEYS */;


--
-- Definition of table `debtpricing`
--

DROP TABLE IF EXISTS `debtpricing`;
CREATE TABLE `debtpricing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ask` int(11) DEFAULT NULL,
  `bid` int(11) DEFAULT NULL,
  `mid` int(11) DEFAULT NULL,
  `orderbook` int(11) DEFAULT NULL,
  `spread` int(11) DEFAULT NULL,
  `trade` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `debtpricing_mid` (`mid`),
  KEY `source_debtpricing` (`source`),
  KEY `debtpricing_spread` (`spread`),
  KEY `debtpricing_instrumentdomain` (`instrumentdomain`),
  KEY `debtpricing_orderbook` (`orderbook`),
  KEY `debtpricing_trade` (`trade`),
  KEY `debtpricing_bid` (`bid`),
  KEY `debtpricing_ask` (`ask`),
  CONSTRAINT `debtpricing_ask` FOREIGN KEY (`ask`) REFERENCES `ask` (`id`),
  CONSTRAINT `debtpricing_bid` FOREIGN KEY (`bid`) REFERENCES `bid` (`id`),
  CONSTRAINT `debtpricing_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `debtpricing_mid` FOREIGN KEY (`mid`) REFERENCES `mid` (`id`),
  CONSTRAINT `debtpricing_orderbook` FOREIGN KEY (`orderbook`) REFERENCES `orderbook` (`id`),
  CONSTRAINT `debtpricing_spread` FOREIGN KEY (`spread`) REFERENCES `spread` (`id`),
  CONSTRAINT `debtpricing_trade` FOREIGN KEY (`trade`) REFERENCES `trade` (`id`),
  CONSTRAINT `source_debtpricing` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `debtpricing`
--

/*!40000 ALTER TABLE `debtpricing` DISABLE KEYS */;
/*!40000 ALTER TABLE `debtpricing` ENABLE KEYS */;


--
-- Definition of table `declining`
--

DROP TABLE IF EXISTS `declining`;
CREATE TABLE `declining` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_declining` (`source`),
  CONSTRAINT `source_declining` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `declining`
--

/*!40000 ALTER TABLE `declining` DISABLE KEYS */;
/*!40000 ALTER TABLE `declining` ENABLE KEYS */;


--
-- Definition of table `defaultclause`
--

DROP TABLE IF EXISTS `defaultclause`;
CREATE TABLE `defaultclause` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `defaultclausey` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_defaultclause` (`source`),
  CONSTRAINT `source_defaultclause` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `defaultclause`
--

/*!40000 ALTER TABLE `defaultclause` DISABLE KEYS */;
/*!40000 ALTER TABLE `defaultclause` ENABLE KEYS */;


--
-- Definition of table `deferred`
--

DROP TABLE IF EXISTS `deferred`;
CREATE TABLE `deferred` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `defaultclause` bit(1) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_deferred` (`source`),
  CONSTRAINT `source_deferred` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `deferred`
--

/*!40000 ALTER TABLE `deferred` DISABLE KEYS */;
/*!40000 ALTER TABLE `deferred` ENABLE KEYS */;


--
-- Definition of table `deliver`
--

DROP TABLE IF EXISTS `deliver`;
CREATE TABLE `deliver` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `distributionsubclass_deliver` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_deliver` (`source`),
  KEY `distributionsubclass_deliver` (`distributionsubclass_deliver`),
  CONSTRAINT `distributionsubclass_deliver` FOREIGN KEY (`distributionsubclass_deliver`) REFERENCES `distributionsubclass` (`id`),
  CONSTRAINT `source_deliver` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `deliver`
--

/*!40000 ALTER TABLE `deliver` DISABLE KEYS */;
/*!40000 ALTER TABLE `deliver` ENABLE KEYS */;


--
-- Definition of table `deliveragent`
--

DROP TABLE IF EXISTS `deliveragent`;
CREATE TABLE `deliveragent` (
  `agent` int(11) NOT NULL,
  `deliver` int(11) NOT NULL,
  KEY `deliver_deliveragent` (`agent`),
  KEY `agent_agentdeliver` (`deliver`),
  CONSTRAINT `agent_agentdeliver` FOREIGN KEY (`deliver`) REFERENCES `deliver` (`id`),
  CONSTRAINT `deliver_deliveragent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `deliveragent`
--

/*!40000 ALTER TABLE `deliveragent` DISABLE KEYS */;
/*!40000 ALTER TABLE `deliveragent` ENABLE KEYS */;


--
-- Definition of table `delivery`
--

DROP TABLE IF EXISTS `delivery`;
CREATE TABLE `delivery` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `deliverytype` int(11) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_delivery` (`source`),
  KEY `issuedata_delivery` (`issuedata`),
  KEY `delivery_deliverytype` (`deliverytype`),
  CONSTRAINT `delivery_deliverytype` FOREIGN KEY (`deliverytype`) REFERENCES `deliverytype` (`id`),
  CONSTRAINT `issuedata_delivery` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `source_delivery` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `delivery`
--

/*!40000 ALTER TABLE `delivery` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery` ENABLE KEYS */;


--
-- Definition of table `deliverytype`
--

DROP TABLE IF EXISTS `deliverytype`;
CREATE TABLE `deliverytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `deliverytype`
--

/*!40000 ALTER TABLE `deliverytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `deliverytype` ENABLE KEYS */;


--
-- Definition of table `demographicclass`
--

DROP TABLE IF EXISTS `demographicclass`;
CREATE TABLE `demographicclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_demographicclass` (`source`),
  CONSTRAINT `source_demographicclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `demographicclass`
--

/*!40000 ALTER TABLE `demographicclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `demographicclass` ENABLE KEYS */;


--
-- Definition of table `denomination`
--

DROP TABLE IF EXISTS `denomination`;
CREATE TABLE `denomination` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescirptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `denomination` decimal(19,2) DEFAULT NULL,
  `increment` decimal(19,2) DEFAULT NULL,
  `minval` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dnmintin_qntitydscriptintype` (`quantitydescirptiontype`),
  KEY `source_denomination` (`source`),
  KEY `denomination_valuationref` (`valuationref`),
  KEY `denomination_instrmentdomain` (`instrumentdomain`),
  KEY `denomination_calculationtype` (`calculationtype`),
  KEY `denomination_valuationtype` (`valuationtype`),
  KEY `denomination_currency` (`currency`),
  KEY `debtissuedata_denomination` (`debtissuedata`),
  KEY `denomination_quantitytype` (`quantitytype`),
  KEY `denomination_marketcenter` (`marketcenter`),
  KEY `denomination_indicatorstype` (`indicatorstype`),
  KEY `denomination_crossrate` (`crossrate`),
  CONSTRAINT `debtissuedata_denomination` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `denomination_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `denomination_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `denomination_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `denomination_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `denomination_instrmentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `denomination_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `denomination_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `denomination_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `denomination_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `dnmintin_qntitydscriptintype` FOREIGN KEY (`quantitydescirptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_denomination` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `denomination`
--

/*!40000 ALTER TABLE `denomination` DISABLE KEYS */;
/*!40000 ALTER TABLE `denomination` ENABLE KEYS */;


--
-- Definition of table `depositoryname`
--

DROP TABLE IF EXISTS `depositoryname`;
CREATE TABLE `depositoryname` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `depositoryname` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_depositoryname` (`source`),
  CONSTRAINT `source_depositoryname` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `depositoryname`
--

/*!40000 ALTER TABLE `depositoryname` DISABLE KEYS */;
/*!40000 ALTER TABLE `depositoryname` ENABLE KEYS */;


--
-- Definition of table `depositorysystem`
--

DROP TABLE IF EXISTS `depositorysystem`;
CREATE TABLE `depositorysystem` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `depositoryname` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_depositorysystem` (`source`),
  CONSTRAINT `source_depositorysystem` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `depositorysystem`
--

/*!40000 ALTER TABLE `depositorysystem` DISABLE KEYS */;
/*!40000 ALTER TABLE `depositorysystem` ENABLE KEYS */;


--
-- Definition of table `description`
--

DROP TABLE IF EXISTS `description`;
CREATE TABLE `description` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `description` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `commoditydomain_description` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `commoditydomain_description` (`commoditydomain_description`),
  KEY `source_description` (`source`),
  CONSTRAINT `commoditydomain_description` FOREIGN KEY (`commoditydomain_description`) REFERENCES `commoditydomain` (`id`),
  CONSTRAINT `source_description` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `description`
--

/*!40000 ALTER TABLE `description` DISABLE KEYS */;
/*!40000 ALTER TABLE `description` ENABLE KEYS */;


--
-- Definition of table `determinationsource`
--

DROP TABLE IF EXISTS `determinationsource`;
CREATE TABLE `determinationsource` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketcenter` int(11) DEFAULT NULL,
  `marketconditions` int(11) DEFAULT NULL,
  `marketstatustype` int(11) DEFAULT NULL,
  `markettype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `determinationsource` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `previouscode` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dtermintinsrce_mrketcnditins` (`marketconditions`),
  KEY `source_determinationsource` (`source`),
  KEY `dtermintinsrce_mrketsttstype` (`marketstatustype`),
  KEY `determinatinsorce_markettype` (`markettype`),
  KEY `determintinsrce_marketcenter` (`marketcenter`),
  CONSTRAINT `determinatinsorce_markettype` FOREIGN KEY (`markettype`) REFERENCES `markettype` (`id`),
  CONSTRAINT `determintinsrce_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `dtermintinsrce_mrketcnditins` FOREIGN KEY (`marketconditions`) REFERENCES `marketconditions` (`id`),
  CONSTRAINT `dtermintinsrce_mrketsttstype` FOREIGN KEY (`marketstatustype`) REFERENCES `marketstatustype` (`id`),
  CONSTRAINT `source_determinationsource` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `determinationsource`
--

/*!40000 ALTER TABLE `determinationsource` DISABLE KEYS */;
/*!40000 ALTER TABLE `determinationsource` ENABLE KEYS */;


--
-- Definition of table `deviation`
--

DROP TABLE IF EXISTS `deviation`;
CREATE TABLE `deviation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `deviationtype` int(11) DEFAULT NULL,
  `determinationsource` varchar(255) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `formula` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_deviation` (`source`),
  KEY `deviation_deviationtype` (`deviationtype`),
  CONSTRAINT `deviation_deviationtype` FOREIGN KEY (`deviationtype`) REFERENCES `deviationtype` (`id`),
  CONSTRAINT `source_deviation` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `deviation`
--

/*!40000 ALTER TABLE `deviation` DISABLE KEYS */;
/*!40000 ALTER TABLE `deviation` ENABLE KEYS */;


--
-- Definition of table `deviationtype`
--

DROP TABLE IF EXISTS `deviationtype`;
CREATE TABLE `deviationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `deviationtype`
--

/*!40000 ALTER TABLE `deviationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `deviationtype` ENABLE KEYS */;


--
-- Definition of table `distributionsubclass`
--

DROP TABLE IF EXISTS `distributionsubclass`;
CREATE TABLE `distributionsubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `blocking` int(11) DEFAULT NULL,
  `meetingtype` int(11) DEFAULT NULL,
  `caeidentifier` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) DEFAULT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `prooftype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `periodtype` int(11) DEFAULT NULL,
  `elgibilityqntitydscriptintyp` int(11) DEFAULT NULL,
  `eligibilityquantitytype` int(11) DEFAULT NULL,
  `eligibilityrangetype` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier1` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `confirmationdate` date DEFAULT NULL,
  `deadlinedate` date DEFAULT NULL,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `electionperiodduration` varchar(255) DEFAULT NULL,
  `electionperiodend` date DEFAULT NULL,
  `electionperiodrecurrable` bit(1) DEFAULT NULL,
  `electionperiodstart` date DEFAULT NULL,
  `eligibilitymaxval` decimal(19,2) DEFAULT NULL,
  `eligibilityminval` decimal(19,2) DEFAULT NULL,
  `eligibilityrecorddate` date DEFAULT NULL,
  `entitlementdate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `paymentdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `recordingdate` date DEFAULT NULL,
  `relatedcaeid` int(11) DEFAULT NULL,
  `caedomain_distribtionsbclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_distributionsubclass` (`source`),
  KEY `caedomain_distribtionsbclass` (`caedomain_distribtionsbclass`),
  KEY `dstrbtnsbclss_lgbltyqnttytyp` (`eligibilityquantitytype`),
  KEY `distribtionsubclass_blocking` (`blocking`),
  KEY `dstrbtinsbclss_ntityidntifir` (`entityidentifier`),
  KEY `distribtinsbclss_meetingtype` (`meetingtype`),
  KEY `dstrbtnsbclss_lgbilityrngtyp` (`eligibilityrangetype`),
  KEY `distribtinsbclss_cidentifier` (`caeidentifier`),
  KEY `distribtinsbclass_dayrletype` (`dayruletype`),
  KEY `distributionsubclass_caetype` (`caetype`),
  KEY `distribtinsbclss_clifcycltyp` (`caelifecycletype`),
  KEY `distribtinsbclss_cestatstype` (`caestatustype`),
  KEY `distribtionsbclass_prooftype` (`prooftype`),
  KEY `distribtinsbclass_periodtype` (`periodtype`),
  KEY `dstrbtnsbclss_lgbltyqnttydsc` (`elgibilityqntitydscriptintyp`),
  KEY `distribtinsbclss_indictrstyp` (`indicatorstype`),
  KEY `distribtionsbclass_issuerref` (`issuerref`),
  CONSTRAINT `caedomain_distribtionsbclass` FOREIGN KEY (`caedomain_distribtionsbclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `distribtinsbclass_dayrletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `distribtinsbclass_periodtype` FOREIGN KEY (`periodtype`) REFERENCES `periodtype` (`id`),
  CONSTRAINT `distribtinsbclss_cestatstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `distribtinsbclss_cidentifier` FOREIGN KEY (`caeidentifier`) REFERENCES `caeidentifier` (`id`),
  CONSTRAINT `distribtinsbclss_clifcycltyp` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `distribtinsbclss_indictrstyp` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `distribtinsbclss_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `distribtionsbclass_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `distribtionsbclass_prooftype` FOREIGN KEY (`prooftype`) REFERENCES `prooftype` (`id`),
  CONSTRAINT `distribtionsubclass_blocking` FOREIGN KEY (`blocking`) REFERENCES `blocking` (`id`),
  CONSTRAINT `distributionsubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `dstrbtinsbclss_ntityidntifir` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `dstrbtnsbclss_lgbilityrngtyp` FOREIGN KEY (`eligibilityrangetype`) REFERENCES `rangetype` (`id`),
  CONSTRAINT `dstrbtnsbclss_lgbltyqnttydsc` FOREIGN KEY (`elgibilityqntitydscriptintyp`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `dstrbtnsbclss_lgbltyqnttytyp` FOREIGN KEY (`eligibilityquantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `source_distributionsubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `distributionsubclass`
--

/*!40000 ALTER TABLE `distributionsubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `distributionsubclass` ENABLE KEYS */;


--
-- Definition of table `distributionsubclassagent`
--

DROP TABLE IF EXISTS `distributionsubclassagent`;
CREATE TABLE `distributionsubclassagent` (
  `agent` int(11) NOT NULL,
  `distributionsubclass` int(11) NOT NULL,
  KEY `dstrbtnsbclss_dstrbtnsbclssg` (`agent`),
  KEY `agent_agentdistribtinsbclass` (`distributionsubclass`),
  CONSTRAINT `agent_agentdistribtinsbclass` FOREIGN KEY (`distributionsubclass`) REFERENCES `distributionsubclass` (`id`),
  CONSTRAINT `dstrbtnsbclss_dstrbtnsbclssg` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `distributionsubclassagent`
--

/*!40000 ALTER TABLE `distributionsubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `distributionsubclassagent` ENABLE KEYS */;


--
-- Definition of table `distributiontype`
--

DROP TABLE IF EXISTS `distributiontype`;
CREATE TABLE `distributiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `distributiontype`
--

/*!40000 ALTER TABLE `distributiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `distributiontype` ENABLE KEYS */;


--
-- Definition of table `dividend`
--

DROP TABLE IF EXISTS `dividend`;
CREATE TABLE `dividend` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calcualtiontype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `dividend` decimal(19,2) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_dividend` (`source`),
  KEY `dividend_valuationref` (`valuationref`),
  KEY `dividend_instrumentdomain` (`instrumentdomain`),
  KEY `dividend_calculationtype` (`calcualtiontype`),
  KEY `dividend_valuationtype` (`valuationtype`),
  KEY `dividend_currency` (`currency`),
  KEY `dividnd_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `dividend_quantitytype` (`quantitytype`),
  KEY `dividend_marketcenter` (`marketcenter`),
  KEY `dividend_indicatorstype` (`indicatorstype`),
  KEY `dividend_crossrate` (`crossrate`),
  CONSTRAINT `dividend_calculationtype` FOREIGN KEY (`calcualtiontype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `dividend_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `dividend_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `dividend_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `dividend_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `dividend_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `dividend_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `dividend_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `dividend_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `dividnd_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_dividend` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `dividend`
--

/*!40000 ALTER TABLE `dividend` DISABLE KEYS */;
/*!40000 ALTER TABLE `dividend` ENABLE KEYS */;


--
-- Definition of table `dividendyield`
--

DROP TABLE IF EXISTS `dividendyield`;
CREATE TABLE `dividendyield` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptionype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `dividendyieldtype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `dividendyield` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_dividendyield` (`source`),
  KEY `dividendyield_valuationref` (`valuationref`),
  KEY `dividendyield_instrmentdmain` (`instrumentdomain`),
  KEY `dividendyield_calclationtype` (`calculationtype`),
  KEY `dividendyield_valuationtype` (`valuationtype`),
  KEY `dividndyild_dividndyieldtype` (`dividendyieldtype`),
  KEY `dividendyield_currency` (`currency`),
  KEY `dividendyield_quantitytype` (`quantitytype`),
  KEY `dividendyield_marketcenter` (`marketcenter`),
  KEY `dvdndyild_qntitydscriptintyp` (`quantitydescriptionype`),
  KEY `dividendyield_indicatorstype` (`indicatorstype`),
  KEY `dividendyield_crossrate` (`crossrate`),
  CONSTRAINT `dividendyield_calclationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `dividendyield_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `dividendyield_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `dividendyield_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `dividendyield_instrmentdmain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `dividendyield_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `dividendyield_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `dividendyield_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `dividendyield_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `dividndyild_dividndyieldtype` FOREIGN KEY (`dividendyieldtype`) REFERENCES `dividendyieldtype` (`id`),
  CONSTRAINT `dvdndyild_qntitydscriptintyp` FOREIGN KEY (`quantitydescriptionype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_dividendyield` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `dividendyield`
--

/*!40000 ALTER TABLE `dividendyield` DISABLE KEYS */;
/*!40000 ALTER TABLE `dividendyield` ENABLE KEYS */;


--
-- Definition of table `dividendyieldtype`
--

DROP TABLE IF EXISTS `dividendyieldtype`;
CREATE TABLE `dividendyieldtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `dividendyieldtype`
--

/*!40000 ALTER TABLE `dividendyieldtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `dividendyieldtype` ENABLE KEYS */;


--
-- Definition of table `documenturl`
--

DROP TABLE IF EXISTS `documenturl`;
CREATE TABLE `documenturl` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `documenturl` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_documenturl` (`source`),
  CONSTRAINT `source_documenturl` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `documenturl`
--

/*!40000 ALTER TABLE `documenturl` DISABLE KEYS */;
/*!40000 ALTER TABLE `documenturl` ENABLE KEYS */;


--
-- Definition of table `duration`
--

DROP TABLE IF EXISTS `duration`;
CREATE TABLE `duration` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `duration` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_duration` (`source`),
  CONSTRAINT `source_duration` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `duration`
--

/*!40000 ALTER TABLE `duration` DISABLE KEYS */;
/*!40000 ALTER TABLE `duration` ENABLE KEYS */;


--
-- Definition of table `earnings`
--

DROP TABLE IF EXISTS `earnings`;
CREATE TABLE `earnings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `earningstype` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `earnings` decimal(19,2) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_earnings` (`source`),
  KEY `earnings_valuationref` (`valuationref`),
  KEY `earnings_instrumentdomain` (`instrumentdomain`),
  KEY `earnings_calculationtype` (`calculationtype`),
  KEY `earnings_valuationtype` (`valuationtype`),
  KEY `earnings_earningstype` (`earningstype`),
  KEY `earnings_currency` (`currency`),
  KEY `ernings_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `earnings_quantitytype` (`quantitytype`),
  KEY `earnings_marketcenter` (`marketcenter`),
  KEY `earnings_indicatorstype` (`indicatorstype`),
  KEY `earnings_crossrate` (`crossrate`),
  CONSTRAINT `earnings_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `earnings_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `earnings_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `earnings_earningstype` FOREIGN KEY (`earningstype`) REFERENCES `earningstype` (`id`),
  CONSTRAINT `earnings_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `earnings_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `earnings_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `earnings_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `earnings_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `earnings_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `ernings_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_earnings` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `earnings`
--

/*!40000 ALTER TABLE `earnings` DISABLE KEYS */;
/*!40000 ALTER TABLE `earnings` ENABLE KEYS */;


--
-- Definition of table `earningsref`
--

DROP TABLE IF EXISTS `earningsref`;
CREATE TABLE `earningsref` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `earningsref` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_earningsref` (`source`),
  CONSTRAINT `source_earningsref` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `earningsref`
--

/*!40000 ALTER TABLE `earningsref` DISABLE KEYS */;
/*!40000 ALTER TABLE `earningsref` ENABLE KEYS */;


--
-- Definition of table `earningstype`
--

DROP TABLE IF EXISTS `earningstype`;
CREATE TABLE `earningstype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `earningstype`
--

/*!40000 ALTER TABLE `earningstype` DISABLE KEYS */;
/*!40000 ALTER TABLE `earningstype` ENABLE KEYS */;


--
-- Definition of table `economicclass`
--

DROP TABLE IF EXISTS `economicclass`;
CREATE TABLE `economicclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `industryidentifier` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) NOT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_economicclass` (`source`),
  KEY `ecnmicclss_indstryidentifier` (`industryidentifier`),
  KEY `ecnmicclss_instrmntidntifier` (`instrumentidentifier`),
  CONSTRAINT `ecnmicclss_indstryidentifier` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `ecnmicclss_instrmntidntifier` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `source_economicclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `economicclass`
--

/*!40000 ALTER TABLE `economicclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `economicclass` ENABLE KEYS */;


--
-- Definition of table `enhancement`
--

DROP TABLE IF EXISTS `enhancement`;
CREATE TABLE `enhancement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `enhancement` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `programspecific` bit(1) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `support` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `creditenhncement_enhancement` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_enhancement` (`source`),
  KEY `creditenhncement_enhancement` (`creditenhncement_enhancement`),
  CONSTRAINT `creditenhncement_enhancement` FOREIGN KEY (`creditenhncement_enhancement`) REFERENCES `creditenhancement` (`id`),
  CONSTRAINT `source_enhancement` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `enhancement`
--

/*!40000 ALTER TABLE `enhancement` DISABLE KEYS */;
/*!40000 ALTER TABLE `enhancement` ENABLE KEYS */;


--
-- Definition of table `entitlementdate`
--

DROP TABLE IF EXISTS `entitlementdate`;
CREATE TABLE `entitlementdate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitlementdate` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_entitlementdate` (`source`),
  CONSTRAINT `source_entitlementdate` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `entitlementdate`
--

/*!40000 ALTER TABLE `entitlementdate` DISABLE KEYS */;
/*!40000 ALTER TABLE `entitlementdate` ENABLE KEYS */;


--
-- Definition of table `entitydomain`
--

DROP TABLE IF EXISTS `entitydomain`;
CREATE TABLE `entitydomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `businessclass` int(11) DEFAULT NULL,
  `counterpartyclass` int(11) DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `marketclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_entitydomain` (`source`),
  KEY `entitydomain_issuerclass` (`issuerclass`),
  KEY `entitydomain_marketclass` (`marketclass`),
  KEY `entitydomain_businessclass` (`businessclass`),
  KEY `entitydmain_conterpartyclass` (`counterpartyclass`),
  CONSTRAINT `entitydmain_conterpartyclass` FOREIGN KEY (`counterpartyclass`) REFERENCES `counterpartyclass` (`id`),
  CONSTRAINT `entitydomain_businessclass` FOREIGN KEY (`businessclass`) REFERENCES `businessclass` (`id`),
  CONSTRAINT `entitydomain_issuerclass` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `entitydomain_marketclass` FOREIGN KEY (`marketclass`) REFERENCES `marketclass` (`id`),
  CONSTRAINT `source_entitydomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `entitydomain`
--

/*!40000 ALTER TABLE `entitydomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `entitydomain` ENABLE KEYS */;


--
-- Definition of table `entityidentifier`
--

DROP TABLE IF EXISTS `entityidentifier`;
CREATE TABLE `entityidentifier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitytype` int(11) DEFAULT NULL,
  `industryidentifier` int(11) DEFAULT NULL,
  `location` int(11) DEFAULT NULL,
  `partystatustype` int(11) DEFAULT NULL,
  `role` int(11) DEFAULT NULL,
  `schemeinfo` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `endperiod` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `rankname` decimal(19,2) DEFAULT NULL,
  `startperiod` date DEFAULT NULL,
  `corporatechangesubclass` int(11) DEFAULT NULL,
  `businessclass` int(11) DEFAULT NULL,
  `counterpartyclass` int(11) DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `crprtsbclss_entityidentifier` int(11) DEFAULT NULL,
  `marketclass_entityidentifier` int(11) DEFAULT NULL,
  `mtingsbclss_entityidentifier` int(11) DEFAULT NULL,
  `rstrctrsbclss_ntityidntifier` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rstrctrsbclss_ntityidntifier` (`rstrctrsbclss_ntityidntifier`),
  KEY `mtingsbclss_entityidentifier` (`mtingsbclss_entityidentifier`),
  KEY `source_entityidentifier` (`source`),
  KEY `entityidentifier_location` (`location`),
  KEY `entityidntifier_prtysttstype` (`partystatustype`),
  KEY `marketclass_entityidentifier` (`marketclass_entityidentifier`),
  KEY `bsinessclss_entityidentifier` (`businessclass`),
  KEY `entityidentifier_entitytype` (`entitytype`),
  KEY `entityidentifier_schemeinfo` (`schemeinfo`),
  KEY `cntrprtyclss_ntityidentifier` (`counterpartyclass`),
  KEY `crprtchngsbclss_nttyidntifir` (`corporatechangesubclass`),
  KEY `issuerclass_entityidentifier` (`issuerclass`),
  KEY `enttyidntfir_indstryidntifir` (`industryidentifier`),
  KEY `crprtsbclss_entityidentifier` (`crprtsbclss_entityidentifier`),
  KEY `entityidentifier_role` (`role`),
  CONSTRAINT `bsinessclss_entityidentifier` FOREIGN KEY (`businessclass`) REFERENCES `businessclass` (`id`),
  CONSTRAINT `cntrprtyclss_ntityidentifier` FOREIGN KEY (`counterpartyclass`) REFERENCES `counterpartyclass` (`id`),
  CONSTRAINT `crprtchngsbclss_nttyidntifir` FOREIGN KEY (`corporatechangesubclass`) REFERENCES `corporatechangesubclass` (`id`),
  CONSTRAINT `crprtsbclss_entityidentifier` FOREIGN KEY (`crprtsbclss_entityidentifier`) REFERENCES `corporatesubclass` (`id`),
  CONSTRAINT `entityidentifier_entitytype` FOREIGN KEY (`entitytype`) REFERENCES `entitytype` (`id`),
  CONSTRAINT `entityidentifier_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `entityidentifier_role` FOREIGN KEY (`role`) REFERENCES `role` (`id`),
  CONSTRAINT `entityidentifier_schemeinfo` FOREIGN KEY (`schemeinfo`) REFERENCES `schemeinfo` (`id`),
  CONSTRAINT `entityidntifier_prtysttstype` FOREIGN KEY (`partystatustype`) REFERENCES `partystatustype` (`id`),
  CONSTRAINT `enttyidntfir_indstryidntifir` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `issuerclass_entityidentifier` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `marketclass_entityidentifier` FOREIGN KEY (`marketclass_entityidentifier`) REFERENCES `marketclass` (`id`),
  CONSTRAINT `mtingsbclss_entityidentifier` FOREIGN KEY (`mtingsbclss_entityidentifier`) REFERENCES `meetingsubclass` (`id`),
  CONSTRAINT `rstrctrsbclss_ntityidntifier` FOREIGN KEY (`rstrctrsbclss_ntityidntifier`) REFERENCES `restructuresubclass` (`id`),
  CONSTRAINT `source_entityidentifier` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `entityidentifier`
--

/*!40000 ALTER TABLE `entityidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `entityidentifier` ENABLE KEYS */;


--
-- Definition of table `entitystatustype`
--

DROP TABLE IF EXISTS `entitystatustype`;
CREATE TABLE `entitystatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `entitystatustype`
--

/*!40000 ALTER TABLE `entitystatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `entitystatustype` ENABLE KEYS */;


--
-- Definition of table `entitytype`
--

DROP TABLE IF EXISTS `entitytype`;
CREATE TABLE `entitytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `entitytype`
--

/*!40000 ALTER TABLE `entitytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `entitytype` ENABLE KEYS */;


--
-- Definition of table `event`
--

DROP TABLE IF EXISTS `event`;
CREATE TABLE `event` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `eventdescription` int(11) DEFAULT NULL,
  `eventtype` int(11) NOT NULL,
  `snap` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `event_eventdescription` (`eventdescription`),
  KEY `source_event` (`source`),
  KEY `event_snap` (`snap`),
  KEY `event_eventtype` (`eventtype`),
  CONSTRAINT `event_eventdescription` FOREIGN KEY (`eventdescription`) REFERENCES `eventdescription` (`id`),
  CONSTRAINT `event_eventtype` FOREIGN KEY (`eventtype`) REFERENCES `eventtype` (`id`),
  CONSTRAINT `event_snap` FOREIGN KEY (`snap`) REFERENCES `snap` (`id`),
  CONSTRAINT `source_event` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `event`
--

/*!40000 ALTER TABLE `event` DISABLE KEYS */;
/*!40000 ALTER TABLE `event` ENABLE KEYS */;


--
-- Definition of table `eventdescription`
--

DROP TABLE IF EXISTS `eventdescription`;
CREATE TABLE `eventdescription` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `eventdescription` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_eventdescription` (`source`),
  CONSTRAINT `source_eventdescription` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `eventdescription`
--

/*!40000 ALTER TABLE `eventdescription` DISABLE KEYS */;
/*!40000 ALTER TABLE `eventdescription` ENABLE KEYS */;


--
-- Definition of table `eventelementtype`
--

DROP TABLE IF EXISTS `eventelementtype`;
CREATE TABLE `eventelementtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `eventelementtype`
--

/*!40000 ALTER TABLE `eventelementtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `eventelementtype` ENABLE KEYS */;


--
-- Definition of table `eventtype`
--

DROP TABLE IF EXISTS `eventtype`;
CREATE TABLE `eventtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `eventtype`
--

/*!40000 ALTER TABLE `eventtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `eventtype` ENABLE KEYS */;


--
-- Definition of table `eventvalue`
--

DROP TABLE IF EXISTS `eventvalue`;
CREATE TABLE `eventvalue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quatitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `eventelementtype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `eventvalue` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_eventvalue` (`source`),
  KEY `eventvalue_valuationref` (`valuationref`),
  KEY `eventvalue_eventelementtype` (`eventelementtype`),
  KEY `eventvalue_calculationtype` (`calculationtype`),
  KEY `eventvalue_valuationtype` (`valuationtype`),
  KEY `eventvalue_currency` (`currency`),
  KEY `eventvalue_size` (`size`),
  KEY `eventvalue_quantitytype` (`quantitytype`),
  KEY `eventvalue_marketcenter` (`marketcenter`),
  KEY `eventvalue_indicatorstype` (`indicatorstype`),
  KEY `eventvalue_crossrate` (`crossrate`),
  KEY `evntvle_qntitydescriptintype` (`quatitydescriptiontype`),
  CONSTRAINT `eventvalue_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `eventvalue_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `eventvalue_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `eventvalue_eventelementtype` FOREIGN KEY (`eventelementtype`) REFERENCES `eventelementtype` (`id`),
  CONSTRAINT `eventvalue_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `eventvalue_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `eventvalue_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `eventvalue_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `eventvalue_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `eventvalue_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `evntvle_qntitydescriptintype` FOREIGN KEY (`quatitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_eventvalue` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `eventvalue`
--

/*!40000 ALTER TABLE `eventvalue` DISABLE KEYS */;
/*!40000 ALTER TABLE `eventvalue` ENABLE KEYS */;


--
-- Definition of table `exerciseprice`
--

DROP TABLE IF EXISTS `exerciseprice`;
CREATE TABLE `exerciseprice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currencytype` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `exerciseprice` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_exerciseprice` (`source`),
  KEY `exerciseprice_valuationref` (`valuationref`),
  KEY `exerciseprice_instrmentdmain` (`instrumentdomain`),
  KEY `exerciseprice_calclationtype` (`calculationtype`),
  KEY `exerciseprice_valuationtype` (`valuationtype`),
  KEY `exrcspric_qntitydscriptintyp` (`quantitydescriptiontype`),
  KEY `exerciseprice_size` (`size`),
  KEY `exerciseprice_quantitytype` (`quantitytype`),
  KEY `exerciseprice_marketcenter` (`marketcenter`),
  KEY `exerciseprice_currency` (`currencytype`),
  KEY `exerciseprice_indicatorstype` (`indicatorstype`),
  KEY `exerciseprice_crossrate` (`crossrate`),
  CONSTRAINT `exerciseprice_calclationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `exerciseprice_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `exerciseprice_currency` FOREIGN KEY (`currencytype`) REFERENCES `currency` (`id`),
  CONSTRAINT `exerciseprice_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `exerciseprice_instrmentdmain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `exerciseprice_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `exerciseprice_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `exerciseprice_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `exerciseprice_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `exerciseprice_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `exrcspric_qntitydscriptintyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_exerciseprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `exerciseprice`
--

/*!40000 ALTER TABLE `exerciseprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `exerciseprice` ENABLE KEYS */;


--
-- Definition of table `exerciserights`
--

DROP TABLE IF EXISTS `exerciserights`;
CREATE TABLE `exerciserights` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `exerciserightstype` int(11) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` date DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `exrcisrights_xrcisrightstype` (`exerciserightstype`),
  CONSTRAINT `exrcisrights_xrcisrightstype` FOREIGN KEY (`exerciserightstype`) REFERENCES `exerciserightstype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `exerciserights`
--

/*!40000 ALTER TABLE `exerciserights` DISABLE KEYS */;
/*!40000 ALTER TABLE `exerciserights` ENABLE KEYS */;


--
-- Definition of table `exerciserightstype`
--

DROP TABLE IF EXISTS `exerciserightstype`;
CREATE TABLE `exerciserightstype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `exerciserightstype`
--

/*!40000 ALTER TABLE `exerciserightstype` DISABLE KEYS */;
/*!40000 ALTER TABLE `exerciserightstype` ENABLE KEYS */;


--
-- Definition of table `extendible`
--

DROP TABLE IF EXISTS `extendible`;
CREATE TABLE `extendible` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `schedule` int(11) DEFAULT NULL,
  `dayofweek` int(11) DEFAULT NULL,
  `extendible` bit(1) DEFAULT NULL,
  `extendibledate` date DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `issuerchoice` bit(1) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `mandatory` bit(1) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_extendible` (`source`),
  KEY `extendible_schedule` (`schedule`),
  KEY `extendible_dayofweek` (`dayofweek`),
  CONSTRAINT `extendible_dayofweek` FOREIGN KEY (`dayofweek`) REFERENCES `dayofweek` (`id`),
  CONSTRAINT `extendible_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `source_extendible` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `extendible`
--

/*!40000 ALTER TABLE `extendible` DISABLE KEYS */;
/*!40000 ALTER TABLE `extendible` ENABLE KEYS */;


--
-- Definition of table `facevalue`
--

DROP TABLE IF EXISTS `facevalue`;
CREATE TABLE `facevalue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `debtindicatorstype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `facevalue` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `facevalue_debtindicatorstype` (`debtindicatorstype`),
  KEY `source_facevalue` (`source`),
  KEY `facevalue_valuationref` (`valuationref`),
  KEY `facevalue_calculationtype` (`calculationtype`),
  KEY `facevalue_valuationtype` (`valuationtype`),
  KEY `facevalue_currency` (`currency`),
  KEY `fcevle_qantitydescriptintype` (`quantitydescriptiontype`),
  KEY `facevalue_size` (`size`),
  KEY `facevalue_quantitytype` (`quantitytype`),
  KEY `facevalue_marketcenter` (`marketcenter`),
  KEY `facevalue_indicatorstype` (`indicatorstype`),
  KEY `facevalue_crossrate` (`crossrate`),
  CONSTRAINT `facevalue_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `facevalue_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `facevalue_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `facevalue_debtindicatorstype` FOREIGN KEY (`debtindicatorstype`) REFERENCES `debtindicatorstype` (`id`),
  CONSTRAINT `facevalue_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `facevalue_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `facevalue_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `facevalue_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `facevalue_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `facevalue_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `fcevle_qantitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_facevalue` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `facevalue`
--

/*!40000 ALTER TABLE `facevalue` DISABLE KEYS */;
/*!40000 ALTER TABLE `facevalue` ENABLE KEYS */;


--
-- Definition of table `factor`
--

DROP TABLE IF EXISTS `factor`;
CREATE TABLE `factor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `schedule` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `factor` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_factor` (`source`),
  KEY `factor_valuationref` (`valuationref`),
  KEY `factor_instrumentdomain` (`instrumentdomain`),
  KEY `factor_calculationtype` (`calculationtype`),
  KEY `factor_valuationtype` (`valuationtype`),
  KEY `factr_qantitydescriptiontype` (`quantitydescriptiontype`),
  KEY `factor_schedule` (`schedule`),
  KEY `factor_quantitytype` (`quantitytype`),
  KEY `factor_marketcenter` (`marketcenter`),
  KEY `factor_indicatorstype` (`indicatorstype`),
  CONSTRAINT `factor_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `factor_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `factor_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `factor_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `factor_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `factor_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `factor_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `factor_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `factr_qantitydescriptiontype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_factor` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `factor`
--

/*!40000 ALTER TABLE `factor` DISABLE KEYS */;
/*!40000 ALTER TABLE `factor` ENABLE KEYS */;


--
-- Definition of table `fieldname`
--

DROP TABLE IF EXISTS `fieldname`;
CREATE TABLE `fieldname` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fieldname` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_fieldname` (`source`),
  CONSTRAINT `source_fieldname` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fieldname`
--

/*!40000 ALTER TABLE `fieldname` DISABLE KEYS */;
/*!40000 ALTER TABLE `fieldname` ENABLE KEYS */;


--
-- Definition of table `foreignexchangedomain`
--

DROP TABLE IF EXISTS `foreignexchangedomain`;
CREATE TABLE `foreignexchangedomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumentidentifier` int(11) NOT NULL,
  `snaptype` int(11) DEFAULT NULL,
  `snaptime` datetime DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `freignexchangedmain_snaptype` (`snaptype`),
  KEY `source_foreignexchangedomain` (`source`),
  KEY `frgnxchngdmn_nstrmntidntifir` (`instrumentidentifier`),
  CONSTRAINT `freignexchangedmain_snaptype` FOREIGN KEY (`snaptype`) REFERENCES `snaptype` (`id`),
  CONSTRAINT `frgnxchngdmn_nstrmntidntifir` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `source_foreignexchangedomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `foreignexchangedomain`
--

/*!40000 ALTER TABLE `foreignexchangedomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `foreignexchangedomain` ENABLE KEYS */;


--
-- Definition of table `fraction`
--

DROP TABLE IF EXISTS `fraction`;
CREATE TABLE `fraction` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `actualdenominator` decimal(19,2) NOT NULL,
  `displaydenominator` decimal(19,2) DEFAULT NULL,
  `displaynumerator` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fraction`
--

/*!40000 ALTER TABLE `fraction` DISABLE KEYS */;
/*!40000 ALTER TABLE `fraction` ENABLE KEYS */;


--
-- Definition of table `fundstrategytype`
--

DROP TABLE IF EXISTS `fundstrategytype`;
CREATE TABLE `fundstrategytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fundstrategytype`
--

/*!40000 ALTER TABLE `fundstrategytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `fundstrategytype` ENABLE KEYS */;


--
-- Definition of table `governinglaw`
--

DROP TABLE IF EXISTS `governinglaw`;
CREATE TABLE `governinglaw` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `jurisdictiontype` int(11) DEFAULT NULL,
  `location` int(11) DEFAULT NULL,
  `rulestype` int(11) DEFAULT NULL,
  `governinglaw` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_governinglaw` (`source`),
  KEY `governinglaw_location` (`location`),
  KEY `governinglaw_jrisdictiontype` (`jurisdictiontype`),
  KEY `issuedata_governinglaw` (`issuedata`),
  KEY `governinglaw_rulestype` (`rulestype`),
  CONSTRAINT `governinglaw_jrisdictiontype` FOREIGN KEY (`jurisdictiontype`) REFERENCES `jurisdictiontype` (`id`),
  CONSTRAINT `governinglaw_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `governinglaw_rulestype` FOREIGN KEY (`rulestype`) REFERENCES `rulestype` (`id`),
  CONSTRAINT `issuedata_governinglaw` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `source_governinglaw` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `governinglaw`
--

/*!40000 ALTER TABLE `governinglaw` DISABLE KEYS */;
/*!40000 ALTER TABLE `governinglaw` ENABLE KEYS */;


--
-- Definition of table `grading`
--

DROP TABLE IF EXISTS `grading`;
CREATE TABLE `grading` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `grading`
--

/*!40000 ALTER TABLE `grading` DISABLE KEYS */;
/*!40000 ALTER TABLE `grading` ENABLE KEYS */;


--
-- Definition of table `holderactionsubclass`
--

DROP TABLE IF EXISTS `holderactionsubclass`;
CREATE TABLE `holderactionsubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caeidentifier` int(11) NOT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) NOT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier1` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `relatedcaeid` int(11) DEFAULT NULL,
  `caedmain_holderactionsbclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_holderactionsubclass` (`source`),
  KEY `hlderctinsbclss_ceidentifier` (`caeidentifier`),
  KEY `hldrctinsbclss_ntityidntifir` (`entityidentifier`),
  KEY `holderactionsubclass_caetype` (`caetype`),
  KEY `caedmain_holderactionsbclass` (`caedmain_holderactionsbclass`),
  KEY `hlderactinsbclss_cestatstype` (`caestatustype`),
  KEY `hldrctinsbclss_clifcycletype` (`caelifecycletype`),
  KEY `hlderactinsbclss_meetingtype` (`meetingtype`),
  KEY `holderactionsbclass_isserref` (`issuerref`),
  KEY `hlderctinsbclss_indictrstype` (`indicatorstype`),
  CONSTRAINT `caedmain_holderactionsbclass` FOREIGN KEY (`caedmain_holderactionsbclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `hlderactinsbclss_cestatstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `hlderactinsbclss_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `hlderctinsbclss_ceidentifier` FOREIGN KEY (`caeidentifier`) REFERENCES `caeidentifier` (`id`),
  CONSTRAINT `hlderctinsbclss_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `hldrctinsbclss_clifcycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `hldrctinsbclss_ntityidntifir` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `holderactionsbclass_isserref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `holderactionsubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `source_holderactionsubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `holderactionsubclass`
--

/*!40000 ALTER TABLE `holderactionsubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `holderactionsubclass` ENABLE KEYS */;


--
-- Definition of table `holderactionsubclassagent`
--

DROP TABLE IF EXISTS `holderactionsubclassagent`;
CREATE TABLE `holderactionsubclassagent` (
  `agent` int(11) NOT NULL,
  `holderactionsubclass` int(11) NOT NULL,
  KEY `agent_agenthlderactinsbclass` (`holderactionsubclass`),
  KEY `hldrctnsbclss_hldrctnsbclssg` (`agent`),
  CONSTRAINT `agent_agenthlderactinsbclass` FOREIGN KEY (`holderactionsubclass`) REFERENCES `holderactionsubclass` (`id`),
  CONSTRAINT `hldrctnsbclss_hldrctnsbclssg` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `holderactionsubclassagent`
--

/*!40000 ALTER TABLE `holderactionsubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `holderactionsubclassagent` ENABLE KEYS */;


--
-- Definition of table `holdingstatus`
--

DROP TABLE IF EXISTS `holdingstatus`;
CREATE TABLE `holdingstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rangetype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `maxval` decimal(19,2) DEFAULT NULL,
  `minval` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_holdingstatus` (`source`),
  KEY `holdingstatus_rangetype` (`rangetype`),
  CONSTRAINT `holdingstatus_rangetype` FOREIGN KEY (`rangetype`) REFERENCES `rangetype` (`id`),
  CONSTRAINT `source_holdingstatus` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `holdingstatus`
--

/*!40000 ALTER TABLE `holdingstatus` DISABLE KEYS */;
/*!40000 ALTER TABLE `holdingstatus` ENABLE KEYS */;


--
-- Definition of table `hours`
--

DROP TABLE IF EXISTS `hours`;
CREATE TABLE `hours` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `duration` int(11) DEFAULT NULL,
  `periodtype` int(11) DEFAULT NULL,
  `endtime` date DEFAULT NULL,
  `starttime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_hours` (`source`),
  KEY `hours_duration` (`duration`),
  KEY `hours_periodtype` (`periodtype`),
  CONSTRAINT `hours_duration` FOREIGN KEY (`duration`) REFERENCES `duration` (`id`),
  CONSTRAINT `hours_periodtype` FOREIGN KEY (`periodtype`) REFERENCES `periodtype` (`id`),
  CONSTRAINT `source_hours` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `hours`
--

/*!40000 ALTER TABLE `hours` DISABLE KEYS */;
/*!40000 ALTER TABLE `hours` ENABLE KEYS */;


--
-- Definition of table `inclusiontype`
--

DROP TABLE IF EXISTS `inclusiontype`;
CREATE TABLE `inclusiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `inclusiontype`
--

/*!40000 ALTER TABLE `inclusiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `inclusiontype` ENABLE KEYS */;


--
-- Definition of table `incometype`
--

DROP TABLE IF EXISTS `incometype`;
CREATE TABLE `incometype` (
  `id` int(11) NOT NULL,
  `currency` int(11) DEFAULT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `issuedata_incometype` (`issuedata`),
  KEY `incometype_currency` (`currency`),
  CONSTRAINT `incometype_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `issuedata_incometype` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `incometype`
--

/*!40000 ALTER TABLE `incometype` DISABLE KEYS */;
/*!40000 ALTER TABLE `incometype` ENABLE KEYS */;


--
-- Definition of table `incremental`
--

DROP TABLE IF EXISTS `incremental`;
CREATE TABLE `incremental` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` date DEFAULT NULL,
  `maxval` decimal(19,2) DEFAULT NULL,
  `minval` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_incremental` (`source`),
  CONSTRAINT `source_incremental` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `incremental`
--

/*!40000 ALTER TABLE `incremental` DISABLE KEYS */;
/*!40000 ALTER TABLE `incremental` ENABLE KEYS */;


--
-- Definition of table `indexbasedate`
--

DROP TABLE IF EXISTS `indexbasedate`;
CREATE TABLE `indexbasedate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayruletype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `indexbasedate` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_indexbasedate` (`source`),
  KEY `indexbasedate_dayruletype` (`dayruletype`),
  KEY `indexbasedate_marketcenter` (`marketcenter`),
  KEY `indexbasedate_indicatorstype` (`indicatorstype`),
  CONSTRAINT `indexbasedate_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `indexbasedate_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `indexbasedate_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `source_indexbasedate` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexbasedate`
--

/*!40000 ALTER TABLE `indexbasedate` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexbasedate` ENABLE KEYS */;


--
-- Definition of table `indexbasevalue`
--

DROP TABLE IF EXISTS `indexbasevalue`;
CREATE TABLE `indexbasevalue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `indexbasevalue` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_indexbasevalue` (`source`),
  KEY `indexbasevalue_valuationref` (`valuationref`),
  KEY `indexbasevalue_unittype` (`unittype`),
  KEY `indexbasevale_calclationtype` (`calculationtype`),
  KEY `indexbasevalue_valuationtype` (`valuationtype`),
  KEY `indxbsvl_qntitydscriptintype` (`quantitydescriptiontype`),
  KEY `indexbasevalue_quantitytype` (`quantitytype`),
  KEY `indexbasevalue_marketcenter` (`marketcenter`),
  KEY `indexbasevale_indicatorstype` (`indicatorstype`),
  CONSTRAINT `indexbasevale_calclationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `indexbasevale_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `indexbasevalue_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `indexbasevalue_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `indexbasevalue_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `indexbasevalue_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `indexbasevalue_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `indxbsvl_qntitydscriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_indexbasevalue` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexbasevalue`
--

/*!40000 ALTER TABLE `indexbasevalue` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexbasevalue` ENABLE KEYS */;


--
-- Definition of table `indexdomain`
--

DROP TABLE IF EXISTS `indexdomain`;
CREATE TABLE `indexdomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `industryidentifier` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) NOT NULL,
  `indexbasedate` int(11) DEFAULT NULL,
  `indexbasevalue` int(11) DEFAULT NULL,
  `indexmethodology` int(11) DEFAULT NULL,
  `indexmultiplier` int(11) DEFAULT NULL,
  `indexobjective` int(11) DEFAULT NULL,
  `indexvalue` int(11) NOT NULL,
  `indexweighting` int(11) DEFAULT NULL,
  `snap` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_indexdomain` (`source`),
  KEY `indexdomain_snap` (`snap`),
  KEY `indexdomain_indexvalue` (`indexvalue`),
  KEY `indexdomain_indexmultiplier` (`indexmultiplier`),
  KEY `indexdmain_indstryidentifier` (`industryidentifier`),
  KEY `indexdomain_indexbasedate` (`indexbasedate`),
  KEY `indexdomain_indexmethodology` (`indexmethodology`),
  KEY `indexdomain_indexweighting` (`indexweighting`),
  KEY `indexdomain_indexbasevalue` (`indexbasevalue`),
  KEY `indxdmin_instrmentidentifier` (`instrumentidentifier`),
  KEY `indexdomain_indexobjective` (`indexobjective`),
  CONSTRAINT `indexdmain_indstryidentifier` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `indexdomain_indexbasedate` FOREIGN KEY (`indexbasedate`) REFERENCES `indexbasedate` (`id`),
  CONSTRAINT `indexdomain_indexbasevalue` FOREIGN KEY (`indexbasevalue`) REFERENCES `indexbasevalue` (`id`),
  CONSTRAINT `indexdomain_indexmethodology` FOREIGN KEY (`indexmethodology`) REFERENCES `indexmethodology` (`id`),
  CONSTRAINT `indexdomain_indexmultiplier` FOREIGN KEY (`indexmultiplier`) REFERENCES `indexmultiplier` (`id`),
  CONSTRAINT `indexdomain_indexobjective` FOREIGN KEY (`indexobjective`) REFERENCES `indexobjective` (`id`),
  CONSTRAINT `indexdomain_indexvalue` FOREIGN KEY (`indexvalue`) REFERENCES `indexvalue` (`id`),
  CONSTRAINT `indexdomain_indexweighting` FOREIGN KEY (`indexweighting`) REFERENCES `indexweighting` (`id`),
  CONSTRAINT `indexdomain_snap` FOREIGN KEY (`snap`) REFERENCES `snap` (`id`),
  CONSTRAINT `indxdmin_instrmentidentifier` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `source_indexdomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexdomain`
--

/*!40000 ALTER TABLE `indexdomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexdomain` ENABLE KEYS */;


--
-- Definition of table `indexmethodology`
--

DROP TABLE IF EXISTS `indexmethodology`;
CREATE TABLE `indexmethodology` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indexmethodology` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_indexmethodology` (`source`),
  CONSTRAINT `source_indexmethodology` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexmethodology`
--

/*!40000 ALTER TABLE `indexmethodology` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexmethodology` ENABLE KEYS */;


--
-- Definition of table `indexmultiplier`
--

DROP TABLE IF EXISTS `indexmultiplier`;
CREATE TABLE `indexmultiplier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indexmultiplier` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_indexmultiplier` (`source`),
  CONSTRAINT `source_indexmultiplier` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexmultiplier`
--

/*!40000 ALTER TABLE `indexmultiplier` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexmultiplier` ENABLE KEYS */;


--
-- Definition of table `indexobjective`
--

DROP TABLE IF EXISTS `indexobjective`;
CREATE TABLE `indexobjective` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indexobjective` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_indexobjective` (`source`),
  CONSTRAINT `source_indexobjective` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexobjective`
--

/*!40000 ALTER TABLE `indexobjective` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexobjective` ENABLE KEYS */;


--
-- Definition of table `indexvalue`
--

DROP TABLE IF EXISTS `indexvalue`;
CREATE TABLE `indexvalue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `high` decimal(19,2) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `open` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `indexvalue_marketidentifier` (`marketidentifier`),
  KEY `source_indexvalue` (`source`),
  CONSTRAINT `indexvalue_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `source_indexvalue` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexvalue`
--

/*!40000 ALTER TABLE `indexvalue` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexvalue` ENABLE KEYS */;


--
-- Definition of table `indexweighting`
--

DROP TABLE IF EXISTS `indexweighting`;
CREATE TABLE `indexweighting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indexweighting` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_indexweighting` (`source`),
  CONSTRAINT `source_indexweighting` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indexweighting`
--

/*!40000 ALTER TABLE `indexweighting` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexweighting` ENABLE KEYS */;


--
-- Definition of table `indicatordomain`
--

DROP TABLE IF EXISTS `indicatordomain`;
CREATE TABLE `indicatordomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `demographicclass` int(11) DEFAULT NULL,
  `economicclass` int(11) DEFAULT NULL,
  `industryspecificclass` int(11) DEFAULT NULL,
  `interestrateclass` int(11) DEFAULT NULL,
  `marketstatsclass` int(11) DEFAULT NULL,
  `snaptype` int(11) DEFAULT NULL,
  `snapdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `indicatordomain_snaptype` (`snaptype`),
  KEY `source_indicatordomain` (`source`),
  KEY `indictrdmin_marketstatsclass` (`marketstatsclass`),
  KEY `indictrdmin_interestrteclass` (`interestrateclass`),
  KEY `indicatrdomain_economicclass` (`economicclass`),
  KEY `indictrdmain_demgraphicclass` (`demographicclass`),
  KEY `indctrdmn_indstryspcificclss` (`industryspecificclass`),
  CONSTRAINT `indctrdmn_indstryspcificclss` FOREIGN KEY (`industryspecificclass`) REFERENCES `industryspecificclass` (`id`),
  CONSTRAINT `indicatordomain_snaptype` FOREIGN KEY (`snaptype`) REFERENCES `snaptype` (`id`),
  CONSTRAINT `indicatrdomain_economicclass` FOREIGN KEY (`economicclass`) REFERENCES `economicclass` (`id`),
  CONSTRAINT `indictrdmain_demgraphicclass` FOREIGN KEY (`demographicclass`) REFERENCES `demographicclass` (`id`),
  CONSTRAINT `indictrdmin_interestrteclass` FOREIGN KEY (`interestrateclass`) REFERENCES `interestrateclass` (`id`),
  CONSTRAINT `indictrdmin_marketstatsclass` FOREIGN KEY (`marketstatsclass`) REFERENCES `marketstatsclass` (`id`),
  CONSTRAINT `source_indicatordomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indicatordomain`
--

/*!40000 ALTER TABLE `indicatordomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `indicatordomain` ENABLE KEYS */;


--
-- Definition of table `indicatorstype`
--

DROP TABLE IF EXISTS `indicatorstype`;
CREATE TABLE `indicatorstype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `indicatorstype`
--

/*!40000 ALTER TABLE `indicatorstype` DISABLE KEYS */;
/*!40000 ALTER TABLE `indicatorstype` ENABLE KEYS */;


--
-- Definition of table `industryidentifier`
--

DROP TABLE IF EXISTS `industryidentifier`;
CREATE TABLE `industryidentifier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `industryidentifiertype` int(11) NOT NULL,
  `code` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `dmgrphicclss_indstryidntifir` int(11) DEFAULT NULL,
  `frgnxchngdmn_indstryidntifir` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `indstrydntfr_ndstryidntfrtyp` (`industryidentifiertype`),
  KEY `source_industryidentifier` (`source`),
  KEY `dmgrphicclss_indstryidntifir` (`dmgrphicclss_indstryidntifir`),
  KEY `instrmntdmin_indstryidntifir` (`instrumentdomain`),
  KEY `frgnxchngdmn_indstryidntifir` (`frgnxchngdmn_indstryidntifir`),
  CONSTRAINT `dmgrphicclss_indstryidntifir` FOREIGN KEY (`dmgrphicclss_indstryidntifir`) REFERENCES `demographicclass` (`id`),
  CONSTRAINT `frgnxchngdmn_indstryidntifir` FOREIGN KEY (`frgnxchngdmn_indstryidntifir`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `indstrydntfr_ndstryidntfrtyp` FOREIGN KEY (`industryidentifiertype`) REFERENCES `industryidentifiertype` (`id`),
  CONSTRAINT `instrmntdmin_indstryidntifir` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_industryidentifier` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `industryidentifier`
--

/*!40000 ALTER TABLE `industryidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `industryidentifier` ENABLE KEYS */;


--
-- Definition of table `industryidentifiertype`
--

DROP TABLE IF EXISTS `industryidentifiertype`;
CREATE TABLE `industryidentifiertype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `industryidentifiertype`
--

/*!40000 ALTER TABLE `industryidentifiertype` DISABLE KEYS */;
/*!40000 ALTER TABLE `industryidentifiertype` ENABLE KEYS */;


--
-- Definition of table `industryspecificclass`
--

DROP TABLE IF EXISTS `industryspecificclass`;
CREATE TABLE `industryspecificclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `industryidentifier` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_industryspecificclass` (`source`),
  KEY `indstryspcfcclss_nstrmntdmin` (`instrumentdomain`),
  KEY `indstryspcfcclss_ndstrydntfr` (`industryidentifier`),
  KEY `indstryspcfccls_nstrmntdntfr` (`instrumentidentifier`),
  CONSTRAINT `indstryspcfcclss_ndstrydntfr` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `indstryspcfcclss_nstrmntdmin` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `indstryspcfccls_nstrmntdntfr` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `source_industryspecificclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `industryspecificclass`
--

/*!40000 ALTER TABLE `industryspecificclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `industryspecificclass` ENABLE KEYS */;


--
-- Definition of table `instrmentdminmrketidentifier`
--

DROP TABLE IF EXISTS `instrmentdminmrketidentifier`;
CREATE TABLE `instrmentdminmrketidentifier` (
  `instrumentdomain` int(11) NOT NULL,
  `marketidentifier` int(11) NOT NULL,
  KEY `instrmntdmn_nstrmntdmnmrktdn` (`marketidentifier`),
  KEY `mrktdntfr_mrktdntfrnstrmntdm` (`instrumentdomain`),
  CONSTRAINT `instrmntdmn_nstrmntdmnmrktdn` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `mrktdntfr_mrktdntfrnstrmntdm` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrmentdminmrketidentifier`
--

/*!40000 ALTER TABLE `instrmentdminmrketidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrmentdminmrketidentifier` ENABLE KEYS */;


--
-- Definition of table `instrmntidntifirmrktidntifir`
--

DROP TABLE IF EXISTS `instrmntidntifirmrktidntifir`;
CREATE TABLE `instrmntidntifirmrktidntifir` (
  `instrumentidentifier` int(11) NOT NULL,
  `marketidentifier` int(11) NOT NULL,
  KEY `instrmntdntfr_nstrmntdntfrmr` (`marketidentifier`),
  KEY `mrktdntfr_mrktdntfrnstrmntdn` (`instrumentidentifier`),
  CONSTRAINT `instrmntdntfr_nstrmntdntfrmr` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `mrktdntfr_mrktdntfrnstrmntdn` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrmntidntifirmrktidntifir`
--

/*!40000 ALTER TABLE `instrmntidntifirmrktidntifir` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrmntidntifirmrktidntifir` ENABLE KEYS */;


--
-- Definition of table `instrumentdomain`
--

DROP TABLE IF EXISTS `instrumentdomain`;
CREATE TABLE `instrumentdomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumenttype` int(11) DEFAULT NULL,
  `instrumentformtype` int(11) DEFAULT NULL,
  `tradingrestrictionstype` int(11) DEFAULT NULL,
  `amountoutstandingdate` date DEFAULT NULL,
  `benchmarkstrategy` varchar(255) DEFAULT NULL,
  `contractvaluemultiplier` decimal(19,2) DEFAULT NULL,
  `createdate` date DEFAULT NULL,
  `defaultclause` bit(1) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `firstdealingdate` date DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `firstsettlementdate` date DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `marketderivedinfperiddration` varchar(255) DEFAULT NULL,
  `marketderivedinfoperiodend` date DEFAULT NULL,
  `marketderivedinfoperiodstart` date DEFAULT NULL,
  `modifieddate` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `numberholders` decimal(19,2) DEFAULT NULL,
  `numberholdersdatetime` date DEFAULT NULL,
  `nmberholderspreviousdatetime` date DEFAULT NULL,
  `objective` varchar(255) DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `principalpaymentend` date DEFAULT NULL,
  `principalpaymentstart` date DEFAULT NULL,
  `purchasingminimums` varchar(255) DEFAULT NULL,
  `qualifiedplans` varchar(255) DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `shortname` varchar(255) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_instrumentdomain` (`source`),
  KEY `issuerclass_instrumentdomain` (`issuerclass`),
  KEY `instrmntdmn_ndrlyinginstrmnt` (`instrumentdomain`),
  KEY `instrmntdmn_trdngrstrctnstyp` (`tradingrestrictionstype`),
  KEY `instrmentdmain_instrmenttype` (`instrumenttype`),
  KEY `instrmntdmin_instrmntfrmtype` (`instrumentformtype`),
  CONSTRAINT `instrmentdmain_instrmenttype` FOREIGN KEY (`instrumenttype`) REFERENCES `instrumenttype` (`id`),
  CONSTRAINT `instrmntdmin_instrmntfrmtype` FOREIGN KEY (`instrumentformtype`) REFERENCES `instrumentformtype` (`id`),
  CONSTRAINT `instrmntdmn_ndrlyinginstrmnt` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `instrmntdmn_trdngrstrctnstyp` FOREIGN KEY (`tradingrestrictionstype`) REFERENCES `tradingrestrictionstype` (`id`),
  CONSTRAINT `issuerclass_instrumentdomain` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `source_instrumentdomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrumentdomain`
--

/*!40000 ALTER TABLE `instrumentdomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrumentdomain` ENABLE KEYS */;


--
-- Definition of table `instrumentdomainagent`
--

DROP TABLE IF EXISTS `instrumentdomainagent`;
CREATE TABLE `instrumentdomainagent` (
  `agent` int(11) NOT NULL,
  `instrumentdomain` int(11) NOT NULL,
  KEY `agent_agentinstrumentdomain` (`instrumentdomain`),
  KEY `instrmntdmin_instrmntdmingnt` (`agent`),
  CONSTRAINT `agent_agentinstrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `instrmntdmin_instrmntdmingnt` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrumentdomainagent`
--

/*!40000 ALTER TABLE `instrumentdomainagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrumentdomainagent` ENABLE KEYS */;


--
-- Definition of table `instrumentformtype`
--

DROP TABLE IF EXISTS `instrumentformtype`;
CREATE TABLE `instrumentformtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrumentformtype`
--

/*!40000 ALTER TABLE `instrumentformtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrumentformtype` ENABLE KEYS */;


--
-- Definition of table `instrumentidentifier`
--

DROP TABLE IF EXISTS `instrumentidentifier`;
CREATE TABLE `instrumentidentifier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` int(11) DEFAULT NULL,
  `instrumentstatustype` int(11) DEFAULT NULL,
  `scopetype` int(11) DEFAULT NULL,
  `tranche` int(11) DEFAULT NULL,
  `marketstatustype` int(11) DEFAULT NULL,
  `markettype` int(11) DEFAULT NULL,
  `segmenttype` int(11) DEFAULT NULL,
  `schemeinfo` int(11) DEFAULT NULL,
  `country` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `background` varchar(255) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `createdate` date DEFAULT NULL,
  `end` date DEFAULT NULL,
  `marketconditions` varchar(255) DEFAULT NULL,
  `modifieddate` date DEFAULT NULL,
  `segmentidentifiercode` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `issuancesubclass` int(11) DEFAULT NULL,
  `corporatechangesubclass` int(11) DEFAULT NULL,
  `cshdmain_instrmentidentifier` int(11) DEFAULT NULL,
  `cmmditydmin_instrmntidntifir` int(11) DEFAULT NULL,
  `crprtsbclss_instrmntidntifir` int(11) DEFAULT NULL,
  `dtchngsbclss_nstrmntidntifir` int(11) DEFAULT NULL,
  `dmgrphcclss_instrmntidntifir` int(11) DEFAULT NULL,
  `dstrbtnsbclss_nstrmntidntfir` int(11) DEFAULT NULL,
  `hldrctnsbclss_nstrmntidntfir` int(11) DEFAULT NULL,
  `issedata_instrmentidentifier` int(11) DEFAULT NULL,
  `mtingsbclss_instrmntidntifir` int(11) DEFAULT NULL,
  `prtflidmin_instrmntidntifier` int(11) DEFAULT NULL,
  `rstrctrsbclss_nstrmntidntfir` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  `sttschngsbclss_nstrmntidntfr` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dmgrphcclss_instrmntidntifir` (`dmgrphcclss_instrmntidntifir`),
  KEY `cshdmain_instrmentidentifier` (`cshdmain_instrmentidentifier`),
  KEY `source_instrumentidentifier` (`source`),
  KEY `sttschngsbclss_nstrmntidntfr` (`sttschngsbclss_nstrmntidntfr`),
  KEY `dstrbtnsbclss_nstrmntidntfir` (`dstrbtnsbclss_nstrmntidntfir`),
  KEY `instrmentidentifier_currency` (`currency`),
  KEY `instrumentidentifier_country` (`country`),
  KEY `instrmntidentifier_schemeinf` (`schemeinfo`),
  KEY `hldrctnsbclss_nstrmntidntfir` (`hldrctnsbclss_nstrmntidntfir`),
  KEY `instrmntidentifier_mrkettype` (`markettype`),
  KEY `cmmditydmin_instrmntidntifir` (`cmmditydmin_instrmntidntifir`),
  KEY `instrumentidentifier_name` (`name`),
  KEY `instrmntidntfir_instrmntdmin` (`instrumentdomain`),
  KEY `issedata_instrmentidentifier` (`issedata_instrmentidentifier`),
  KEY `mtingsbclss_instrmntidntifir` (`mtingsbclss_instrmntidntifir`),
  KEY `instrmntidntifir_mrktsttstyp` (`marketstatustype`),
  KEY `instrumentidentifier_tranche` (`tranche`),
  KEY `instrmentidentifier_scpetype` (`scopetype`),
  KEY `crprtchngsbclss_nstrmntdntfr` (`corporatechangesubclass`),
  KEY `instrmntdntfr_nstrmntsttstyp` (`instrumentstatustype`),
  KEY `dtchngsbclss_nstrmntidntifir` (`dtchngsbclss_nstrmntidntifir`),
  KEY `issncsbclss_instrmntidntifir` (`issuancesubclass`),
  KEY `instrmntidntifir_segmenttype` (`segmenttype`),
  KEY `rstrctrsbclss_nstrmntidntfir` (`rstrctrsbclss_nstrmntidntfir`),
  KEY `prtflidmin_instrmntidntifier` (`prtflidmin_instrmntidntifier`),
  KEY `crprtsbclss_instrmntidntifir` (`crprtsbclss_instrmntidntifir`),
  CONSTRAINT `cmmditydmin_instrmntidntifir` FOREIGN KEY (`cmmditydmin_instrmntidntifir`) REFERENCES `commoditydomain` (`id`),
  CONSTRAINT `crprtchngsbclss_nstrmntdntfr` FOREIGN KEY (`corporatechangesubclass`) REFERENCES `corporatechangesubclass` (`id`),
  CONSTRAINT `crprtsbclss_instrmntidntifir` FOREIGN KEY (`crprtsbclss_instrmntidntifir`) REFERENCES `corporatesubclass` (`id`),
  CONSTRAINT `cshdmain_instrmentidentifier` FOREIGN KEY (`cshdmain_instrmentidentifier`) REFERENCES `cashdomain` (`id`),
  CONSTRAINT `dmgrphcclss_instrmntidntifir` FOREIGN KEY (`dmgrphcclss_instrmntidntifir`) REFERENCES `demographicclass` (`id`),
  CONSTRAINT `dstrbtnsbclss_nstrmntidntfir` FOREIGN KEY (`dstrbtnsbclss_nstrmntidntfir`) REFERENCES `distributionsubclass` (`id`),
  CONSTRAINT `dtchngsbclss_nstrmntidntifir` FOREIGN KEY (`dtchngsbclss_nstrmntidntifir`) REFERENCES `datachangesubclass` (`id`),
  CONSTRAINT `hldrctnsbclss_nstrmntidntfir` FOREIGN KEY (`hldrctnsbclss_nstrmntidntfir`) REFERENCES `holderactionsubclass` (`id`),
  CONSTRAINT `instrmentidentifier_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `instrmentidentifier_scpetype` FOREIGN KEY (`scopetype`) REFERENCES `scopetype` (`id`),
  CONSTRAINT `instrmntdntfr_nstrmntsttstyp` FOREIGN KEY (`instrumentstatustype`) REFERENCES `instrumentstatustype` (`id`),
  CONSTRAINT `instrmntidentifier_mrkettype` FOREIGN KEY (`markettype`) REFERENCES `markettype` (`id`),
  CONSTRAINT `instrmntidentifier_schemeinf` FOREIGN KEY (`schemeinfo`) REFERENCES `schemeinfo` (`id`),
  CONSTRAINT `instrmntidntfir_instrmntdmin` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `instrmntidntifir_mrktsttstyp` FOREIGN KEY (`marketstatustype`) REFERENCES `marketstatustype` (`id`),
  CONSTRAINT `instrmntidntifir_segmenttype` FOREIGN KEY (`segmenttype`) REFERENCES `segmenttype` (`id`),
  CONSTRAINT `instrumentidentifier_country` FOREIGN KEY (`country`) REFERENCES `country` (`id`),
  CONSTRAINT `instrumentidentifier_name` FOREIGN KEY (`name`) REFERENCES `name` (`id`),
  CONSTRAINT `instrumentidentifier_tranche` FOREIGN KEY (`tranche`) REFERENCES `tranche` (`id`),
  CONSTRAINT `issedata_instrmentidentifier` FOREIGN KEY (`issedata_instrmentidentifier`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `issncsbclss_instrmntidntifir` FOREIGN KEY (`issuancesubclass`) REFERENCES `issuancesubclass` (`id`),
  CONSTRAINT `mtingsbclss_instrmntidntifir` FOREIGN KEY (`mtingsbclss_instrmntidntifir`) REFERENCES `meetingsubclass` (`id`),
  CONSTRAINT `prtflidmin_instrmntidntifier` FOREIGN KEY (`prtflidmin_instrmntidntifier`) REFERENCES `portfoliodomain` (`id`),
  CONSTRAINT `rstrctrsbclss_nstrmntidntfir` FOREIGN KEY (`rstrctrsbclss_nstrmntidntfir`) REFERENCES `restructuresubclass` (`id`),
  CONSTRAINT `source_instrumentidentifier` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `sttschngsbclss_nstrmntidntfr` FOREIGN KEY (`sttschngsbclss_nstrmntidntfr`) REFERENCES `statuschangesubclass` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrumentidentifier`
--

/*!40000 ALTER TABLE `instrumentidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrumentidentifier` ENABLE KEYS */;


--
-- Definition of table `instrumentstatustype`
--

DROP TABLE IF EXISTS `instrumentstatustype`;
CREATE TABLE `instrumentstatustype` (
  `id` int(11) NOT NULL,
  `createdate` date DEFAULT NULL,
  `full` varchar(255) DEFAULT NULL,
  `modifieddate` date DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrumentstatustype`
--

/*!40000 ALTER TABLE `instrumentstatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrumentstatustype` ENABLE KEYS */;


--
-- Definition of table `instrumenttype`
--

DROP TABLE IF EXISTS `instrumenttype`;
CREATE TABLE `instrumenttype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `instrumenttype`
--

/*!40000 ALTER TABLE `instrumenttype` DISABLE KEYS */;
/*!40000 ALTER TABLE `instrumenttype` ENABLE KEYS */;


--
-- Definition of table `interestpayment`
--

DROP TABLE IF EXISTS `interestpayment`;
CREATE TABLE `interestpayment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `paymentdelaytype` int(11) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `payableinkind` bit(1) DEFAULT NULL,
  `payment` decimal(19,2) DEFAULT NULL,
  `paymentdate` date DEFAULT NULL,
  `paymentdelayduration` varchar(255) DEFAULT NULL,
  `paymentdelayend` date DEFAULT NULL,
  `paymentdelaystart` date DEFAULT NULL,
  `paymentfrequencyduration` varchar(255) DEFAULT NULL,
  `paymentfrequencyend` date DEFAULT NULL,
  `paymentfrequencystart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_interestpayment` (`source`),
  KEY `intrestpyment_pymentdelytype` (`paymentdelaytype`),
  KEY `debtissedata_interestpayment` (`debtissuedata`),
  CONSTRAINT `debtissedata_interestpayment` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `intrestpyment_pymentdelytype` FOREIGN KEY (`paymentdelaytype`) REFERENCES `paymentdelaytype` (`id`),
  CONSTRAINT `source_interestpayment` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `interestpayment`
--

/*!40000 ALTER TABLE `interestpayment` DISABLE KEYS */;
/*!40000 ALTER TABLE `interestpayment` ENABLE KEYS */;


--
-- Definition of table `interestrate`
--

DROP TABLE IF EXISTS `interestrate`;
CREATE TABLE `interestrate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indicatorstype` int(11) DEFAULT NULL,
  `debtindicatorstype` int(11) DEFAULT NULL,
  `rulestype` int(11) DEFAULT NULL,
  `ratechangetype` int(11) DEFAULT NULL,
  `accrualbasistype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `accrualconventiontype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `accrualdaysinmonth` decimal(19,2) DEFAULT NULL,
  `accrualdaysinyear` decimal(19,2) DEFAULT NULL,
  `accrualend` date DEFAULT NULL,
  `accrualrecurrable` bit(1) DEFAULT NULL,
  `accrualstart` date DEFAULT NULL,
  `compounding` bit(1) DEFAULT NULL,
  `endperiod` date DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lifetimemaxvalue` decimal(19,2) DEFAULT NULL,
  `lifetimeminvalue` decimal(19,2) DEFAULT NULL,
  `nextamount` date DEFAULT NULL,
  `nextdate` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `performancebasedcondition` varchar(255) DEFAULT NULL,
  `rate` decimal(19,2) DEFAULT NULL,
  `startperiod` date DEFAULT NULL,
  `terms` varchar(255) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `interestrte_debtindictrstype` (`debtindicatorstype`),
  KEY `source_interestrate` (`source`),
  KEY `interestrate_instrmentdomain` (`instrumentdomain`),
  KEY `interestrate_dayruletype` (`dayruletype`),
  KEY `interestrate_accralbasistype` (`accrualbasistype`),
  KEY `debtissuedata_interestrate` (`debtissuedata`),
  KEY `interestrate_ratemethdchange` (`ratechangetype`),
  KEY `interestrate_indicatorstype` (`indicatorstype`),
  KEY `interestrate_rulestype` (`rulestype`),
  KEY `interestrte_ccrlcnventintype` (`accrualconventiontype`),
  CONSTRAINT `debtissuedata_interestrate` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `interestrate_accralbasistype` FOREIGN KEY (`accrualbasistype`) REFERENCES `accrualbasistype` (`id`),
  CONSTRAINT `interestrate_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `interestrate_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `interestrate_instrmentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `interestrate_ratemethdchange` FOREIGN KEY (`ratechangetype`) REFERENCES `ratemethodchange` (`id`),
  CONSTRAINT `interestrate_rulestype` FOREIGN KEY (`rulestype`) REFERENCES `rulestype` (`id`),
  CONSTRAINT `interestrte_ccrlcnventintype` FOREIGN KEY (`accrualconventiontype`) REFERENCES `accrualconventiontype` (`id`),
  CONSTRAINT `interestrte_debtindictrstype` FOREIGN KEY (`debtindicatorstype`) REFERENCES `debtindicatorstype` (`id`),
  CONSTRAINT `source_interestrate` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `interestrate`
--

/*!40000 ALTER TABLE `interestrate` DISABLE KEYS */;
/*!40000 ALTER TABLE `interestrate` ENABLE KEYS */;


--
-- Definition of table `interestrateclass`
--

DROP TABLE IF EXISTS `interestrateclass`;
CREATE TABLE `interestrateclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `industryidentifier` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) NOT NULL,
  `interestrate` int(11) NOT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `interestrteclss_interestrate` (`interestrate`),
  KEY `source_interestrateclass` (`source`),
  KEY `intrstrtclss_indstryidntifir` (`industryidentifier`),
  KEY `intrstrtclss_nstrmntidntifir` (`instrumentidentifier`),
  CONSTRAINT `interestrteclss_interestrate` FOREIGN KEY (`interestrate`) REFERENCES `interestrate` (`id`),
  CONSTRAINT `intrstrtclss_indstryidntifir` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `intrstrtclss_nstrmntidntifir` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `source_interestrateclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `interestrateclass`
--

/*!40000 ALTER TABLE `interestrateclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `interestrateclass` ENABLE KEYS */;


--
-- Definition of table `investingrestrictions`
--

DROP TABLE IF EXISTS `investingrestrictions`;
CREATE TABLE `investingrestrictions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumentdomain` int(11) DEFAULT NULL,
  `investingrestrictions` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_investingrestrictions` (`source`),
  KEY `invstngrstrctns_instrmntdmin` (`instrumentdomain`),
  CONSTRAINT `invstngrstrctns_instrmntdmin` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_investingrestrictions` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `investingrestrictions`
--

/*!40000 ALTER TABLE `investingrestrictions` DISABLE KEYS */;
/*!40000 ALTER TABLE `investingrestrictions` ENABLE KEYS */;


--
-- Definition of table `investingstyle`
--

DROP TABLE IF EXISTS `investingstyle`;
CREATE TABLE `investingstyle` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumentdomain` int(11) DEFAULT NULL,
  `investingstyle` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_investingstyle` (`source`),
  KEY `investingstyle_instrmentdmin` (`instrumentdomain`),
  CONSTRAINT `investingstyle_instrmentdmin` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_investingstyle` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `investingstyle`
--

/*!40000 ALTER TABLE `investingstyle` DISABLE KEYS */;
/*!40000 ALTER TABLE `investingstyle` ENABLE KEYS */;


--
-- Definition of table `investingtechniques`
--

DROP TABLE IF EXISTS `investingtechniques`;
CREATE TABLE `investingtechniques` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumentdomain` int(11) DEFAULT NULL,
  `investingtechniques` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_investingtechniques` (`source`),
  KEY `invstingtchniqs_instrmntdmin` (`instrumentdomain`),
  CONSTRAINT `invstingtchniqs_instrmntdmin` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_investingtechniques` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `investingtechniques`
--

/*!40000 ALTER TABLE `investingtechniques` DISABLE KEYS */;
/*!40000 ALTER TABLE `investingtechniques` ENABLE KEYS */;


--
-- Definition of table `investorrestrictions`
--

DROP TABLE IF EXISTS `investorrestrictions`;
CREATE TABLE `investorrestrictions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `inclusiontype` int(11) DEFAULT NULL,
  `investingrestrictions` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_investorrestrictions` (`source`),
  KEY `invstrrstrictins_inclsintype` (`inclusiontype`),
  CONSTRAINT `invstrrstrictins_inclsintype` FOREIGN KEY (`inclusiontype`) REFERENCES `inclusiontype` (`id`),
  CONSTRAINT `source_investorrestrictions` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `investorrestrictions`
--

/*!40000 ALTER TABLE `investorrestrictions` DISABLE KEYS */;
/*!40000 ALTER TABLE `investorrestrictions` ENABLE KEYS */;


--
-- Definition of table `issuancesubclass`
--

DROP TABLE IF EXISTS `issuancesubclass`;
CREATE TABLE `issuancesubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caeidentifier` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) NOT NULL,
  `caetype` int(11) NOT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `instrumentstatustype` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `ceasedate` date DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `relatedcaeid` int(11) DEFAULT NULL,
  `caedomain_issuancesubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `issncsbclss_instrmntsttstype` (`instrumentstatustype`),
  KEY `source_issuancesubclass` (`source`),
  KEY `issancesbclass_caeidentifier` (`caeidentifier`),
  KEY `caedomain_issuancesubclass` (`caedomain_issuancesubclass`),
  KEY `issncsbclss_entityidentifier` (`entityidentifier`),
  KEY `issuancesubclass_caetype` (`caetype`),
  KEY `issancesbclass_caestatustype` (`caestatustype`),
  KEY `issncesbclss_celifecycletype` (`caelifecycletype`),
  KEY `issuancesubclass_meetingtype` (`meetingtype`),
  KEY `issuancesubclass_issuerref` (`issuerref`),
  KEY `issancesbclass_indicatrstype` (`indicatorstype`),
  CONSTRAINT `caedomain_issuancesubclass` FOREIGN KEY (`caedomain_issuancesubclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `issancesbclass_caeidentifier` FOREIGN KEY (`caeidentifier`) REFERENCES `caeidentifier` (`id`),
  CONSTRAINT `issancesbclass_caestatustype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `issancesbclass_indicatrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `issncesbclss_celifecycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `issncsbclss_entityidentifier` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `issncsbclss_instrmntsttstype` FOREIGN KEY (`instrumentstatustype`) REFERENCES `instrumentstatustype` (`id`),
  CONSTRAINT `issuancesubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `issuancesubclass_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `issuancesubclass_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `source_issuancesubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuancesubclass`
--

/*!40000 ALTER TABLE `issuancesubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuancesubclass` ENABLE KEYS */;


--
-- Definition of table `issuancesubclassagent`
--

DROP TABLE IF EXISTS `issuancesubclassagent`;
CREATE TABLE `issuancesubclassagent` (
  `agent` int(11) NOT NULL,
  `issuancesubclass` int(11) NOT NULL,
  KEY `agent_agentissuancesubclass` (`issuancesubclass`),
  KEY `issncsbclss_issncesbclssgent` (`agent`),
  CONSTRAINT `agent_agentissuancesubclass` FOREIGN KEY (`issuancesubclass`) REFERENCES `issuancesubclass` (`id`),
  CONSTRAINT `issncsbclss_issncesbclssgent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuancesubclassagent`
--

/*!40000 ALTER TABLE `issuancesubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuancesubclassagent` ENABLE KEYS */;


--
-- Definition of table `issueamount`
--

DROP TABLE IF EXISTS `issueamount`;
CREATE TABLE `issueamount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `debtindicatorstype` int(11) DEFAULT NULL,
  `crossrate` varchar(255) DEFAULT NULL,
  `crossratemultiplier` decimal(19,2) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `issueamount` decimal(19,2) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `isseamont_debtindicatorstype` (`debtindicatorstype`),
  KEY `source_issueamount` (`source`),
  KEY `issueamount_calculationtype` (`calculationtype`),
  KEY `issueamount_valuationtype` (`valuationtype`),
  KEY `issueamount_currency` (`currency`),
  KEY `issemnt_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `issueamount_quantitytype` (`quantitytype`),
  KEY `issueamount_marketcenter` (`marketcenter`),
  KEY `issueamount_indicatorstype` (`indicatorstype`),
  KEY `issueamount_issuedata` (`id`),
  CONSTRAINT `isseamont_debtindicatorstype` FOREIGN KEY (`debtindicatorstype`) REFERENCES `debtindicatorstype` (`id`),
  CONSTRAINT `issemnt_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `issueamount_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `issueamount_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `issueamount_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `issueamount_issuedata` FOREIGN KEY (`id`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `issueamount_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `issueamount_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `issueamount_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_issueamount` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issueamount`
--

/*!40000 ALTER TABLE `issueamount` DISABLE KEYS */;
/*!40000 ALTER TABLE `issueamount` ENABLE KEYS */;


--
-- Definition of table `issuedata`
--

DROP TABLE IF EXISTS `issuedata`;
CREATE TABLE `issuedata` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `issuanceSubclass` int(11) DEFAULT NULL,
  `indexDomain` int(11) DEFAULT NULL,
  `interestRateClass` int(11) DEFAULT NULL,
  `foreignExchangeDomain` int(11) DEFAULT NULL,
  `industrySpecificClass` int(11) DEFAULT NULL,
  `economicClass` int(11) DEFAULT NULL,
  `demographicClass` int(11) DEFAULT NULL,
  `issuemarkettype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `liquidationstatustype` int(11) DEFAULT NULL,
  `offertype` int(11) DEFAULT NULL,
  `programtype` int(11) DEFAULT NULL,
  `votingrightstype` int(11) DEFAULT NULL,
  `accrualbasistype` int(11) DEFAULT NULL,
  `accrualconventiontype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `modificationtype` int(11) DEFAULT NULL,
  `agreedrestriction` varchar(255) DEFAULT NULL,
  `allowedindebtedness` varchar(255) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `auctiondate` date DEFAULT NULL,
  `closingdate` date DEFAULT NULL,
  `createdate` date DEFAULT NULL,
  `defaultclause` varchar(255) DEFAULT NULL,
  `facevalue` decimal(19,2) DEFAULT NULL,
  `issuedate` date DEFAULT NULL,
  `marginable` bit(1) DEFAULT NULL,
  `marginablemaxlimit` decimal(19,2) DEFAULT NULL,
  `marginableminlimit` decimal(19,2) DEFAULT NULL,
  `modificationdatetime` date DEFAULT NULL,
  `modifieddate` date DEFAULT NULL,
  `negativepledge` varchar(255) DEFAULT NULL,
  `refrainfromacts` varchar(255) DEFAULT NULL,
  `settlementdate` date DEFAULT NULL,
  `underlyingcount` decimal(19,2) DEFAULT NULL,
  `useofproceeds` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_issuedata` (`source`),
  KEY `issuedata_votingrightstype` (`votingrightstype`),
  KEY `issuedata_programtype` (`programtype`),
  KEY `issuedata_demographicclass` (`demographicClass`),
  KEY `issedta_indstryspecificclass` (`industrySpecificClass`),
  KEY `issuedata_indexdomain` (`indexDomain`),
  KEY `issedata_accralcnventiontype` (`accrualconventiontype`),
  KEY `issuedata_instrumentdomain` (`id`),
  KEY `issuedata_issuemarkettype` (`issuemarkettype`),
  KEY `issuedata_offertype` (`offertype`),
  KEY `issedata_freignexchangedmain` (`foreignExchangeDomain`),
  KEY `issuedata_interestrateclass` (`interestRateClass`),
  KEY `issuedata_issuancesubclass` (`issuanceSubclass`),
  KEY `issuedata_accrualbasistype` (`accrualbasistype`),
  KEY `issedata_liqidationstatstype` (`liquidationstatustype`),
  KEY `issuedata_economicclass` (`economicClass`),
  KEY `issuedata_indicatorstype` (`indicatorstype`),
  KEY `issuedata_issuerref` (`issuerref`),
  KEY `issuedata_modificationtype` (`modificationtype`),
  CONSTRAINT `issedata_accralcnventiontype` FOREIGN KEY (`accrualconventiontype`) REFERENCES `accrualconventiontype` (`id`),
  CONSTRAINT `issedata_freignexchangedmain` FOREIGN KEY (`foreignExchangeDomain`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `issedata_liqidationstatstype` FOREIGN KEY (`liquidationstatustype`) REFERENCES `liquidationstatustype` (`id`),
  CONSTRAINT `issedta_indstryspecificclass` FOREIGN KEY (`industrySpecificClass`) REFERENCES `industryspecificclass` (`id`),
  CONSTRAINT `issuedata_accrualbasistype` FOREIGN KEY (`accrualbasistype`) REFERENCES `accrualbasistype` (`id`),
  CONSTRAINT `issuedata_demographicclass` FOREIGN KEY (`demographicClass`) REFERENCES `demographicclass` (`id`),
  CONSTRAINT `issuedata_economicclass` FOREIGN KEY (`economicClass`) REFERENCES `economicclass` (`id`),
  CONSTRAINT `issuedata_indexdomain` FOREIGN KEY (`indexDomain`) REFERENCES `indexdomain` (`id`),
  CONSTRAINT `issuedata_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `issuedata_instrumentdomain` FOREIGN KEY (`id`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `issuedata_interestrateclass` FOREIGN KEY (`interestRateClass`) REFERENCES `interestrateclass` (`id`),
  CONSTRAINT `issuedata_issuancesubclass` FOREIGN KEY (`issuanceSubclass`) REFERENCES `issuancesubclass` (`id`),
  CONSTRAINT `issuedata_issuemarkettype` FOREIGN KEY (`issuemarkettype`) REFERENCES `issuemarkettype` (`id`),
  CONSTRAINT `issuedata_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `issuedata_modificationtype` FOREIGN KEY (`modificationtype`) REFERENCES `modificationtype` (`id`),
  CONSTRAINT `issuedata_offertype` FOREIGN KEY (`offertype`) REFERENCES `offertype` (`id`),
  CONSTRAINT `issuedata_programtype` FOREIGN KEY (`programtype`) REFERENCES `programtype` (`id`),
  CONSTRAINT `issuedata_votingrightstype` FOREIGN KEY (`votingrightstype`) REFERENCES `votingrightstype` (`id`),
  CONSTRAINT `source_issuedata` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuedata`
--

/*!40000 ALTER TABLE `issuedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuedata` ENABLE KEYS */;


--
-- Definition of table `issuefees`
--

DROP TABLE IF EXISTS `issuefees`;
CREATE TABLE `issuefees` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `issuefeestype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `issuefees` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `issuedata_issuefees` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_issuefees` (`source`),
  KEY `issuefees_valuationtype` (`valuationtype`),
  KEY `issfees_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `issuefees_currency` (`currency`),
  KEY `issuedata_issuefees` (`issuedata_issuefees`),
  KEY `issuefees_quantitytype` (`quantitytype`),
  KEY `issuefees_crossrate` (`crossrate`),
  KEY `issuefees_valuationref` (`valuationref`),
  KEY `issuefees_issuefeestype` (`issuefeestype`),
  KEY `issuefees_calculationtype` (`calculationtype`),
  KEY `issuefees_size` (`size`),
  KEY `issuefees_marketcenter` (`marketcenter`),
  KEY `issuefees_indicatorstype` (`indicatorstype`),
  CONSTRAINT `issfees_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `issuedata_issuefees` FOREIGN KEY (`issuedata_issuefees`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `issuefees_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `issuefees_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `issuefees_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `issuefees_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `issuefees_issuefeestype` FOREIGN KEY (`issuefeestype`) REFERENCES `issuefeestype` (`id`),
  CONSTRAINT `issuefees_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `issuefees_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `issuefees_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `issuefees_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `issuefees_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_issuefees` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuefees`
--

/*!40000 ALTER TABLE `issuefees` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuefees` ENABLE KEYS */;


--
-- Definition of table `issuefeestype`
--

DROP TABLE IF EXISTS `issuefeestype`;
CREATE TABLE `issuefeestype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuefeestype`
--

/*!40000 ALTER TABLE `issuefeestype` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuefeestype` ENABLE KEYS */;


--
-- Definition of table `issuemarkettype`
--

DROP TABLE IF EXISTS `issuemarkettype`;
CREATE TABLE `issuemarkettype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuemarkettype`
--

/*!40000 ALTER TABLE `issuemarkettype` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuemarkettype` ENABLE KEYS */;


--
-- Definition of table `issueprice`
--

DROP TABLE IF EXISTS `issueprice`;
CREATE TABLE `issueprice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `debtindicatorstype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `dividendyield` decimal(19,2) DEFAULT NULL,
  `issueprice` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `yield` decimal(19,2) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `isseprice_debtindicatorstype` (`debtindicatorstype`),
  KEY `source_issueprice` (`source`),
  KEY `issueprice_instrumentdomain` (`instrumentdomain`),
  KEY `issueprice_valuationtype` (`valuationtype`),
  KEY `issuedata_issueprice` (`issuedata`),
  KEY `isspric_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `issueprice_currency` (`currency`),
  KEY `issueprice_quantitytype` (`quantitytype`),
  KEY `issueprice_crossrate` (`crossrate`),
  KEY `issueprice_valuationref` (`valuationref`),
  KEY `issueprice_calculationtype` (`calculationtype`),
  KEY `issueprice_marketcenter` (`marketcenter`),
  KEY `issueprice_indicatorstype` (`indicatorstype`),
  CONSTRAINT `isseprice_debtindicatorstype` FOREIGN KEY (`debtindicatorstype`) REFERENCES `debtindicatorstype` (`id`),
  CONSTRAINT `isspric_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `issuedata_issueprice` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `issueprice_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `issueprice_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `issueprice_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `issueprice_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `issueprice_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `issueprice_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `issueprice_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `issueprice_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `issueprice_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_issueprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issueprice`
--

/*!40000 ALTER TABLE `issueprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `issueprice` ENABLE KEYS */;


--
-- Definition of table `issuerclass`
--

DROP TABLE IF EXISTS `issuerclass`;
CREATE TABLE `issuerclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitystatustype` int(11) DEFAULT NULL,
  `replacemententity` int(11) DEFAULT NULL,
  `replacementtype` int(11) DEFAULT NULL,
  `comment` longtext,
  `createdate` date DEFAULT NULL,
  `creationdate` date DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `incorpdate` date DEFAULT NULL,
  `modifieddate` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `parentid` int(11) DEFAULT NULL,
  `reviewdate` date DEFAULT NULL,
  `shortname` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `ultimateparentid` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `isserclass_replacemententity` (`replacemententity`),
  KEY `source_issuerclass` (`source`),
  KEY `issuerclass_replacementtype` (`replacementtype`),
  KEY `issuerclass_entitystatustype` (`entitystatustype`),
  CONSTRAINT `isserclass_replacemententity` FOREIGN KEY (`replacemententity`) REFERENCES `replacemententity` (`id`),
  CONSTRAINT `issuerclass_entitystatustype` FOREIGN KEY (`entitystatustype`) REFERENCES `entitystatustype` (`id`),
  CONSTRAINT `issuerclass_replacementtype` FOREIGN KEY (`replacementtype`) REFERENCES `replacementtype` (`id`),
  CONSTRAINT `source_issuerclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuerclass`
--

/*!40000 ALTER TABLE `issuerclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuerclass` ENABLE KEYS */;


--
-- Definition of table `issuerref`
--

DROP TABLE IF EXISTS `issuerref`;
CREATE TABLE `issuerref` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `namerole` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `codeduration` varchar(255) DEFAULT NULL,
  `codeend` date DEFAULT NULL,
  `codescheme` varchar(255) NOT NULL,
  `codestart` date DEFAULT NULL,
  `issuerref` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `restrcturesubclass_issuerref` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_issuerref` (`source`),
  KEY `issuerref_namerole` (`namerole`),
  KEY `restrcturesubclass_issuerref` (`restrcturesubclass_issuerref`),
  CONSTRAINT `issuerref_namerole` FOREIGN KEY (`namerole`) REFERENCES `role` (`id`),
  CONSTRAINT `restrcturesubclass_issuerref` FOREIGN KEY (`restrcturesubclass_issuerref`) REFERENCES `restructuresubclass` (`id`),
  CONSTRAINT `source_issuerref` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuerref`
--

/*!40000 ALTER TABLE `issuerref` DISABLE KEYS */;
/*!40000 ALTER TABLE `issuerref` ENABLE KEYS */;


--
-- Definition of table `jurisdiction`
--

DROP TABLE IF EXISTS `jurisdiction`;
CREATE TABLE `jurisdiction` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entityidentifier` int(11) DEFAULT NULL,
  `location` int(11) DEFAULT NULL,
  `jurisdictiontype` int(11) DEFAULT NULL,
  `rulestype` int(11) DEFAULT NULL,
  `taxtype` int(11) DEFAULT NULL,
  `registrationdate` date DEFAULT NULL,
  `taxexempt` bit(1) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `businessclass` int(11) DEFAULT NULL,
  `counterpartyclass` int(11) DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `marketclass_jurisdiction` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `jurisdiction_taxtype` (`taxtype`),
  KEY `source_jurisdiction` (`source`),
  KEY `issuerclass_jurisdiction` (`issuerclass`),
  KEY `jrisdiction_jurisdictiontype` (`jurisdictiontype`),
  KEY `jurisdiction_location` (`location`),
  KEY `jrisdiction_entityidentifier` (`entityidentifier`),
  KEY `issuedata_jurisdiction` (`issuedata`),
  KEY `marketclass_jurisdiction` (`marketclass_jurisdiction`),
  KEY `businessclass_jurisdiction` (`businessclass`),
  KEY `conterpartyclass_jrisdiction` (`counterpartyclass`),
  KEY `jurisdiction_rulestype` (`rulestype`),
  CONSTRAINT `businessclass_jurisdiction` FOREIGN KEY (`businessclass`) REFERENCES `businessclass` (`id`),
  CONSTRAINT `conterpartyclass_jrisdiction` FOREIGN KEY (`counterpartyclass`) REFERENCES `counterpartyclass` (`id`),
  CONSTRAINT `issuedata_jurisdiction` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `issuerclass_jurisdiction` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `jrisdiction_entityidentifier` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `jrisdiction_jurisdictiontype` FOREIGN KEY (`jurisdictiontype`) REFERENCES `jurisdictiontype` (`id`),
  CONSTRAINT `jurisdiction_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `jurisdiction_rulestype` FOREIGN KEY (`rulestype`) REFERENCES `rulestype` (`id`),
  CONSTRAINT `jurisdiction_taxtype` FOREIGN KEY (`taxtype`) REFERENCES `taxtype` (`id`),
  CONSTRAINT `marketclass_jurisdiction` FOREIGN KEY (`marketclass_jurisdiction`) REFERENCES `marketclass` (`id`),
  CONSTRAINT `source_jurisdiction` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jurisdiction`
--

/*!40000 ALTER TABLE `jurisdiction` DISABLE KEYS */;
/*!40000 ALTER TABLE `jurisdiction` ENABLE KEYS */;


--
-- Definition of table `jurisdictiontype`
--

DROP TABLE IF EXISTS `jurisdictiontype`;
CREATE TABLE `jurisdictiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jurisdictiontype`
--

/*!40000 ALTER TABLE `jurisdictiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `jurisdictiontype` ENABLE KEYS */;


--
-- Definition of table `last`
--

DROP TABLE IF EXISTS `last`;
CREATE TABLE `last` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `commoditydomain_last` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `commoditydomain_last` (`commoditydomain_last`),
  KEY `source_last` (`source`),
  KEY `last_valuationref` (`valuationref`),
  KEY `last_calculationtype` (`calculationtype`),
  KEY `last_valuationtype` (`valuationtype`),
  KEY `last_currency` (`currency`),
  KEY `last_quantitydescriptiontype` (`quantitydescriptiontype`),
  KEY `last_quantitytype` (`quantitytype`),
  KEY `last_marketcenter` (`marketcenter`),
  KEY `last_indicatorstype` (`indicatorstype`),
  KEY `last_crossrate` (`crossrate`),
  CONSTRAINT `commoditydomain_last` FOREIGN KEY (`commoditydomain_last`) REFERENCES `commoditydomain` (`id`),
  CONSTRAINT `last_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `last_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `last_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `last_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `last_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `last_quantitydescriptiontype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `last_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `last_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `last_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_last` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `last`
--

/*!40000 ALTER TABLE `last` DISABLE KEYS */;
/*!40000 ALTER TABLE `last` ENABLE KEYS */;


--
-- Definition of table `lastcae`
--

DROP TABLE IF EXISTS `lastcae`;
CREATE TABLE `lastcae` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `caetype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_lastcae` (`source`),
  KEY `lastcae_caetype` (`caetype`),
  KEY `lastcae_instrumentdomain` (`id`),
  CONSTRAINT `lastcae_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `lastcae_instrumentdomain` FOREIGN KEY (`id`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_lastcae` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `lastcae`
--

/*!40000 ALTER TABLE `lastcae` DISABLE KEYS */;
/*!40000 ALTER TABLE `lastcae` ENABLE KEYS */;


--
-- Definition of table `lifetime`
--

DROP TABLE IF EXISTS `lifetime`;
CREATE TABLE `lifetime` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` date DEFAULT NULL,
  `maxval` decimal(19,2) DEFAULT NULL,
  `minval` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_lifetime` (`source`),
  CONSTRAINT `source_lifetime` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `lifetime`
--

/*!40000 ALTER TABLE `lifetime` DISABLE KEYS */;
/*!40000 ALTER TABLE `lifetime` ENABLE KEYS */;


--
-- Definition of table `limited`
--

DROP TABLE IF EXISTS `limited`;
CREATE TABLE `limited` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_limited` (`source`),
  CONSTRAINT `source_limited` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `limited`
--

/*!40000 ALTER TABLE `limited` DISABLE KEYS */;
/*!40000 ALTER TABLE `limited` ENABLE KEYS */;


--
-- Definition of table `liquidationstatustype`
--

DROP TABLE IF EXISTS `liquidationstatustype`;
CREATE TABLE `liquidationstatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `liquidationstatustype`
--

/*!40000 ALTER TABLE `liquidationstatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `liquidationstatustype` ENABLE KEYS */;


--
-- Definition of table `location`
--

DROP TABLE IF EXISTS `location`;
CREATE TABLE `location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `locationtype` int(11) DEFAULT NULL,
  `country` int(11) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `faxnumber` varchar(255) DEFAULT NULL,
  `municipality` varchar(255) DEFAULT NULL,
  `postalcode` varchar(255) DEFAULT NULL,
  `postalcodescheme` int(11) DEFAULT NULL,
  `regionname` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `stateorprovincename` varchar(255) DEFAULT NULL,
  `telephonenumber` varchar(255) DEFAULT NULL,
  `websiteurl` varchar(255) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `businessclass` int(11) DEFAULT NULL,
  `counterpartyclass` int(11) DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `marketclass_location` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `marketclass_location` (`marketclass_location`),
  KEY `location_locationtype` (`locationtype`),
  KEY `source_location` (`source`),
  KEY `issuerclass_location` (`issuerclass`),
  KEY `issuedata_location` (`issuedata`),
  KEY `businessclass_location` (`businessclass`),
  KEY `location_country` (`country`),
  KEY `counterpartyclass_location` (`counterpartyclass`),
  CONSTRAINT `businessclass_location` FOREIGN KEY (`businessclass`) REFERENCES `businessclass` (`id`),
  CONSTRAINT `counterpartyclass_location` FOREIGN KEY (`counterpartyclass`) REFERENCES `counterpartyclass` (`id`),
  CONSTRAINT `issuedata_location` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `issuerclass_location` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `location_country` FOREIGN KEY (`country`) REFERENCES `country` (`id`),
  CONSTRAINT `location_locationtype` FOREIGN KEY (`locationtype`) REFERENCES `locationtype` (`id`),
  CONSTRAINT `marketclass_location` FOREIGN KEY (`marketclass_location`) REFERENCES `marketclass` (`id`),
  CONSTRAINT `source_location` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `location`
--

/*!40000 ALTER TABLE `location` DISABLE KEYS */;
/*!40000 ALTER TABLE `location` ENABLE KEYS */;


--
-- Definition of table `locationtype`
--

DROP TABLE IF EXISTS `locationtype`;
CREATE TABLE `locationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `locationtype`
--

/*!40000 ALTER TABLE `locationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `locationtype` ENABLE KEYS */;


--
-- Definition of table `low`
--

DROP TABLE IF EXISTS `low`;
CREATE TABLE `low` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantiytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_low` (`source`),
  KEY `low_valuationref` (`valuationref`),
  KEY `low_quantitytype` (`quantiytype`),
  KEY `low_calculationtype` (`calculationtype`),
  KEY `low_valuationtype` (`valuationtype`),
  KEY `low_currency` (`currency`),
  KEY `low_quantitydescriptiontype` (`quantitydescriptiontype`),
  KEY `low_marketcenter` (`marketcenter`),
  KEY `low_indicatorstype` (`indicatorstype`),
  KEY `low_crossrate` (`crossrate`),
  CONSTRAINT `low_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `low_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `low_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `low_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `low_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `low_quantitydescriptiontype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `low_quantitytype` FOREIGN KEY (`quantiytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `low_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `low_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_low` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `low`
--

/*!40000 ALTER TABLE `low` DISABLE KEYS */;
/*!40000 ALTER TABLE `low` ENABLE KEYS */;


--
-- Definition of table `marketcapitalization`
--

DROP TABLE IF EXISTS `marketcapitalization`;
CREATE TABLE `marketcapitalization` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `capitalizationtype` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `marketcapitalization` decimal(19,2) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_marketcapitalization` (`source`),
  KEY `isserclss_mrketcapitalizatin` (`issuerclass`),
  KEY `mrktcpitliztin_cpitliztintyp` (`capitalizationtype`),
  KEY `mrketcpitliztin_clclatintype` (`calculationtype`),
  KEY `mrketcpitlizatin_valatintype` (`valuationtype`),
  KEY `marketcapitalization_crrency` (`currency`),
  KEY `mrktcptlztn_qnttydscrptintyp` (`quantitydescriptiontype`),
  KEY `mrketcpitlizatin_qantitytype` (`quantitytype`),
  KEY `mrketcpitliztin_indictrstype` (`indicatorstype`),
  KEY `marketcapitalizatin_crssrate` (`crossrate`),
  CONSTRAINT `isserclss_mrketcapitalizatin` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `marketcapitalizatin_crssrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `marketcapitalization_crrency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `mrketcpitlizatin_qantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `mrketcpitlizatin_valatintype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `mrketcpitliztin_clclatintype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `mrketcpitliztin_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `mrktcpitliztin_cpitliztintyp` FOREIGN KEY (`capitalizationtype`) REFERENCES `capitalizationtype` (`id`),
  CONSTRAINT `mrktcptlztn_qnttydscrptintyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_marketcapitalization` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `marketcapitalization`
--

/*!40000 ALTER TABLE `marketcapitalization` DISABLE KEYS */;
/*!40000 ALTER TABLE `marketcapitalization` ENABLE KEYS */;


--
-- Definition of table `marketcenter`
--

DROP TABLE IF EXISTS `marketcenter`;
CREATE TABLE `marketcenter` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `previouscode` int(11) DEFAULT NULL,
  `marketstatustype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) NOT NULL,
  `start` date DEFAULT NULL,
  `instrmntidntifir_mrketcenter` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_marketcenter` (`source`),
  KEY `marketcenter_previouscode` (`previouscode`),
  KEY `marketcenter_dayruletype` (`dayruletype`),
  KEY `marketcenter_marketstatstype` (`marketstatustype`),
  KEY `instrmntidntifir_mrketcenter` (`instrmntidntifir_mrketcenter`),
  CONSTRAINT `instrmntidntifir_mrketcenter` FOREIGN KEY (`instrmntidntifir_mrketcenter`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `marketcenter_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `marketcenter_marketstatstype` FOREIGN KEY (`marketstatustype`) REFERENCES `marketstatustype` (`id`),
  CONSTRAINT `marketcenter_previouscode` FOREIGN KEY (`previouscode`) REFERENCES `previouscode` (`id`),
  CONSTRAINT `source_marketcenter` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `marketcenter`
--

/*!40000 ALTER TABLE `marketcenter` DISABLE KEYS */;
/*!40000 ALTER TABLE `marketcenter` ENABLE KEYS */;


--
-- Definition of table `marketclass`
--

DROP TABLE IF EXISTS `marketclass`;
CREATE TABLE `marketclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitystatustype` int(11) DEFAULT NULL,
  `replacemententity` int(11) DEFAULT NULL,
  `replacementtype` int(11) DEFAULT NULL,
  `comment` longtext,
  `creationdate` date DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `parentid` int(11) DEFAULT NULL,
  `reviewdate` date DEFAULT NULL,
  `start` date DEFAULT NULL,
  `ultimateparentid` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mrketclass_replacemententity` (`replacemententity`),
  KEY `source_marketclass` (`source`),
  KEY `marketclass_replacementtype` (`replacementtype`),
  KEY `marketclass_entitystatustype` (`entitystatustype`),
  CONSTRAINT `marketclass_entitystatustype` FOREIGN KEY (`entitystatustype`) REFERENCES `entitystatustype` (`id`),
  CONSTRAINT `marketclass_replacementtype` FOREIGN KEY (`replacementtype`) REFERENCES `replacementtype` (`id`),
  CONSTRAINT `mrketclass_replacemententity` FOREIGN KEY (`replacemententity`) REFERENCES `replacemententity` (`id`),
  CONSTRAINT `source_marketclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `marketclass`
--

/*!40000 ALTER TABLE `marketclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `marketclass` ENABLE KEYS */;


--
-- Definition of table `marketconditions`
--

DROP TABLE IF EXISTS `marketconditions`;
CREATE TABLE `marketconditions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayofweek` int(11) DEFAULT NULL,
  `delayfactor` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `marketconditions` varchar(255) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `timezone` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_marketconditions` (`source`),
  KEY `marketconditions_dayofweek` (`dayofweek`),
  CONSTRAINT `marketconditions_dayofweek` FOREIGN KEY (`dayofweek`) REFERENCES `dayofweek` (`id`),
  CONSTRAINT `source_marketconditions` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `marketconditions`
--

/*!40000 ALTER TABLE `marketconditions` DISABLE KEYS */;
/*!40000 ALTER TABLE `marketconditions` ENABLE KEYS */;


--
-- Definition of table `marketidentifier`
--

DROP TABLE IF EXISTS `marketidentifier`;
CREATE TABLE `marketidentifier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `previouscode` int(11) DEFAULT NULL,
  `marketstatustype` int(11) DEFAULT NULL,
  `markettype` int(11) DEFAULT NULL,
  `marketconditions` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) NOT NULL,
  `start` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mrktidentifier_mrketcnditins` (`marketconditions`),
  KEY `source_marketidentifier` (`source`),
  KEY `marketidentifier_previoscode` (`previouscode`),
  KEY `mrktidentifier_mrketsttstype` (`marketstatustype`),
  KEY `marketidentifier_markettype` (`markettype`),
  CONSTRAINT `marketidentifier_markettype` FOREIGN KEY (`markettype`) REFERENCES `markettype` (`id`),
  CONSTRAINT `marketidentifier_previoscode` FOREIGN KEY (`previouscode`) REFERENCES `previouscode` (`id`),
  CONSTRAINT `mrktidentifier_mrketcnditins` FOREIGN KEY (`marketconditions`) REFERENCES `marketconditions` (`id`),
  CONSTRAINT `mrktidentifier_mrketsttstype` FOREIGN KEY (`marketstatustype`) REFERENCES `marketstatustype` (`id`),
  CONSTRAINT `source_marketidentifier` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `marketidentifier`
--

/*!40000 ALTER TABLE `marketidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `marketidentifier` ENABLE KEYS */;


--
-- Definition of table `marketstatsclass`
--

DROP TABLE IF EXISTS `marketstatsclass`;
CREATE TABLE `marketstatsclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `industryidentifier` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) DEFAULT NULL,
  `issueData` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_marketstatsclass` (`source`),
  KEY `mrktsttsclss_indstryidntifir` (`industryidentifier`),
  KEY `FKE80569758D789C06` (`issueData`),
  KEY `mrktsttsclss_nstrmntidntifir` (`instrumentidentifier`),
  CONSTRAINT `FKE80569758D789C06` FOREIGN KEY (`issueData`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `mrktsttsclss_indstryidntifir` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `mrktsttsclss_nstrmntidntifir` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `source_marketstatsclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `marketstatsclass`
--

/*!40000 ALTER TABLE `marketstatsclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `marketstatsclass` ENABLE KEYS */;


--
-- Definition of table `marketstatustype`
--

DROP TABLE IF EXISTS `marketstatustype`;
CREATE TABLE `marketstatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `marketstatustype`
--

/*!40000 ALTER TABLE `marketstatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `marketstatustype` ENABLE KEYS */;


--
-- Definition of table `markettype`
--

DROP TABLE IF EXISTS `markettype`;
CREATE TABLE `markettype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `markettype`
--

/*!40000 ALTER TABLE `markettype` DISABLE KEYS */;
/*!40000 ALTER TABLE `markettype` ENABLE KEYS */;


--
-- Definition of table `maturity`
--

DROP TABLE IF EXISTS `maturity`;
CREATE TABLE `maturity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indicatorstype` int(11) DEFAULT NULL,
  `maturitytype` int(11) DEFAULT NULL,
  `schedule` int(11) DEFAULT NULL,
  `extendibledayofweek` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `extendible` bit(1) DEFAULT NULL,
  `extendibledate` date DEFAULT NULL,
  `extendibleduration` varchar(255) DEFAULT NULL,
  `extendibleend` date DEFAULT NULL,
  `extendiblefirst` date DEFAULT NULL,
  `extendiblelast` date DEFAULT NULL,
  `extendiblestart` date DEFAULT NULL,
  `issuerchoice` bit(1) DEFAULT NULL,
  `mandatory` bit(1) DEFAULT NULL,
  `maturitydate` date DEFAULT NULL,
  `maturityduration` varchar(255) DEFAULT NULL,
  `maturityend` date DEFAULT NULL,
  `maturityprice` decimal(19,2) DEFAULT NULL,
  `maturitystart` date DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_maturity` (`source`),
  KEY `maturity_instrumentdomain` (`instrumentdomain`),
  KEY `debtissuedata_maturity` (`debtissuedata`),
  KEY `maturity_schedule` (`schedule`),
  KEY `maturity_extendibledayofweek` (`extendibledayofweek`),
  KEY `maturity_indicatorstype` (`indicatorstype`),
  KEY `maturity_maturitytype` (`maturitytype`),
  CONSTRAINT `debtissuedata_maturity` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `maturity_extendibledayofweek` FOREIGN KEY (`extendibledayofweek`) REFERENCES `dayofweek` (`id`),
  CONSTRAINT `maturity_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `maturity_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `maturity_maturitytype` FOREIGN KEY (`maturitytype`) REFERENCES `maturitytype` (`id`),
  CONSTRAINT `maturity_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `source_maturity` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `maturity`
--

/*!40000 ALTER TABLE `maturity` DISABLE KEYS */;
/*!40000 ALTER TABLE `maturity` ENABLE KEYS */;


--
-- Definition of table `maturitydate`
--

DROP TABLE IF EXISTS `maturitydate`;
CREATE TABLE `maturitydate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayruletype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `maturitydate` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_maturitydate` (`source`),
  KEY `maturitydate_dayruletype` (`dayruletype`),
  KEY `maturitydate_marketcenter` (`marketcenter`),
  KEY `maturitydate_indicatorstype` (`indicatorstype`),
  CONSTRAINT `maturitydate_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `maturitydate_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `maturitydate_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `source_maturitydate` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `maturitydate`
--

/*!40000 ALTER TABLE `maturitydate` DISABLE KEYS */;
/*!40000 ALTER TABLE `maturitydate` ENABLE KEYS */;


--
-- Definition of table `maturitytype`
--

DROP TABLE IF EXISTS `maturitytype`;
CREATE TABLE `maturitytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `maturitytype`
--

/*!40000 ALTER TABLE `maturitytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `maturitytype` ENABLE KEYS */;


--
-- Definition of table `meetingdate`
--

DROP TABLE IF EXISTS `meetingdate`;
CREATE TABLE `meetingdate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingdate` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_meetingdate` (`source`),
  CONSTRAINT `source_meetingdate` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `meetingdate`
--

/*!40000 ALTER TABLE `meetingdate` DISABLE KEYS */;
/*!40000 ALTER TABLE `meetingdate` ENABLE KEYS */;


--
-- Definition of table `meetingsubclass`
--

DROP TABLE IF EXISTS `meetingsubclass`;
CREATE TABLE `meetingsubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) NOT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) NOT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `announcementdate` date NOT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `relatedcaeid` int(11) DEFAULT NULL,
  `caedomain_meetingsubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `caedomain_meetingsubclass` (`caedomain_meetingsubclass`),
  KEY `source_meetingsubclass` (`source`),
  KEY `meetingsubclass_caetype` (`caetype`),
  KEY `meetingsbclass_caestatustype` (`caestatustype`),
  KEY `metingsbclss_celifecycletype` (`caelifecycletype`),
  KEY `meetingsubclass_meetingtype` (`meetingtype`),
  KEY `meetingsubclass_issuerref` (`issuerref`),
  KEY `meetingsbclass_indicatrstype` (`indicatorstype`),
  CONSTRAINT `caedomain_meetingsubclass` FOREIGN KEY (`caedomain_meetingsubclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `meetingsbclass_caestatustype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `meetingsbclass_indicatrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `meetingsubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `meetingsubclass_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `meetingsubclass_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `metingsbclss_celifecycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `source_meetingsubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `meetingsubclass`
--

/*!40000 ALTER TABLE `meetingsubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `meetingsubclass` ENABLE KEYS */;


--
-- Definition of table `meetingsubclassagent`
--

DROP TABLE IF EXISTS `meetingsubclassagent`;
CREATE TABLE `meetingsubclassagent` (
  `agent` int(11) NOT NULL,
  `meetingsubclass` int(11) NOT NULL,
  KEY `mtingsbclss_metingsbclssgent` (`agent`),
  KEY `agent_agentmeetingsubclass` (`meetingsubclass`),
  CONSTRAINT `agent_agentmeetingsubclass` FOREIGN KEY (`meetingsubclass`) REFERENCES `meetingsubclass` (`id`),
  CONSTRAINT `mtingsbclss_metingsbclssgent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `meetingsubclassagent`
--

/*!40000 ALTER TABLE `meetingsubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `meetingsubclassagent` ENABLE KEYS */;


--
-- Definition of table `meetingtype`
--

DROP TABLE IF EXISTS `meetingtype`;
CREATE TABLE `meetingtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `meetingtype`
--

/*!40000 ALTER TABLE `meetingtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `meetingtype` ENABLE KEYS */;


--
-- Definition of table `mid`
--

DROP TABLE IF EXISTS `mid`;
CREATE TABLE `mid` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `yieldtype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `high` decimal(19,2) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `open` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `yield` decimal(19,2) DEFAULT NULL,
  `foreignexchangedomain_mid` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mid_marketidentifier` (`marketidentifier`),
  KEY `source_mid` (`source`),
  KEY `mid_instrumentdomain` (`instrumentdomain`),
  KEY `foreignexchangedomain_mid` (`foreignexchangedomain_mid`),
  KEY `mid_yieldtype` (`yieldtype`),
  CONSTRAINT `mid_ibfk_1` FOREIGN KEY (`foreignexchangedomain_mid`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `mid_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `mid_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `mid_yieldtype` FOREIGN KEY (`yieldtype`) REFERENCES `yieldtype` (`id`),
  CONSTRAINT `source_mid` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mid`
--

/*!40000 ALTER TABLE `mid` DISABLE KEYS */;
/*!40000 ALTER TABLE `mid` ENABLE KEYS */;


--
-- Definition of table `modificationtype`
--

DROP TABLE IF EXISTS `modificationtype`;
CREATE TABLE `modificationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `modificationtype`
--

/*!40000 ALTER TABLE `modificationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `modificationtype` ENABLE KEYS */;


--
-- Definition of table `municipality`
--

DROP TABLE IF EXISTS `municipality`;
CREATE TABLE `municipality` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` int(11) DEFAULT NULL,
  `name` int(11) DEFAULT NULL,
  `previouscode` int(11) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `municipality` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_municipality` (`source`),
  KEY `municipality_previouscode` (`previouscode`),
  KEY `municipality_name` (`name`),
  KEY `municipality_code` (`code`),
  CONSTRAINT `municipality_code` FOREIGN KEY (`code`) REFERENCES `schemeinfo` (`id`),
  CONSTRAINT `municipality_name` FOREIGN KEY (`name`) REFERENCES `name` (`id`),
  CONSTRAINT `municipality_previouscode` FOREIGN KEY (`previouscode`) REFERENCES `previouscode` (`id`),
  CONSTRAINT `source_municipality` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `municipality`
--

/*!40000 ALTER TABLE `municipality` DISABLE KEYS */;
/*!40000 ALTER TABLE `municipality` ENABLE KEYS */;


--
-- Definition of table `name`
--

DROP TABLE IF EXISTS `name`;
CREATE TABLE `name` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role` int(11) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_name` (`source`),
  KEY `name_role` (`role`),
  CONSTRAINT `name_role` FOREIGN KEY (`role`) REFERENCES `role` (`id`),
  CONSTRAINT `source_name` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `name`
--

/*!40000 ALTER TABLE `name` DISABLE KEYS */;
/*!40000 ALTER TABLE `name` ENABLE KEYS */;


--
-- Definition of table `nameofperson`
--

DROP TABLE IF EXISTS `nameofperson`;
CREATE TABLE `nameofperson` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role` int(11) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `namefirst` varchar(255) DEFAULT NULL,
  `namelast` varchar(255) DEFAULT NULL,
  `namemiddle` varchar(255) DEFAULT NULL,
  `nameofperson` varchar(255) DEFAULT NULL,
  `namesalutation` varchar(255) DEFAULT NULL,
  `namesuffix` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_nameofperson` (`source`),
  KEY `nameofperson_role` (`role`),
  CONSTRAINT `nameofperson_role` FOREIGN KEY (`role`) REFERENCES `role` (`id`),
  CONSTRAINT `source_nameofperson` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nameofperson`
--

/*!40000 ALTER TABLE `nameofperson` DISABLE KEYS */;
/*!40000 ALTER TABLE `nameofperson` ENABLE KEYS */;


--
-- Definition of table `nav`
--

DROP TABLE IF EXISTS `nav`;
CREATE TABLE `nav` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `tickdirection` int(11) DEFAULT NULL,
  `tradinghaltedtype` int(11) DEFAULT NULL,
  `tradingrestrictiontype` int(11) DEFAULT NULL,
  `tradingstatustype` int(11) DEFAULT NULL,
  `volume` int(11) DEFAULT NULL,
  `settlementtype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `high` decimal(19,2) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `open` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `settlement` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `turnover` decimal(19,2) DEFAULT NULL,
  `vwap` decimal(19,2) DEFAULT NULL,
  `vwop` decimal(19,2) DEFAULT NULL,
  `yield` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `nav_marketidentifier` (`marketidentifier`),
  KEY `nav_volume` (`volume`),
  KEY `source_nav` (`source`),
  KEY `nav_instrumentdomain` (`instrumentdomain`),
  KEY `nav_tradingstatustype` (`tradingstatustype`),
  KEY `nav_tradingrestrictionstype` (`tradingrestrictiontype`),
  KEY `nav_tickdirection` (`tickdirection`),
  KEY `nav_settlementtype` (`settlementtype`),
  KEY `nav_tradinghaltedtype` (`tradinghaltedtype`),
  CONSTRAINT `nav_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `nav_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `nav_settlementtype` FOREIGN KEY (`settlementtype`) REFERENCES `settlementtype` (`id`),
  CONSTRAINT `nav_tickdirection` FOREIGN KEY (`tickdirection`) REFERENCES `tickdirection` (`id`),
  CONSTRAINT `nav_tradinghaltedtype` FOREIGN KEY (`tradinghaltedtype`) REFERENCES `tradinghaltedtype` (`id`),
  CONSTRAINT `nav_tradingrestrictionstype` FOREIGN KEY (`tradingrestrictiontype`) REFERENCES `tradingrestrictionstype` (`id`),
  CONSTRAINT `nav_tradingstatustype` FOREIGN KEY (`tradingstatustype`) REFERENCES `tradingstatustype` (`id`),
  CONSTRAINT `nav_volume` FOREIGN KEY (`volume`) REFERENCES `volume` (`id`),
  CONSTRAINT `source_nav` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nav`
--

/*!40000 ALTER TABLE `nav` DISABLE KEYS */;
/*!40000 ALTER TABLE `nav` ENABLE KEYS */;


--
-- Definition of table `nonfixedrate`
--

DROP TABLE IF EXISTS `nonfixedrate`;
CREATE TABLE `nonfixedrate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nonfixedratetype` int(11) DEFAULT NULL,
  `linked` int(11) DEFAULT NULL,
  `resetfrequencytype` int(11) DEFAULT NULL,
  `scheduletype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `benchmarkcode` varchar(255) DEFAULT NULL,
  `benchmarkname` varchar(255) DEFAULT NULL,
  `determinationsource` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `formula` varchar(255) DEFAULT NULL,
  `incrementmaxval` decimal(19,2) DEFAULT NULL,
  `incrementminval` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nonfixedrate` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `ratespread` decimal(19,2) DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_nonfixedrate` (`source`),
  KEY `nonfixedrate_linked` (`linked`),
  KEY `nonfixedrate_dayruletype` (`dayruletype`),
  KEY `nnfixedrte_resetfreqencytype` (`resetfrequencytype`),
  KEY `nonfixedrate_indicatorstype` (`indicatorstype`),
  KEY `nonfixedrate_scheduletype` (`scheduletype`),
  KEY `nonfixedrate_interestrate` (`id`),
  KEY `nnfixedrate_nonfixedratetype` (`nonfixedratetype`),
  CONSTRAINT `nnfixedrate_nonfixedratetype` FOREIGN KEY (`nonfixedratetype`) REFERENCES `nonfixedratetype` (`id`),
  CONSTRAINT `nnfixedrte_resetfreqencytype` FOREIGN KEY (`resetfrequencytype`) REFERENCES `resetfrequencytype` (`id`),
  CONSTRAINT `nonfixedrate_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `nonfixedrate_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `nonfixedrate_interestrate` FOREIGN KEY (`id`) REFERENCES `interestrate` (`id`),
  CONSTRAINT `nonfixedrate_linked` FOREIGN KEY (`linked`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `nonfixedrate_scheduletype` FOREIGN KEY (`scheduletype`) REFERENCES `scheduletype` (`id`),
  CONSTRAINT `source_nonfixedrate` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nonfixedrate`
--

/*!40000 ALTER TABLE `nonfixedrate` DISABLE KEYS */;
/*!40000 ALTER TABLE `nonfixedrate` ENABLE KEYS */;


--
-- Definition of table `nonfixedratetype`
--

DROP TABLE IF EXISTS `nonfixedratetype`;
CREATE TABLE `nonfixedratetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nonfixedratetype`
--

/*!40000 ALTER TABLE `nonfixedratetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `nonfixedratetype` ENABLE KEYS */;


--
-- Definition of table `objectivetype`
--

DROP TABLE IF EXISTS `objectivetype`;
CREATE TABLE `objectivetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `objectivetype`
--

/*!40000 ALTER TABLE `objectivetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `objectivetype` ENABLE KEYS */;


--
-- Definition of table `offertype`
--

DROP TABLE IF EXISTS `offertype`;
CREATE TABLE `offertype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `offertype`
--

/*!40000 ALTER TABLE `offertype` DISABLE KEYS */;
/*!40000 ALTER TABLE `offertype` ENABLE KEYS */;


--
-- Definition of table `opentype`
--

DROP TABLE IF EXISTS `opentype`;
CREATE TABLE `opentype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `opentype`
--

/*!40000 ALTER TABLE `opentype` DISABLE KEYS */;
/*!40000 ALTER TABLE `opentype` ENABLE KEYS */;


--
-- Definition of table `orderbook`
--

DROP TABLE IF EXISTS `orderbook`;
CREATE TABLE `orderbook` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ask` int(11) DEFAULT NULL,
  `bid` int(11) DEFAULT NULL,
  `orderbooktype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `freignexchangedmain_rderbook` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_orderbook` (`source`),
  KEY `orderbook_instrumentdomain` (`instrumentdomain`),
  KEY `orderbook_orderbooktype` (`orderbooktype`),
  KEY `orderbook_bid` (`bid`),
  KEY `orderbook_ask` (`ask`),
  KEY `freignexchangedmain_rderbook` (`freignexchangedmain_rderbook`),
  CONSTRAINT `freignexchangedmain_rderbook` FOREIGN KEY (`freignexchangedmain_rderbook`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `orderbook_ask` FOREIGN KEY (`ask`) REFERENCES `ask` (`id`),
  CONSTRAINT `orderbook_bid` FOREIGN KEY (`bid`) REFERENCES `bid` (`id`),
  CONSTRAINT `orderbook_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `orderbook_orderbooktype` FOREIGN KEY (`orderbooktype`) REFERENCES `orderbooktype` (`id`),
  CONSTRAINT `source_orderbook` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orderbook`
--

/*!40000 ALTER TABLE `orderbook` DISABLE KEYS */;
/*!40000 ALTER TABLE `orderbook` ENABLE KEYS */;


--
-- Definition of table `orderbooktype`
--

DROP TABLE IF EXISTS `orderbooktype`;
CREATE TABLE `orderbooktype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orderbooktype`
--

/*!40000 ALTER TABLE `orderbooktype` DISABLE KEYS */;
/*!40000 ALTER TABLE `orderbooktype` ENABLE KEYS */;


--
-- Definition of table `orders`
--

DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `orders` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_orders` (`source`),
  KEY `orders_valuationref` (`valuationref`),
  KEY `orders_unittype` (`unittype`),
  KEY `orders_calculationtype` (`calculationtype`),
  KEY `orders_valuationtype` (`valuationtype`),
  KEY `orders_qantitydescriptintype` (`quantitydescriptiontype`),
  KEY `orders_quantitytype` (`quantitytype`),
  KEY `orders_marketcenter` (`marketcenter`),
  KEY `orders_indicatorstype` (`indicatorstype`),
  CONSTRAINT `orders_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `orders_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `orders_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `orders_qantitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `orders_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `orders_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `orders_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `orders_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_orders` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orders`
--

/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;


--
-- Definition of table `ordinalday`
--

DROP TABLE IF EXISTS `ordinalday`;
CREATE TABLE `ordinalday` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayofweek` int(11) DEFAULT NULL,
  `dayruletypetype` int(11) DEFAULT NULL,
  `duration` int(11) DEFAULT NULL,
  `ordinalday` int(11) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ordinalday_dayruletype` (`dayruletypetype`),
  KEY `ordinalday_duration` (`duration`),
  KEY `ordinalday_dayofweek` (`dayofweek`),
  CONSTRAINT `ordinalday_dayofweek` FOREIGN KEY (`dayofweek`) REFERENCES `dayofweek` (`id`),
  CONSTRAINT `ordinalday_dayruletype` FOREIGN KEY (`dayruletypetype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `ordinalday_duration` FOREIGN KEY (`duration`) REFERENCES `duration` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ordinalday`
--

/*!40000 ALTER TABLE `ordinalday` DISABLE KEYS */;
/*!40000 ALTER TABLE `ordinalday` ENABLE KEYS */;


--
-- Definition of table `partystatustype`
--

DROP TABLE IF EXISTS `partystatustype`;
CREATE TABLE `partystatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `partystatustype`
--

/*!40000 ALTER TABLE `partystatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `partystatustype` ENABLE KEYS */;


--
-- Definition of table `paymentactionsubclass`
--

DROP TABLE IF EXISTS `paymentactionsubclass`;
CREATE TABLE `paymentactionsubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caeidentifier` int(11) NOT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) NOT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `interestpayment` int(11) DEFAULT NULL,
  `principalrepayment` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier1` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `caedmain_paymentactinsbclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_paymentactionsubclass` (`source`),
  KEY `pymntctnsbclss_ntityidntifir` (`entityidentifier`),
  KEY `pymentctinsbclss_meetingtype` (`meetingtype`),
  KEY `caedmain_paymentactinsbclass` (`caedmain_paymentactinsbclass`),
  KEY `pymntctinsbclss_ceidentifier` (`caeidentifier`),
  KEY `pymntctinsbclss_intrstpyment` (`interestpayment`),
  KEY `paymentactionsbclass_caetype` (`caetype`),
  KEY `pymntctnsbclss_prnciplrpymnt` (`principalrepayment`),
  KEY `pymntctinsbclss_clifcycltype` (`caelifecycletype`),
  KEY `pymentactinsbclss_cesttstype` (`caestatustype`),
  KEY `pymntctinsbclss_indictrstype` (`indicatorstype`),
  KEY `paymentactinsbclass_isserref` (`issuerref`),
  KEY `pymntctnsbclss_nstrmntidntfr` (`instrumentidentifier`),
  CONSTRAINT `caedmain_paymentactinsbclass` FOREIGN KEY (`caedmain_paymentactinsbclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `paymentactinsbclass_isserref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `paymentactionsbclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `pymentactinsbclss_cesttstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `pymentctinsbclss_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `pymntctinsbclss_ceidentifier` FOREIGN KEY (`caeidentifier`) REFERENCES `caeidentifier` (`id`),
  CONSTRAINT `pymntctinsbclss_clifcycltype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `pymntctinsbclss_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `pymntctinsbclss_intrstpyment` FOREIGN KEY (`interestpayment`) REFERENCES `interestpayment` (`id`),
  CONSTRAINT `pymntctnsbclss_nstrmntidntfr` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `pymntctnsbclss_ntityidntifir` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `pymntctnsbclss_prnciplrpymnt` FOREIGN KEY (`principalrepayment`) REFERENCES `principalrepayment` (`id`),
  CONSTRAINT `source_paymentactionsubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentactionsubclass`
--

/*!40000 ALTER TABLE `paymentactionsubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `paymentactionsubclass` ENABLE KEYS */;


--
-- Definition of table `paymentactionsubclassagent`
--

DROP TABLE IF EXISTS `paymentactionsubclassagent`;
CREATE TABLE `paymentactionsubclassagent` (
  `agent` int(11) NOT NULL,
  `paymentactionsubclass` int(11) NOT NULL,
  KEY `agent_gentpymentactinsbclass` (`paymentactionsubclass`),
  KEY `pymntctnsbcls_pymntctnsbcls` (`agent`),
  CONSTRAINT `agent_gentpymentactinsbclass` FOREIGN KEY (`paymentactionsubclass`) REFERENCES `paymentactionsubclass` (`id`),
  CONSTRAINT `pymntctnsbcls_pymntctnsbcls` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentactionsubclassagent`
--

/*!40000 ALTER TABLE `paymentactionsubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `paymentactionsubclassagent` ENABLE KEYS */;


--
-- Definition of table `paymentdelaytype`
--

DROP TABLE IF EXISTS `paymentdelaytype`;
CREATE TABLE `paymentdelaytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentdelaytype`
--

/*!40000 ALTER TABLE `paymentdelaytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `paymentdelaytype` ENABLE KEYS */;


--
-- Definition of table `peratio`
--

DROP TABLE IF EXISTS `peratio`;
CREATE TABLE `peratio` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `earningsref` int(11) DEFAULT NULL,
  `peratiotype` int(11) DEFAULT NULL,
  `priceref` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `period_type` varchar(255) DEFAULT NULL,
  `period_id` bigint(20) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `peratio` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_peratio` (`source`),
  KEY `peratio_valuationref` (`valuationref`),
  KEY `peratio_peratiotype` (`peratiotype`),
  KEY `peratio_instrumentdomain` (`instrumentdomain`),
  KEY `peratio_calculationtype` (`calculationtype`),
  KEY `peratio_valuationtype` (`valuationtype`),
  KEY `perati_qantitydescriptintype` (`quantitydescriptiontype`),
  KEY `peratio_quantitytype` (`quantitytype`),
  KEY `peratio_marketcenter` (`marketcenter`),
  KEY `peratio_indicatorstype` (`indicatorstype`),
  KEY `peratio_priceref` (`priceref`),
  KEY `peratio_earningsref` (`earningsref`),
  CONSTRAINT `peratio_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `peratio_earningsref` FOREIGN KEY (`earningsref`) REFERENCES `earningsref` (`id`),
  CONSTRAINT `peratio_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `peratio_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `peratio_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `peratio_peratiotype` FOREIGN KEY (`peratiotype`) REFERENCES `peratiotype` (`id`),
  CONSTRAINT `peratio_priceref` FOREIGN KEY (`priceref`) REFERENCES `priceref` (`id`),
  CONSTRAINT `peratio_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `peratio_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `peratio_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `perati_qantitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_peratio` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `peratio`
--

/*!40000 ALTER TABLE `peratio` DISABLE KEYS */;
/*!40000 ALTER TABLE `peratio` ENABLE KEYS */;


--
-- Definition of table `peratiotype`
--

DROP TABLE IF EXISTS `peratiotype`;
CREATE TABLE `peratiotype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `peratiotype`
--

/*!40000 ALTER TABLE `peratiotype` DISABLE KEYS */;
/*!40000 ALTER TABLE `peratiotype` ENABLE KEYS */;


--
-- Definition of table `periodtype`
--

DROP TABLE IF EXISTS `periodtype`;
CREATE TABLE `periodtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `periodtype`
--

/*!40000 ALTER TABLE `periodtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `periodtype` ENABLE KEYS */;


--
-- Definition of table `placeoflisting`
--

DROP TABLE IF EXISTS `placeoflisting`;
CREATE TABLE `placeoflisting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indicatorstype` int(11) DEFAULT NULL,
  `instrumentstatustype` int(11) DEFAULT NULL,
  `lastcae` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `marketconditions` int(11) DEFAULT NULL,
  `marketstatustype` int(11) DEFAULT NULL,
  `markettype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `codeperiodduration` varchar(255) DEFAULT NULL,
  `codeperiodend` date DEFAULT NULL,
  `codeperiodstart` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `nameperiodduration` varchar(255) DEFAULT NULL,
  `nameperiodend` date DEFAULT NULL,
  `nameperiodstart` date DEFAULT NULL,
  `nameref` varchar(255) DEFAULT NULL,
  `namerefvalidity` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `placeflisting_marketcnditins` (`marketconditions`),
  KEY `plcflisting_instrmntsttstype` (`instrumentstatustype`),
  KEY `placeoflisting_dayruletype` (`dayruletype`),
  KEY `placeoflisting_lastcae` (`lastcae`),
  KEY `plceflisting_marketstatstype` (`marketstatustype`),
  KEY `placeoflisting_markettype` (`markettype`),
  KEY `placeoflisting_marketcenter` (`marketcenter`),
  KEY `placeoflisting_indicatrstype` (`indicatorstype`),
  CONSTRAINT `placeflisting_marketcnditins` FOREIGN KEY (`marketconditions`) REFERENCES `marketconditions` (`id`),
  CONSTRAINT `placeoflisting_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `placeoflisting_indicatrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `placeoflisting_lastcae` FOREIGN KEY (`lastcae`) REFERENCES `lastcae` (`id`),
  CONSTRAINT `placeoflisting_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `placeoflisting_markettype` FOREIGN KEY (`markettype`) REFERENCES `markettype` (`id`),
  CONSTRAINT `plceflisting_marketstatstype` FOREIGN KEY (`marketstatustype`) REFERENCES `marketstatustype` (`id`),
  CONSTRAINT `plcflisting_instrmntsttstype` FOREIGN KEY (`instrumentstatustype`) REFERENCES `instrumentstatustype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `placeoflisting`
--

/*!40000 ALTER TABLE `placeoflisting` DISABLE KEYS */;
/*!40000 ALTER TABLE `placeoflisting` ENABLE KEYS */;


--
-- Definition of table `placeoflistingissuedata`
--

DROP TABLE IF EXISTS `placeoflistingissuedata`;
CREATE TABLE `placeoflistingissuedata` (
  `issuedata` int(11) NOT NULL,
  `placeoflisting` int(11) NOT NULL,
  KEY `plcflisting_plcflistingissdt` (`issuedata`),
  KEY `issedt_issedataplaceflisting` (`placeoflisting`),
  CONSTRAINT `issedt_issedataplaceflisting` FOREIGN KEY (`placeoflisting`) REFERENCES `placeoflisting` (`id`),
  CONSTRAINT `plcflisting_plcflistingissdt` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `placeoflistingissuedata`
--

/*!40000 ALTER TABLE `placeoflistingissuedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `placeoflistingissuedata` ENABLE KEYS */;


--
-- Definition of table `placeoftrade`
--

DROP TABLE IF EXISTS `placeoftrade`;
CREATE TABLE `placeoftrade` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `currency` int(11) DEFAULT NULL,
  `instrumentstatustype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `marketconditions` int(11) DEFAULT NULL,
  `marketstatustype` int(11) DEFAULT NULL,
  `markettype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `codeperiodduration` varchar(255) DEFAULT NULL,
  `codeperiodend` date DEFAULT NULL,
  `codeperiodstart` date DEFAULT NULL,
  `marginable` bit(1) DEFAULT NULL,
  `marginablemaxlimit` decimal(19,2) DEFAULT NULL,
  `marginableminlimit` decimal(19,2) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `nameperiodduration` varchar(255) DEFAULT NULL,
  `nameperiodend` date DEFAULT NULL,
  `nameperiodstart` date DEFAULT NULL,
  `nameref` varchar(255) DEFAULT NULL,
  `namerefvalidity` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `placeoftrade_marketcnditions` (`marketconditions`),
  KEY `plceftrde_instrmentstatstype` (`instrumentstatustype`),
  KEY `placeoftrade_marketstatstype` (`marketstatustype`),
  KEY `placeoftrade_markettype` (`markettype`),
  KEY `placeoftrade_currency` (`currency`),
  KEY `placeoftrade_marketcenter` (`marketcenter`),
  CONSTRAINT `placeoftrade_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `placeoftrade_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `placeoftrade_marketcnditions` FOREIGN KEY (`marketconditions`) REFERENCES `marketconditions` (`id`),
  CONSTRAINT `placeoftrade_marketstatstype` FOREIGN KEY (`marketstatustype`) REFERENCES `marketstatustype` (`id`),
  CONSTRAINT `placeoftrade_markettype` FOREIGN KEY (`markettype`) REFERENCES `markettype` (`id`),
  CONSTRAINT `plceftrde_instrmentstatstype` FOREIGN KEY (`instrumentstatustype`) REFERENCES `instrumentstatustype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `placeoftrade`
--

/*!40000 ALTER TABLE `placeoftrade` DISABLE KEYS */;
/*!40000 ALTER TABLE `placeoftrade` ENABLE KEYS */;


--
-- Definition of table `placeoftradeissuedata`
--

DROP TABLE IF EXISTS `placeoftradeissuedata`;
CREATE TABLE `placeoftradeissuedata` (
  `issuedata` int(11) NOT NULL,
  `placeoftrade` int(11) NOT NULL,
  KEY `issedata_issedataplaceftrade` (`placeoftrade`),
  KEY `plceftrde_plceftradeissedata` (`issuedata`),
  CONSTRAINT `issedata_issedataplaceftrade` FOREIGN KEY (`placeoftrade`) REFERENCES `placeoftrade` (`id`),
  CONSTRAINT `plceftrde_plceftradeissedata` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `placeoftradeissuedata`
--

/*!40000 ALTER TABLE `placeoftradeissuedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `placeoftradeissuedata` ENABLE KEYS */;


--
-- Definition of table `pointofcontact`
--

DROP TABLE IF EXISTS `pointofcontact`;
CREATE TABLE `pointofcontact` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `contacttype` int(11) DEFAULT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `location` int(11) DEFAULT NULL,
  `nameofperson` int(11) DEFAULT NULL,
  `businessclass` int(11) DEFAULT NULL,
  `counterpartyclass` int(11) DEFAULT NULL,
  `issuerclass` int(11) DEFAULT NULL,
  `marketclass_pointofcontact` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_pointofcontact` (`source`),
  KEY `marketclass_pointofcontact` (`marketclass_pointofcontact`),
  KEY `issuerclass_pointofcontact` (`issuerclass`),
  KEY `pointofcontact_location` (`location`),
  KEY `pintfcntact_entityidentifier` (`entityidentifier`),
  KEY `pointofcontact_contacttype` (`contacttype`),
  KEY `businessclass_pointofcontact` (`businessclass`),
  KEY `pointofcontact_nameofperson` (`nameofperson`),
  KEY `cnterpartyclass_pintofcntact` (`counterpartyclass`),
  CONSTRAINT `businessclass_pointofcontact` FOREIGN KEY (`businessclass`) REFERENCES `businessclass` (`id`),
  CONSTRAINT `cnterpartyclass_pintofcntact` FOREIGN KEY (`counterpartyclass`) REFERENCES `counterpartyclass` (`id`),
  CONSTRAINT `issuerclass_pointofcontact` FOREIGN KEY (`issuerclass`) REFERENCES `issuerclass` (`id`),
  CONSTRAINT `marketclass_pointofcontact` FOREIGN KEY (`marketclass_pointofcontact`) REFERENCES `marketclass` (`id`),
  CONSTRAINT `pintfcntact_entityidentifier` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `pointofcontact_contacttype` FOREIGN KEY (`contacttype`) REFERENCES `contacttype` (`id`),
  CONSTRAINT `pointofcontact_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `pointofcontact_nameofperson` FOREIGN KEY (`nameofperson`) REFERENCES `nameofperson` (`id`),
  CONSTRAINT `source_pointofcontact` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `pointofcontact`
--

/*!40000 ALTER TABLE `pointofcontact` DISABLE KEYS */;
/*!40000 ALTER TABLE `pointofcontact` ENABLE KEYS */;


--
-- Definition of table `portfoliodomain`
--

DROP TABLE IF EXISTS `portfoliodomain`;
CREATE TABLE `portfoliodomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `industryidentifier` int(11) DEFAULT NULL,
  `underlying` int(11) DEFAULT NULL,
  `underlyingcount` int(11) DEFAULT NULL,
  `issueData` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_portfoliodomain` (`source`),
  KEY `prtfoliodomain_nderlyingcont` (`underlyingcount`),
  KEY `prtflidmin_indstryidentifier` (`industryidentifier`),
  KEY `FKF9F9C40C8D789C06` (`issueData`),
  KEY `portfoliodomain_underlying` (`underlying`),
  CONSTRAINT `FKF9F9C40C8D789C06` FOREIGN KEY (`issueData`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `portfoliodomain_underlying` FOREIGN KEY (`underlying`) REFERENCES `underlying` (`id`),
  CONSTRAINT `prtflidmin_indstryidentifier` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `prtfoliodomain_nderlyingcont` FOREIGN KEY (`underlyingcount`) REFERENCES `underlyingcount` (`id`),
  CONSTRAINT `source_portfoliodomain` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `portfoliodomain`
--

/*!40000 ALTER TABLE `portfoliodomain` DISABLE KEYS */;
/*!40000 ALTER TABLE `portfoliodomain` ENABLE KEYS */;


--
-- Definition of table `postalcode`
--

DROP TABLE IF EXISTS `postalcode`;
CREATE TABLE `postalcode` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `codetype` int(11) DEFAULT NULL,
  `description` int(11) DEFAULT NULL,
  `snaptype` int(11) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `postalcode` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) NOT NULL,
  `snapdatetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `postalcode_snaptype` (`snaptype`),
  KEY `source_postalcode` (`source`),
  KEY `postalcode_codetype` (`codetype`),
  KEY `postalcode_description` (`description`),
  CONSTRAINT `postalcode_codetype` FOREIGN KEY (`codetype`) REFERENCES `codetype` (`id`),
  CONSTRAINT `postalcode_description` FOREIGN KEY (`description`) REFERENCES `description` (`id`),
  CONSTRAINT `postalcode_snaptype` FOREIGN KEY (`snaptype`) REFERENCES `snaptype` (`id`),
  CONSTRAINT `source_postalcode` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `postalcode`
--

/*!40000 ALTER TABLE `postalcode` DISABLE KEYS */;
/*!40000 ALTER TABLE `postalcode` ENABLE KEYS */;


--
-- Definition of table `precision`
--

DROP TABLE IF EXISTS `precision`;
CREATE TABLE `precision` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `precision` decimal(19,2) DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `unitsize` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_precision` (`source`),
  KEY `precision_valuationref` (`valuationref`),
  KEY `precision_unittype` (`unittype`),
  KEY `precision_calculationtype` (`calculationtype`),
  KEY `precision_valuationtype` (`valuationtype`),
  KEY `prcisin_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `precision_quantitytype` (`quantitytype`),
  KEY `precision_marketcenter` (`marketcenter`),
  KEY `precision_indicatorstype` (`indicatorstype`),
  CONSTRAINT `prcisin_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `precision_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `precision_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `precision_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `precision_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `precision_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `precision_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `precision_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_precision` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `precision`
--

/*!40000 ALTER TABLE `precision` DISABLE KEYS */;
/*!40000 ALTER TABLE `precision` ENABLE KEYS */;


--
-- Definition of table `previouscode`
--

DROP TABLE IF EXISTS `previouscode`;
CREATE TABLE `previouscode` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `codetype` int(11) DEFAULT NULL,
  `description` int(11) DEFAULT NULL,
  `nameref` varchar(255) DEFAULT NULL,
  `namerefvalidity` varchar(255) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_previouscode` (`source`),
  KEY `previouscode_codetype` (`codetype`),
  KEY `previouscode_description` (`description`),
  CONSTRAINT `previouscode_codetype` FOREIGN KEY (`codetype`) REFERENCES `codetype` (`id`),
  CONSTRAINT `previouscode_description` FOREIGN KEY (`description`) REFERENCES `description` (`id`),
  CONSTRAINT `source_previouscode` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `previouscode`
--

/*!40000 ALTER TABLE `previouscode` DISABLE KEYS */;
/*!40000 ALTER TABLE `previouscode` ENABLE KEYS */;


--
-- Definition of table `priceref`
--

DROP TABLE IF EXISTS `priceref`;
CREATE TABLE `priceref` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `priceref` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_priceref` (`source`),
  CONSTRAINT `source_priceref` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `priceref`
--

/*!40000 ALTER TABLE `priceref` DISABLE KEYS */;
/*!40000 ALTER TABLE `priceref` ENABLE KEYS */;


--
-- Definition of table `principalprotection`
--

DROP TABLE IF EXISTS `principalprotection`;
CREATE TABLE `principalprotection` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `principalprotection` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_principalprotection` (`source`),
  KEY `principalprtectin_valatinref` (`valuationref`),
  KEY `principlprtectin_clcltintype` (`calculationtype`),
  KEY `principlprtectin_valatintype` (`valuationtype`),
  KEY `principalprotection_currency` (`currency`),
  KEY `prncplprtctn_qnttydscrptntyp` (`quantitydescriptiontype`),
  KEY `principalprotection_size` (`size`),
  KEY `principlprtectin_qantitytype` (`quantitytype`),
  KEY `principlprtectin_mrketcenter` (`marketcenter`),
  KEY `principlprtctin_indictrstype` (`indicatorstype`),
  KEY `principalprtection_crossrate` (`crossrate`),
  CONSTRAINT `principalprotection_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `principalprotection_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `principalprtectin_valatinref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `principalprtection_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `principlprtctin_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `principlprtectin_clcltintype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `principlprtectin_mrketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `principlprtectin_qantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `principlprtectin_valatintype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `prncplprtctn_qnttydscrptntyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_principalprotection` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `principalprotection`
--

/*!40000 ALTER TABLE `principalprotection` DISABLE KEYS */;
/*!40000 ALTER TABLE `principalprotection` ENABLE KEYS */;


--
-- Definition of table `principalrepayment`
--

DROP TABLE IF EXISTS `principalrepayment`;
CREATE TABLE `principalrepayment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `paymentdelaytype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `schedule` int(11) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `payableinkind` bit(1) DEFAULT NULL,
  `payment` decimal(19,2) DEFAULT NULL,
  `paymentdate` date DEFAULT NULL,
  `paymentdelayduration` varchar(255) DEFAULT NULL,
  `paymentdelayend` date DEFAULT NULL,
  `paymentdelaystart` date DEFAULT NULL,
  `paymentfrequencyduration` varchar(255) DEFAULT NULL,
  `paymentfrequencyend` date DEFAULT NULL,
  `paymentfrequencystart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_principalrepayment` (`source`),
  KEY `principlrpymnt_pymntdelytype` (`paymentdelaytype`),
  KEY `debtissedt_principlrepayment` (`debtissuedata`),
  KEY `principalrepayment_schedule` (`schedule`),
  KEY `principlrpyment_indictrstype` (`indicatorstype`),
  CONSTRAINT `debtissedt_principlrepayment` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `principalrepayment_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `principlrpyment_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `principlrpymnt_pymntdelytype` FOREIGN KEY (`paymentdelaytype`) REFERENCES `paymentdelaytype` (`id`),
  CONSTRAINT `source_principalrepayment` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `principalrepayment`
--

/*!40000 ALTER TABLE `principalrepayment` DISABLE KEYS */;
/*!40000 ALTER TABLE `principalrepayment` ENABLE KEYS */;


--
-- Definition of table `programtype`
--

DROP TABLE IF EXISTS `programtype`;
CREATE TABLE `programtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `programtype`
--

/*!40000 ALTER TABLE `programtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `programtype` ENABLE KEYS */;


--
-- Definition of table `prooftype`
--

DROP TABLE IF EXISTS `prooftype`;
CREATE TABLE `prooftype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `prooftype`
--

/*!40000 ALTER TABLE `prooftype` DISABLE KEYS */;
/*!40000 ALTER TABLE `prooftype` ENABLE KEYS */;


--
-- Definition of table `putable`
--

DROP TABLE IF EXISTS `putable`;
CREATE TABLE `putable` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `putabletype` int(11) DEFAULT NULL,
  `putconditiontype` int(11) DEFAULT NULL,
  `exerciserightstype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `islimited` bit(1) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `notificationduration` varchar(255) DEFAULT NULL,
  `notificationend` date DEFAULT NULL,
  `notificationstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `putable` bit(1) DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `scheduleend` date DEFAULT NULL,
  `schedulestart` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `putable_putconditiontype` (`putconditiontype`),
  KEY `source_putable` (`source`),
  KEY `putable_instrumentdomain` (`instrumentdomain`),
  KEY `putable_putabletype` (`putabletype`),
  KEY `putable_exerciserightstype` (`exerciserightstype`),
  CONSTRAINT `putable_exerciserightstype` FOREIGN KEY (`exerciserightstype`) REFERENCES `exerciserightstype` (`id`),
  CONSTRAINT `putable_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `putable_putabletype` FOREIGN KEY (`putabletype`) REFERENCES `putabletype` (`id`),
  CONSTRAINT `putable_putconditiontype` FOREIGN KEY (`putconditiontype`) REFERENCES `putconditiontype` (`id`),
  CONSTRAINT `source_putable` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `putable`
--

/*!40000 ALTER TABLE `putable` DISABLE KEYS */;
/*!40000 ALTER TABLE `putable` ENABLE KEYS */;


--
-- Definition of table `putabletype`
--

DROP TABLE IF EXISTS `putabletype`;
CREATE TABLE `putabletype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `putabletype`
--

/*!40000 ALTER TABLE `putabletype` DISABLE KEYS */;
/*!40000 ALTER TABLE `putabletype` ENABLE KEYS */;


--
-- Definition of table `putconditiontype`
--

DROP TABLE IF EXISTS `putconditiontype`;
CREATE TABLE `putconditiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `putconditiontype`
--

/*!40000 ALTER TABLE `putconditiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `putconditiontype` ENABLE KEYS */;


--
-- Definition of table `quantitydescriptiontype`
--

DROP TABLE IF EXISTS `quantitydescriptiontype`;
CREATE TABLE `quantitydescriptiontype` (
  `id` int(11) NOT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `quantitydescriptiontype` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `quantitydescriptiontype`
--

/*!40000 ALTER TABLE `quantitydescriptiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `quantitydescriptiontype` ENABLE KEYS */;


--
-- Definition of table `quantitytype`
--

DROP TABLE IF EXISTS `quantitytype`;
CREATE TABLE `quantitytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `quantitytype`
--

/*!40000 ALTER TABLE `quantitytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `quantitytype` ENABLE KEYS */;


--
-- Definition of table `quotation`
--

DROP TABLE IF EXISTS `quotation`;
CREATE TABLE `quotation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `currency` int(11) DEFAULT NULL,
  `deltaunittype` int(11) DEFAULT NULL,
  `delta` decimal(19,2) DEFAULT NULL,
  `precision` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `unitsize` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_quotation` (`source`),
  KEY `quotation_deltaunittype` (`deltaunittype`),
  KEY `quotation_currency` (`currency`),
  CONSTRAINT `quotation_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `quotation_deltaunittype` FOREIGN KEY (`deltaunittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `source_quotation` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `quotation`
--

/*!40000 ALTER TABLE `quotation` DISABLE KEYS */;
/*!40000 ALTER TABLE `quotation` ENABLE KEYS */;


--
-- Definition of table `rangetype`
--

DROP TABLE IF EXISTS `rangetype`;
CREATE TABLE `rangetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rangetype`
--

/*!40000 ALTER TABLE `rangetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `rangetype` ENABLE KEYS */;


--
-- Definition of table `ranking`
--

DROP TABLE IF EXISTS `ranking`;
CREATE TABLE `ranking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `codetype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ranking_codetype` (`codetype`),
  CONSTRAINT `ranking_codetype` FOREIGN KEY (`codetype`) REFERENCES `codetype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ranking`
--

/*!40000 ALTER TABLE `ranking` DISABLE KEYS */;
/*!40000 ALTER TABLE `ranking` ENABLE KEYS */;


--
-- Definition of table `ratechangetype`
--

DROP TABLE IF EXISTS `ratechangetype`;
CREATE TABLE `ratechangetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ratechangetype`
--

/*!40000 ALTER TABLE `ratechangetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `ratechangetype` ENABLE KEYS */;


--
-- Definition of table `ratemethodchange`
--

DROP TABLE IF EXISTS `ratemethodchange`;
CREATE TABLE `ratemethodchange` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ratechangetype` int(11) DEFAULT NULL,
  `schedule` int(11) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `endperiod` date DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `nextdate` date DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `startperiod` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_ratemethodchange` (`source`),
  KEY `ratemethodchange_schedule` (`schedule`),
  KEY `rtemethdchnge_ratechangetype` (`ratechangetype`),
  CONSTRAINT `ratemethodchange_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `rtemethdchnge_ratechangetype` FOREIGN KEY (`ratechangetype`) REFERENCES `ratechangetype` (`id`),
  CONSTRAINT `source_ratemethodchange` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ratemethodchange`
--

/*!40000 ALTER TABLE `ratemethodchange` DISABLE KEYS */;
/*!40000 ALTER TABLE `ratemethodchange` ENABLE KEYS */;


--
-- Definition of table `ratespread`
--

DROP TABLE IF EXISTS `ratespread`;
CREATE TABLE `ratespread` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `ratespread` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_ratespread` (`source`),
  KEY `ratespread_valuationref` (`valuationref`),
  KEY `ratespread_calculationtype` (`calculationtype`),
  KEY `ratespread_valuationtype` (`valuationtype`),
  KEY `rtspred_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `ratespread_quantitytype` (`quantitytype`),
  KEY `ratespread_marketcenter` (`marketcenter`),
  KEY `ratespread_indicatorstype` (`indicatorstype`),
  CONSTRAINT `ratespread_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `ratespread_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `ratespread_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `ratespread_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `ratespread_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `ratespread_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `rtspred_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_ratespread` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ratespread`
--

/*!40000 ALTER TABLE `ratespread` DISABLE KEYS */;
/*!40000 ALTER TABLE `ratespread` ENABLE KEYS */;


--
-- Definition of table `rating`
--

DROP TABLE IF EXISTS `rating`;
CREATE TABLE `rating` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ratingtype` int(11) DEFAULT NULL,
  `role` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `nameperiodduration` varchar(255) DEFAULT NULL,
  `nameperiodend` date DEFAULT NULL,
  `nameperiodstart` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_rating` (`source`),
  KEY `rating_ratingtype` (`ratingtype`),
  KEY `rating_role` (`role`),
  CONSTRAINT `rating_ratingtype` FOREIGN KEY (`ratingtype`) REFERENCES `ratingtype` (`id`),
  CONSTRAINT `rating_role` FOREIGN KEY (`role`) REFERENCES `role` (`id`),
  CONSTRAINT `source_rating` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rating`
--

/*!40000 ALTER TABLE `rating` DISABLE KEYS */;
/*!40000 ALTER TABLE `rating` ENABLE KEYS */;


--
-- Definition of table `ratingtype`
--

DROP TABLE IF EXISTS `ratingtype`;
CREATE TABLE `ratingtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ratingtype`
--

/*!40000 ALTER TABLE `ratingtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `ratingtype` ENABLE KEYS */;


--
-- Definition of table `receive`
--

DROP TABLE IF EXISTS `receive`;
CREATE TABLE `receive` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `distributionsubclass_receive` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_receive` (`source`),
  KEY `distributionsubclass_receive` (`distributionsubclass_receive`),
  CONSTRAINT `distributionsubclass_receive` FOREIGN KEY (`distributionsubclass_receive`) REFERENCES `distributionsubclass` (`id`),
  CONSTRAINT `source_receive` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `receive`
--

/*!40000 ALTER TABLE `receive` DISABLE KEYS */;
/*!40000 ALTER TABLE `receive` ENABLE KEYS */;


--
-- Definition of table `receiveagent`
--

DROP TABLE IF EXISTS `receiveagent`;
CREATE TABLE `receiveagent` (
  `agent` int(11) NOT NULL,
  `receive` int(11) NOT NULL,
  KEY `agent_agentreceive` (`receive`),
  KEY `receive_receiveagent` (`agent`),
  CONSTRAINT `agent_agentreceive` FOREIGN KEY (`receive`) REFERENCES `receive` (`id`),
  CONSTRAINT `receive_receiveagent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `receiveagent`
--

/*!40000 ALTER TABLE `receiveagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `receiveagent` ENABLE KEYS */;


--
-- Definition of table `redeemable`
--

DROP TABLE IF EXISTS `redeemable`;
CREATE TABLE `redeemable` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dayofweek` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `issuerchoice` bit(1) DEFAULT NULL,
  `mandatory` bit(1) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `redeemable` bit(1) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_redeemable` (`source`),
  KEY `redeemable_instrumentdomain` (`instrumentdomain`),
  KEY `redeemable_dayofweek` (`dayofweek`),
  CONSTRAINT `redeemable_dayofweek` FOREIGN KEY (`dayofweek`) REFERENCES `dayofweek` (`id`),
  CONSTRAINT `redeemable_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_redeemable` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `redeemable`
--

/*!40000 ALTER TABLE `redeemable` DISABLE KEYS */;
/*!40000 ALTER TABLE `redeemable` ENABLE KEYS */;


--
-- Definition of table `redemption`
--

DROP TABLE IF EXISTS `redemption`;
CREATE TABLE `redemption` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `callable` int(11) DEFAULT NULL,
  `convertible` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `exerciseprice` int(11) DEFAULT NULL,
  `prinicipalprotection` int(11) DEFAULT NULL,
  `putable` int(11) DEFAULT NULL,
  `redeemable` int(11) DEFAULT NULL,
  `redemptiontype` int(11) DEFAULT NULL,
  `relatedto` int(11) DEFAULT NULL,
  `underlying` int(11) DEFAULT NULL,
  `underlyingcount` int(11) DEFAULT NULL,
  `schedule` int(11) DEFAULT NULL,
  `capped` decimal(19,2) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` date DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `payableinkind` bit(1) DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `restrictionsexist` bit(1) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `redemption_putable` (`putable`),
  KEY `source_redemption` (`source`),
  KEY `redemptin_prinicipalprtectin` (`prinicipalprotection`),
  KEY `redemption_underlyingcount` (`underlyingcount`),
  KEY `redemption_underlying` (`underlying`),
  KEY `redemption_schedule` (`schedule`),
  KEY `redemption_crossrate` (`crossrate`),
  KEY `redemption_redeemable` (`redeemable`),
  KEY `redemption_relatedto` (`relatedto`),
  KEY `redemption_callable` (`callable`),
  KEY `redemption_redemptiontype` (`redemptiontype`),
  KEY `redemption_convertible` (`convertible`),
  KEY `debtissuedata_redemption` (`debtissuedata`),
  KEY `redemption_exerciseprice` (`exerciseprice`),
  CONSTRAINT `debtissuedata_redemption` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `redemptin_prinicipalprtectin` FOREIGN KEY (`prinicipalprotection`) REFERENCES `principalprotection` (`id`),
  CONSTRAINT `redemption_callable` FOREIGN KEY (`callable`) REFERENCES `callable` (`id`),
  CONSTRAINT `redemption_convertible` FOREIGN KEY (`convertible`) REFERENCES `convertible` (`id`),
  CONSTRAINT `redemption_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `redemption_exerciseprice` FOREIGN KEY (`exerciseprice`) REFERENCES `exerciseprice` (`id`),
  CONSTRAINT `redemption_putable` FOREIGN KEY (`putable`) REFERENCES `putable` (`id`),
  CONSTRAINT `redemption_redeemable` FOREIGN KEY (`redeemable`) REFERENCES `redeemable` (`id`),
  CONSTRAINT `redemption_redemptiontype` FOREIGN KEY (`redemptiontype`) REFERENCES `redemptiontype` (`id`),
  CONSTRAINT `redemption_relatedto` FOREIGN KEY (`relatedto`) REFERENCES `relatedto` (`id`),
  CONSTRAINT `redemption_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `redemption_underlying` FOREIGN KEY (`underlying`) REFERENCES `underlying` (`id`),
  CONSTRAINT `redemption_underlyingcount` FOREIGN KEY (`underlyingcount`) REFERENCES `underlyingcount` (`id`),
  CONSTRAINT `source_redemption` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `redemption`
--

/*!40000 ALTER TABLE `redemption` DISABLE KEYS */;
/*!40000 ALTER TABLE `redemption` ENABLE KEYS */;


--
-- Definition of table `redemptionsubclass`
--

DROP TABLE IF EXISTS `redemptionsubclass`;
CREATE TABLE `redemptionsubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) NOT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `principalrepayment` int(11) DEFAULT NULL,
  `redemption` int(11) DEFAULT NULL,
  `relatedto` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `caedomain_redemptionsubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_redemptionsubclass` (`source`),
  KEY `rdmptinsbclss_ntityidntifier` (`entityidentifier`),
  KEY `redemptionsbclass_redemption` (`redemption`),
  KEY `redemptinsbclass_meetingtype` (`meetingtype`),
  KEY `redemptionsubclass_relatedto` (`relatedto`),
  KEY `redemptionsubclass_caetype` (`caetype`),
  KEY `rdmptinsbclss_principlrpymnt` (`principalrepayment`),
  KEY `rdmptinsbclss_clifecycletype` (`caelifecycletype`),
  KEY `redemptinsbclss_caestatstype` (`caestatustype`),
  KEY `caedomain_redemptionsubclass` (`caedomain_redemptionsubclass`),
  KEY `redemptinsbclss_indictrstype` (`indicatorstype`),
  KEY `redemptionsubclass_issuerref` (`issuerref`),
  KEY `rdmptnsbclss_nstrmntidntifir` (`instrumentidentifier`),
  CONSTRAINT `caedomain_redemptionsubclass` FOREIGN KEY (`caedomain_redemptionsubclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `rdmptinsbclss_clifecycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `rdmptinsbclss_ntityidntifier` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`),
  CONSTRAINT `rdmptinsbclss_principlrpymnt` FOREIGN KEY (`principalrepayment`) REFERENCES `principalrepayment` (`id`),
  CONSTRAINT `rdmptnsbclss_nstrmntidntifir` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `redemptinsbclass_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `redemptinsbclss_caestatstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `redemptinsbclss_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `redemptionsbclass_redemption` FOREIGN KEY (`redemption`) REFERENCES `redemption` (`id`),
  CONSTRAINT `redemptionsubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `redemptionsubclass_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `redemptionsubclass_relatedto` FOREIGN KEY (`relatedto`) REFERENCES `relatedto` (`id`),
  CONSTRAINT `source_redemptionsubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `redemptionsubclass`
--

/*!40000 ALTER TABLE `redemptionsubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `redemptionsubclass` ENABLE KEYS */;


--
-- Definition of table `redemptionsubclassagent`
--

DROP TABLE IF EXISTS `redemptionsubclassagent`;
CREATE TABLE `redemptionsubclassagent` (
  `agent` int(11) NOT NULL,
  `redemptionsubclass` int(11) NOT NULL,
  KEY `rdmptnsbclss_rdmptnsbclssgnt` (`agent`),
  KEY `agent_agentredemptionsbclass` (`redemptionsubclass`),
  CONSTRAINT `agent_agentredemptionsbclass` FOREIGN KEY (`redemptionsubclass`) REFERENCES `redemptionsubclass` (`id`),
  CONSTRAINT `rdmptnsbclss_rdmptnsbclssgnt` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `redemptionsubclassagent`
--

/*!40000 ALTER TABLE `redemptionsubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `redemptionsubclassagent` ENABLE KEYS */;


--
-- Definition of table `redemptiontype`
--

DROP TABLE IF EXISTS `redemptiontype`;
CREATE TABLE `redemptiontype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `redemptiontype`
--

/*!40000 ALTER TABLE `redemptiontype` DISABLE KEYS */;
/*!40000 ALTER TABLE `redemptiontype` ENABLE KEYS */;


--
-- Definition of table `registrationstatustype`
--

DROP TABLE IF EXISTS `registrationstatustype`;
CREATE TABLE `registrationstatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `registrationstatustype`
--

/*!40000 ALTER TABLE `registrationstatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `registrationstatustype` ENABLE KEYS */;


--
-- Definition of table `regulatory`
--

DROP TABLE IF EXISTS `regulatory`;
CREATE TABLE `regulatory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `location` int(11) DEFAULT NULL,
  `registrationstatustype` int(11) DEFAULT NULL,
  `regulationact_type` varchar(255) DEFAULT NULL,
  `regulationact_id` bigint(20) DEFAULT NULL,
  `instrumentdomain_regulatory` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_regulatory` (`source`),
  KEY `regulatory_location` (`location`),
  KEY `instrumentdomain_regulatory` (`instrumentdomain_regulatory`),
  KEY `regltry_registratinstatstype` (`registrationstatustype`),
  CONSTRAINT `instrumentdomain_regulatory` FOREIGN KEY (`instrumentdomain_regulatory`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `regltry_registratinstatstype` FOREIGN KEY (`registrationstatustype`) REFERENCES `registrationstatustype` (`id`),
  CONSTRAINT `regulatory_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `source_regulatory` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `regulatory`
--

/*!40000 ALTER TABLE `regulatory` DISABLE KEYS */;
/*!40000 ALTER TABLE `regulatory` ENABLE KEYS */;


--
-- Definition of table `regulatoryissuedata`
--

DROP TABLE IF EXISTS `regulatoryissuedata`;
CREATE TABLE `regulatoryissuedata` (
  `issuedata` int(11) NOT NULL,
  `regulatory` int(11) NOT NULL,
  KEY `reglatory_reglatoryissuedata` (`issuedata`),
  KEY `issedata_issuedataregulatory` (`regulatory`),
  CONSTRAINT `issedata_issuedataregulatory` FOREIGN KEY (`regulatory`) REFERENCES `regulatory` (`id`),
  CONSTRAINT `reglatory_reglatoryissuedata` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `regulatoryissuedata`
--

/*!40000 ALTER TABLE `regulatoryissuedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `regulatoryissuedata` ENABLE KEYS */;


--
-- Definition of table `relatedto`
--

DROP TABLE IF EXISTS `relatedto`;
CREATE TABLE `relatedto` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `caeidentifier` int(11) DEFAULT NULL,
  `instrumentidentifier` int(11) DEFAULT NULL,
  `relationshiptype` int(11) DEFAULT NULL,
  `realtionshipperiodstart` date DEFAULT NULL,
  `relationshipperiodduration` varchar(255) DEFAULT NULL,
  `relationshipperiodend` date DEFAULT NULL,
  `crprtechangesbclass_relatedt` int(11) DEFAULT NULL,
  `creditenhancement_relatedto` int(11) DEFAULT NULL,
  `paymentactinsbclass_relatedt` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  `statschangesbclass_relatedto` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `statschangesbclass_relatedto` (`statschangesbclass_relatedto`),
  KEY `source_relatedto` (`source`),
  KEY `relatedto_caeidentifier` (`caeidentifier`),
  KEY `paymentactinsbclass_relatedt` (`paymentactinsbclass_relatedt`),
  KEY `relatedto_relationshiptype` (`relationshiptype`),
  KEY `relatedt_instrmentidentifier` (`instrumentidentifier`),
  KEY `creditenhancement_relatedto` (`creditenhancement_relatedto`),
  KEY `crprtechangesbclass_relatedt` (`crprtechangesbclass_relatedt`),
  CONSTRAINT `creditenhancement_relatedto` FOREIGN KEY (`creditenhancement_relatedto`) REFERENCES `creditenhancement` (`id`),
  CONSTRAINT `crprtechangesbclass_relatedt` FOREIGN KEY (`crprtechangesbclass_relatedt`) REFERENCES `corporatechangesubclass` (`id`),
  CONSTRAINT `paymentactinsbclass_relatedt` FOREIGN KEY (`paymentactinsbclass_relatedt`) REFERENCES `paymentactionsubclass` (`id`),
  CONSTRAINT `relatedto_caeidentifier` FOREIGN KEY (`caeidentifier`) REFERENCES `caeidentifier` (`id`),
  CONSTRAINT `relatedto_relationshiptype` FOREIGN KEY (`relationshiptype`) REFERENCES `relationshiptype` (`id`),
  CONSTRAINT `relatedt_instrmentidentifier` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `source_relatedto` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `statschangesbclass_relatedto` FOREIGN KEY (`statschangesbclass_relatedto`) REFERENCES `statuschangesubclass` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `relatedto`
--

/*!40000 ALTER TABLE `relatedto` DISABLE KEYS */;
/*!40000 ALTER TABLE `relatedto` ENABLE KEYS */;


--
-- Definition of table `relationshiptype`
--

DROP TABLE IF EXISTS `relationshiptype`;
CREATE TABLE `relationshiptype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `relationshiptype`
--

/*!40000 ALTER TABLE `relationshiptype` DISABLE KEYS */;
/*!40000 ALTER TABLE `relationshiptype` ENABLE KEYS */;


--
-- Definition of table `replacemententity`
--

DROP TABLE IF EXISTS `replacemententity`;
CREATE TABLE `replacemententity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitytype` int(11) DEFAULT NULL,
  `industryidentifier` int(11) DEFAULT NULL,
  `location` int(11) DEFAULT NULL,
  `partystatustype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `endperiod` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `rankname` decimal(19,2) DEFAULT NULL,
  `scheme` varchar(255) NOT NULL,
  `startperiod` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_replacemententity` (`source`),
  KEY `replacemententity_location` (`location`),
  KEY `rplcmntntity_indstryidntifir` (`industryidentifier`),
  KEY `rplcemententity_prtysttstype` (`partystatustype`),
  KEY `replacemententity_entitytype` (`entitytype`),
  CONSTRAINT `replacemententity_entitytype` FOREIGN KEY (`entitytype`) REFERENCES `entitytype` (`id`),
  CONSTRAINT `replacemententity_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `rplcemententity_prtysttstype` FOREIGN KEY (`partystatustype`) REFERENCES `partystatustype` (`id`),
  CONSTRAINT `rplcmntntity_indstryidntifir` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `source_replacemententity` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `replacemententity`
--

/*!40000 ALTER TABLE `replacemententity` DISABLE KEYS */;
/*!40000 ALTER TABLE `replacemententity` ENABLE KEYS */;


--
-- Definition of table `replacementtype`
--

DROP TABLE IF EXISTS `replacementtype`;
CREATE TABLE `replacementtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `replacementtype`
--

/*!40000 ALTER TABLE `replacementtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `replacementtype` ENABLE KEYS */;


--
-- Definition of table `replaces`
--

DROP TABLE IF EXISTS `replaces`;
CREATE TABLE `replaces` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` date DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `replaces` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_replaces` (`source`),
  CONSTRAINT `source_replaces` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `replaces`
--

/*!40000 ALTER TABLE `replaces` DISABLE KEYS */;
/*!40000 ALTER TABLE `replaces` ENABLE KEYS */;


--
-- Definition of table `resetfrequency`
--

DROP TABLE IF EXISTS `resetfrequency`;
CREATE TABLE `resetfrequency` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resetfrequencytype` int(11) DEFAULT NULL,
  `schedule` int(11) DEFAULT NULL,
  `firstdate` date DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_resetfrequency` (`source`),
  KEY `resetfrequency_schedule` (`schedule`),
  KEY `rstfrqency_resetfreqencytype` (`resetfrequencytype`),
  CONSTRAINT `resetfrequency_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `rstfrqency_resetfreqencytype` FOREIGN KEY (`resetfrequencytype`) REFERENCES `resetfrequencytype` (`id`),
  CONSTRAINT `source_resetfrequency` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `resetfrequency`
--

/*!40000 ALTER TABLE `resetfrequency` DISABLE KEYS */;
/*!40000 ALTER TABLE `resetfrequency` ENABLE KEYS */;


--
-- Definition of table `resetfrequencytype`
--

DROP TABLE IF EXISTS `resetfrequencytype`;
CREATE TABLE `resetfrequencytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `resetfrequencytype`
--

/*!40000 ALTER TABLE `resetfrequencytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `resetfrequencytype` ENABLE KEYS */;


--
-- Definition of table `restructuresubclass`
--

DROP TABLE IF EXISTS `restructuresubclass`;
CREATE TABLE `restructuresubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) NOT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `deliver` int(11) DEFAULT NULL,
  `receive` int(11) DEFAULT NULL,
  `relatedto` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `caedomain_restrcturesubclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  `restructuringtype` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_restructuresubclass` (`source`),
  KEY `restructuresubclass_receive` (`receive`),
  KEY `restrcturesubclass_relatedto` (`relatedto`),
  KEY `restructuresubclass_caetype` (`caetype`),
  KEY `caedomain_restrcturesubclass` (`caedomain_restrcturesubclass`),
  KEY `restrctresbclss_caestatstype` (`caestatustype`),
  KEY `rstrctrsbclss_clifecycletype` (`caelifecycletype`),
  KEY `restrctresbclass_meetingtype` (`meetingtype`),
  KEY `restructuresubclass_deliver` (`deliver`),
  KEY `restrctresbclss_indictrstype` (`indicatorstype`),
  KEY `rstrctrsbclss_rstrctringtype` (`restructuringtype`),
  CONSTRAINT `rstrctrsbclss_rstrctringtype` FOREIGN KEY (`restructuringtype`) REFERENCES `restructuringtype` (`id`),
  CONSTRAINT `caedomain_restrcturesubclass` FOREIGN KEY (`caedomain_restrcturesubclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `restrctresbclass_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `restrctresbclss_caestatstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `restrctresbclss_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `restrcturesubclass_relatedto` FOREIGN KEY (`relatedto`) REFERENCES `relatedto` (`id`),
  CONSTRAINT `restructuresubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `restructuresubclass_deliver` FOREIGN KEY (`deliver`) REFERENCES `deliver` (`id`),
  CONSTRAINT `restructuresubclass_receive` FOREIGN KEY (`receive`) REFERENCES `receive` (`id`),
  CONSTRAINT `rstrctrsbclss_clifecycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `source_restructuresubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `restructuresubclass`
--

/*!40000 ALTER TABLE `restructuresubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `restructuresubclass` ENABLE KEYS */;


--
-- Definition of table `restructuresubclassagent`
--

DROP TABLE IF EXISTS `restructuresubclassagent`;
CREATE TABLE `restructuresubclassagent` (
  `agent` int(11) NOT NULL,
  `restructuresubclass` int(11) NOT NULL,
  KEY `rstrctrsbclss_rstrctrsbclssg` (`agent`),
  KEY `agent_agentrestrctresubclass` (`restructuresubclass`),
  CONSTRAINT `agent_agentrestrctresubclass` FOREIGN KEY (`restructuresubclass`) REFERENCES `restructuresubclass` (`id`),
  CONSTRAINT `rstrctrsbclss_rstrctrsbclssg` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `restructuresubclassagent`
--

/*!40000 ALTER TABLE `restructuresubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `restructuresubclassagent` ENABLE KEYS */;


--
-- Definition of table `restructuringtype`
--

DROP TABLE IF EXISTS `restructuringtype`;
CREATE TABLE `restructuringtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `restructuringtype`
--

/*!40000 ALTER TABLE `restructuringtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `restructuringtype` ENABLE KEYS */;


--
-- Definition of table `revenues`
--

DROP TABLE IF EXISTS `revenues`;
CREATE TABLE `revenues` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `revenues` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_revenues` (`source`),
  KEY `revenues_valuationref` (`valuationref`),
  KEY `revenues_instrumentdomain` (`instrumentdomain`),
  KEY `revenues_calculationtype` (`calculationtype`),
  KEY `revenues_valuationtype` (`valuationtype`),
  KEY `revenues_currency` (`currency`),
  KEY `revenes_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `revenues_quantitytype` (`quantitytype`),
  KEY `revenues_marketcenter` (`marketcenter`),
  KEY `revenues_indicatorstype` (`indicatorstype`),
  KEY `revenues_crossrate` (`crossrate`),
  CONSTRAINT `revenes_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `revenues_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `revenues_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `revenues_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `revenues_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `revenues_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `revenues_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `revenues_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `revenues_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `revenues_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_revenues` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `revenues`
--

/*!40000 ALTER TABLE `revenues` DISABLE KEYS */;
/*!40000 ALTER TABLE `revenues` ENABLE KEYS */;


--
-- Definition of table `role`
--

DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_role` (`source`),
  CONSTRAINT `source_role` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `role`
--

/*!40000 ALTER TABLE `role` DISABLE KEYS */;
/*!40000 ALTER TABLE `role` ENABLE KEYS */;


--
-- Definition of table `rulestype`
--

DROP TABLE IF EXISTS `rulestype`;
CREATE TABLE `rulestype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rulestype`
--

/*!40000 ALTER TABLE `rulestype` DISABLE KEYS */;
/*!40000 ALTER TABLE `rulestype` ENABLE KEYS */;


--
-- Definition of table `salesrestrictinstypeissedata`
--

DROP TABLE IF EXISTS `salesrestrictinstypeissedata`;
CREATE TABLE `salesrestrictinstypeissedata` (
  `issuedata` int(11) NOT NULL,
  `salesrestrictionstype` int(11) NOT NULL,
  KEY `slsrstrctnsty_slsrstrctnsty` (`issuedata`),
  KEY `issdt_issdtslsrstrictinstype` (`salesrestrictionstype`),
  CONSTRAINT `issdt_issdtslsrstrictinstype` FOREIGN KEY (`salesrestrictionstype`) REFERENCES `salesrestrictionstype` (`id`),
  CONSTRAINT `slsrstrctnsty_slsrstrctnsty` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `salesrestrictinstypeissedata`
--

/*!40000 ALTER TABLE `salesrestrictinstypeissedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `salesrestrictinstypeissedata` ENABLE KEYS */;


--
-- Definition of table `salesrestrictionstype`
--

DROP TABLE IF EXISTS `salesrestrictionstype`;
CREATE TABLE `salesrestrictionstype` (
  `id` int(11) NOT NULL,
  `inclusiontype` int(11) DEFAULT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `slsrstrictinstyp_inclsintype` (`inclusiontype`),
  CONSTRAINT `slsrstrictinstyp_inclsintype` FOREIGN KEY (`inclusiontype`) REFERENCES `inclusiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `salesrestrictionstype`
--

/*!40000 ALTER TABLE `salesrestrictionstype` DISABLE KEYS */;
/*!40000 ALTER TABLE `salesrestrictionstype` ENABLE KEYS */;


--
-- Definition of table `schedule`
--

DROP TABLE IF EXISTS `schedule`;
CREATE TABLE `schedule` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `eventelementtype` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `eventvalue` varchar(255) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `amrtizatin_amrtizatinschedle` int(11) DEFAULT NULL,
  `instrmentdomain_diaryschedle` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_schedule` (`source`),
  KEY `schedule_eventelementtype` (`eventelementtype`),
  KEY `schedule_instrumentdomain` (`instrumentdomain`),
  KEY `schedule_valuationtype` (`valuationtype`),
  KEY `amrtizatin_amrtizatinschedle` (`amrtizatin_amrtizatinschedle`),
  KEY `schedle_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `schedule_currency` (`currency`),
  KEY `schedule_quantitytype` (`quantitytype`),
  KEY `instrmentdomain_diaryschedle` (`instrmentdomain_diaryschedle`),
  KEY `schedule_crossrate` (`crossrate`),
  KEY `schedule_valuationref` (`valuationref`),
  KEY `schedule_calculationtype` (`calculationtype`),
  KEY `debtissuedata_schedule` (`debtissuedata`),
  KEY `schedule_marketcenter` (`marketcenter`),
  KEY `schedule_indicatorstype` (`indicatorstype`),
  CONSTRAINT `amrtizatin_amrtizatinschedle` FOREIGN KEY (`amrtizatin_amrtizatinschedle`) REFERENCES `amortization` (`id`),
  CONSTRAINT `debtissuedata_schedule` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `instrmentdomain_diaryschedle` FOREIGN KEY (`instrmentdomain_diaryschedle`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `schedle_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `schedule_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `schedule_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `schedule_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `schedule_eventelementtype` FOREIGN KEY (`eventelementtype`) REFERENCES `eventelementtype` (`id`),
  CONSTRAINT `schedule_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `schedule_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `schedule_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `schedule_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `schedule_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `schedule_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_schedule` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `schedule`
--

/*!40000 ALTER TABLE `schedule` DISABLE KEYS */;
/*!40000 ALTER TABLE `schedule` ENABLE KEYS */;


--
-- Definition of table `scheduleevent`
--

DROP TABLE IF EXISTS `scheduleevent`;
CREATE TABLE `scheduleevent` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indicatorstype` int(11) DEFAULT NULL,
  `eventelementtype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `eventvalue` varchar(255) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_scheduleevent` (`source`),
  KEY `schdleevent_eventelementtype` (`eventelementtype`),
  KEY `scheduleevent_indicatorstype` (`indicatorstype`),
  CONSTRAINT `schdleevent_eventelementtype` FOREIGN KEY (`eventelementtype`) REFERENCES `eventelementtype` (`id`),
  CONSTRAINT `scheduleevent_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `source_scheduleevent` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `scheduleevent`
--

/*!40000 ALTER TABLE `scheduleevent` DISABLE KEYS */;
/*!40000 ALTER TABLE `scheduleevent` ENABLE KEYS */;


--
-- Definition of table `scheduletype`
--

DROP TABLE IF EXISTS `scheduletype`;
CREATE TABLE `scheduletype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `scheduletype`
--

/*!40000 ALTER TABLE `scheduletype` DISABLE KEYS */;
/*!40000 ALTER TABLE `scheduletype` ENABLE KEYS */;


--
-- Definition of table `schemeinfo`
--

DROP TABLE IF EXISTS `schemeinfo`;
CREATE TABLE `schemeinfo` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `displayname` varchar(255) DEFAULT NULL,
  `longname` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) NOT NULL,
  `shortname` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `schemeinfo`
--

/*!40000 ALTER TABLE `schemeinfo` DISABLE KEYS */;
/*!40000 ALTER TABLE `schemeinfo` ENABLE KEYS */;


--
-- Definition of table `scopetype`
--

DROP TABLE IF EXISTS `scopetype`;
CREATE TABLE `scopetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `scopetype`
--

/*!40000 ALTER TABLE `scopetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `scopetype` ENABLE KEYS */;


--
-- Definition of table `segmentidentifier`
--

DROP TABLE IF EXISTS `segmentidentifier`;
CREATE TABLE `segmentidentifier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `previouscode` int(11) DEFAULT NULL,
  `segmenttype` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `codeperiodduration` varchar(255) DEFAULT NULL,
  `codeperiodend` date DEFAULT NULL,
  `codeperiodstart` date DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `nameperiodduration` varchar(255) DEFAULT NULL,
  `nameperiodend` date DEFAULT NULL,
  `nameperiodstart` date DEFAULT NULL,
  `nameref` varchar(255) DEFAULT NULL,
  `namerefvalidity` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sgmentidentifier_segmenttype` (`segmenttype`),
  KEY `segmentidentifier_previscode` (`previouscode`),
  CONSTRAINT `segmentidentifier_previscode` FOREIGN KEY (`previouscode`) REFERENCES `previouscode` (`id`),
  CONSTRAINT `sgmentidentifier_segmenttype` FOREIGN KEY (`segmenttype`) REFERENCES `segmenttype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `segmentidentifier`
--

/*!40000 ALTER TABLE `segmentidentifier` DISABLE KEYS */;
/*!40000 ALTER TABLE `segmentidentifier` ENABLE KEYS */;


--
-- Definition of table `segmenttype`
--

DROP TABLE IF EXISTS `segmenttype`;
CREATE TABLE `segmenttype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `segmenttype`
--

/*!40000 ALTER TABLE `segmenttype` DISABLE KEYS */;
/*!40000 ALTER TABLE `segmenttype` ENABLE KEYS */;


--
-- Definition of table `selection`
--

DROP TABLE IF EXISTS `selection`;
CREATE TABLE `selection` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indicatorstype` int(11) DEFAULT NULL,
  `prooftype` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `componentidentifier` int(11) DEFAULT NULL,
  `basevalue` decimal(19,2) DEFAULT NULL,
  `componentbasevalue` decimal(19,2) DEFAULT NULL,
  `componentmultiplier` decimal(19,2) DEFAULT NULL,
  `componentvalue` decimal(19,2) DEFAULT NULL,
  `componentweighting` decimal(19,2) DEFAULT NULL,
  `currency` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `multiplierscheme` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `selection` varchar(255) DEFAULT NULL,
  `selectionamount` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `unitsize` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `valuationref` varchar(255) DEFAULT NULL,
  `deliver_selection` int(11) DEFAULT NULL,
  `receive_selection` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `deliver_selection` (`deliver_selection`),
  KEY `receive_selection` (`receive_selection`),
  KEY `selection_unittype` (`unittype`),
  KEY `selection_calculationtype` (`calculationtype`),
  KEY `selection_valuationtype` (`valuationtype`),
  KEY `selectin_componentidentifier` (`componentidentifier`),
  KEY `selection_prooftype` (`prooftype`),
  KEY `slectin_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `selection_quantitytype` (`quantitytype`),
  KEY `selection_marketcenter` (`marketcenter`),
  KEY `selection_indicatorstype` (`indicatorstype`),
  CONSTRAINT `deliver_selection` FOREIGN KEY (`deliver_selection`) REFERENCES `deliver` (`id`),
  CONSTRAINT `receive_selection` FOREIGN KEY (`receive_selection`) REFERENCES `receive` (`id`),
  CONSTRAINT `selectin_componentidentifier` FOREIGN KEY (`componentidentifier`) REFERENCES `componentidentifier` (`id`),
  CONSTRAINT `selection_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `selection_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `selection_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `selection_prooftype` FOREIGN KEY (`prooftype`) REFERENCES `prooftype` (`id`),
  CONSTRAINT `selection_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `selection_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `selection_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `slectin_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `selection`
--

/*!40000 ALTER TABLE `selection` DISABLE KEYS */;
/*!40000 ALTER TABLE `selection` ENABLE KEYS */;


--
-- Definition of table `selectionamount`
--

DROP TABLE IF EXISTS `selectionamount`;
CREATE TABLE `selectionamount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatiorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `selectionamount` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `selectionamount_valuationref` (`valuationref`),
  KEY `selectionamount_unittype` (`unittype`),
  KEY `selectinamont_calclationtype` (`calculationtype`),
  KEY `selectionamont_valuationtype` (`valuationtype`),
  KEY `selectionamount_currency` (`currency`),
  KEY `slctinmnt_qntitydscriptintyp` (`quantitydescriptiontype`),
  KEY `selectionamount_size` (`size`),
  KEY `selectionamount_quantitytype` (`quantitytype`),
  KEY `selectionamount_marketcenter` (`marketcenter`),
  KEY `selectinamont_indicatorstype` (`indicatiorstype`),
  KEY `selectionamount_crossrate` (`crossrate`),
  CONSTRAINT `selectinamont_calclationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `selectinamont_indicatorstype` FOREIGN KEY (`indicatiorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `selectionamont_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `selectionamount_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `selectionamount_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `selectionamount_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `selectionamount_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `selectionamount_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `selectionamount_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `selectionamount_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `slctinmnt_qntitydscriptintyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `selectionamount`
--

/*!40000 ALTER TABLE `selectionamount` DISABLE KEYS */;
/*!40000 ALTER TABLE `selectionamount` ENABLE KEYS */;


--
-- Definition of table `selectionitem`
--

DROP TABLE IF EXISTS `selectionitem`;
CREATE TABLE `selectionitem` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `componentidentifier` int(11) DEFAULT NULL,
  `basevalue` decimal(19,2) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `componentvalue` decimal(19,2) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `valuationref` varchar(255) DEFAULT NULL,
  `weighting` decimal(19,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `slctinitem_cmpnentidentifier` (`componentidentifier`),
  CONSTRAINT `slctinitem_cmpnentidentifier` FOREIGN KEY (`componentidentifier`) REFERENCES `componentidentifier` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `selectionitem`
--

/*!40000 ALTER TABLE `selectionitem` DISABLE KEYS */;
/*!40000 ALTER TABLE `selectionitem` ENABLE KEYS */;


--
-- Definition of table `seniority`
--

DROP TABLE IF EXISTS `seniority`;
CREATE TABLE `seniority` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `seniority`
--

/*!40000 ALTER TABLE `seniority` DISABLE KEYS */;
/*!40000 ALTER TABLE `seniority` ENABLE KEYS */;


--
-- Definition of table `session`
--

DROP TABLE IF EXISTS `session`;
CREATE TABLE `session` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sessionstatustype` int(11) DEFAULT NULL,
  `dayofweek` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `session` decimal(19,2) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `session_sessionstatustype` (`sessionstatustype`),
  KEY `source_session` (`source`),
  KEY `session_instrumentdomain` (`instrumentdomain`),
  KEY `session_dayofweek` (`dayofweek`),
  CONSTRAINT `session_dayofweek` FOREIGN KEY (`dayofweek`) REFERENCES `dayofweek` (`id`),
  CONSTRAINT `session_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `session_sessionstatustype` FOREIGN KEY (`sessionstatustype`) REFERENCES `sessionstatustype` (`id`),
  CONSTRAINT `source_session` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `session`
--

/*!40000 ALTER TABLE `session` DISABLE KEYS */;
/*!40000 ALTER TABLE `session` ENABLE KEYS */;


--
-- Definition of table `sessionstatustype`
--

DROP TABLE IF EXISTS `sessionstatustype`;
CREATE TABLE `sessionstatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sessionstatustype`
--

/*!40000 ALTER TABLE `sessionstatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `sessionstatustype` ENABLE KEYS */;


--
-- Definition of table `settlement`
--

DROP TABLE IF EXISTS `settlement`;
CREATE TABLE `settlement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calcuationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `settlementtype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `settlement` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_settlement` (`source`),
  KEY `settlement_valuationref` (`valuationref`),
  KEY `settlement_valuationtype` (`valuationtype`),
  KEY `settlement_currency` (`currency`),
  KEY `sttlmnt_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `settlement_size` (`size`),
  KEY `settlement_settlementtype` (`settlementtype`),
  KEY `settlement_quantitytype` (`quantitytype`),
  KEY `settlement_marketcenter` (`marketcenter`),
  KEY `settlement_calculationtype` (`calcuationtype`),
  KEY `settlement_indicatorstype` (`indicatorstype`),
  KEY `settlement_crossrate` (`crossrate`),
  CONSTRAINT `settlement_calculationtype` FOREIGN KEY (`calcuationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `settlement_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `settlement_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `settlement_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `settlement_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `settlement_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `settlement_settlementtype` FOREIGN KEY (`settlementtype`) REFERENCES `settlementtype` (`id`),
  CONSTRAINT `settlement_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `settlement_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `settlement_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_settlement` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `sttlmnt_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `settlement`
--

/*!40000 ALTER TABLE `settlement` DISABLE KEYS */;
/*!40000 ALTER TABLE `settlement` ENABLE KEYS */;


--
-- Definition of table `settlementtype`
--

DROP TABLE IF EXISTS `settlementtype`;
CREATE TABLE `settlementtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `settlementtype`
--

/*!40000 ALTER TABLE `settlementtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `settlementtype` ENABLE KEYS */;


--
-- Definition of table `sharescontrolled`
--

DROP TABLE IF EXISTS `sharescontrolled`;
CREATE TABLE `sharescontrolled` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `underlying` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `comment` longtext,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `underlyingcount` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_sharescontrolled` (`source`),
  KEY `shrescntrlled_instrmentdmain` (`instrumentdomain`),
  KEY `sharescontrolled_underlying` (`underlying`),
  CONSTRAINT `sharescontrolled_underlying` FOREIGN KEY (`underlying`) REFERENCES `underlying` (`id`),
  CONSTRAINT `shrescntrlled_instrmentdmain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `source_sharescontrolled` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sharescontrolled`
--

/*!40000 ALTER TABLE `sharescontrolled` DISABLE KEYS */;
/*!40000 ALTER TABLE `sharescontrolled` ENABLE KEYS */;


--
-- Definition of table `sinkable`
--

DROP TABLE IF EXISTS `sinkable`;
CREATE TABLE `sinkable` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sinkablecomputationtype` int(11) DEFAULT NULL,
  `sinkabletype` int(11) DEFAULT NULL,
  `dayruletype` int(11) DEFAULT NULL,
  `schedule` int(11) DEFAULT NULL,
  `firstamount` decimal(19,2) DEFAULT NULL,
  `firstdate` varchar(255) DEFAULT NULL,
  `firsteventvalue` varchar(255) DEFAULT NULL,
  `lastamount` decimal(19,2) DEFAULT NULL,
  `lastdate` date DEFAULT NULL,
  `lasteventvalue` varchar(255) DEFAULT NULL,
  `nextamount` decimal(19,2) DEFAULT NULL,
  `nextdate` decimal(19,2) DEFAULT NULL,
  `nexteventvalue` varchar(255) DEFAULT NULL,
  `nextperiodend` date DEFAULT NULL,
  `nextperiodstart` date DEFAULT NULL,
  `notificationduration` varchar(255) DEFAULT NULL,
  `notificationend` date DEFAULT NULL,
  `notificationstart` date DEFAULT NULL,
  `penultimateamount` decimal(19,2) DEFAULT NULL,
  `penultimatedate` date DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `recurrable` bit(1) DEFAULT NULL,
  `sinkable` bit(1) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_sinkable` (`source`),
  KEY `sinkable_dayruletype` (`dayruletype`),
  KEY `sinkable_sinkabletype` (`sinkabletype`),
  KEY `sinkble_sinkablecmptatintype` (`sinkablecomputationtype`),
  KEY `sinkable_schedule` (`schedule`),
  KEY `sinkable_debtissuedata` (`id`),
  CONSTRAINT `sinkable_dayruletype` FOREIGN KEY (`dayruletype`) REFERENCES `dayruletype` (`id`),
  CONSTRAINT `sinkable_debtissuedata` FOREIGN KEY (`id`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `sinkable_schedule` FOREIGN KEY (`schedule`) REFERENCES `schedule` (`id`),
  CONSTRAINT `sinkable_sinkabletype` FOREIGN KEY (`sinkabletype`) REFERENCES `sinkabletype` (`id`),
  CONSTRAINT `sinkble_sinkablecmptatintype` FOREIGN KEY (`sinkablecomputationtype`) REFERENCES `sinkablecomputationtype` (`id`),
  CONSTRAINT `source_sinkable` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sinkable`
--

/*!40000 ALTER TABLE `sinkable` DISABLE KEYS */;
/*!40000 ALTER TABLE `sinkable` ENABLE KEYS */;


--
-- Definition of table `sinkablecomputationtype`
--

DROP TABLE IF EXISTS `sinkablecomputationtype`;
CREATE TABLE `sinkablecomputationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sinkablecomputationtype`
--

/*!40000 ALTER TABLE `sinkablecomputationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `sinkablecomputationtype` ENABLE KEYS */;


--
-- Definition of table `sinkabletype`
--

DROP TABLE IF EXISTS `sinkabletype`;
CREATE TABLE `sinkabletype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sinkabletype`
--

/*!40000 ALTER TABLE `sinkabletype` DISABLE KEYS */;
/*!40000 ALTER TABLE `sinkabletype` ENABLE KEYS */;


--
-- Definition of table `sinkcomputationamount`
--

DROP TABLE IF EXISTS `sinkcomputationamount`;
CREATE TABLE `sinkcomputationamount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `sinkcomputationamount` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_sinkcomputationamount` (`source`),
  KEY `sinkcmptatinamnt_valationref` (`valuationref`),
  KEY `sinkcmpttinamnt_clclatintype` (`calculationtype`),
  KEY `sinkcmptatinamnt_valatintype` (`valuationtype`),
  KEY `sinkcomptationamont_currency` (`currency`),
  KEY `snkcmpttnmnt_qnttydscrptntyp` (`quantitydescriptiontype`),
  KEY `sinkcomputationamount_size` (`size`),
  KEY `sinkcmptatinamnt_qantitytype` (`quantitytype`),
  KEY `sinkcmpttinamnt_marketcenter` (`marketcenter`),
  KEY `sinkcmpttinamnt_indictrstype` (`indicatorstype`),
  KEY `sinkcmptationamont_crossrate` (`crossrate`),
  CONSTRAINT `sinkcmptatinamnt_qantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `sinkcmptatinamnt_valatintype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `sinkcmptatinamnt_valationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `sinkcmptationamont_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `sinkcmpttinamnt_clclatintype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `sinkcmpttinamnt_indictrstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `sinkcmpttinamnt_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `sinkcomptationamont_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `sinkcomputationamount_size` FOREIGN KEY (`size`) REFERENCES `size` (`id`),
  CONSTRAINT `snkcmpttnmnt_qnttydscrptntyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `source_sinkcomputationamount` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sinkcomputationamount`
--

/*!40000 ALTER TABLE `sinkcomputationamount` DISABLE KEYS */;
/*!40000 ALTER TABLE `sinkcomputationamount` ENABLE KEYS */;


--
-- Definition of table `size`
--

DROP TABLE IF EXISTS `size`;
CREATE TABLE `size` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `unitsize` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_size` (`source`),
  KEY `size_valuationref` (`valuationref`),
  KEY `size_unittype` (`unittype`),
  KEY `size_calculationtype` (`calculationtype`),
  KEY `size_valuationtype` (`valuationtype`),
  KEY `size_quantitydescriptiontype` (`quantitydescriptiontype`),
  KEY `size_quantitytype` (`quantitytype`),
  KEY `size_marketcenter` (`marketcenter`),
  KEY `size_indicatorstype` (`indicatorstype`),
  CONSTRAINT `size_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `size_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `size_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `size_quantitydescriptiontype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `size_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `size_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `size_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `size_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_size` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `size`
--

/*!40000 ALTER TABLE `size` DISABLE KEYS */;
/*!40000 ALTER TABLE `size` ENABLE KEYS */;


--
-- Definition of table `snap`
--

DROP TABLE IF EXISTS `snap`;
CREATE TABLE `snap` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `snaptype` int(11) NOT NULL,
  `datetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `snap_snaptype` (`snaptype`),
  KEY `source_snap` (`source`),
  CONSTRAINT `snap_snaptype` FOREIGN KEY (`snaptype`) REFERENCES `snaptype` (`id`),
  CONSTRAINT `source_snap` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `snap`
--

/*!40000 ALTER TABLE `snap` DISABLE KEYS */;
/*!40000 ALTER TABLE `snap` ENABLE KEYS */;


--
-- Definition of table `snaptype`
--

DROP TABLE IF EXISTS `snaptype`;
CREATE TABLE `snaptype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `snaptype`
--

/*!40000 ALTER TABLE `snaptype` DISABLE KEYS */;
/*!40000 ALTER TABLE `snaptype` ENABLE KEYS */;


--
-- Definition of table `softcall`
--

DROP TABLE IF EXISTS `softcall`;
CREATE TABLE `softcall` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumentidentifier` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `crossrate` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `softcall` decimal(19,2) DEFAULT NULL,
  `debtissuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_softcall` (`source`),
  KEY `softcall_valuationref` (`valuationref`),
  KEY `softcall_calculationtype` (`calculationtype`),
  KEY `softcall_valuationtype` (`valuationtype`),
  KEY `softcall_currency` (`currency`),
  KEY `sftcll_qantitydescriptintype` (`quantitydescriptiontype`),
  KEY `debtissuedata_softcall` (`debtissuedata`),
  KEY `softcall_quantitytype` (`quantitytype`),
  KEY `softcall_marketcenter` (`marketcenter`),
  KEY `softcall_indicatorstype` (`indicatorstype`),
  KEY `softcall_instrmentidentifier` (`instrumentidentifier`),
  KEY `softcall_crossrate` (`crossrate`),
  CONSTRAINT `debtissuedata_softcall` FOREIGN KEY (`debtissuedata`) REFERENCES `debtissuedata` (`id`),
  CONSTRAINT `sftcll_qantitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `softcall_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `softcall_crossrate` FOREIGN KEY (`crossrate`) REFERENCES `crossrate` (`id`),
  CONSTRAINT `softcall_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `softcall_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `softcall_instrmentidentifier` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `softcall_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `softcall_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `softcall_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `softcall_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `source_softcall` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `softcall`
--

/*!40000 ALTER TABLE `softcall` DISABLE KEYS */;
/*!40000 ALTER TABLE `softcall` ENABLE KEYS */;


--
-- Definition of table `source`
--

DROP TABLE IF EXISTS `source`;
CREATE TABLE `source` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(255) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source`
--

/*!40000 ALTER TABLE `source` DISABLE KEYS */;
/*!40000 ALTER TABLE `source` ENABLE KEYS */;


--
-- Definition of table `source_contributorprice`
--

DROP TABLE IF EXISTS `source_contributorprice`;
CREATE TABLE `source_contributorprice` (
  `source` int(11) NOT NULL,
  `contributorprice_type` varchar(255) NOT NULL,
  `contributorprice_id` bigint(20) NOT NULL,
  KEY `source_contributorprice` (`source`),
  CONSTRAINT `source_contributorprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_contributorprice`
--

/*!40000 ALTER TABLE `source_contributorprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_contributorprice` ENABLE KEYS */;


--
-- Definition of table `source_equityprice`
--

DROP TABLE IF EXISTS `source_equityprice`;
CREATE TABLE `source_equityprice` (
  `source` int(11) NOT NULL,
  `equityprice_type` varchar(255) NOT NULL,
  `equityprice_id` bigint(20) NOT NULL,
  KEY `source_equityprice` (`source`),
  CONSTRAINT `source_equityprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_equityprice`
--

/*!40000 ALTER TABLE `source_equityprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_equityprice` ENABLE KEYS */;


--
-- Definition of table `source_futureprice`
--

DROP TABLE IF EXISTS `source_futureprice`;
CREATE TABLE `source_futureprice` (
  `source` int(11) NOT NULL,
  `futureprice_type` varchar(255) NOT NULL,
  `futureprice_id` bigint(20) NOT NULL,
  KEY `source_futureprice` (`source`),
  CONSTRAINT `source_futureprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_futureprice`
--

/*!40000 ALTER TABLE `source_futureprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_futureprice` ENABLE KEYS */;


--
-- Definition of table `source_fxprice`
--

DROP TABLE IF EXISTS `source_fxprice`;
CREATE TABLE `source_fxprice` (
  `source` int(11) NOT NULL,
  `fxprice_type` varchar(255) NOT NULL,
  `fxprice_id` bigint(20) NOT NULL,
  KEY `source_fxprice` (`source`),
  CONSTRAINT `source_fxprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_fxprice`
--

/*!40000 ALTER TABLE `source_fxprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_fxprice` ENABLE KEYS */;


--
-- Definition of table `source_indiceprice`
--

DROP TABLE IF EXISTS `source_indiceprice`;
CREATE TABLE `source_indiceprice` (
  `source` int(11) NOT NULL,
  `indiceprice_type` varchar(255) NOT NULL,
  `indiceprice_id` bigint(20) NOT NULL,
  KEY `source_indiceprice` (`source`),
  CONSTRAINT `source_indiceprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_indiceprice`
--

/*!40000 ALTER TABLE `source_indiceprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_indiceprice` ENABLE KEYS */;


--
-- Definition of table `source_moneymarketfundprice`
--

DROP TABLE IF EXISTS `source_moneymarketfundprice`;
CREATE TABLE `source_moneymarketfundprice` (
  `source` int(11) NOT NULL,
  `moneymarketfundprice_type` varchar(255) NOT NULL,
  `moneymarketfundprice_id` bigint(20) NOT NULL,
  KEY `source_moneymarketfundprice` (`source`),
  CONSTRAINT `source_moneymarketfundprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_moneymarketfundprice`
--

/*!40000 ALTER TABLE `source_moneymarketfundprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_moneymarketfundprice` ENABLE KEYS */;


--
-- Definition of table `source_mutualfundprice`
--

DROP TABLE IF EXISTS `source_mutualfundprice`;
CREATE TABLE `source_mutualfundprice` (
  `source` int(11) NOT NULL,
  `mutualfundprice_type` varchar(255) NOT NULL,
  `mutualfundprice_id` bigint(20) NOT NULL,
  KEY `source_mutualfundprice` (`source`),
  CONSTRAINT `source_mutualfundprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_mutualfundprice`
--

/*!40000 ALTER TABLE `source_mutualfundprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_mutualfundprice` ENABLE KEYS */;


--
-- Definition of table `source_optiononfutureprice`
--

DROP TABLE IF EXISTS `source_optiononfutureprice`;
CREATE TABLE `source_optiononfutureprice` (
  `source` int(11) NOT NULL,
  `optiononfutureprice_type` varchar(255) NOT NULL,
  `optiononfutureprice_id` bigint(20) NOT NULL,
  KEY `source_optiononfutureprice` (`source`),
  CONSTRAINT `source_optiononfutureprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_optiononfutureprice`
--

/*!40000 ALTER TABLE `source_optiononfutureprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_optiononfutureprice` ENABLE KEYS */;


--
-- Definition of table `source_optionprice`
--

DROP TABLE IF EXISTS `source_optionprice`;
CREATE TABLE `source_optionprice` (
  `source` int(11) NOT NULL,
  `optionprice_type` varchar(255) NOT NULL,
  `optionprice_id` bigint(20) NOT NULL,
  KEY `source_optionprice` (`source`),
  CONSTRAINT `source_optionprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_optionprice`
--

/*!40000 ALTER TABLE `source_optionprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_optionprice` ENABLE KEYS */;


--
-- Definition of table `source_valuationprice`
--

DROP TABLE IF EXISTS `source_valuationprice`;
CREATE TABLE `source_valuationprice` (
  `source` int(11) NOT NULL,
  `valuationprice_type` varchar(255) NOT NULL,
  `valuationprice_id` bigint(20) NOT NULL,
  KEY `source_valuationprice` (`source`),
  CONSTRAINT `source_valuationprice` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `source_valuationprice`
--

/*!40000 ALTER TABLE `source_valuationprice` DISABLE KEYS */;
/*!40000 ALTER TABLE `source_valuationprice` ENABLE KEYS */;


--
-- Definition of table `specialredemption`
--

DROP TABLE IF EXISTS `specialredemption`;
CREATE TABLE `specialredemption` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `diaryschedule` int(11) DEFAULT NULL,
  `lang` varchar(255) DEFAULT NULL,
  `specialredemption` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_specialredemption` (`source`),
  KEY `specilredemptin_diaryschedle` (`diaryschedule`),
  CONSTRAINT `source_specialredemption` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `specilredemptin_diaryschedle` FOREIGN KEY (`diaryschedule`) REFERENCES `schedule` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `specialredemption`
--

/*!40000 ALTER TABLE `specialredemption` DISABLE KEYS */;
/*!40000 ALTER TABLE `specialredemption` ENABLE KEYS */;


--
-- Definition of table `sponsor`
--

DROP TABLE IF EXISTS `sponsor`;
CREATE TABLE `sponsor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entitytype` int(11) DEFAULT NULL,
  `industryidentifier` int(11) DEFAULT NULL,
  `location` int(11) DEFAULT NULL,
  `partystatustype` int(11) DEFAULT NULL,
  `role` int(11) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `scheme` varchar(255) NOT NULL,
  `start` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_sponsor` (`source`),
  KEY `sponsor_location` (`location`),
  KEY `sponsor_industryidentifier` (`industryidentifier`),
  KEY `sponsor_partystatustype` (`partystatustype`),
  KEY `sponsor_role` (`role`),
  KEY `sponsor_entitytype` (`entitytype`),
  CONSTRAINT `source_sponsor` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `sponsor_entitytype` FOREIGN KEY (`entitytype`) REFERENCES `entitytype` (`id`),
  CONSTRAINT `sponsor_industryidentifier` FOREIGN KEY (`industryidentifier`) REFERENCES `industryidentifier` (`id`),
  CONSTRAINT `sponsor_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `sponsor_partystatustype` FOREIGN KEY (`partystatustype`) REFERENCES `partystatustype` (`id`),
  CONSTRAINT `sponsor_role` FOREIGN KEY (`role`) REFERENCES `role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sponsor`
--

/*!40000 ALTER TABLE `sponsor` DISABLE KEYS */;
/*!40000 ALTER TABLE `sponsor` ENABLE KEYS */;


--
-- Definition of table `spread`
--

DROP TABLE IF EXISTS `spread`;
CREATE TABLE `spread` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `high` decimal(19,2) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `open` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `foreignexchangedomain_spread` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `spread_marketidentifier` (`marketidentifier`),
  KEY `source_spread` (`source`),
  KEY `spread_instrumentdomain` (`instrumentdomain`),
  KEY `foreignexchangedomain_spread` (`foreignexchangedomain_spread`),
  CONSTRAINT `source_spread` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `spread_ibfk_1` FOREIGN KEY (`foreignexchangedomain_spread`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `spread_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `spread_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `spread`
--

/*!40000 ALTER TABLE `spread` DISABLE KEYS */;
/*!40000 ALTER TABLE `spread` ENABLE KEYS */;


--
-- Definition of table `statuschangesubclass`
--

DROP TABLE IF EXISTS `statuschangesubclass`;
CREATE TABLE `statuschangesubclass` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meetingtype` int(11) DEFAULT NULL,
  `caelifecycletype` int(11) DEFAULT NULL,
  `caestatustype` int(11) DEFAULT NULL,
  `caetype` int(11) NOT NULL,
  `entityidentifier` int(11) DEFAULT NULL,
  `indicatatorstype` int(11) DEFAULT NULL,
  `issuerref` int(11) DEFAULT NULL,
  `announcementdate` date DEFAULT NULL,
  `caedate` date DEFAULT NULL,
  `caeidentifier` varchar(255) DEFAULT NULL,
  `comment` longtext,
  `documenturl` varchar(255) DEFAULT NULL,
  `effectivedate` date DEFAULT NULL,
  `eventdescription` varchar(255) DEFAULT NULL,
  `meetingdate` date DEFAULT NULL,
  `recorddate` date DEFAULT NULL,
  `caedomain_statschangesbclass` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_statuschangesubclass` (`source`),
  KEY `sttschngsbclss_ntityidntifir` (`entityidentifier`),
  KEY `sttschngesbclss_indictrstype` (`indicatatorstype`),
  KEY `statuschangesubclass_caetype` (`caetype`),
  KEY `sttschngesbclss_caestatstype` (`caestatustype`),
  KEY `sttschngsbclss_clifcycletype` (`caelifecycletype`),
  KEY `sttschngesbclass_meetingtype` (`meetingtype`),
  KEY `caedomain_statschangesbclass` (`caedomain_statschangesbclass`),
  KEY `statschangesbclass_issuerref` (`issuerref`),
  CONSTRAINT `caedomain_statschangesbclass` FOREIGN KEY (`caedomain_statschangesbclass`) REFERENCES `caedomain` (`id`),
  CONSTRAINT `source_statuschangesubclass` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `statschangesbclass_issuerref` FOREIGN KEY (`issuerref`) REFERENCES `issuerref` (`id`),
  CONSTRAINT `statuschangesubclass_caetype` FOREIGN KEY (`caetype`) REFERENCES `caetype` (`id`),
  CONSTRAINT `sttschngesbclass_meetingtype` FOREIGN KEY (`meetingtype`) REFERENCES `meetingtype` (`id`),
  CONSTRAINT `sttschngesbclss_caestatstype` FOREIGN KEY (`caestatustype`) REFERENCES `caestatustype` (`id`),
  CONSTRAINT `sttschngesbclss_indictrstype` FOREIGN KEY (`indicatatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `sttschngsbclss_clifcycletype` FOREIGN KEY (`caelifecycletype`) REFERENCES `caelifecycletype` (`id`),
  CONSTRAINT `sttschngsbclss_ntityidntifir` FOREIGN KEY (`entityidentifier`) REFERENCES `entityidentifier` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `statuschangesubclass`
--

/*!40000 ALTER TABLE `statuschangesubclass` DISABLE KEYS */;
/*!40000 ALTER TABLE `statuschangesubclass` ENABLE KEYS */;


--
-- Definition of table `statuschangesubclassagent`
--

DROP TABLE IF EXISTS `statuschangesubclassagent`;
CREATE TABLE `statuschangesubclassagent` (
  `agent` int(11) NOT NULL,
  `statuschangesubclass` int(11) NOT NULL,
  KEY `sttschngsbcls_sttschngsbcls` (`agent`),
  KEY `agent_gentstatschangesbclass` (`statuschangesubclass`),
  CONSTRAINT `agent_gentstatschangesbclass` FOREIGN KEY (`statuschangesubclass`) REFERENCES `statuschangesubclass` (`id`),
  CONSTRAINT `sttschngsbcls_sttschngsbcls` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `statuschangesubclassagent`
--

/*!40000 ALTER TABLE `statuschangesubclassagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `statuschangesubclassagent` ENABLE KEYS */;


--
-- Definition of table `striptype`
--

DROP TABLE IF EXISTS `striptype`;
CREATE TABLE `striptype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `striptype`
--

/*!40000 ALTER TABLE `striptype` DISABLE KEYS */;
/*!40000 ALTER TABLE `striptype` ENABLE KEYS */;


--
-- Definition of table `targetmarkettype`
--

DROP TABLE IF EXISTS `targetmarkettype`;
CREATE TABLE `targetmarkettype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `targetmarkettype`
--

/*!40000 ALTER TABLE `targetmarkettype` DISABLE KEYS */;
/*!40000 ALTER TABLE `targetmarkettype` ENABLE KEYS */;


--
-- Definition of table `targetmarkettypeissuedata`
--

DROP TABLE IF EXISTS `targetmarkettypeissuedata`;
CREATE TABLE `targetmarkettypeissuedata` (
  `issuedata` int(11) NOT NULL,
  `targetmarkettype` int(11) NOT NULL,
  KEY `issedt_issedttrgetmarkettype` (`targetmarkettype`),
  KEY `trgtmrkttyp_trgtmrkttypissdt` (`issuedata`),
  CONSTRAINT `issedt_issedttrgetmarkettype` FOREIGN KEY (`targetmarkettype`) REFERENCES `targetmarkettype` (`id`),
  CONSTRAINT `trgtmrkttyp_trgtmrkttypissdt` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `targetmarkettypeissuedata`
--

/*!40000 ALTER TABLE `targetmarkettypeissuedata` DISABLE KEYS */;
/*!40000 ALTER TABLE `targetmarkettypeissuedata` ENABLE KEYS */;


--
-- Definition of table `taxtype`
--

DROP TABLE IF EXISTS `taxtype`;
CREATE TABLE `taxtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `taxtype`
--

/*!40000 ALTER TABLE `taxtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `taxtype` ENABLE KEYS */;


--
-- Definition of table `telephonetype`
--

DROP TABLE IF EXISTS `telephonetype`;
CREATE TABLE `telephonetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `telephonetype`
--

/*!40000 ALTER TABLE `telephonetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `telephonetype` ENABLE KEYS */;


--
-- Definition of table `tickdirection`
--

DROP TABLE IF EXISTS `tickdirection`;
CREATE TABLE `tickdirection` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_tickdirection` (`source`),
  CONSTRAINT `source_tickdirection` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tickdirection`
--

/*!40000 ALTER TABLE `tickdirection` DISABLE KEYS */;
/*!40000 ALTER TABLE `tickdirection` ENABLE KEYS */;


--
-- Definition of table `timeseries`
--

DROP TABLE IF EXISTS `timeseries`;
CREATE TABLE `timeseries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `event` int(11) DEFAULT NULL,
  `timeseriestype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `timeseries_timeseriestype` (`timeseriestype`),
  KEY `source_timeseries` (`source`),
  KEY `timeseries_event` (`event`),
  CONSTRAINT `source_timeseries` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `timeseries_event` FOREIGN KEY (`event`) REFERENCES `event` (`id`),
  CONSTRAINT `timeseries_timeseriestype` FOREIGN KEY (`timeseriestype`) REFERENCES `timeseriestype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `timeseries`
--

/*!40000 ALTER TABLE `timeseries` DISABLE KEYS */;
/*!40000 ALTER TABLE `timeseries` ENABLE KEYS */;


--
-- Definition of table `timeseriestype`
--

DROP TABLE IF EXISTS `timeseriestype`;
CREATE TABLE `timeseriestype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `timeseriestype`
--

/*!40000 ALTER TABLE `timeseriestype` DISABLE KEYS */;
/*!40000 ALTER TABLE `timeseriestype` ENABLE KEYS */;


--
-- Definition of table `trade`
--

DROP TABLE IF EXISTS `trade`;
CREATE TABLE `trade` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `tickdirection` int(11) DEFAULT NULL,
  `tradinghaltedtype` int(11) DEFAULT NULL,
  `tradingrestrictionstype` int(11) DEFAULT NULL,
  `type` int(11) DEFAULT NULL,
  `volume` int(11) DEFAULT NULL,
  `settlementtype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `high` decimal(19,2) DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `low` decimal(19,2) DEFAULT NULL,
  `open` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `settlement` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `turnover` decimal(19,2) DEFAULT NULL,
  `vwap` decimal(19,2) DEFAULT NULL,
  `vwop` decimal(19,2) DEFAULT NULL,
  `yield` decimal(19,2) DEFAULT NULL,
  `foreignexchangedomain_trade` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `trade_marketidentifier` (`marketidentifier`),
  KEY `trade_volume` (`volume`),
  KEY `source_trade` (`source`),
  KEY `trade_instrumentdomain` (`instrumentdomain`),
  KEY `trade_tradingstatustype` (`type`),
  KEY `trade_tradingrestrictinstype` (`tradingrestrictionstype`),
  KEY `trade_tickdirection` (`tickdirection`),
  KEY `foreignexchangedomain_trade` (`foreignexchangedomain_trade`),
  KEY `trade_settlementtype` (`settlementtype`),
  KEY `trade_tradinghaltedtype` (`tradinghaltedtype`),
  CONSTRAINT `source_trade` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `trade_ibfk_1` FOREIGN KEY (`foreignexchangedomain_trade`) REFERENCES `foreignexchangedomain` (`id`),
  CONSTRAINT `trade_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `trade_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `trade_settlementtype` FOREIGN KEY (`settlementtype`) REFERENCES `settlementtype` (`id`),
  CONSTRAINT `trade_tickdirection` FOREIGN KEY (`tickdirection`) REFERENCES `tickdirection` (`id`),
  CONSTRAINT `trade_tradinghaltedtype` FOREIGN KEY (`tradinghaltedtype`) REFERENCES `tradinghaltedtype` (`id`),
  CONSTRAINT `trade_tradingrestrictinstype` FOREIGN KEY (`tradingrestrictionstype`) REFERENCES `tradingrestrictionstype` (`id`),
  CONSTRAINT `trade_tradingstatustype` FOREIGN KEY (`type`) REFERENCES `tradingstatustype` (`id`),
  CONSTRAINT `trade_volume` FOREIGN KEY (`volume`) REFERENCES `volume` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `trade`
--

/*!40000 ALTER TABLE `trade` DISABLE KEYS */;
/*!40000 ALTER TABLE `trade` ENABLE KEYS */;


--
-- Definition of table `tradinghaltedtype`
--

DROP TABLE IF EXISTS `tradinghaltedtype`;
CREATE TABLE `tradinghaltedtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tradinghaltedtype`
--

/*!40000 ALTER TABLE `tradinghaltedtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `tradinghaltedtype` ENABLE KEYS */;


--
-- Definition of table `tradingrestrictionstype`
--

DROP TABLE IF EXISTS `tradingrestrictionstype`;
CREATE TABLE `tradingrestrictionstype` (
  `id` int(11) NOT NULL,
  `inclusiontype` int(11) DEFAULT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `trdngrstrctinstyp_inclsintyp` (`inclusiontype`),
  CONSTRAINT `trdngrstrctinstyp_inclsintyp` FOREIGN KEY (`inclusiontype`) REFERENCES `inclusiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tradingrestrictionstype`
--

/*!40000 ALTER TABLE `tradingrestrictionstype` DISABLE KEYS */;
/*!40000 ALTER TABLE `tradingrestrictionstype` ENABLE KEYS */;


--
-- Definition of table `tradingstatustype`
--

DROP TABLE IF EXISTS `tradingstatustype`;
CREATE TABLE `tradingstatustype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tradingstatustype`
--

/*!40000 ALTER TABLE `tradingstatustype` DISABLE KEYS */;
/*!40000 ALTER TABLE `tradingstatustype` ENABLE KEYS */;


--
-- Definition of table `tranche`
--

DROP TABLE IF EXISTS `tranche`;
CREATE TABLE `tranche` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nameref` varchar(255) DEFAULT NULL,
  `rank` int(11) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_tranche` (`source`),
  CONSTRAINT `source_tranche` FOREIGN KEY (`source`) REFERENCES `source` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tranche`
--

/*!40000 ALTER TABLE `tranche` DISABLE KEYS */;
/*!40000 ALTER TABLE `tranche` ENABLE KEYS */;


--
-- Definition of table `transfersize`
--

DROP TABLE IF EXISTS `transfersize`;
CREATE TABLE `transfersize` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `transfersize` decimal(19,2) DEFAULT NULL,
  `unitsize` decimal(19,2) DEFAULT NULL,
  `issuedata_transfersize` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_transfersize` (`source`),
  KEY `transfersize_valuationref` (`valuationref`),
  KEY `transfersize_unittype` (`unittype`),
  KEY `transfersize_calculationtype` (`calculationtype`),
  KEY `transfersize_valuationtype` (`valuationtype`),
  KEY `trnsfrsiz_qntitydscriptintyp` (`quantitydescriptiontype`),
  KEY `transfersize_quantitytype` (`quantitytype`),
  KEY `transfersize_marketcenter` (`marketcenter`),
  KEY `transfersize_indicatorstype` (`indicatorstype`),
  KEY `issuedata_transfersize` (`issuedata_transfersize`),
  CONSTRAINT `issuedata_transfersize` FOREIGN KEY (`issuedata_transfersize`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `source_transfersize` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `transfersize_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `transfersize_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `transfersize_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `transfersize_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `transfersize_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `transfersize_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `transfersize_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `trnsfrsiz_qntitydscriptintyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `transfersize`
--

/*!40000 ALTER TABLE `transfersize` DISABLE KEYS */;
/*!40000 ALTER TABLE `transfersize` ENABLE KEYS */;


--
-- Definition of table `underlying`
--

DROP TABLE IF EXISTS `underlying`;
CREATE TABLE `underlying` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instrumentidentifier` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `basevalue` decimal(19,2) DEFAULT NULL,
  `componentvalue` decimal(19,2) DEFAULT NULL,
  `multiplier` decimal(19,2) DEFAULT NULL,
  `valuationref` varchar(255) DEFAULT NULL,
  `weighting` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_underlying` (`source`),
  KEY `underlying_instrumentdomain` (`instrumentdomain`),
  KEY `underlying_unittype` (`unittype`),
  KEY `underlying_calculationtype` (`calculationtype`),
  KEY `underlying_valuationtype` (`valuationtype`),
  KEY `undrlying_qntitydscriptintyp` (`quantitydescriptiontype`),
  KEY `underlying_marketcenter` (`marketcenter`),
  KEY `underlying_quantitytype` (`quantitytype`),
  KEY `underlying_indicatorstype` (`indicatorstype`),
  KEY `undrlying_instrmntidentifier` (`instrumentidentifier`),
  CONSTRAINT `source_underlying` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `underlying_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `underlying_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `underlying_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `underlying_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `underlying_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `underlying_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `underlying_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `undrlying_instrmntidentifier` FOREIGN KEY (`instrumentidentifier`) REFERENCES `instrumentidentifier` (`id`),
  CONSTRAINT `undrlying_qntitydscriptintyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `underlying`
--

/*!40000 ALTER TABLE `underlying` DISABLE KEYS */;
/*!40000 ALTER TABLE `underlying` ENABLE KEYS */;


--
-- Definition of table `underlyingcount`
--

DROP TABLE IF EXISTS `underlyingcount`;
CREATE TABLE `underlyingcount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `instrumentDomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `rank` decimal(19,2) DEFAULT NULL,
  `underlyingcount` decimal(19,2) DEFAULT NULL,
  `unitsize` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_underlyingcount` (`source`),
  KEY `underlyingcount_valuationref` (`valuationref`),
  KEY `underlyingcnt_instrmentdmain` (`instrumentDomain`),
  KEY `underlyingcount_unittype` (`unittype`),
  KEY `underlyingcnt_calclationtype` (`calculationtype`),
  KEY `underlyingcont_valuationtype` (`valuationtype`),
  KEY `undrlyngcnt_qnttydscrptintyp` (`quantitydescriptiontype`),
  KEY `underlyingcount_quantitytype` (`quantitytype`),
  KEY `underlyingcount_marketcenter` (`marketcenter`),
  KEY `underlyingcnt_indicatorstype` (`indicatorstype`),
  CONSTRAINT `source_underlyingcount` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `underlyingcnt_calclationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `underlyingcnt_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `underlyingcnt_instrmentdmain` FOREIGN KEY (`instrumentDomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `underlyingcont_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `underlyingcount_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `underlyingcount_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `underlyingcount_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `underlyingcount_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `undrlyngcnt_qnttydscrptintyp` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `underlyingcount`
--

/*!40000 ALTER TABLE `underlyingcount` DISABLE KEYS */;
/*!40000 ALTER TABLE `underlyingcount` ENABLE KEYS */;


--
-- Definition of table `underwriting`
--

DROP TABLE IF EXISTS `underwriting`;
CREATE TABLE `underwriting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `location` int(11) DEFAULT NULL,
  `underwritingfeestype` int(11) DEFAULT NULL,
  `currency` varchar(255) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `underwritingfees` decimal(19,2) DEFAULT NULL,
  `issuedata` int(11) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_underwriting` (`source`),
  KEY `underwriting_location` (`location`),
  KEY `issuedata_underwriting` (`issuedata`),
  KEY `undrwriting_ndrwritingfstype` (`underwritingfeestype`),
  CONSTRAINT `issuedata_underwriting` FOREIGN KEY (`issuedata`) REFERENCES `issuedata` (`id`),
  CONSTRAINT `source_underwriting` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `underwriting_location` FOREIGN KEY (`location`) REFERENCES `location` (`id`),
  CONSTRAINT `undrwriting_ndrwritingfstype` FOREIGN KEY (`underwritingfeestype`) REFERENCES `underwritingfeestype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `underwriting`
--

/*!40000 ALTER TABLE `underwriting` DISABLE KEYS */;
/*!40000 ALTER TABLE `underwriting` ENABLE KEYS */;


--
-- Definition of table `underwritingagent`
--

DROP TABLE IF EXISTS `underwritingagent`;
CREATE TABLE `underwritingagent` (
  `agent` int(11) NOT NULL,
  `underwriting` int(11) NOT NULL,
  KEY `agent_agentunderwriting` (`underwriting`),
  KEY `underwriting_nderwritinggent` (`agent`),
  CONSTRAINT `agent_agentunderwriting` FOREIGN KEY (`underwriting`) REFERENCES `underwriting` (`id`),
  CONSTRAINT `underwriting_nderwritinggent` FOREIGN KEY (`agent`) REFERENCES `agent` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `underwritingagent`
--

/*!40000 ALTER TABLE `underwritingagent` DISABLE KEYS */;
/*!40000 ALTER TABLE `underwritingagent` ENABLE KEYS */;


--
-- Definition of table `underwritingfeestype`
--

DROP TABLE IF EXISTS `underwritingfeestype`;
CREATE TABLE `underwritingfeestype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `underwritingfeestype`
--

/*!40000 ALTER TABLE `underwritingfeestype` DISABLE KEYS */;
/*!40000 ALTER TABLE `underwritingfeestype` ENABLE KEYS */;


--
-- Definition of table `unittype`
--

DROP TABLE IF EXISTS `unittype`;
CREATE TABLE `unittype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `unittype`
--

/*!40000 ALTER TABLE `unittype` DISABLE KEYS */;
/*!40000 ALTER TABLE `unittype` ENABLE KEYS */;


--
-- Definition of table `valuationref`
--

DROP TABLE IF EXISTS `valuationref`;
CREATE TABLE `valuationref` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `indicatorstype` int(11) DEFAULT NULL,
  `calculationtype` int(11) DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `validity` varchar(255) DEFAULT NULL,
  `valuationbase` decimal(19,2) DEFAULT NULL,
  `valuationdate` date DEFAULT NULL,
  `valuationref` varchar(255) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_valuationref` (`source`),
  KEY `valuationref_calculationtype` (`calculationtype`),
  KEY `vltinrf_qntitydescriptintype` (`quantitydescriptiontype`),
  KEY `valuationref_currency` (`currency`),
  KEY `valuationref_quantitytype` (`quantitytype`),
  KEY `valuationref_indicatorstype` (`indicatorstype`),
  CONSTRAINT `source_valuationref` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `valuationref_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `valuationref_currency` FOREIGN KEY (`currency`) REFERENCES `currency` (`id`),
  CONSTRAINT `valuationref_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `valuationref_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `vltinrf_qntitydescriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `valuationref`
--

/*!40000 ALTER TABLE `valuationref` DISABLE KEYS */;
/*!40000 ALTER TABLE `valuationref` ENABLE KEYS */;


--
-- Definition of table `valuationtype`
--

DROP TABLE IF EXISTS `valuationtype`;
CREATE TABLE `valuationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `valuationtype`
--

/*!40000 ALTER TABLE `valuationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `valuationtype` ENABLE KEYS */;


--
-- Definition of table `volatility`
--

DROP TABLE IF EXISTS `volatility`;
CREATE TABLE `volatility` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `calculationtype` int(11) DEFAULT NULL,
  `indicatorstype` int(11) DEFAULT NULL,
  `marketcenter` int(11) DEFAULT NULL,
  `quantitydescriptiontype` int(11) DEFAULT NULL,
  `quantitytype` int(11) DEFAULT NULL,
  `valuationref` int(11) DEFAULT NULL,
  `valuationtype` int(11) DEFAULT NULL,
  `volatilitycalculationtype` int(11) DEFAULT NULL,
  `volatilitytype` int(11) DEFAULT NULL,
  `instrumentdomain` int(11) DEFAULT NULL,
  `datetime` date DEFAULT NULL,
  `periodduration` varchar(255) DEFAULT NULL,
  `periodend` date DEFAULT NULL,
  `periodstart` date DEFAULT NULL,
  `previousdatetime` date DEFAULT NULL,
  `volatility` decimal(19,2) DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `source_volatility` (`source`),
  KEY `volatility_valuationref` (`valuationref`),
  KEY `volatility_instrumentdomain` (`instrumentdomain`),
  KEY `volatility_calculationtype` (`calculationtype`),
  KEY `volatility_valuationtype` (`valuationtype`),
  KEY `vltility_vltilityclcltintype` (`volatilitycalculationtype`),
  KEY `vltility_qntitydscriptintype` (`quantitydescriptiontype`),
  KEY `volatility_quantitytype` (`quantitytype`),
  KEY `volatility_marketcenter` (`marketcenter`),
  KEY `volatility_indicatorstype` (`indicatorstype`),
  KEY `volatility_volatilitytype` (`volatilitytype`),
  CONSTRAINT `source_volatility` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `vltility_qntitydscriptintype` FOREIGN KEY (`quantitydescriptiontype`) REFERENCES `quantitydescriptiontype` (`id`),
  CONSTRAINT `vltility_vltilityclcltintype` FOREIGN KEY (`volatilitycalculationtype`) REFERENCES `volatilitycalculationtype` (`id`),
  CONSTRAINT `volatility_calculationtype` FOREIGN KEY (`calculationtype`) REFERENCES `calculationtype` (`id`),
  CONSTRAINT `volatility_indicatorstype` FOREIGN KEY (`indicatorstype`) REFERENCES `indicatorstype` (`id`),
  CONSTRAINT `volatility_instrumentdomain` FOREIGN KEY (`instrumentdomain`) REFERENCES `instrumentdomain` (`id`),
  CONSTRAINT `volatility_marketcenter` FOREIGN KEY (`marketcenter`) REFERENCES `marketcenter` (`id`),
  CONSTRAINT `volatility_quantitytype` FOREIGN KEY (`quantitytype`) REFERENCES `quantitytype` (`id`),
  CONSTRAINT `volatility_valuationref` FOREIGN KEY (`valuationref`) REFERENCES `valuationref` (`id`),
  CONSTRAINT `volatility_valuationtype` FOREIGN KEY (`valuationtype`) REFERENCES `valuationtype` (`id`),
  CONSTRAINT `volatility_volatilitytype` FOREIGN KEY (`volatilitytype`) REFERENCES `volatilitytype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `volatility`
--

/*!40000 ALTER TABLE `volatility` DISABLE KEYS */;
/*!40000 ALTER TABLE `volatility` ENABLE KEYS */;


--
-- Definition of table `volatilitycalculationtype`
--

DROP TABLE IF EXISTS `volatilitycalculationtype`;
CREATE TABLE `volatilitycalculationtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `volatilitycalculationtype`
--

/*!40000 ALTER TABLE `volatilitycalculationtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `volatilitycalculationtype` ENABLE KEYS */;


--
-- Definition of table `volatilitytype`
--

DROP TABLE IF EXISTS `volatilitytype`;
CREATE TABLE `volatilitytype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `volatilitytype`
--

/*!40000 ALTER TABLE `volatilitytype` DISABLE KEYS */;
/*!40000 ALTER TABLE `volatilitytype` ENABLE KEYS */;


--
-- Definition of table `volume`
--

DROP TABLE IF EXISTS `volume`;
CREATE TABLE `volume` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `marketidentifier` int(11) DEFAULT NULL,
  `unittype` int(11) DEFAULT NULL,
  `volumetype` int(11) DEFAULT NULL,
  `settlementtype` int(11) DEFAULT NULL,
  `change` decimal(19,2) DEFAULT NULL,
  `close` decimal(19,2) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `end` date DEFAULT NULL,
  `last` decimal(19,2) DEFAULT NULL,
  `pricedate` date DEFAULT NULL,
  `settlement` decimal(19,2) DEFAULT NULL,
  `size` decimal(19,2) DEFAULT NULL,
  `start` date DEFAULT NULL,
  `source` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `volume_marketidentifier` (`marketidentifier`),
  KEY `source_volume` (`source`),
  KEY `volume_volumetype` (`volumetype`),
  KEY `volume_unittype` (`unittype`),
  KEY `volume_settlementtype` (`settlementtype`),
  CONSTRAINT `source_volume` FOREIGN KEY (`source`) REFERENCES `source` (`id`),
  CONSTRAINT `volume_marketidentifier` FOREIGN KEY (`marketidentifier`) REFERENCES `marketidentifier` (`id`),
  CONSTRAINT `volume_settlementtype` FOREIGN KEY (`settlementtype`) REFERENCES `settlementtype` (`id`),
  CONSTRAINT `volume_unittype` FOREIGN KEY (`unittype`) REFERENCES `unittype` (`id`),
  CONSTRAINT `volume_volumetype` FOREIGN KEY (`volumetype`) REFERENCES `volumetype` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `volume`
--

/*!40000 ALTER TABLE `volume` DISABLE KEYS */;
/*!40000 ALTER TABLE `volume` ENABLE KEYS */;


--
-- Definition of table `volumetype`
--

DROP TABLE IF EXISTS `volumetype`;
CREATE TABLE `volumetype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `volumetype`
--

/*!40000 ALTER TABLE `volumetype` DISABLE KEYS */;
/*!40000 ALTER TABLE `volumetype` ENABLE KEYS */;


--
-- Definition of table `votingrightstype`
--

DROP TABLE IF EXISTS `votingrightstype`;
CREATE TABLE `votingrightstype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `votingrightstype`
--

/*!40000 ALTER TABLE `votingrightstype` DISABLE KEYS */;
/*!40000 ALTER TABLE `votingrightstype` ENABLE KEYS */;


--
-- Definition of table `yieldtype`
--

DROP TABLE IF EXISTS `yieldtype`;
CREATE TABLE `yieldtype` (
  `id` int(11) NOT NULL,
  `full` varchar(255) DEFAULT NULL,
  `scheme` varchar(255) DEFAULT NULL,
  `short` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `yieldtype`
--

/*!40000 ALTER TABLE `yieldtype` DISABLE KEYS */;
/*!40000 ALTER TABLE `yieldtype` ENABLE KEYS */;




/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
