CREATE TABLE `health`.`ufutx_guide_nutrient_log` (
    `id` INT NOT NULL AUTO_INCREMENT,
    `order_id` INT NOT NULL COMMENT "订单id",
    `food_id` INT NOT NULL COMMENT "食物id",
    `type` TINYINT DEFAULT 1 COMMENT "类型,1:系统自动,2:商务专员",
    `num` DOUBLE(8, 2) NOT NULL COMMENT "数量",
    `remain_num` DOUBLE(8, 2) NOT NULL COMMENT "剩余量",
    `comment` VARCHAR(191) DEFAULT NULL COMMENT "备注",
    `operate_user_id` INTEGER DEFAULT NULL COMMENT "操作用户",
    `created_at` TIMESTAMP NULL DEFAULT NULL,
    `updated_at` TIMESTAMP NULL DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB COMMENT = '餐单营养素消耗记录';