   PRIMARY KEY (`id`),
   KEY `venueId` (`venueId`),
   KEY `created` (`created`),
-  CONSTRAINT `denkmal_message__venue` FOREIGN KEY (`venueId`) REFERENCES `denkmal_venue` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
+  CONSTRAINT `denkmal_message__venue` FOREIGN KEY (`venueId`) REFERENCES `denkmal_model_venue` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 

DROP TABLE IF EXISTS `denkmal_message`;
DROP TABLE IF EXISTS `denkmal_event`;
DROP TABLE IF EXISTS `denkmal_model_venuealias`;
DROP TABLE IF EXISTS `denkmal_venue`;
DROP TABLE IF EXISTS `denkmal_song`;
DROP TABLE IF EXISTS `denkmal_link`;


  KEY `enabled` (`enabled`),
  KEY `hidden` (`hidden`),
  KEY `songId` (`songId`),
  CONSTRAINT `denkmal_event__venue` FOREIGN KEY (`venueId`) REFERENCES `denkmal_model_venue` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `denkmal_event__song` FOREIGN KEY (`songId`) REFERENCES `denkmal_song` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

