CREATE TABLE `complex_room_notes` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `room_id` bigint(20) unsigned NOT NULL, `note` text, PRIMARY KEY (`id`), KEY `complex_room_notes_complex_rooms_FK` (`room_id`), CONSTRAINT `complex_room_notes_complex_rooms_FK` FOREIGN KEY (`room_id`) REFERENCES `complex_rooms` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;