/*
Navicat MySQL Data Transfer

Source Server         : 10.60.6.185-wayne
Source Server Version : 50641
Source Host           : 10.60.6.185:3307
Source Database       : wayne

Target Server Type    : MYSQL
Target Server Version : 50641
File Encoding         : 65001

Date: 2021-12-21 15:15:37
*/


-- ----------------------------
-- Records of api_key
-- ----------------------------

-- ----------------------------
-- Table structure for app
-- ----------------------------
CREATE TABLE `app` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `namespace_id` bigint(20) NOT NULL,
  `meta_data` longtext NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  `migrated` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `app_name` (`name`),
  KEY `app_namespace_id` (`namespace_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of app
-- ----------------------------

-- ----------------------------
-- Table structure for app_starred
-- ----------------------------
CREATE TABLE `app_starred` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `app_id` bigint(20) NOT NULL,
  `user_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `app_id` (`app_id`,`user_id`),
  KEY `app_starred_app_id` (`app_id`),
  KEY `app_starred_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of app_starred
-- ----------------------------

-- ----------------------------
-- Table structure for app_user
-- ----------------------------
CREATE TABLE `app_user` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `app_id` bigint(20) NOT NULL,
  `user_id` bigint(20) NOT NULL,
  `group_id` bigint(20) NOT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `app_user_app_id` (`app_id`),
  KEY `app_user_user_id` (`user_id`),
  KEY `app_user_group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of app_user
-- ----------------------------

-- ----------------------------
-- Table structure for audit_log
-- ----------------------------
CREATE TABLE `audit_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `subject_id` bigint(20) NOT NULL DEFAULT '0',
  `log_type` varchar(128) NOT NULL DEFAULT '',
  `log_level` varchar(128) NOT NULL DEFAULT '',
  `action` varchar(255) NOT NULL DEFAULT '',
  `message` longtext,
  `user_ip` varchar(200) NOT NULL DEFAULT '',
  `user` varchar(128) NOT NULL DEFAULT '',
  `create_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `audit_log_log_type` (`log_type`),
  KEY `audit_log_log_level` (`log_level`),
  KEY `audit_log_action` (`action`),
  KEY `audit_log_user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of audit_log
-- ----------------------------

-- ----------------------------
-- Table structure for charge
-- ----------------------------
CREATE TABLE `charge` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `namespace` varchar(1024) NOT NULL DEFAULT '',
  `app` varchar(128) NOT NULL DEFAULT '',
  `name` varchar(1024) NOT NULL DEFAULT '',
  `type` varchar(128) NOT NULL DEFAULT '',
  `unit_price` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `quantity` int(11) NOT NULL DEFAULT '0',
  `amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `resource_name` varchar(1024) NOT NULL DEFAULT '',
  `start_time` datetime NOT NULL,
  `create_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `charge_app` (`app`),
  KEY `charge_type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of charge
-- ----------------------------

-- ----------------------------
-- Table structure for cluster
-- ----------------------------
CREATE TABLE `cluster` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `displayname` varchar(512) DEFAULT NULL,
  `meta_data` longtext,
  `master` varchar(128) NOT NULL DEFAULT '',
  `kube_config` longtext,
  `description` varchar(512) DEFAULT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of cluster
-- ----------------------------

-- ----------------------------
-- Table structure for config
-- ----------------------------
CREATE TABLE `config` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(256) NOT NULL DEFAULT '',
  `value` longtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of config
-- ----------------------------
INSERT INTO `config` VALUES ('1', 'system.api-name-generate-rule', 'join');
INSERT INTO `config` VALUES ('2', 'system.oauth2-title', 'OAuth 2.0 Login');

-- ----------------------------
-- Table structure for config_map
-- ----------------------------
CREATE TABLE `config_map` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `config_map_app_id` (`app_id`),
  KEY `config_map_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of config_map
-- ----------------------------

-- ----------------------------
-- Table structure for config_map_template
-- ----------------------------
CREATE TABLE `config_map_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `config_map_id` bigint(20) NOT NULL,
  `meta_data` longtext NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `config_map_template_config_map_id` (`config_map_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of config_map_template
-- ----------------------------

-- ----------------------------
-- Table structure for cronjob
-- ----------------------------
CREATE TABLE `cronjob` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `cronjob_app_id` (`app_id`),
  KEY `cronjob_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of cronjob
-- ----------------------------

-- ----------------------------
-- Table structure for cronjob_template
-- ----------------------------
CREATE TABLE `cronjob_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `cronjob_id` bigint(20) NOT NULL,
  `meta_data` longtext NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `cronjob_template_cronjob_id` (`cronjob_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of cronjob_template
-- ----------------------------

-- ----------------------------
-- Table structure for custom_link
-- ----------------------------
CREATE TABLE `custom_link` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `namespace` varchar(255) NOT NULL DEFAULT '',
  `link_type` varchar(255) NOT NULL DEFAULT '',
  `url` varchar(255) NOT NULL DEFAULT '',
  `add_param` tinyint(1) NOT NULL DEFAULT '0',
  `params` varchar(255) DEFAULT NULL,
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `custom_link_namespace` (`namespace`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of custom_link
-- ----------------------------

-- ----------------------------
-- Table structure for daemon_set
-- ----------------------------
CREATE TABLE `daemon_set` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `daemon_set_app_id` (`app_id`),
  KEY `daemon_set_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of daemon_set
-- ----------------------------

-- ----------------------------
-- Table structure for daemon_set_template
-- ----------------------------
CREATE TABLE `daemon_set_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `daemon_set_id` bigint(20) NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `daemon_set_template_daemon_set_id` (`daemon_set_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of daemon_set_template
-- ----------------------------

-- ----------------------------
-- Table structure for deployment
-- ----------------------------
CREATE TABLE `deployment` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `deployment_app_id` (`app_id`),
  KEY `deployment_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of deployment
-- ----------------------------

-- ----------------------------
-- Table structure for deployment_template
-- ----------------------------
CREATE TABLE `deployment_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `deployment_id` bigint(20) NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `deployment_template_deployment_id` (`deployment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of deployment_template
-- ----------------------------

-- ----------------------------
-- Table structure for group
-- ----------------------------
CREATE TABLE `group` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `comment` longtext NOT NULL,
  `type` int(11) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `group_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of group
-- ----------------------------
INSERT INTO `group` VALUES ('1', '访客', '访客', '1', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `group` VALUES ('8', '组管理员', '组管理员', '1', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `group` VALUES ('9', '组成员', '组成员', '1', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `group` VALUES ('10', '项目负责人', '项目负责人', '0', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `group` VALUES ('11', '项目开发', '项目开发', '0', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `group` VALUES ('12', '项目测试', '项目测试', '0', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `group` VALUES ('21', 'API_VIEWER', 'API只读权限', '2', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `group` VALUES ('22', 'API_EDITOR', 'API读写权限', '2', '2021-12-21 06:42:02', '2021-12-21 06:42:02');

-- ----------------------------
-- Table structure for group_permissions
-- ----------------------------
CREATE TABLE `group_permissions` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) NOT NULL,
  `permission_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=213 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of group_permissions
-- ----------------------------
INSERT INTO `group_permissions` VALUES ('1', '10', '46');
INSERT INTO `group_permissions` VALUES ('2', '10', '47');
INSERT INTO `group_permissions` VALUES ('3', '10', '48');
INSERT INTO `group_permissions` VALUES ('4', '10', '49');
INSERT INTO `group_permissions` VALUES ('5', '10', '54');
INSERT INTO `group_permissions` VALUES ('6', '10', '55');
INSERT INTO `group_permissions` VALUES ('7', '10', '56');
INSERT INTO `group_permissions` VALUES ('8', '10', '57');
INSERT INTO `group_permissions` VALUES ('9', '10', '59');
INSERT INTO `group_permissions` VALUES ('10', '10', '60');
INSERT INTO `group_permissions` VALUES ('11', '10', '61');
INSERT INTO `group_permissions` VALUES ('12', '10', '62');
INSERT INTO `group_permissions` VALUES ('13', '10', '64');
INSERT INTO `group_permissions` VALUES ('14', '10', '65');
INSERT INTO `group_permissions` VALUES ('15', '10', '66');
INSERT INTO `group_permissions` VALUES ('16', '10', '67');
INSERT INTO `group_permissions` VALUES ('17', '10', '69');
INSERT INTO `group_permissions` VALUES ('18', '10', '70');
INSERT INTO `group_permissions` VALUES ('19', '10', '71');
INSERT INTO `group_permissions` VALUES ('20', '10', '72');
INSERT INTO `group_permissions` VALUES ('21', '10', '79');
INSERT INTO `group_permissions` VALUES ('22', '10', '80');
INSERT INTO `group_permissions` VALUES ('23', '10', '81');
INSERT INTO `group_permissions` VALUES ('24', '10', '82');
INSERT INTO `group_permissions` VALUES ('25', '10', '90');
INSERT INTO `group_permissions` VALUES ('26', '10', '91');
INSERT INTO `group_permissions` VALUES ('27', '10', '92');
INSERT INTO `group_permissions` VALUES ('28', '10', '93');
INSERT INTO `group_permissions` VALUES ('29', '10', '95');
INSERT INTO `group_permissions` VALUES ('30', '10', '96');
INSERT INTO `group_permissions` VALUES ('31', '10', '97');
INSERT INTO `group_permissions` VALUES ('32', '10', '98');
INSERT INTO `group_permissions` VALUES ('33', '10', '100');
INSERT INTO `group_permissions` VALUES ('34', '10', '101');
INSERT INTO `group_permissions` VALUES ('35', '10', '102');
INSERT INTO `group_permissions` VALUES ('36', '10', '103');
INSERT INTO `group_permissions` VALUES ('37', '10', '104');
INSERT INTO `group_permissions` VALUES ('38', '10', '105');
INSERT INTO `group_permissions` VALUES ('39', '10', '106');
INSERT INTO `group_permissions` VALUES ('40', '10', '107');
INSERT INTO `group_permissions` VALUES ('41', '10', '122');
INSERT INTO `group_permissions` VALUES ('42', '10', '123');
INSERT INTO `group_permissions` VALUES ('43', '10', '124');
INSERT INTO `group_permissions` VALUES ('44', '10', '125');
INSERT INTO `group_permissions` VALUES ('45', '10', '127');
INSERT INTO `group_permissions` VALUES ('46', '10', '128');
INSERT INTO `group_permissions` VALUES ('47', '10', '129');
INSERT INTO `group_permissions` VALUES ('48', '10', '130');
INSERT INTO `group_permissions` VALUES ('49', '10', '140');
INSERT INTO `group_permissions` VALUES ('50', '10', '142');
INSERT INTO `group_permissions` VALUES ('51', '10', '143');
INSERT INTO `group_permissions` VALUES ('52', '10', '196');
INSERT INTO `group_permissions` VALUES ('53', '10', '198');
INSERT INTO `group_permissions` VALUES ('54', '10', '199');
INSERT INTO `group_permissions` VALUES ('55', '10', '160');
INSERT INTO `group_permissions` VALUES ('56', '10', '162');
INSERT INTO `group_permissions` VALUES ('57', '10', '163');
INSERT INTO `group_permissions` VALUES ('58', '10', '158');
INSERT INTO `group_permissions` VALUES ('59', '10', '148');
INSERT INTO `group_permissions` VALUES ('60', '10', '150');
INSERT INTO `group_permissions` VALUES ('61', '10', '151');
INSERT INTO `group_permissions` VALUES ('62', '10', '192');
INSERT INTO `group_permissions` VALUES ('63', '10', '194');
INSERT INTO `group_permissions` VALUES ('64', '10', '195');
INSERT INTO `group_permissions` VALUES ('65', '10', '152');
INSERT INTO `group_permissions` VALUES ('66', '10', '154');
INSERT INTO `group_permissions` VALUES ('67', '10', '155');
INSERT INTO `group_permissions` VALUES ('68', '10', '133');
INSERT INTO `group_permissions` VALUES ('69', '10', '134');
INSERT INTO `group_permissions` VALUES ('70', '10', '135');
INSERT INTO `group_permissions` VALUES ('71', '10', '188');
INSERT INTO `group_permissions` VALUES ('72', '10', '190');
INSERT INTO `group_permissions` VALUES ('73', '10', '191');
INSERT INTO `group_permissions` VALUES ('74', '10', '172');
INSERT INTO `group_permissions` VALUES ('75', '10', '174');
INSERT INTO `group_permissions` VALUES ('76', '10', '175');
INSERT INTO `group_permissions` VALUES ('77', '10', '182');
INSERT INTO `group_permissions` VALUES ('78', '10', '183');
INSERT INTO `group_permissions` VALUES ('79', '11', '48');
INSERT INTO `group_permissions` VALUES ('80', '11', '54');
INSERT INTO `group_permissions` VALUES ('81', '11', '55');
INSERT INTO `group_permissions` VALUES ('82', '11', '56');
INSERT INTO `group_permissions` VALUES ('83', '11', '57');
INSERT INTO `group_permissions` VALUES ('84', '11', '59');
INSERT INTO `group_permissions` VALUES ('85', '11', '60');
INSERT INTO `group_permissions` VALUES ('86', '11', '61');
INSERT INTO `group_permissions` VALUES ('87', '11', '62');
INSERT INTO `group_permissions` VALUES ('88', '11', '64');
INSERT INTO `group_permissions` VALUES ('89', '11', '65');
INSERT INTO `group_permissions` VALUES ('90', '11', '66');
INSERT INTO `group_permissions` VALUES ('91', '11', '67');
INSERT INTO `group_permissions` VALUES ('92', '11', '69');
INSERT INTO `group_permissions` VALUES ('93', '11', '70');
INSERT INTO `group_permissions` VALUES ('94', '11', '71');
INSERT INTO `group_permissions` VALUES ('95', '11', '72');
INSERT INTO `group_permissions` VALUES ('96', '11', '79');
INSERT INTO `group_permissions` VALUES ('97', '11', '80');
INSERT INTO `group_permissions` VALUES ('98', '11', '81');
INSERT INTO `group_permissions` VALUES ('99', '11', '82');
INSERT INTO `group_permissions` VALUES ('100', '11', '90');
INSERT INTO `group_permissions` VALUES ('101', '11', '91');
INSERT INTO `group_permissions` VALUES ('102', '11', '92');
INSERT INTO `group_permissions` VALUES ('103', '11', '93');
INSERT INTO `group_permissions` VALUES ('104', '11', '97');
INSERT INTO `group_permissions` VALUES ('105', '11', '100');
INSERT INTO `group_permissions` VALUES ('106', '11', '104');
INSERT INTO `group_permissions` VALUES ('107', '11', '105');
INSERT INTO `group_permissions` VALUES ('108', '11', '106');
INSERT INTO `group_permissions` VALUES ('109', '11', '107');
INSERT INTO `group_permissions` VALUES ('110', '11', '122');
INSERT INTO `group_permissions` VALUES ('111', '11', '123');
INSERT INTO `group_permissions` VALUES ('112', '11', '124');
INSERT INTO `group_permissions` VALUES ('113', '11', '125');
INSERT INTO `group_permissions` VALUES ('114', '11', '127');
INSERT INTO `group_permissions` VALUES ('115', '11', '128');
INSERT INTO `group_permissions` VALUES ('116', '11', '129');
INSERT INTO `group_permissions` VALUES ('117', '11', '130');
INSERT INTO `group_permissions` VALUES ('118', '11', '140');
INSERT INTO `group_permissions` VALUES ('119', '11', '142');
INSERT INTO `group_permissions` VALUES ('120', '11', '143');
INSERT INTO `group_permissions` VALUES ('121', '11', '196');
INSERT INTO `group_permissions` VALUES ('122', '11', '198');
INSERT INTO `group_permissions` VALUES ('123', '11', '199');
INSERT INTO `group_permissions` VALUES ('124', '11', '160');
INSERT INTO `group_permissions` VALUES ('125', '11', '162');
INSERT INTO `group_permissions` VALUES ('126', '11', '163');
INSERT INTO `group_permissions` VALUES ('127', '11', '158');
INSERT INTO `group_permissions` VALUES ('128', '11', '148');
INSERT INTO `group_permissions` VALUES ('129', '11', '150');
INSERT INTO `group_permissions` VALUES ('130', '11', '151');
INSERT INTO `group_permissions` VALUES ('131', '11', '192');
INSERT INTO `group_permissions` VALUES ('132', '11', '194');
INSERT INTO `group_permissions` VALUES ('133', '11', '195');
INSERT INTO `group_permissions` VALUES ('134', '11', '152');
INSERT INTO `group_permissions` VALUES ('135', '11', '154');
INSERT INTO `group_permissions` VALUES ('136', '11', '155');
INSERT INTO `group_permissions` VALUES ('137', '11', '133');
INSERT INTO `group_permissions` VALUES ('138', '11', '134');
INSERT INTO `group_permissions` VALUES ('139', '11', '135');
INSERT INTO `group_permissions` VALUES ('140', '11', '188');
INSERT INTO `group_permissions` VALUES ('141', '11', '190');
INSERT INTO `group_permissions` VALUES ('142', '11', '191');
INSERT INTO `group_permissions` VALUES ('143', '11', '172');
INSERT INTO `group_permissions` VALUES ('144', '11', '174');
INSERT INTO `group_permissions` VALUES ('145', '11', '175');
INSERT INTO `group_permissions` VALUES ('146', '11', '182');
INSERT INTO `group_permissions` VALUES ('147', '11', '183');
INSERT INTO `group_permissions` VALUES ('148', '12', '48');
INSERT INTO `group_permissions` VALUES ('149', '12', '56');
INSERT INTO `group_permissions` VALUES ('150', '12', '61');
INSERT INTO `group_permissions` VALUES ('151', '12', '66');
INSERT INTO `group_permissions` VALUES ('152', '12', '71');
INSERT INTO `group_permissions` VALUES ('153', '12', '81');
INSERT INTO `group_permissions` VALUES ('154', '12', '92');
INSERT INTO `group_permissions` VALUES ('155', '12', '97');
INSERT INTO `group_permissions` VALUES ('156', '12', '100');
INSERT INTO `group_permissions` VALUES ('157', '12', '104');
INSERT INTO `group_permissions` VALUES ('158', '12', '124');
INSERT INTO `group_permissions` VALUES ('159', '12', '129');
INSERT INTO `group_permissions` VALUES ('160', '12', '142');
INSERT INTO `group_permissions` VALUES ('161', '12', '198');
INSERT INTO `group_permissions` VALUES ('162', '12', '162');
INSERT INTO `group_permissions` VALUES ('163', '12', '158');
INSERT INTO `group_permissions` VALUES ('164', '12', '150');
INSERT INTO `group_permissions` VALUES ('165', '12', '194');
INSERT INTO `group_permissions` VALUES ('166', '12', '154');
INSERT INTO `group_permissions` VALUES ('167', '12', '134');
INSERT INTO `group_permissions` VALUES ('168', '12', '190');
INSERT INTO `group_permissions` VALUES ('169', '12', '174');
INSERT INTO `group_permissions` VALUES ('170', '12', '182');
INSERT INTO `group_permissions` VALUES ('171', '1', '76');
INSERT INTO `group_permissions` VALUES ('172', '1', '56');
INSERT INTO `group_permissions` VALUES ('173', '1', '61');
INSERT INTO `group_permissions` VALUES ('174', '1', '66');
INSERT INTO `group_permissions` VALUES ('175', '1', '71');
INSERT INTO `group_permissions` VALUES ('176', '1', '81');
INSERT INTO `group_permissions` VALUES ('177', '1', '86');
INSERT INTO `group_permissions` VALUES ('178', '1', '92');
INSERT INTO `group_permissions` VALUES ('179', '1', '104');
INSERT INTO `group_permissions` VALUES ('180', '1', '124');
INSERT INTO `group_permissions` VALUES ('181', '1', '129');
INSERT INTO `group_permissions` VALUES ('182', '1', '142');
INSERT INTO `group_permissions` VALUES ('183', '1', '198');
INSERT INTO `group_permissions` VALUES ('184', '1', '162');
INSERT INTO `group_permissions` VALUES ('185', '1', '158');
INSERT INTO `group_permissions` VALUES ('186', '1', '150');
INSERT INTO `group_permissions` VALUES ('187', '1', '194');
INSERT INTO `group_permissions` VALUES ('188', '1', '154');
INSERT INTO `group_permissions` VALUES ('189', '1', '134');
INSERT INTO `group_permissions` VALUES ('190', '1', '190');
INSERT INTO `group_permissions` VALUES ('191', '1', '174');
INSERT INTO `group_permissions` VALUES ('192', '1', '182');
INSERT INTO `group_permissions` VALUES ('193', '8', '46');
INSERT INTO `group_permissions` VALUES ('194', '8', '47');
INSERT INTO `group_permissions` VALUES ('195', '8', '48');
INSERT INTO `group_permissions` VALUES ('196', '8', '49');
INSERT INTO `group_permissions` VALUES ('197', '8', '50');
INSERT INTO `group_permissions` VALUES ('198', '8', '51');
INSERT INTO `group_permissions` VALUES ('199', '8', '52');
INSERT INTO `group_permissions` VALUES ('200', '8', '53');
INSERT INTO `group_permissions` VALUES ('201', '8', '74');
INSERT INTO `group_permissions` VALUES ('202', '8', '75');
INSERT INTO `group_permissions` VALUES ('203', '8', '76');
INSERT INTO `group_permissions` VALUES ('204', '8', '77');
INSERT INTO `group_permissions` VALUES ('205', '8', '86');
INSERT INTO `group_permissions` VALUES ('206', '8', '97');
INSERT INTO `group_permissions` VALUES ('207', '8', '100');
INSERT INTO `group_permissions` VALUES ('208', '9', '48');
INSERT INTO `group_permissions` VALUES ('209', '9', '76');
INSERT INTO `group_permissions` VALUES ('210', '9', '86');
INSERT INTO `group_permissions` VALUES ('211', '9', '97');
INSERT INTO `group_permissions` VALUES ('212', '8', '100');

-- ----------------------------
-- Table structure for hpa
-- ----------------------------
CREATE TABLE `hpa` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(255) NOT NULL DEFAULT '',
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `hpa_app_id` (`app_id`),
  KEY `hpa_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of hpa
-- ----------------------------

-- ----------------------------
-- Table structure for hpa_template
-- ----------------------------
CREATE TABLE `hpa_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `hpa_id` bigint(20) NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `hpa_template_hpa_id` (`hpa_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of hpa_template
-- ----------------------------

-- ----------------------------
-- Table structure for ingress
-- ----------------------------
CREATE TABLE `ingress` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(255) NOT NULL DEFAULT '',
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `ingress_app_id` (`app_id`),
  KEY `ingress_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ingress
-- ----------------------------

-- ----------------------------
-- Table structure for ingress_template
-- ----------------------------
CREATE TABLE `ingress_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `ingress_id` bigint(20) NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `ingress_template_ingress_id` (`ingress_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ingress_template
-- ----------------------------

-- ----------------------------
-- Table structure for invoice
-- ----------------------------
CREATE TABLE `invoice` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `namespace` varchar(1024) NOT NULL DEFAULT '',
  `app` varchar(128) NOT NULL DEFAULT '',
  `amount` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `bill_date` datetime NOT NULL,
  `create_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `invoice_app` (`app`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of invoice
-- ----------------------------

-- ----------------------------
-- Table structure for link_type
-- ----------------------------
CREATE TABLE `link_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type_name` varchar(255) NOT NULL DEFAULT '',
  `displayname` varchar(255) NOT NULL DEFAULT '',
  `default_url` varchar(255) NOT NULL DEFAULT '',
  `param_list` varchar(255) DEFAULT NULL,
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `type_name` (`type_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of link_type
-- ----------------------------

-- ----------------------------
-- Table structure for namespace
-- ----------------------------
CREATE TABLE `namespace` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `kube_namespace` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `namespace_kube_namespace` (`kube_namespace`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of namespace
-- ----------------------------
INSERT INTO `namespace` VALUES ('1', 'demo', 'demo', '{\"namespace\":\"default\"}', '2021-12-21 06:42:02', '2021-12-21 06:42:02', 'admin', '0');

-- ----------------------------
-- Table structure for namespace_user
-- ----------------------------
CREATE TABLE `namespace_user` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `namespace_id` bigint(20) NOT NULL,
  `user_id` bigint(20) NOT NULL,
  `group_id` bigint(20) NOT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `namespace_user_namespace_id` (`namespace_id`),
  KEY `namespace_user_user_id` (`user_id`),
  KEY `namespace_user_group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of namespace_user
-- ----------------------------
INSERT INTO `namespace_user` VALUES ('1', '1', '1', '1', '2021-12-21 14:54:56', '2021-12-21 14:54:56');

-- ----------------------------
-- Table structure for notification
-- ----------------------------
CREATE TABLE `notification` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type` varchar(128) NOT NULL DEFAULT '',
  `title` varchar(2000) NOT NULL DEFAULT '',
  `message` longtext NOT NULL,
  `from_user_id` bigint(20) NOT NULL,
  `level` int(11) NOT NULL DEFAULT '0',
  `is_published` tinyint(1) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `notification_type` (`type`),
  KEY `notification_from_user_id` (`from_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of notification
-- ----------------------------

-- ----------------------------
-- Table structure for notification_log
-- ----------------------------
CREATE TABLE `notification_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `is_readed` tinyint(1) NOT NULL DEFAULT '0',
  `notification_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `notification_log_notification_id` (`notification_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of notification_log
-- ----------------------------

-- ----------------------------
-- Table structure for permission
-- ----------------------------
CREATE TABLE `permission` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `comment` longtext NOT NULL,
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `permission_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=228 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of permission
-- ----------------------------
INSERT INTO `permission` VALUES ('46', 'APPUSER_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('47', 'APPUSER_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('48', 'APPUSER_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('49', 'APPUSER_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('50', 'NAMESPACEUSER_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('51', 'NAMESPACEUSER_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('52', 'NAMESPACEUSER_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('53', 'NAMESPACEUSER_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('54', 'DEPLOYMENT_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('55', 'DEPLOYMENT_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('56', 'DEPLOYMENT_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('57', 'DEPLOYMENT_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('59', 'SERVICE_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('60', 'SERVICE_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('61', 'SERVICE_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('62', 'SERVICE_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('64', 'CONFIGMAP_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('65', 'CONFIGMAP_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('66', 'CONFIGMAP_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('67', 'CONFIGMAP_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('69', 'PVC_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('70', 'PVC_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('71', 'PVC_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('72', 'PVC_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('74', 'APP_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('75', 'APP_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('76', 'APP_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('77', 'APP_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('79', 'SECRET_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('80', 'SECRET_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('81', 'SECRET_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('82', 'SECRET_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('84', 'NAMESPACE_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('85', 'NAMESPACE_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('86', 'NAMESPACE_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('87', 'NAMESPACE_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('90', 'CRONJOB_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('91', 'CRONJOB_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('92', 'CRONJOB_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('93', 'CRONJOB_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('95', 'WEBHOOK_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('96', 'WEBHOOK_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('97', 'WEBHOOK_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('98', 'WEBHOOK_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('100', 'APIKEY_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('101', 'APIKEY_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('102', 'APIKEY_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('103', 'APIKEY_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('104', 'STATEFULSET_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('105', 'STATEFULSET_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('106', 'STATEFULSET_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('107', 'STATEFULSET_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('109', 'DAEMONSET_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('110', 'DAEMONSET_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('111', 'DAEMONSET_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('112', 'DAEMONSET_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('122', 'INGRESS_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('123', 'INGRESS_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('124', 'INGRESS_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('125', 'INGRESS_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('127', 'HPA_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('128', 'HPA_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('129', 'HPA_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('130', 'HPA_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('132', 'KUBECONFIGMAP_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('133', 'KUBECONFIGMAP_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('134', 'KUBECONFIGMAP_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('135', 'KUBECONFIGMAP_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('136', 'KUBEDAEMONSET_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('137', 'KUBEDAEMONSET_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('138', 'KUBEDAEMONSET_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('139', 'KUBEDAEMONSET_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('140', 'KUBEDEPLOYMENT_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('141', 'KUBEDEPLOYMENT_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('142', 'KUBEDEPLOYMENT_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('143', 'KUBEDEPLOYMENT_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('144', 'KUBEEVENT_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('145', 'KUBEEVENT_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('146', 'KUBEEVENT_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('147', 'KUBEEVENT_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('148', 'KUBEHORIZONTALPODAUTOSCALER_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('149', 'KUBEHORIZONTALPODAUTOSCALER_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('150', 'KUBEHORIZONTALPODAUTOSCALER_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('151', 'KUBEHORIZONTALPODAUTOSCALER_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('152', 'KUBEINGRESS_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('153', 'KUBEINGRESS_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('154', 'KUBEINGRESS_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('155', 'KUBEINGRESS_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('156', 'KUBEJOB_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('157', 'KUBEJOB_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('158', 'KUBEJOB_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('159', 'KUBEJOB_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('160', 'KUBECRONJOB_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('161', 'KUBECRONJOB_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('162', 'KUBECRONJOB_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('163', 'KUBECRONJOB_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('164', 'KUBENAMESPACE_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('165', 'KUBENAMESPACE_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('166', 'KUBENAMESPACE_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('167', 'KUBENAMESPACE_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('168', 'KUBENODE_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('169', 'KUBENODE_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('170', 'KUBENODE_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('171', 'KUBENODE_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('172', 'KUBEPERSISTENTVOLUMECLAIM_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('173', 'KUBEPERSISTENTVOLUMECLAIM_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('174', 'KUBEPERSISTENTVOLUMECLAIM_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('175', 'KUBEPERSISTENTVOLUMECLAIM_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('176', 'KUBEPERSISTENTVOLUME_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('177', 'KUBEPERSISTENTVOLUME_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('178', 'KUBEPERSISTENTVOLUME_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('179', 'KUBEPERSISTENTVOLUME_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('180', 'KUBEPOD_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('181', 'KUBEPOD_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('182', 'KUBEPOD_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('183', 'KUBEPOD_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('184', 'KUBEREPLICASET_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('185', 'KUBEREPLICASET_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('186', 'KUBEREPLICASET_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('187', 'KUBEREPLICASET_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('188', 'KUBESECRET_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('189', 'KUBESECRET_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('190', 'KUBESECRET_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('191', 'KUBESECRET_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('192', 'KUBESERVICE_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('193', 'KUBESERVICE_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('194', 'KUBESERVICE_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('195', 'KUBESERVICE_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('196', 'KUBESTATEFULSET_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('197', 'KUBESTATEFULSET_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('198', 'KUBESTATEFULSET_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('199', 'KUBESTATEFULSET_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('200', 'KUBEENDPOINTS_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('201', 'KUBEENDPOINTS_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('202', 'KUBEENDPOINTS_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('203', 'KUBEENDPOINTS_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('204', 'KUBESTORAGECLASS_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('205', 'KUBESTORAGECLASS_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('206', 'KUBESTORAGECLASS_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('207', 'KUBESTORAGECLASS_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('208', 'KUBEROLE_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('209', 'KUBEROLE_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('210', 'KUBEROLE_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('211', 'KUBEROLE_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('212', 'KUBEROLEBINDING_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('213', 'KUBEROLEBINDING_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('214', 'KUBEROLEBINDING_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('215', 'KUBEROLEBINDING_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('216', 'KUBECLUSTERROLE_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('217', 'KUBECLUSTERROLE_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('218', 'KUBECLUSTERROLE_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('219', 'KUBECLUSTERROLE_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('220', 'KUBECLUSTERROLEBINDING_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('221', 'KUBECLUSTERROLEBINDING_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('222', 'KUBECLUSTERROLEBINDING_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('223', 'KUBECLUSTERROLEBINDING_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('224', 'KUBESERVICEACCOUNT_CREATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('225', 'KUBESERVICEACCOUNT_UPDATE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('226', 'KUBESERVICEACCOUNT_READ', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');
INSERT INTO `permission` VALUES ('227', 'KUBESERVICEACCOUNT_DELETE', '', '2021-12-21 06:42:02', '2021-12-21 06:42:02');

-- ----------------------------
-- Table structure for persistent_volume_claim
-- ----------------------------
CREATE TABLE `persistent_volume_claim` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `persistent_volume_claim_app_id` (`app_id`),
  KEY `persistent_volume_claim_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of persistent_volume_claim
-- ----------------------------

-- ----------------------------
-- Table structure for persistent_volume_claim_template
-- ----------------------------
CREATE TABLE `persistent_volume_claim_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `persistent_volume_claim_id` bigint(20) NOT NULL,
  `meta_data` longtext NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `persistent_volume_claim_template_persistent_volume_claim_id` (`persistent_volume_claim_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of persistent_volume_claim_template
-- ----------------------------

-- ----------------------------
-- Table structure for publish_history
-- ----------------------------
CREATE TABLE `publish_history` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type` int(11) NOT NULL DEFAULT '0',
  `resource_id` bigint(20) NOT NULL DEFAULT '0',
  `resource_name` varchar(128) NOT NULL DEFAULT '',
  `template_id` bigint(20) NOT NULL DEFAULT '0',
  `cluster` varchar(128) NOT NULL DEFAULT '',
  `status` int(11) NOT NULL DEFAULT '0',
  `message` longtext NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `publish_history_type` (`type`),
  KEY `publish_history_resource_id` (`resource_id`),
  KEY `publish_history_template_id` (`template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of publish_history
-- ----------------------------

-- ----------------------------
-- Table structure for publish_status
-- ----------------------------
CREATE TABLE `publish_status` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `type` int(11) NOT NULL DEFAULT '0',
  `resource_id` bigint(20) NOT NULL DEFAULT '0',
  `template_id` bigint(20) NOT NULL DEFAULT '0',
  `cluster` varchar(128) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `publish_status_type` (`type`),
  KEY `publish_status_resource_id` (`resource_id`),
  KEY `publish_status_template_id` (`template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of publish_status
-- ----------------------------

-- ----------------------------
-- Table structure for secret
-- ----------------------------
CREATE TABLE `secret` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `secret_app_id` (`app_id`),
  KEY `secret_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of secret_template
-- ----------------------------

-- ----------------------------
-- Table structure for service
-- ----------------------------
CREATE TABLE `service` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `service_app_id` (`app_id`),
  KEY `service_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of service
-- ----------------------------

-- ----------------------------
-- Table structure for service_template
-- ----------------------------
CREATE TABLE `service_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `service_id` bigint(20) NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `service_template_service_id` (`service_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of service_template
-- ----------------------------

-- ----------------------------
-- Table structure for statefulset
-- ----------------------------
CREATE TABLE `statefulset` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `meta_data` longtext NOT NULL,
  `app_id` bigint(20) NOT NULL,
  `description` varchar(512) DEFAULT NULL,
  `order_id` bigint(20) NOT NULL DEFAULT '0',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `statefulset_app_id` (`app_id`),
  KEY `statefulset_order_id` (`order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of statefulset
-- ----------------------------

-- ----------------------------
-- Table structure for statefulset_template
-- ----------------------------
CREATE TABLE `statefulset_template` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `statefulset_id` bigint(20) NOT NULL,
  `description` varchar(512) NOT NULL DEFAULT '',
  `create_time` datetime NOT NULL,
  `update_time` datetime NOT NULL,
  `user` varchar(128) NOT NULL DEFAULT '',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `statefulset_template_statefulset_id` (`statefulset_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of web_hook
-- ----------------------------
