0504

테이블 (3)

상품 (Product)

  • 번호 (id) — Integer — 기본 키 — NOT NULL
  • 상품명 (name) — Char
  • 종류 (kind) — Char
  • 가격 (price) — Integer
  • 번호 (id2) — Integer — 외래 키 → 편의점.번호

편의점 (Stroe)

  • 번호 (id) — Integer — 기본 키
  • 편의점명 (name) — Char
  • 주소 (address) — Char
  • 전화번호 (phone_number) — Integer

편의점 재고량 (StroeProduct)

  • 재고량 (count) — Integer
  • 가격 (price) — Integer
  • 번호 (stroe_id) — Integer — 외래 키 → 편의점.번호
  • 번호 (product_id) — Integer — 외래 키 → 상품.번호 — NOT NULL