-- --------------------------------------------------------
-- 호스트:                          127.0.0.1
-- 서버 버전:                        10.11.6-MariaDB-1:10.11.6+maria~ubu2204 - mariadb.org binary distribution
-- 서버 OS:                        debian-linux-gnu
-- HeidiSQL 버전:                  12.6.0.6765
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


-- caliverse 데이터베이스 구조 내보내기
CREATE DATABASE IF NOT EXISTS `caliverse` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin */;
USE `caliverse`;

-- 테이블 caliverse.admin 구조 내보내기
CREATE TABLE IF NOT EXISTS `admin` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) DEFAULT NULL,
  `email` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL,
  `auth_level_type` varchar(50) default 'None' not null comment '권한 레벨',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `pw_update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.admin:~1 rows (대략적) 내보내기 admin pw : [REDACTED]
INSERT INTO `admin` (`id`, `group_id`, `email`, `name`, `password`, `status`, `auth_level_type`, `deleted`, `pw_update_dt`, `create_dt`, `update_by`, `update_dt`) VALUES
	(1, 1, 'caliverse_adm@caliverse.io', 'admin', '$2a$10$YU8mg7ITQlFImlj0PwvvbuXQJK7WgEFlQ03T5mhrWrbHbbGiQ3sj2', 'PERMITTED', 'Master',b'0', '2024-07-30 16:59:23', '2024-01-26 16:05:23', NULL, '2024-01-26 16:05:23');

-- 테이블 caliverse.admin_history 구조 내보내기
CREATE TABLE IF NOT EXISTS `admin_history` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `admin_id` bigint(20) NOT NULL,
  `password` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `FK__admin` (`admin_id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='어드민 기존 패스워드 관리 테이블';

-- 테이블 데이터 caliverse.admin_history:~0 rows (대략적) 내보내기

-- 테이블 caliverse.admin_log 구조 내보내기
CREATE TABLE IF NOT EXISTS `admin_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `admin_id` bigint(20) NOT NULL,
  `name` varchar(255) NOT NULL,
  `mail` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `content` longtext DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  KEY `admin_id` (`admin_id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.admin_log:~0 rows (대략적) 내보내기

-- 테이블 caliverse.authority 구조 내보내기
CREATE TABLE IF NOT EXISTS `authority` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `auth_menu` varchar(255) NOT NULL,
  `auth_name` varchar(255) NOT NULL,
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.authority:~31 rows (대략적) 내보내기
INSERT INTO `authority` (`id`, `auth_menu`, `auth_name`, `create_by`, `create_dt`, `update_by`, `update_dt`) VALUES
    (1, 'ADMINSEARCH', 'READ', NULL, '2023-08-23 17:49:41', NULL, '2023-08-23 17:49:41'),
    (2, 'ADMINSEARCH', 'CONFIRM', NULL, '2023-08-23 20:25:00', NULL, '2023-08-23 20:25:00'),
    (3, 'ADMINSEARCH', 'UPDATE', NULL, '2023-08-23 20:25:00', NULL, '2023-08-23 20:25:00'),
    (4, 'ADMINSEARCH', 'DELETE', NULL, '2023-08-23 20:25:00', NULL, '2023-08-23 20:25:00'),
    (5, 'ADMINLOGSEARCH', 'READ', NULL, '2023-08-23 20:32:32', NULL, '2023-08-23 20:32:32'),
    (6, 'AUTHORITYSETTING', 'READ', NULL, '2023-08-23 20:32:44', NULL, '2023-08-23 20:32:44'),
    (7, 'AUTHORITYSETTING', 'UPDATE', NULL, '2023-08-23 20:32:44', NULL, '2023-08-23 20:32:44'),
    (8, 'AUTHORITYSETTING', 'DELETE', NULL, '2023-08-23 20:32:44', NULL, '2023-08-23 20:32:44'),
    (9, 'USERINDICATORS', 'READ', NULL, '2023-09-04 10:48:12', NULL, '2023-09-04 10:48:12'),
    (10, 'ECOMINDICATORS', 'READ', NULL, '2023-09-04 10:48:12', NULL, '2023-09-04 10:48:12'),
    (11, 'USERSEARCH', 'READ', NULL, '2023-09-04 10:50:00', NULL, '2023-09-04 10:50:00'),
    (12, 'USERSEARCH', 'UPDATE', NULL, '2023-09-04 10:50:00', NULL, '2023-09-04 10:50:00'),
    (13, 'LAND', 'READ', NULL, '2023-09-04 10:50:00', NULL, '2023-09-04 10:50:00'),
    (14, 'GAMELOG', 'READ', NULL, '2023-09-04 10:51:28', NULL, '2023-09-04 10:51:28'),
    (15, 'CRYPTO', 'READ', NULL, '2023-09-04 10:51:49', NULL, '2023-09-04 10:51:49'),
    (16, 'INGAME', 'READ', NULL, '2023-09-04 10:52:11', NULL, '2023-09-04 10:52:11'),
    (17, 'INGAME', 'UPDATE', NULL, '2023-09-04 10:52:11', NULL, '2023-09-04 10:52:11'),
    (18, 'INGAME', 'DELETE', NULL, '2023-09-04 10:52:11', NULL, '2023-09-04 10:52:11'),
    (19, 'WHITELIST', 'READ', NULL, '2023-09-04 10:52:59', NULL, '2023-09-04 10:52:59'),
    (20, 'WHITELIST', 'CONFIRM', NULL, '2023-09-04 10:56:52', NULL, '2023-09-04 10:56:52'),
    (21, 'WHITELIST', 'UPDATE', NULL, '2023-09-04 10:52:59', NULL, '2023-09-04 10:52:59'),
    (22, 'MAIL', 'READ', NULL, '2023-09-04 10:52:59', NULL, '2023-09-04 10:52:59'),
    (23, 'MAIL', 'UPDATE', NULL, '2023-09-04 10:52:59', NULL, '2023-09-04 10:52:59'),
    (24, 'BLACKLIST', 'READ', NULL, '2023-09-04 10:52:59', NULL, '2023-09-04 10:52:59'),
    (25, 'BLACKLIST', 'UPDATE', NULL, '2023-09-04 10:54:11', NULL, '2023-09-04 10:54:11'),
    (26, 'REPORT', 'READ', NULL, '2023-09-04 10:54:24', NULL, '2023-09-04 10:54:24'),
    (27, 'REPORT', 'UPDATE', NULL, '2023-09-04 10:54:32', NULL, '2023-09-04 10:54:32'),
    (28, 'WHITELIST', 'DELETE', NULL, '2023-10-10 08:22:08', NULL, '2023-10-10 08:22:08'),
    (29, 'MAIL', 'DELETE', NULL, '2023-10-10 08:54:38', NULL, '2023-10-10 08:54:38'),
    (30, 'BLACKLIST', 'DELETE', NULL, '2023-10-10 08:54:57', NULL, '2023-10-10 08:54:57'),
    (31, 'REPORT', 'DELETE', NULL, '2023-10-10 08:55:11', NULL, '2023-10-10 08:55:11'),
    (32, 'ITEMLIST', 'READ', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
    (33, 'ITEMLIST', 'UPDATE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
    (34, 'ITEMLIST', 'DELETE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(35, 'USERSEARCH', 'DELETE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(36, 'EVENT', 'READ', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(37, 'EVENT', 'UPDATE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(38, 'EVENT', 'DELETE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(39, 'CALIUMREQUEST', 'READ', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(40, 'CALIUMREQUEST', 'UPDATE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(41, 'LANDAUCTION', 'READ', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(42, 'LANDAUCTION', 'UPDATE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(43, 'LANDAUCTION', 'DELETE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(44, 'LAND', 'UPDATE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(45, 'LAND', 'DELETE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(46, 'BATTLEEVENT', 'READ', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(47, 'BATTLEEVENT', 'UPDATE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(48, 'BATTLEEVENT', 'DELETE', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11'),
	(49, 'BUSINESSLOG', 'READ', NULL, '2024-08-01 08:55:11', NULL, '2024-08-01 08:55:11');
	
-- 테이블 caliverse.black_list 구조 내보내기
CREATE TABLE IF NOT EXISTS `black_list` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `guid` varchar(255) NOT NULL,
  `nickname` varchar(50) NOT NULL,
  `status` varchar(255) NOT NULL COMMENT '상태(제재중/기간만료/대기중)',
  `type` varchar(255) NOT NULL COMMENT '제재 방식(접속제한/채팅제한)',
  `sanctions` varchar(255) NOT NULL COMMENT '제재 사유',
  `period` varchar(255) NOT NULL COMMENT '제재기간',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `start_dt` datetime NOT NULL COMMENT '제재 시작 일자',
  `end_dt` datetime NOT NULL COMMENT '제재 종료 일자',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='이용자 제재 테이블';

-- 테이블 데이터 caliverse.black_list:~0 rows (대략적) 내보내기

-- 테이블 caliverse.caliverse_meta_data 구조 내보내기
CREATE TABLE IF NOT EXISTS `caliverse_meta_data` (
  `file_name` varchar(256) NOT NULL,
  `data_id` int(11) NOT NULL DEFAULT 0,
  `json_data` longtext NOT NULL CHECK (json_valid(`json_data`)),
  PRIMARY KEY (`file_name`,`data_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.caliverse_meta_data:~0 rows (대략적) 내보내기

-- 테이블 caliverse.groups 구조 내보내기
CREATE TABLE IF NOT EXISTS `groups` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.groups:~0 rows (대략적) 내보내기
INSERT INTO `groups` (`id`, `name`, `description`, `deleted`, `create_by`, `create_dt`, `update_by`, `update_dt`) VALUES
	(1, '전체관리자권한', '운영툴 전체 메뉴 사용 가능', b'0', 'khlee', '2024-01-26 14:29:20', 'khlee', '2024-01-26 14:29:29'),
	(2, '기본권한', '기본 조회 기능만 사용 가능', b'0', 'khlee', '2024-01-26 14:29:20', 'khlee', '2024-01-26 14:29:29');

-- 테이블 caliverse.group_auth 구조 내보내기
CREATE TABLE IF NOT EXISTS `group_auth` (
  `group_auth_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group_id` bigint(20) NOT NULL,
  `auth_id` bigint(20) NOT NULL,
  PRIMARY KEY (`group_auth_id`),
  KEY `FKsx1gx9q7k2thvs83qo1k4xj2o` (`auth_id`),
  KEY `FK7iv0c1ovorc2qyb7gd0weu5hk` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.group_auth:~31 rows (대략적) 내보내기
INSERT INTO `group_auth` (`group_auth_id`, `group_id`, `auth_id`) VALUES
    (1, 1, 1),
    (2, 1, 2),
    (3, 1, 3),
    (4, 1, 4),
    (5, 1, 5),
    (6, 1, 6),
    (7, 1, 7),
    (8, 1, 8),
    (9, 1, 9),
    (10, 1, 10),
    (11, 1, 11),
    (12, 1, 12),
    (13, 1, 13),
    (14, 1, 14),
    (15, 1, 15),
    (16, 1, 16),
    (17, 1, 17),
    (18, 1, 18),
    (19, 1, 19),
    (20, 1, 20),
    (21, 1, 21),
    (22, 1, 22),
    (23, 1, 23),
    (24, 1, 24),
    (25, 1, 25),
    (26, 1, 26),
    (27, 1, 27),
    (28, 1, 28),
    (29, 1, 29),
    (30, 1, 30),
    (31, 1, 31),
	(32, 1, 32),
	(33, 1, 33),
	(34, 1, 34),
	(35, 1, 35),
	(36, 1, 36),
	(37, 1, 37),
	(38, 1, 38),
	(39, 1, 39),
	(40, 1, 40),
	(41, 1, 41),
	(42, 1, 42),
	(43, 1, 43),
	(44, 1, 44),
	(45, 1, 45),
	(46, 1, 46),
	(47, 1, 47),
	(48, 1, 48);

-- 테이블 caliverse.item 구조 내보내기
CREATE TABLE IF NOT EXISTS `item` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `mail_id` bigint(20) NOT NULL,
  `type` varchar(50) NOT NULL,
  `reward_group_id` varchar(255) NOT NULL,
  `item_cnt` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_item_mail` (`mail_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='우편 정보 아이템 테이블';

-- 테이블 데이터 caliverse.item:~0 rows (대략적) 내보내기

-- 테이블 caliverse.mail 구조 내보내기
CREATE TABLE IF NOT EXISTS `mail` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `target` varchar(255) NOT NULL COMMENT '수신 대상(guid/닉네임/파일명)',
  `receive_type` varchar(255) NOT NULL COMMENT '수신 대상(단일/복수)',
  `user_type` varchar(255) NOT NULL COMMENT '유저 타입(guid/닉네임)',
  `is_reserve` bit(1) NOT NULL DEFAULT b'0' COMMENT '예약 발송 여부',
  `send_type` varchar(255) NOT NULL COMMENT '발송 방식',
  `send_status` varchar(255) NOT NULL DEFAULT 'WAIT' COMMENT '발송 상태',
  `mail_type` varchar(255) NOT NULL COMMENT '우편 타입',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `send_dt` datetime DEFAULT NULL,
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='우편 관리';

-- 테이블 데이터 caliverse.mail:~0 rows (대략적) 내보내기

-- 테이블 caliverse.event 구조 내보내기
CREATE TABLE IF NOT EXISTS `event` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `event_type` varchar(255) NOT NULL COMMENT '이벤트 타입',
  `status` varchar(255) NOT NULL DEFAULT 'WAIT' COMMENT '이벤트 상태',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `delete_desc` varchar(255) DEFAULT NULL COMMENT '삭제 사유',
  `start_dt` datetime DEFAULT NULL COMMENT '시작 일자', 
  `end_dt` datetime DEFAULT NULL COMMENT '종료 일자',
  `add_flag` bit(1) NOT NULL DEFAULT b'0' COMMENT '게임DB 추가여부',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='이벤트 관리';

-- 테이블 데이터 caliverse.event:~0 rows (대략적) 내보내기

-- 테이블 caliverse.message 구조 내보내기
CREATE TABLE IF NOT EXISTS `message` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `target_id` bigint(20) NOT NULL,
  `type` varchar(50) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `content` longtext NOT NULL,
  `language` varchar(50) NOT NULL DEFAULT 'ko',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='공지사항& 우편 메시지 내용\r\n';

-- 테이블 데이터 caliverse.message:~0 rows (대략적) 내보내기

-- 테이블 caliverse.notice 구조 내보내기
CREATE TABLE IF NOT EXISTS `notice` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `message_type` varchar(255) NOT NULL DEFAULT 'CHATTING',
  `send_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `is_repeat` bit(1) NOT NULL DEFAULT b'0' COMMENT '반복 발송',
  `repeat_Type` varchar(255) DEFAULT NULL COMMENT '반복 타입',
  `end_dt` datetime DEFAULT NULL COMMENT '종료 일자',
  `repeat_dt` time DEFAULT NULL COMMENT '반복 발송 시간',
  `repeat_cnt` bigint(20) DEFAULT 0 COMMENT '반복 횟수',
  `send_cnt` bigint(20) DEFAULT 0 COMMENT '송출완료 횟수',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `send_status` varchar(255) NOT NULL DEFAULT 'WAIT' COMMENT '발송 상태',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='인게임 메시지(공지사항)';

-- 테이블 데이터 caliverse.notice:~0 rows (대략적) 내보내기

-- 테이블 caliverse.token 구조 내보내기
CREATE TABLE IF NOT EXISTS `token` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `admin_id` bigint(20) NOT NULL,
  `expired` bit(1) NOT NULL,
  `revoked` bit(1) NOT NULL DEFAULT b'0',
  `token` varchar(255) DEFAULT NULL,
  `token_type` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `admin_id` (`admin_id`)
) ENGINE=InnoDB AUTO_INCREMENT=248 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.token:~12 rows (대략적) 내보내기
INSERT INTO `token` (`id`, `admin_id`, `expired`, `revoked`, `token`, `token_type`) VALUES
	(247, 1, b'0', b'0', '[REDACTED], 'BEARER');

-- 테이블 caliverse.white_list 구조 내보내기
CREATE TABLE IF NOT EXISTS `white_list` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `guid` varchar(50) NOT NULL,
  `nickname` varchar(50) NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'REJECT',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '삭제 여부',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- 테이블 데이터 caliverse.white_list:~0 rows (대략적) 내보내기

/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;

-- Autogenerated: do not edit this file

CREATE TABLE IF NOT EXISTS BATCH_JOB_INSTANCE  (
	JOB_INSTANCE_ID BIGINT  NOT NULL PRIMARY KEY ,
	VERSION BIGINT ,
	JOB_NAME VARCHAR(100) NOT NULL,
	JOB_KEY VARCHAR(32) NOT NULL,
	constraint JOB_INST_UN unique (JOB_NAME, JOB_KEY)
) ENGINE=InnoDB;

CREATE TABLE IF NOT EXISTS BATCH_JOB_EXECUTION  (
	JOB_EXECUTION_ID BIGINT  NOT NULL PRIMARY KEY ,
	VERSION BIGINT  ,
	JOB_INSTANCE_ID BIGINT NOT NULL,
	CREATE_TIME DATETIME(6) NOT NULL,
	START_TIME DATETIME(6) DEFAULT NULL ,
	END_TIME DATETIME(6) DEFAULT NULL ,
	STATUS VARCHAR(10) ,
	EXIT_CODE VARCHAR(2500) ,
	EXIT_MESSAGE VARCHAR(2500) ,
	LAST_UPDATED DATETIME(6),
	constraint JOB_INST_EXEC_FK foreign key (JOB_INSTANCE_ID)
	references BATCH_JOB_INSTANCE(JOB_INSTANCE_ID)
) ENGINE=InnoDB;

CREATE TABLE IF NOT EXISTS BATCH_JOB_EXECUTION_PARAMS  (
	JOB_EXECUTION_ID BIGINT NOT NULL ,
	PARAMETER_NAME VARCHAR(100) NOT NULL ,
	PARAMETER_TYPE VARCHAR(100) NOT NULL ,
	PARAMETER_VALUE VARCHAR(2500) ,
	IDENTIFYING CHAR(1) NOT NULL ,
	constraint JOB_EXEC_PARAMS_FK foreign key (JOB_EXECUTION_ID)
	references BATCH_JOB_EXECUTION(JOB_EXECUTION_ID)
) ENGINE=InnoDB;

CREATE TABLE IF NOT EXISTS BATCH_STEP_EXECUTION  (
	STEP_EXECUTION_ID BIGINT  NOT NULL PRIMARY KEY ,
	VERSION BIGINT NOT NULL,
	STEP_NAME VARCHAR(100) NOT NULL,
	JOB_EXECUTION_ID BIGINT NOT NULL,
	CREATE_TIME DATETIME(6) NOT NULL,
	START_TIME DATETIME(6) DEFAULT NULL ,
	END_TIME DATETIME(6) DEFAULT NULL ,
	STATUS VARCHAR(10) ,
	COMMIT_COUNT BIGINT ,
	READ_COUNT BIGINT ,
	FILTER_COUNT BIGINT ,
	WRITE_COUNT BIGINT ,
	READ_SKIP_COUNT BIGINT ,
	WRITE_SKIP_COUNT BIGINT ,
	PROCESS_SKIP_COUNT BIGINT ,
	ROLLBACK_COUNT BIGINT ,
	EXIT_CODE VARCHAR(2500) ,
	EXIT_MESSAGE VARCHAR(2500) ,
	LAST_UPDATED DATETIME(6),
	constraint JOB_EXEC_STEP_FK foreign key (JOB_EXECUTION_ID)
	references BATCH_JOB_EXECUTION(JOB_EXECUTION_ID)
) ENGINE=InnoDB;

CREATE TABLE IF NOT EXISTS BATCH_STEP_EXECUTION_CONTEXT  (
	STEP_EXECUTION_ID BIGINT NOT NULL PRIMARY KEY,
	SHORT_CONTEXT VARCHAR(2500) NOT NULL,
	SERIALIZED_CONTEXT TEXT ,
	constraint STEP_EXEC_CTX_FK foreign key (STEP_EXECUTION_ID)
	references BATCH_STEP_EXECUTION(STEP_EXECUTION_ID)
) ENGINE=InnoDB;

CREATE TABLE IF NOT EXISTS BATCH_JOB_EXECUTION_CONTEXT  (
	JOB_EXECUTION_ID BIGINT NOT NULL PRIMARY KEY,
	SHORT_CONTEXT VARCHAR(2500) NOT NULL,
	SERIALIZED_CONTEXT TEXT ,
	constraint JOB_EXEC_CTX_FK foreign key (JOB_EXECUTION_ID)
	references BATCH_JOB_EXECUTION(JOB_EXECUTION_ID)
) ENGINE=InnoDB;

CREATE TABLE IF NOT EXISTS BATCH_STEP_EXECUTION_SEQ (
	ID BIGINT NOT NULL,
	UNIQUE_KEY CHAR(1) NOT NULL,
	constraint UNIQUE_KEY_UN unique (UNIQUE_KEY)
) ENGINE=InnoDB;

-- 테이블 데이터 caliverse.BATCH_STEP_EXECUTION_SEQ:~0 rows (대략적) 내보내기
INSERT INTO BATCH_STEP_EXECUTION_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_STEP_EXECUTION_SEQ);

CREATE TABLE IF NOT EXISTS BATCH_JOB_EXECUTION_SEQ (
	ID BIGINT NOT NULL,
	UNIQUE_KEY CHAR(1) NOT NULL,
	constraint UNIQUE_KEY_UN unique (UNIQUE_KEY)
) ENGINE=InnoDB;

-- 테이블 데이터 caliverse.BATCH_JOB_EXECUTION_SEQ:~0 rows (대략적) 내보내기
INSERT INTO BATCH_JOB_EXECUTION_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_JOB_EXECUTION_SEQ);

CREATE TABLE IF NOT EXISTS BATCH_JOB_SEQ (
	ID BIGINT NOT NULL,
	UNIQUE_KEY CHAR(1) NOT NULL,
	constraint UNIQUE_KEY_UN unique (UNIQUE_KEY)
) ENGINE=InnoDB;

-- 테이블 데이터 caliverse.BATCH_JOB_SEQ:~0 rows (대략적) 내보내기
INSERT INTO BATCH_JOB_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_JOB_SEQ);

-- 칼리움 요청 정보
CREATE TABLE `calium_request` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `dept` varchar(50) NOT NULL COMMENT '부서',
  `count` float NOT NULL COMMENT '요청 수량',
  `status` varchar(255) NOT NULL DEFAULT 'WAIT' COMMENT '요청 상태',
  `content` longtext NOT NULL COMMENT '요청 사유',
  `request_id` varchar(50) COMMENT '요청 Object ID',
  `create_time` varchar(50) COMMENT '요청 생성시간',
  `state_time` varchar(50) COMMENT '응답시간',
  `state_message` varchar(255) COMMENT '응답 메시지',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='칼리움 요청';

-- 랜드 경매
CREATE TABLE `land_auction` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `land_id` int NOT NULL COMMENT '랜드 아이디',
  `land_name` varchar(255) NOT NULL COMMENT '랜드명',
  `land_size` varchar(50) NOT NULL COMMENT '랜드크기',
  `land_socket` int NOT NULL COMMENT '인스턴스 수',
  `auction_seq` int NOT NULL COMMENT '랜드 시퀀스',
  `status` varchar(255) NOT NULL DEFAULT 'WAIT' COMMENT '경매 상태',
  `resv_start_dt` datetime NOT NULL DEFAULT current_timestamp() COMMENT '예약 시작일',
  `resv_end_dt` datetime NOT NULL DEFAULT current_timestamp() COMMENT '예약 종료일',
  `auction_start_dt` datetime NOT NULL DEFAULT current_timestamp() COMMENT '경매 시작일',
  `auction_end_dt` datetime NOT NULL DEFAULT current_timestamp() COMMENT '경매 종료일',
  `currency_type` varchar(10) NOT NULL DEFAULT 'Calium' COMMENT '입찰 재화',
  `start_price` DECIMAL(15,2) NOT NULL COMMENT '경매 시작가',
  `close_end_dt` datetime COMMENT '낙찰 정산일',
  `close_price` DECIMAL(15,2) COMMENT '낙찰 가격',
  `bidder_guid` varchar(50) COMMENT '낙찰자',
  `bidder_nickname` varchar(50) COMMENT '낙찰자 닉네임',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_land_auction` (`land_id`, `auction_seq`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='랜드 옥션';

--배틀시스템 이벤트
CREATE TABLE `battle_event` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `event_id` int NOT NULL COMMENT '이벤트 아이디',
  `group_id` varchar(50) NOT NULL COMMENT '그룹',
  `event_name` varchar(255) NOT NULL COMMENT '이벤트명',
  `repeat_type` varchar(50) NOT NULL DEFAULT 'NONE' COMMENT '반복타입',
  `event_operation_time` int NOT NULL COMMENT '이벤트 동작시간',
  `status` varchar(255) NOT NULL DEFAULT 'REGISTER' COMMENT '이벤트 상태',
  `event_start_dt` datetime NOT NULL DEFAULT current_timestamp() COMMENT '이벤트 시작일',
  `event_end_dt` datetime NOT NULL DEFAULT current_timestamp() COMMENT '이벤트 종료일',
  `config_id` int NOT NULL COMMENT '설정파일 id',
  `reward_group_id` int NOT NULL COMMENT '보상파일 그룹id',
  `round_time` int NOT NULL COMMENT '라운드 시간',
  `round_count` int NOT NULL COMMENT '라운드 수',
  `hot_time` int COMMENT '핫타임',
  `instance_id` int NOT NULL COMMENT '맵 id',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='배틀시스템 이벤트';

--랜드 소유권 변경
CREATE TABLE `land_ownership_changes` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `land_id` int NOT NULL COMMENT '랜드 아이디',
  `land_name` varchar(255) NOT NULL COMMENT '랜드 명',
  `building_id` int NOT NULL COMMENT '빌딩 아이디',
  `building_name` varchar(255) NOT NULL COMMENT '빌딩 명',
  `user_guid` varchar(255) NOT NULL COMMENT '유저',
  `user_name` varchar(255) NOT NULL COMMENT '유저 닉네임',
  `is_reserve` bit(1) NOT NULL DEFAULT b'0' COMMENT '예약 여부',
  `reservation_dt` datetime NOT NULL DEFAULT current_timestamp() COMMENT '예약일',
  `status` varchar(255) NOT NULL DEFAULT 'WAIT' COMMENT '상태',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  `update_by` varchar(255) DEFAULT NULL,
  `update_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='랜드 소유권 변경';

-- 데이터 초기화 스케줄
CREATE TABLE `data_initialize_schedule` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `data_type` varchar(50) NOT NULL COMMENT '초기화 타입',
  `status` varchar(255) NOT NULL DEFAULT 'WAIT' COMMENT '상태',
  `deleted` bit(1) NOT NULL DEFAULT b'0',
  `create_by` varchar(255) DEFAULT NULL,
  `create_dt` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='데이터 초기화';