From b5f982e7e4f9592a276e60c33f253e5045ca36a1 Mon Sep 17 00:00:00 2001 From: mjkweon17 Date: Fri, 16 Feb 2024 00:20:07 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20summary=20=ED=85=8C=EC=9D=B4=EB=B8=94?= =?UTF-8?q?=20=EC=83=9D=EC=84=B1=20=EC=BF=BC=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/create_tables.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sql/create_tables.sql b/sql/create_tables.sql index d4ddf53..e68b525 100644 --- a/sql/create_tables.sql +++ b/sql/create_tables.sql @@ -53,3 +53,15 @@ CREATE TABLE `LImages` ( PRIMARY KEY (`image_id`), FOREIGN KEY (`answer_id`) REFERENCES `LAnswers`(`answer_id`) ); + +CREATE TABLE `LSummary` ( + `summary_id` INT AUTO_INCREMENT NOT NULL, + `question_id` INT NOT NULL, + `user_id` INT NOT NULL, + `chapter_id` INT NOT NULL, + `content` TEXT NOT NULL, + PRIMARY KEY (`summary_id`), + FOREIGN KEY (`question_id`) REFERENCES `LQuestions`(`question_id`), + FOREIGN KEY (`user_id`) REFERENCES `LUsers`(`user_id`), + FOREIGN KEY (`chapter_id`) REFERENCES `LChapter`(`chapter_id`) +); \ No newline at end of file