test
Tables (10)
Copy Of restaurants (CopyOfUntitled2)
- 음식점id (restaurant_id) — Primary key — NOT NULL
- 음식점 이름 (restaurant_name)
- 음식점 주소 (address)
- 음식점 전화번호 (restarunt_number)
- 음식점 소개 (Field)
- 영업시간 (restarunt_time)
- Field2
cart (Untitled8)
- 장바구니id (cart_id) — Primary key — NOT NULL
- 주문 수량 (cart_count)
- 현재가격 (cart_price)
- 담은 음식 (cart_item)
- 주문id (order_id) — Foreign key → order.주문id — NOT NULL
- 메뉴id (menu_id) — Foreign key → menu.메뉴id — NOT NULL
coupon (Untitled5)
- 쿠폰id (coupon_id) — Primary key — NOT NULL
- 쿠폰코드 (coupon_code)
- 할인값 (coupon_value)
- 쿠폰 유효 시작일 (coupon_start)
- 쿠폰 유효종료일 (coupon_end)
- Field
- 음식점id (restaurant_id) — Foreign key → restaurants.음식점id — NOT NULL
menu (Untitled3)
- 메뉴id (menu_id) — Primary key — NOT NULL
- 메뉴 이름 (menu_name)
- 메뉴 가격 (price)
- 메뉴 설명 (Field)
- Field2
- 음식점id (restaurant_id) — Foreign key → restaurants.음식점id — NOT NULL
notice (Untitled9)
- 공지사항id (notice_id) — Primary key — NOT NULL
- 제목 (title_id)
- 내용 (content_id)
- (Field)
- 유저id (user_id) — Foreign key → users.유저id — NOT NULL
order (Untitled7)
- 주문id (order_id) — Primary key — NOT NULL
- 총 금액 (total_price)
- 주문상태 (order_status)
- 주문유형 (order_type)
- 주문생성일 (created_at)
- Field
- 유저id (user_id) — Foreign key → users.유저id — NOT NULL
- 음식점id (restaurant_id) — Foreign key → restaurants.음식점id — NOT NULL
- 유저쿠폰id (users_coupon) — Foreign key → users_coupon.유저쿠폰id — NOT NULL
restaurants (Untitled2)
- 음식점id (restaurant_id) — Primary key — NOT NULL
- 음식점 이름 (restaurant_name)
- 음식점 주소 (address)
- 음식점 전화번호 (restarunt_number)
- 음식점 소개 (Field)
- 영업시간 (restarunt_time)
review (Untitled4)
- 리뷰id (review_id) — Primary key — NOT NULL
- 유저id (user_id) — Foreign key → users.유저id — NOT NULL
- 메뉴id (menu_id) — Foreign key → menu.메뉴id — NOT NULL
- 음식점id (restaurant_id) — Foreign key → restaurants.음식점id — NOT NULL
users (Untitled)
- 유저id (user_id) — Primary key — NOT NULL
- 유저이름 (user_name)
- 비밀번호 (password)
- 이메일 (email)
- 닉네임 (nickname)
- 달달한맛 (taste_sweet)
- 짠맛 (taste_satly)
- Field
users_coupon (Untitled6)
- 유저쿠폰id (users_coupon) — Primary key — NOT NULL
- 쿠폰 사용 여부 (is_used)
- 쿠폰 사용 일시 (used_at)
- 쿠폰 획득 일시 (get_coupon)
- Field
- 유저id (user_id) — Foreign key → users.유저id — NOT NULL