From 6ee7dd9c3d8cc211ee5a01bbe481cabbb9c890eb Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 월, 22 11월 2021 12:42:31 +0900 Subject: [PATCH] 이슈 상세 연관,하위 테이블 표시 설정 - [프론트] --- src/main/resources/migration/V1_11__Alter_Table.sql | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/src/main/resources/migration/V1_11__Alter_Table.sql b/src/main/resources/migration/V1_11__Alter_Table.sql index caf331d..9d9de68 100644 --- a/src/main/resources/migration/V1_11__Alter_Table.sql +++ b/src/main/resources/migration/V1_11__Alter_Table.sql @@ -129,3 +129,56 @@ -- �긽�쐞 �씠�뒋 ALTER TABLE `issue` ADD COLUMN `parent_issue_id` BIGINT(11) NULL; + +CREATE TABLE `issue_company` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `issue_id` bigint(20) NOT NULL, + `company_id` bigint(20) DEFAULT NULL, + `name` VARCHAR(50) NULL, + `manager` VARCHAR(50) NULL, + `tel` VARCHAR (50) NULL, + `email` VARCHAR (255) NULL, + `memo` VARCHAR(255) NULL, + `register_id` bigint(20) NOT NULL COMMENT 'register_id', + `register_date` timestamp NULL DEFAULT NULL COMMENT 'register_date', + `modify_id` bigint(20) NOT NULL COMMENT 'modify_id', + `modify_date` timestamp NULL DEFAULT NULL COMMENT 'modify_date', + PRIMARY KEY (`id`) USING BTREE, + INDEX `companyIdIndex` (`company_id`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +CREATE TABLE `issue_hosting` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `issue_id` bigint(20) NOT NULL, + `hosting_id` bigint(20) DEFAULT NULL, + `name` VARCHAR(50) NULL, + `code` VARCHAR(50) NULL, + `manager` VARCHAR(50) NULL, + `tel` VARCHAR (50) NULL, + `email` VARCHAR (255) NULL, + `memo` VARCHAR(255) NULL, + `register_id` bigint(20) NOT NULL COMMENT 'register_id', + `register_date` timestamp NULL DEFAULT NULL COMMENT 'register_date', + `modify_id` bigint(20) NOT NULL COMMENT 'modify_id', + `modify_date` timestamp NULL DEFAULT NULL COMMENT 'modify_date', + PRIMARY KEY (`id`) USING BTREE, + INDEX `hostingIdIndex` (`hosting_id`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +CREATE TABLE `issue_isp` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', + `issue_id` bigint(20) NOT NULL, + `isp_id` bigint(20) DEFAULT NULL, + `name` VARCHAR(50) NULL, + `code` VARCHAR(50) NULL, + `manager` VARCHAR(50) NULL, + `tel` VARCHAR (50) NULL, + `email` VARCHAR (255) NULL, + `memo` VARCHAR(255) NULL, + `register_id` bigint(20) NOT NULL COMMENT 'register_id', + `register_date` timestamp NULL DEFAULT NULL COMMENT 'register_date', + `modify_id` bigint(20) NOT NULL COMMENT 'modify_id', + `modify_date` timestamp NULL DEFAULT NULL COMMENT 'modify_date', + PRIMARY KEY (`id`) USING BTREE, + INDEX `ispIdIndex` (`isp_id`) USING BTREE + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- Gitblit v1.8.0