22
22
`product_category` INT NOT NULL,
23
23
`product_id` INT NOT NULL,
24
24
`customer_id` INT NOT NULL,
28
28
CONSTRAINT `product_order_ibfk_1` FOREIGN KEY (`product_category`, `product_id`) REFERENCES `product` (`category`, `id`) ON UPDATE CASCADE ON DELETE RESTRICT,
29
29
CONSTRAINT `product_order_ibfk_2` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`)
30
30
) ENGINE=InnoDB COLLATE = utf8_general_ci