SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for hs_canteen_order
-- ----------------------------
DROP TABLE IF EXISTS `hs_canteen_order`;
CREATE TABLE `hs_canteen_order`  (
  `order_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '消费订单id',
  `order_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单编号',
  `menu_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单编号',
  `order_total` decimal(10, 2) NULL DEFAULT NULL COMMENT '订单总额',
  `device_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备编号',
  `device_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备名称',
  `period_id` int(10) NULL DEFAULT NULL COMMENT '时段id',
  `pattern_id` int(10) NULL DEFAULT NULL COMMENT '消费模式id',
  `consumer_type` int(10) NULL DEFAULT NULL COMMENT '消费人员类型',
  `paytime` datetime(0) NULL DEFAULT NULL COMMENT '付款时间',
  `zfbz` int(1) NULL DEFAULT NULL COMMENT '作废标志',
  `is_delete` int(1) NULL DEFAULT 0 COMMENT '是否删除（0.未删除；1.已删除）',
  PRIMARY KEY (`order_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;