DROP TABLE IF EXISTS `product_categories`;
CREATE TABLE `product_categories` (
                                      `id` int NOT NULL AUTO_INCREMENT,
                                      `parent_id` int DEFAULT NULL,
                                      `depth` int NOT NULL,
                                      `image_id` int DEFAULT NULL,
                                      `sort` int NOT NULL,
                                      `desc` text NOT NULL,
                                      `status` tinyint(1) NOT NULL,
                                      `level` int DEFAULT NULL,
                                      `level_sort` int NOT NULL,
                                      `date_add` datetime NOT NULL,
                                      `date_edit` datetime DEFAULT NULL,
                                      `viewed` int NOT NULL,
                                      `image` varchar(250) DEFAULT NULL,
                                      `icon` varchar(250) DEFAULT NULL,
                                      `shop_id` int NOT NULL DEFAULT '1',
                                      `xml_id` varchar(55) NOT NULL,
                                      `trendyol` int DEFAULT NULL,
                                      PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3;