DB수행

테이블 (6)

보관 (Untitled2)

  • 전화번호 (Field) — number
  • Key (상품코드) — string — 외래 키 → 택배.Key — NOT NULL
  • Key (index) — int — 외래 키 → 택배함.Key — NOT NULL

이용자 (user)

  • Key (전화번호) — number — 기본 키 — NOT NULL
  • Field (메세지) — string
  • Field (이름) — string
  • Field (주소) — string
  • Field (아이디) — string

주문 (order)

  • 주문번호 (Field) — STRING
  • 배송지 (Field2) — STRING
  • 주문일자 (Field3)
  • Key (전화번호) — number — 외래 키 → 이용자.Key — NOT NULL
  • Key (상품코드) — string — 외래 키 → 택배.Key — NOT NULL

택배 (ps)

  • Key (상품코드) — string — 기본 키 — NOT NULL
  • Field (주문자 이름) — string
  • Field (운송장 번호) — number
  • Field (상품명) — string
  • Field (주소) — string

택배 찾기 (find)

  • 비밀번호 (Field) — number
  • Key (전화번호) — number — 외래 키 → 이용자.Key — NOT NULL
  • Key (index) — int — 외래 키 → 택배함.Key — NOT NULL

택배함 (delivery box)

  • Key (index) — int — 기본 키 — NOT NULL
  • Field (전화번호) — number
  • Field (비밀번호) — string