Skip to content

Commit

Permalink
feat: summary 테이블 생성 쿼리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkweon17 committed Feb 15, 2024
1 parent 2dd0bcc commit b5f982e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
);

0 comments on commit b5f982e

Please sign in to comment.