CREATE TABLE `health`.`ufutx_guide_nutrient` (
    `id` INT NOT NULL AUTO_INCREMENT,
    `order_id` INT NOT NULL COMMENT "订单id",
    `food_id` INT NOT NULL COMMENT "食物id",
    `name` VARCHAR(100) NOT NULL COMMENT "名称",
    `copies` INT NOT NULL COMMENT "总份数",
    `quantity` INT NOT NULL COMMENT "每一份的量",
    `total_num` DOUBLE(8, 2) NOT NULL COMMENT "总量数",
    `remain_num` DOUBLE(8, 2) NOT NULL COMMENT "剩余量数",
    `unit` VARCHAR(10) DEFAULT NULL COMMENT "单位",
    `status` TINYINT DEFAULT 0 COMMENT "状态,0:已用完,1:正常,2:不足",
    `created_at` TIMESTAMP NULL DEFAULT NULL,
    `updated_at` TIMESTAMP NULL DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE = InnoDB COMMENT = '餐单营养素库存';