From 6cf9e708eaff0139bd2acfe48135e35577c30672 Mon Sep 17 00:00:00 2001 From: Ahn YoungSeon Date: Mon, 6 Dec 2021 18:32:56 +0900 Subject: [PATCH] #16 db like query edit --- config/material.sql | 1 + config/product.sql | 1 + config/query.sql | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/material.sql b/config/material.sql index 2421cbc..df0138e 100644 --- a/config/material.sql +++ b/config/material.sql @@ -2,6 +2,7 @@ -- insert into `recipe` values(null, 'cocktail', 'content') -- 재료테이블 -- 재료테이블 + INSERT INTO `material` VALUES(1, '보드카'); diff --git a/config/product.sql b/config/product.sql index f7f6516..eca6757 100644 --- a/config/product.sql +++ b/config/product.sql @@ -1,4 +1,5 @@ -- 제품 테이블 + INSERT INTO `product` VALUES(NULL, '보드카', '앱솔루트'); diff --git a/config/query.sql b/config/query.sql index d339646..85930ff 100644 --- a/config/query.sql +++ b/config/query.sql @@ -19,7 +19,7 @@ create table `post` ( PRIMARY KEY (`id`) ); -create table `like` ( +create table `liked` ( `id` bigint NOT NULL AUTO_INCREMENT, `postId` bigint NOT NULL, `userId` bigint NOT NULL,