   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;
 
 

  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `venueId` (`venueId`),
  CONSTRAINT `denkmal_model_venuealias__venue` FOREIGN KEY (`venueId`) REFERENCES `denkmal_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_model_venue`;
DROP TABLE IF EXISTS `denkmal_song`;
DROP TABLE IF EXISTS `denkmal_link`;

