From 9e1224315ff031c5cfccda6ccb0d7841729d8612 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 월, 15 11월 2021 17:21:52 +0900
Subject: [PATCH] Merge branch 'master' of http://192.168.0.25:9001/r/owl-kisa

---
 src/main/resources/migration/V1_11__Alter_Table.sql |   90 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 87 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/migration/V1_11__Alter_Table.sql b/src/main/resources/migration/V1_11__Alter_Table.sql
index b786560..dd41b81 100644
--- a/src/main/resources/migration/V1_11__Alter_Table.sql
+++ b/src/main/resources/migration/V1_11__Alter_Table.sql
@@ -12,7 +12,7 @@
     PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
-CREATE TABLE `isp`(
+CREATE TABLE `isp_field`(
     `id` BIGINT(11) AUTO_INCREMENT,
     `code` varchar (50) NOT NULL,
     `name` VARCHAR(50) NOT NULL,
@@ -28,9 +28,9 @@
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 
-CREATE TABLE `hosting`(
+CREATE TABLE `hosting_field`(
     `id` BIGINT(11) AUTO_INCREMENT,
-    `code` varchar (50) NOT NULL,
+    `code` VARCHAR(50) NOT NULL,
     `name` VARCHAR(50) NOT NULL,
     `manager` VARCHAR(50) NULL,
     `tel` VARCHAR (50) NULL,
@@ -43,3 +43,87 @@
     PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
+CREATE TABLE `user_department`(
+    `id` BIGINT(11) AUTO_INCREMENT,
+    `department_id` BIGINT(11),
+    `user_id` BIGINT(11),
+    `register_id` BIGINT(20) NOT NULL,
+    `register_date` TIMESTAMP NULL,
+    `modify_id` BIGINT(20) NOT NULL,
+    `modify_date` TIMESTAMP NULL,
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+
+-- api 愿��젴
+ALTER TABLE `user` ADD COLUMN  `insert_type` VARCHAR(1) NOT NULL DEFAULT 'N';
+
+CREATE TABLE `api_token`(
+    `id` BIGINT(11) AUTO_INCREMENT,
+    `user_id` BIGINT(50) NOT NULL,
+    `app_name` VARCHAR(50) NOT NULL,
+    `token` VARCHAR(1024) NOT NULL,
+    `register_id` BIGINT(20) NOT NULL,
+    `register_date` TIMESTAMP NULL,
+    `modify_id` BIGINT(20) NOT NULL,
+    `modify_date` TIMESTAMP NULL,
+    PRIMARY KEY (`id`) USING BTREE,
+    INDEX `userIdIndex` (`user_id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+CREATE TABLE `issue_api_default`(
+    `id` BIGINT(11) AUTO_INCREMENT,
+    `user_id` BIGINT(11) NOT NULL,
+    `issue_type_id` bigint(11) NOT NULL,
+    `issue_status_id` bigint(20) DEFAULT NULL,
+    `project_id` bigint(20) DEFAULT NULL,
+    `priority_id` bigint(20) DEFAULT NULL,
+    `severity_id` bigint(20) DEFAULT NULL,
+    `title` varchar(300) DEFAULT NULL,
+    `description` mediumtext COMMENT 'description',
+    `reverse_index` bigint(20) DEFAULT NULL,
+    `issue_number` bigint(20) DEFAULT NULL,
+    `start_date` varchar(20) DEFAULT NULL,
+    `complete_date` varchar(20) DEFAULT NULL,
+    `register_id` BIGINT(20) NOT NULL,
+    `register_date` TIMESTAMP NULL,
+    `modify_id` BIGINT(20) NOT NULL,
+    `modify_date` TIMESTAMP NULL,
+    PRIMARY KEY (`id`) USING BTREE,
+    INDEX `userIdIndex` (`user_id`) USING BTREE,
+    INDEX `issueTypeIdIndex` (`issue_type_id`) USING BTREE
+
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+CREATE TABLE `custom_field_api_default`(
+   `id` BIGINT(11) AUTO_INCREMENT,
+   `user_id` BIGINT(11) NOT NULL,
+   `issue_type_id` BIGINT(11) NOT NULL,
+   `custom_field_id` BIGINT(11) NOT NULL,
+   `custom_field_value` varchar(300) NOT NULL,
+   `register_id` BIGINT(20) NOT NULL,
+   `register_date` TIMESTAMP NULL,
+   `modify_id` BIGINT(20) NOT NULL,
+   `modify_date` TIMESTAMP NULL,
+   PRIMARY KEY (`id`) USING BTREE,
+   INDEX `userIdIndex` (`user_id`) USING BTREE,
+   INDEX `issueTypeIdIndex` (`issue_type_id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+CREATE TABLE `custom_field_api_overlap`(
+   `id` BIGINT(11) AUTO_INCREMENT,
+   `user_id` BIGINT(11) NOT NULL,
+   `issue_type_id` BIGINT(11) NOT NULL,
+   `custom_field_id` BIGINT(11) NOT NULL,
+   `register_id` BIGINT(20) NOT NULL,
+   `register_date` TIMESTAMP NULL,
+   `modify_id` BIGINT(20) NOT NULL,
+   `modify_date` TIMESTAMP NULL,
+   PRIMARY KEY (`id`) USING BTREE,
+   INDEX `userIdIndex` (`user_id`) USING BTREE,
+   INDEX `issueTypeIdIndex` (`issue_type_id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- �씠�뒋 ���엯 �봽濡쒖젥�듃
+ALTER TABLE `issue_type` ADD COLUMN  `project_id` BIGINT(11) NULL;
+

--
Gitblit v1.8.0