OrderManager

Tables (9)

customer (고객)

  • 고객번호 (customer_id) — NOT NULL — Primary key — NOT NULL
  • 주소 (address) — NOT NULL
  • 상세주소 (address_detail) — NOT NULL
  • 연락처 (contact) — NOT NULL

delivery (배달)

  • 배달번호 (delivery_id) — NOT NULL — Primary key — NOT NULL
  • 주문번호 (order_id) — NOT NULL — Foreign key → order.주문번호 — NOT NULL
  • 배달업체번호 (delivery_company_id) — NOT NULL — Foreign key → delivery_company.배달업체번호 — NOT NULL
  • 배달원번호 (driver_id) — Foreign key → delivery_driver.배달원번호 — NOT NULL
  • 배달팁 (delivery_tips) — NOT NULL
  • 배달 상태 (delivery_status) — NOT NULL

delivery_company (배달 업체)

  • 배달업체번호 (delivery_company_id) — NOT NULL — Primary key — NOT NULL
  • 배달업체명 (company) — NOT NULL
  • 매장번호 (store_id) — NOT NULL — Foreign key → store.매장번호 — NOT NULL

delivery_driver (배달원)

  • 배달원번호 (driver_id) — NOT NULL — Primary key — NOT NULL
  • 배달업체번호 (delivery_company_id) — NOT NULL — Foreign key → delivery_company.배달업체번호 — NOT NULL
  • 배달원 이름 (driver_name) — NOT NULL
  • 배달원 연락처 (driver_phone) — NOT NULL

menu (메뉴)

  • 메뉴번호 (menu_id) — NOT NULL — Primary key — NOT NULL
  • 매장번호 (store_id) — NOT NULL — Foreign key → store.매장번호 — NOT NULL
  • 메뉴명 (menu_name) — NOT NULL
  • 가격 (price) — NOT NULL

order (주문)

  • 주문번호 (order_id) — NOT NULL — Primary key — NOT NULL
  • 고객번호 (customer_id) — NOT NULL — Foreign key → customer.고객번호 — NOT NULL
  • 매장번호 (store_id) — NOT NULL — Foreign key → store.매장번호 — NOT NULL
  • 주문일시 (timestamp) — NOT NULL
  • 주문총액 (total_price) — NOT NULL
  • 고객요청 (customer_request)
  • 주문상태 (order_status) — NOT NULL
  • 주문구분 (order_type) — NOT NULL
  • 결제구분 (payment_type) — NOT NULL

order_Line (주문목록)

  • 주문목록번호 (order_line_id) — NOT NULL — Primary key — NOT NULL
  • 주문번호 (order_id) — NOT NULL — Foreign key → order.주문번호 — NOT NULL
  • 메뉴번호 (menu_id) — NOT NULL — Foreign key → menu.메뉴번호 — NOT NULL
  • 합계 (total_menu_price) — NOT NULL
  • 수량 (quantity) — NOT NULL

owner (사장님)

  • 사장님번호 (owner_id) — NOT NULL — Primary key — NOT NULL
  • 아이디 (username) — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 이름 (name) — NOT NULL
  • 연락처 (phone) — NOT NULL
  • 권한 (role) — NOT NULL

store (매장)

  • 매장번호 (store_id) — NOT NULL — Primary key — NOT NULL
  • 사장님번호 (owner_id) — NOT NULL — Foreign key → owner.사장님번호 — NOT NULL
  • 매장명 (store_name) — NOT NULL