delivery
Tables (6)
menu (menu_tb)
- id (menu_id) — BIGINT — Primary key — NOT NULL — 메뉴 고유번호
- storeId (store_id) — BIGINT — Foreign key → store.id — NOT NULL — 가게 고유번호
- name — VARCHAR — NOT NULL — 메뉴명
- imageUrl (image_url) — VARCHAR — 이미지 URL
- price — INT — NOT NULL — 메뉴 가격
- details — VARCHAR — 메뉴 설명
- deletedAt (deleted_at) — TIMESTAMP — 메뉴 삭제일시
order (order_tb)
- id (order_id) — BIGINT — Primary key — NOT NULL — 주문 고유번호
- userId (user_id) — BIGINT — Foreign key → user.id — NOT NULL — 사용자 고유번호
- storeId (store_id) — BIGINT — Foreign key → store.id — NOT NULL — 가게 고유번호
- status — VARCHAR — NOT NULL — 주문 상태
- canceledAt (canceled_at) — TIMESTAMP — 주문 취소일시
- orderedAt (ordered_at) — TIMESTAMP — NOT NULL — 주문일시
- price — INT — NOT NULL — 총 주문 가격
- paymentMethod (Field) — payment_method — NOT NULL — 결제 방법
order_menu (order_menu_tb)
- id (order_menu_id) — BIGINT — Primary key — NOT NULL — 주문 메뉴 고유번호
- orderId (order_id) — BIGINT — Foreign key → order.id — NOT NULL — 주문 고유번호
- menuId (menu_id) — BIGINT — Foreign key → menu.id — NOT NULL — 메뉴 고유번호
review (review_tb)
- id (review_id) — BIGINT — Primary key — NOT NULL — 리뷰 고유번호
- storeId (store_id) — BIGINT — Foreign key → store.id — NOT NULL — 가게 고유번호
- orderId (order_id) — BIGINT — Foreign key → order.id — NOT NULL — 주문 고유번호
- userId (user_id) — BIGINT — Foreign key → user.id — NOT NULL — 사용자 고유번호
- rating — DOUBLE — NOT NULL — 평점
- details — VARCHAR — 리뷰 상세
store (store_tb)
- id (store_id) — BIGINT — Primary key — NOT NULL — 가게 고유번호
- ownerId (owner_id) — BIGINT — Foreign key → user.id — NOT NULL — 가게 주인 고유번호
- name — VARCHAR — NOT NULL — 가게명
- thumbnailUrl (thumbnail_url) — VARCHAR — 가게 썸네일 URL
- details — VARCHAR — 가게 소개
- address — VARCHAR — NOT NULL — 가게 주소
- type — VARCHAR — NOT NULL — 가게 타입
- openAt (open_at) — TIMESTAMP — NOT NULL — 오픈 시간
- closedAt (closed_at) — TIMESTAMP — NOT NULL — 마감 시간
- minOrderPrice (min_order_price) — INT — NOT NULL — 최소 주문 가격
- averageRating (average_rating) — DOUBLE — NOT NULL — 평균 별점
- reviewAmount (review_amount) — INT — NOT NULL — 리뷰 개수
- deletedAt (deleted_at) — TIMESTAMP — 가게 폐업일시
user (user_tb)
- id (user_id) — BIGINT — Primary key — NOT NULL — 사용자 고유번호
- email — VARCHAR — NOT NULL — 이메일
- password — VARCHAR — NOT NULL — 비밀번호
- name — VARCHAR — NOT NULL — 사용자 실명
- nickname — VARCHAR — NOT NULL — 사용자 닉네임
- grade — VARCHAR — NOT NULL — 등급 (BRONZE ~ DIAMOND)
- authority — VARCHAR — NOT NULL — 권한 (USER or OWNER)
- deletedAt (deleted_at) — TIMESTAMP — 사용자 탈퇴일시
- address1 — VARCHAR — NOT NULL — 주소1
- address2 — VARCHAR — NOT NULL — 주소2