CREATE TABLE `devops_business_excel` (
  `id` bigint NOT NULL COMMENT '主键id',
  `business_id` bigint DEFAULT NULL COMMENT '所属业务id',
  `excel_name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'excel名称',
  `description` varchar(1000) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '描述',
  `excel_file_id` bigint DEFAULT NULL COMMENT 'excel文件的id',
  `enable_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否开启(Y和N)，一个业务只能同时开启一个Excel表格',
  `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  `create_user` bigint DEFAULT NULL COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新日期',
  `update_user` bigint DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='业务关联Excel';

CREATE TABLE `devops_business_flow`  (
  `id` bigint NOT NULL COMMENT '主键id',
  `business_id` bigint NULL DEFAULT NULL COMMENT '所属业务id',
  `flow_model_id` bigint NULL DEFAULT NULL COMMENT '关联的工作流模型id',
  `enable_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否开启(Y和N)，一个业务只能同时开启一个流程',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建日期',
  `create_user` bigint NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新日期',
  `update_user` bigint NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '业务关联流程' ROW_FORMAT = Dynamic;