DROP TABLE IF EXISTS `images_status`;
CREATE TABLE `images_status` ( 
  `product_image_id` INT(11) UNSIGNED NOT NULL , 
  `status_code` INT UNSIGNED NOT NULL,
  PRIMARY KEY (`product_image_id`)
) ENGINE = InnoDB;

ALTER TABLE `images_status` ADD INDEX `status_code` (`status_code`);