CREATE TABLE `devops_view`  (
  `view_id` bigint NOT NULL COMMENT '模型id',
  `business_category_id` bigint NOT NULL COMMENT '所属业务分类id',
  `business_id` bigint NOT NULL COMMENT '所属业务id',
  `view_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '视图名称',
  `view_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '视图编码',
  `system_code` int NOT NULL COMMENT '系统编码，这里用十进制存储',
  `system_code_show` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '系统编码，用于展示',
  `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目描述',
  `view_type` int NOT NULL COMMENT '视图类型：1-列表视图，2-其他视图',
  `view_config` json NULL COMMENT '视图的配置',
  `fld_sort` decimal(10, 2) NULL DEFAULT 1000.00 COMMENT '排序',
  `version_flag` bigint NULL DEFAULT NULL COMMENT '乐观锁',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' 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 '修改人',
  `tenant_id` bigint NULL DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`view_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '视图' ROW_FORMAT = Dynamic;