show databases;
use carrot;
show tables;
desc user;
SELECT * from user;
INSERT INTO user(id, email, password, nickName, mobileNumber, point, mannerTemperature, isLogin, createdAt, isDelete, updatedAt)
values(uuid(), 'abc@naver.com', '1234','ssad','010-1111-1111',0, 36.5, false, now(), false, now());
SELECT * from user;
desc product_category;
SELECT * FROM product_category;
INSERT INTO product_category(id, name)
values(uuid(), '디지털기기');
SELECT * FROM product_category;
desc product_tag ;
select * from product_tag;
insert into product_tag(id, name)
values(uuid(),'애플워치');
SELECT * from product_tag;
desc product_saleslocation;
SELECT * from product_saleslocation ;
insert into product_saleslocation(id, address, addressDetail, latitude, logitude, meetingTime)
values(uuid(), "화순군 어딘가", "화순군 칠충로", 11.11233111, 10.11242111, '2023-05-28');
desc product;
SELECT * FROM product;
INSERT INTO product(id, title, description ,price, sellerId, productCategoryId , productSaleslocationId)
values(uuid(), '애플워치 판매', '애플워치S급 판매함 ^ㅆ^',300000, 'f14001bf-b66f-11ed-8ffa-80fa5b488ba1','f9355f13-b670-11ed-8ffa-80fa5b488ba1', '3f6f5786-b673-11ed-8ffa-80fa5b488ba1');
SELECT * FROM product;
update product
set title ="애플워치 7 S급 판매"
where id = 'a786e740-b674-11ed-8ffa-80fa5b488ba1';
SELECT * FROM product;
SELECT *
from product p, product_saleslocation ps
where p.productSaleslocationId = ps.id;