CREATE TABLE IF NOT EXISTS `epic_artifact_info` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `artifact_name` VARCHAR(255) NOT NULL,
  `artifact_code` VARCHAR(255) NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL,
  `stats_health` INT NOT NULL,
  `stats_attack` INT NOT NULL,
  `stats_defense` INT NOT NULL,
  `rarity` VARCHAR(255) NOT NULL,
  `role` VARCHAR(255) NOT NULL,
  `artifact_name_en` VARCHAR(255) NOT NULL,
  `image_url` VARCHAR(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `epic_gvg_attack_teams` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `attack_heroes` VARCHAR(255) NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `epic_gvg_defense_attack_mapping` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `defense_id` BIGINT NOT NULL,
  `attack_id` BIGINT NOT NULL,
  `equipment_info` VARCHAR(255) NOT NULL,
  `artifacts` VARCHAR(255) NOT NULL,
  `battle_strategy` VARCHAR(255) NOT NULL,
  `prerequisites` VARCHAR(255) NOT NULL,
  `important_notes` VARCHAR(255) NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `epic_gvg_defense_teams` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `defense_heroes` VARCHAR(255) NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `epic_hero_info` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `hero_name` VARCHAR(255) NOT NULL,
  `hero_code` VARCHAR(255) NOT NULL,
  `hero_attr_lv60` VARCHAR(255) NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL,
  `nick_name` VARCHAR(255) NOT NULL,
  `rarity` VARCHAR(255) NOT NULL,
  `role` VARCHAR(255) NOT NULL,
  `zodiac` VARCHAR(255) NOT NULL,
  `head_img_url` VARCHAR(255) NOT NULL,
  `attribute` VARCHAR(255) NOT NULL,
  `remark` VARCHAR(255) NOT NULL,
  `raw_json` VARCHAR(255) NOT NULL,
  `set_content_json` VARCHAR(255) NOT NULL,
  `set_update_time` DATETIME NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `epic_hero_user_build` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `artifact_code` VARCHAR(255) NOT NULL,
  `hero_code` VARCHAR(255) NOT NULL,
  `hero_heath_build` DOUBLE NOT NULL,
  `hero_attack_build` DOUBLE NOT NULL,
  `hero_def_build` DOUBLE NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `epic_i18n_mappings` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `key_name` VARCHAR(255) NOT NULL,
  `language` VARCHAR(255) NOT NULL,
  `value` VARCHAR(255) NOT NULL,
  `category` VARCHAR(255) NOT NULL,
  `status` INT NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` INT NOT NULL,
  `code` VARCHAR(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `fribble_hero_set` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `hero_code` VARCHAR(255) NOT NULL,
  `json_content` VARCHAR(255) NOT NULL,
  `hero_name` VARCHAR(255) NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL,
  `success_get` INT NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `gear_set_info` (
  `id` BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `level` INT NOT NULL,
  `gear_id` BIGINT NOT NULL,
  `enhance` INT NOT NULL,
  `gear_type` VARCHAR(255) NOT NULL,
  `gear_set_type` VARCHAR(255) NOT NULL,
  `main_stat_type` VARCHAR(255) NOT NULL,
  `main_stat_value` INT NOT NULL,
  `sub_stat_one_type` VARCHAR(255) NOT NULL,
  `sub_stat_one_value` INT NOT NULL,
  `sub_stat_two_type` VARCHAR(255) NOT NULL,
  `sub_stat_two_value` INT NOT NULL,
  `sub_stat_three_type` VARCHAR(255) NOT NULL,
  `sub_stat_three_value` INT NOT NULL,
  `sub_stat_four_type` VARCHAR(255) NOT NULL,
  `sub_stat_four_value` INT NOT NULL,
  `account_code` VARCHAR(255) NOT NULL,
  `creator` VARCHAR(255) NOT NULL,
  `create_time` DATETIME NULL,
  `updater` VARCHAR(255) NOT NULL,
  `update_time` DATETIME NULL,
  `deleted` TINYINT(1) NOT NULL,
  `tenant_id` BIGINT NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
