
CREATE TABLE `REGISTRATION_DATA_BY_EXECUTION_YEAR` (
  `ID_INTERNAL` int(11) unsigned NOT NULL auto_increment,
  `KEY_REGISTRATION` int(11) NULL,
  `KEY_EXECUTION_YEAR` int(11) NOT NULL,
  `ENROLMENT_MODEL` varchar(50),
  `KEY_ROOT_DOMAIN_OBJECT` int(11) NOT NULL default '1',
  PRIMARY KEY  (`ID_INTERNAL`),
  KEY `KEY_REGISTRATION` (`KEY_REGISTRATION`),
  KEY `KEY_EXECUTION_YEAR` (`KEY_EXECUTION_YEAR`),
  KEY `KEY_ROOT_DOMAIN_OBJECT` (`KEY_ROOT_DOMAIN_OBJECT`)
) ENGINE=InnoDB;
