CREATE TABLE `phones`( 
`id` INT(10) NOT NULL AUTO_INCREMENT,
`number` VARCHAR(15),
`id_company` INT(10) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
CONSTRAINT `company_phone` FOREIGN KEY (`id_company`)
REFERENCES `companies`(`id`) 
) ENGINE=INNODB CHARSET=utf8; 