OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-11-15 42d7d22a1832dbf91cafcedf872c65817401fb94
src/main/resources/migration/V1_11__Alter_Table.sql
@@ -52,4 +52,75 @@
    `modify_id` BIGINT(20) NOT NULL,
    `modify_date` TIMESTAMP NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
) 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;