diff --git a/app/Database/base.sql b/app/Database/base.sql index a7ae08d..635de37 100644 --- a/app/Database/base.sql +++ b/app/Database/base.sql @@ -90,6 +90,6 @@ CREATE TABLE servermgr.tw_board ( created_at timestamp NOT NULL DEFAULT current_timestamp(), deleted_at timestamp NULL DEFAULT NULL, PRIMARY KEY (uid), - CONSTRAINT FOREIGN KEY (cartory_uid) REFERENCES tw_category (uid), + CONSTRAINT FOREIGN KEY (category_uid) REFERENCES tw_category (uid), CONSTRAINT FOREIGN KEY (user_uid) REFERENCES tw_user (uid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT ='게시물 정보'; \ No newline at end of file diff --git a/app/Database/shoppingmall.sql b/app/Database/shoppingmall.sql index 9c0121a..7c38c1c 100644 --- a/app/Database/shoppingmall.sql +++ b/app/Database/shoppingmall.sql @@ -58,7 +58,7 @@ CREATE TABLE shoppingmall.tw_board ( created_at timestamp NOT NULL DEFAULT current_timestamp(), deleted_at timestamp NULL DEFAULT NULL, PRIMARY KEY (uid), - CONSTRAINT FOREIGN KEY (cartory_uid) REFERENCES tw_category (uid), + CONSTRAINT FOREIGN KEY (category_uid) REFERENCES tw_category (uid), CONSTRAINT FOREIGN KEY (user_uid) REFERENCES tw_user (uid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT ='게시물 정보';