DROP TABLE IF EXISTS `sale_harvesting`;
CREATE TABLE `sale_harvesting` (
                                   `id` int NOT NULL AUTO_INCREMENT,
                                   `sale_id` int NOT NULL,
                                   `product_list_id` int NOT NULL,
                                   `safe_id` int DEFAULT NULL,
                                   `user_id` int NOT NULL,
                                   `total` int NOT NULL DEFAULT '0',
                                   `control_status` tinyint(1) NOT NULL DEFAULT '0',
                                   `insert_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                   PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3;