쇼핑몰 주문관리 프로그램

테이블 (6)

고객 정보 (customer)

  • 고객 고유 식별자 (Primary Key) (id) — int — 기본 키 — NOT NULL
  • 고객 이름 (username) — varchar(100)
  • 이메일 주소 (email) — varchar(255)
  • 비밀번호 (암호화된 형태) (password) — varchar(500)
  • 핸드폰 번호 (phone) — string(255)
  • 계정 생성일 (createdAt) — datetime
  • 마지막으로 업데이트된 일자 (updatedAt) — datetime
  • 삭제된 일자 (deletedAt) — datetime

배송정보 (shipping)

  • 배송정보 고유 식별자 (Primary Key) (id) — int — 기본 키 — NOT NULL
  • 고객 고유 식별자 (Primary Key) (customers_id) — int — 외래 키 → 고객 정보.고객 고유 식별자 (Primary Key) — NOT NULL
  • 주문 고유 식별자 (Primary Key) (order_id) — int — 외래 키 → 주문 정보.주문 고유 식별자 (Primary Key) — NOT NULL
  • 받는사람 이름 (receiverName) — string
  • 받는사람 핸드폰 번호 (phoneNumber) — string
  • 받는 사람 배송주소 (address) — varchar(500)
  • 우편번호 (postalCode) — varchar(100)
  • 국가 (country) — varchar(100)
  • 주소 생성일 (createdAt) — datetime
  • Field (updatedAt) — datetime
  • Field (deletedAt) — datetime

상품정보 (product)

  • 상품정보 고유 식별자 (Primary Key) (id) — int — 기본 키 — NOT NULL
  • 제품이름 (name) — varchar
  • 제품설명 (description) — text
  • 재고 (stock) — int
  • 가격 (price) — int
  • 제품 생성일 (createdAt) — datatime
  • 마지막으로 업데이트된 일자 (updatedAt) — datatime
  • Field (deletedAt) — datetime

장바구니 (cart)

  • 장바구니 고유 식별자 (Primary Key) (id) — int — 기본 키 — NOT NULL
  • 고객 고유 식별자 (Primary Key) (customers_id) — int — 외래 키 → 고객 정보.고객 고유 식별자 (Primary Key) — NOT NULL
  • 상품정보 고유 식별자 (Primary Key) (products_id) — int — 외래 키 → 상품정보.상품정보 고유 식별자 (Primary Key) — NOT NULL
  • 수량 (quantity) — int
  • 제품이 선택되었는지 여부 (isSelected) — boolean
  • 예상 도착일 (expectedArrival) — datatime
  • 단가 (unitPrice) — int
  • 제품이름 (productName) — string(255)
  • 제품 이미지 URL 또는 데이터 (productImage) — string(255)
  • 배송 타입(일반구매, 정기배송 등) (deliveryType) — string(100)

주문 정보 (order)

  • 주문 고유 식별자 (Primary Key) (id) — int — 기본 키 — NOT NULL
  • 고객 고유 식별자 (Primary Key) (customers_id) — int — 외래 키 → 고객 정보.고객 고유 식별자 (Primary Key) — NOT NULL
  • 주문 상태 (orderStatus) — string
  • 배송 요청사항 (deliveryRequest) — string
  • 배송비 (deliveryFee) — int
  • 결제 방법 (payment) — string
  • 주문 생성 시간 (createdAt) — datetime
  • Field (updatedAt) — datetime
  • Field2 (deletedAt) — datetime

주문상품정보 (orderItem)

  • 주문상품정보 고유 식별자 (Primary Key) (id) — int — 기본 키 — NOT NULL
  • 주문 고유 식별자 (Primary Key) (order_id) — int — 외래 키 → 주문 정보.주문 고유 식별자 (Primary Key) — NOT NULL
  • 상품정보 고유 식별자 (Primary Key) (products_id) — int — 외래 키 → 상품정보.상품정보 고유 식별자 (Primary Key) — NOT NULL
  • 제품 수량 (quantity) — int
  • 가격 (price) — float