diff --git a/algofi-mysql/init/create_table.sql b/algofi-mysql/init/create_table.sql index baf6b50..4f28a7f 100755 --- a/algofi-mysql/init/create_table.sql +++ b/algofi-mysql/init/create_table.sql @@ -12,7 +12,7 @@ CREATE TABLE member ( login_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +); /* filestorage table 생성 */ CREATE TABLE filestorage ( @@ -22,7 +22,7 @@ CREATE TABLE filestorage ( created_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_time TIMESTAMP, FOREIGN KEY(member_id) REFERENCES member(member_id) -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +); /* file table 생성 */ CREATE TABLE file ( @@ -36,7 +36,7 @@ CREATE TABLE file ( parent_id INT NULL, FOREIGN KEY(file_storage_id) REFERENCES filestorage(file_storage_id), FOREIGN KEY(parent_id) REFERENCES file(file_id) ON DELETE CASCADE -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +); /* algorithmproblem table 생성 */ CREATE TABLE algorithmproblem ( @@ -45,13 +45,13 @@ CREATE TABLE algorithmproblem ( level VARCHAR(10) NOT NULL, content TEXT, recommend_time INT -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +); /* chatroom table 생성 */ CREATE TABLE chatroom ( chatroom_id VARCHAR(36) PRIMARY KEY, chatroom_name VARCHAR(100) -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +); /* message table 생성 */ CREATE TABLE message ( @@ -63,7 +63,7 @@ CREATE TABLE message ( chatroom_id VARCHAR(36) NOT NULL, FOREIGN KEY(sender_id) REFERENCES member(member_id), FOREIGN KEY(chatroom_id) REFERENCES chatroom(chatroom_id) -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +); /* member_chatroom table 생성 */ CREATE TABLE member_chatroom ( @@ -84,7 +84,7 @@ CREATE TABLE gameresult ( chatroom_id VARCHAR(36) NOT NULL, FOREIGN KEY (algorithmproblem_id) REFERENCES algorithmproblem(algorithmproblem_id), FOREIGN KEY (chatroom_id) REFERENCES chatroom(chatroom_id) -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +); /* member_gameresult table 생성 */ CREATE TABLE member_gameresult ( @@ -101,4 +101,4 @@ CREATE TABLE testcase ( test_output VARCHAR(500), algorithmproblem_id INT NOT NULL, FOREIGN KEY(algorithmproblem_id) REFERENCES algorithmproblem(algorithmproblem_id) -)CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +);