Skip to content
Snippets Groups Projects
Commit a2896f7f authored by MinJae Kwon's avatar MinJae Kwon
Browse files

Merge branch 'sync-sqls' into 'main'

fix: sync table schema

See merge request !38
parents 784b6208 8c48668a
No related branches found
No related tags found
1 merge request!38fix: sync table schema
...@@ -58,7 +58,7 @@ CREATE TABLE `Profile` ...@@ -58,7 +58,7 @@ CREATE TABLE `Profile`
DROP TABLE IF EXISTS `Crew`; DROP TABLE IF EXISTS `Crew`;
CREATE TABLE `Crew` CREATE TABLE `Crew`
( (
`crewID` INT NOT NULL, `crewID` INT NOT NULL AUTO_INCREMENT,
`regionID` INT NOT NULL, `regionID` INT NOT NULL,
`name` VARCHAR(100) NOT NULL, `name` VARCHAR(100) NOT NULL,
`sportTypeId` INT NOT NULL, `sportTypeId` INT NOT NULL,
...@@ -77,7 +77,7 @@ CREATE TABLE `Crew` ...@@ -77,7 +77,7 @@ CREATE TABLE `Crew`
DROP TABLE IF EXISTS `Event`; DROP TABLE IF EXISTS `Event`;
CREATE TABLE `Event` CREATE TABLE `Event`
( (
`eventID` INT NOT NULL, `eventID` INT NOT NULL AUTO_INCREMENT,
`crewID` INT NULL COMMENT '크루 ID (선택 항목으로 변경)', `crewID` INT NULL COMMENT '크루 ID (선택 항목으로 변경)',
`regionID` INT NOT NULL, `regionID` INT NOT NULL,
`name` VARCHAR(100) NULL, `name` VARCHAR(100) NULL,
...@@ -125,7 +125,7 @@ CREATE TABLE `Comment` ...@@ -125,7 +125,7 @@ CREATE TABLE `Comment`
`userID` INT NOT NULL, `userID` INT NOT NULL,
`postID` INT NOT NULL, `postID` INT NOT NULL,
`content` TEXT NULL, `content` TEXT NULL,
`commentDate` DATE NULL DEFAULT CURRENT_TIMESTAMP, `commentDate` DATE NULL DEFAULT CURRENT_DATE,
PRIMARY KEY (`commentID`), PRIMARY KEY (`commentID`),
FOREIGN KEY (`userID`) REFERENCES `User` (`userID`), FOREIGN KEY (`userID`) REFERENCES `User` (`userID`),
FOREIGN KEY (`postID`) REFERENCES `Post` (`postID`), FOREIGN KEY (`postID`) REFERENCES `Post` (`postID`),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment