DROP TABLE IF EXISTS `product_detail_values`;
CREATE TABLE `product_detail_values` (
                                         `id` int NOT NULL AUTO_INCREMENT,
                                         `detail_id` int NOT NULL,
                                         `name` text NOT NULL,
                                         `image` varchar(155) NOT NULL,
                                         `sort` int NOT NULL,
                                         PRIMARY KEY (`id`),
                                         KEY `fk_detail_values_id` (`detail_id`),
                                         CONSTRAINT `fk_detail_values_id` FOREIGN KEY (`detail_id`) REFERENCES `product_details` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;