ohouse

테이블 (11)

Cart (Untitled2)

  • cartId (cart_id) — 기본 키 — NOT NULL
  • userId (user_id) — 외래 키 → 유저.아이디 — NOT NULL
  • detailProductId (detail_product_id) — 외래 키 → DetailProduct.detailProductId — NOT NULL
  • productOptionId (product_option_id) — 외래 키 → DetailProduct.productOptionId — NOT NULL
  • productId (product_id) — 외래 키 → DetailProduct.productId — NOT NULL
  • amount

Delivery (Untitled10)

  • deliveryId (delivery_id) — 기본 키 — NOT NULL
  • name
  • receiver
  • phoneNumber
  • address
  • request

DeliveryList (Untitled9)

  • deliveryListId (delivery_list_id) — 기본 키 — NOT NULL
  • orderId (order_id) — 외래 키 → Order.orderId — NOT NULL
  • userId (user_id) — 외래 키 → Order.userId — NOT NULL
  • productId (product_id) — 외래 키 → ProductDelivery.productId — NOT NULL
  • deliveryId (delivery_id) — 외래 키 → Order.deliveryId — NOT NULL
  • price

DetailProduct (Untitled3)

  • detailProductId (detail_product_id) — 기본 키 — NOT NULL
  • productOptionId (product_option_id) — 외래 키 → ProductOption.productOptionId — NOT NULL
  • productId (product_id) — 외래 키 → ProductOption.productId — NOT NULL
  • name
  • price

Order (Untitled4)

  • orderId (order_id) — 기본 키 — NOT NULL
  • userId (user_id) — 외래 키 → 유저.아이디 — NOT NULL
  • deliveryId (delivery_id) — 외래 키 → Delivery.deliveryId — NOT NULL
  • status
  • totalPrice (total_price)
  • productPrice (product_price)
  • deliveryPrice (delivery_price)

OrderList (Untitled5)

  • orderListId (order_list_id) — 기본 키 — NOT NULL
  • orderId (order_id) — 외래 키 → Order.orderId — NOT NULL
  • userId (user_id) — 외래 키 → 유저.아이디 — NOT NULL
  • detailProductId (detail_product_id) — 외래 키 → DetailProduct.detailProductId — NOT NULL
  • productOptionId (product_option_id) — 외래 키 → DetailProduct.productOptionId — NOT NULL
  • productId (product_id2) — 외래 키 → DetailProduct.productId — NOT NULL
  • deliveryId (delivery_id) — 외래 키 → Order.deliveryId — NOT NULL
  • price
  • amount

Product (Untitled6)

  • productId (product_id) — 기본 키 — NOT NULL
  • isDiscount (is_discount)
  • discountDegree (discount_degree)
  • name

ProductDelivery (Untitled8)

  • deliveryId (delivery_id) — 기본 키 — NOT NULL
  • productId (product_id) — 외래 키 → Product.productId — NOT NULL
  • deliveryType (dlivery_type) — 묶음배송 - 가격 고정 + 무료 배송 기준점 있음 일반 배송 - 가격 0이면 무료배송, 아니면 하나당 추가 화물 배송 - 가격 고정 + 무료 배송 기준점 없음
  • price
  • freeShippingPrice (free_shipping_price)

ProductImage (Untitled11)

  • productImageId (product_image_id) — 기본 키 — NOT NULL
  • productId (product_id) — 외래 키 → Product.productId — NOT NULL
  • imageUrl (image_url)

ProductOption (Untitled7)

  • productOptionId (product_option_id) — 기본 키 — NOT NULL
  • productId (product_id) — 외래 키 → Product.productId — NOT NULL
  • option

유저 (user)

  • 아이디 (user_id) — BIGINT — 기본 키 — NOT NULL
  • 이메일 (email) — VARCHAR2(40) — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 닉네임 (nickname) — NOT NULL
  • 구매등급 (grade) — NOT NULL