200504exercise

Tables (10)

branch (Untitled6)

  • 지점 코드 (code) — Character(10) — Primary key — NOT NULL
  • 시군구 코드 (code2) — Integer(5) — Foreign key → city.시군구 코드 — NOT NULL
  • 시도 코드 (province.code) — Integer(2) — Foreign key → city.시도 코드 — NOT NULL
  • 지점 명 (name) — Character(10)

city (Untitled4)

  • 시군구 코드 (code) — Integer(5) — Primary key — NOT NULL
  • 시도 코드 (province.code) — Integer(2) — Foreign key → province.시도 코드 — NOT NULL
  • 지역(시/군/구) (name) — Character(5)

date_revenue (Untitled10)

  • Key — Primary key — NOT NULL
  • 점포 id (code) — Character(10) — Foreign key → store.점포 id — NOT NULL
  • 날짜 (date) — Date
  • 매출액 (revenue)

display (Untitled2)

  • 점포 id (Key) — Foreign key → store.점포 id — NOT NULL
  • 일렬번호 (Key2) — Foreign key → product.일렬번호 — NOT NULL
  • 품목 코드 (Key22) — Foreign key → product.품목 코드 — NOT NULL
  • 제조사 코드 (Key32) — Foreign key → product.제조사 코드 — NOT NULL
  • 입고시점 (Field)
  • 판매시점 (Field3)
  • 유통기한 (Field2)

item (Untitled7)

  • 품목 코드 (Key) — Primary key — NOT NULL
  • 품목 명 (Field)

manufacturer (Untitled8)

  • 제조사 코드 (Key) — Primary key — NOT NULL
  • 제조사 명 (Field) — Primary key
  • 시군구 코드 (Key2) — Foreign key → city.시군구 코드 — NOT NULL
  • 시도 코드 (Key22) — Foreign key → city.시도 코드 — NOT NULL
  • 주소 (Field2)
  • 전화번호 (Field3)

manufacturer_item (Untitled9)

  • 제조사 코드 (Key) — Foreign key → manufacturer.제조사 코드 — NOT NULL
  • 제조사 명 (Field) — Foreign key → manufacturer.제조사 명
  • 시군구 코드 (Key2) — Foreign key → manufacturer.시군구 코드 — NOT NULL
  • 시도 코드 (Key22) — Foreign key → manufacturer.시도 코드 — NOT NULL
  • 품목 코드 (Key3) — Foreign key → item.품목 코드 — NOT NULL

product (Untitled3)

  • 일렬번호 (Key) — Primary key — NOT NULL
  • 품목 코드 (Key2) — Foreign key → item.품목 코드 — NOT NULL
  • 제조사 코드 (Key3) — Foreign key → manufacturer.제조사 코드 — NOT NULL
  • 제품 명 (Field)
  • 가격 (Field3)

province (Untitled5)

  • 시도 코드 (code) — Integer(2) — Primary key — NOT NULL
  • 지역(시/도) (name) — Character(10)

store (Untitled)

  • 점포 id (code) — Character(10) — Primary key — NOT NULL
  • 시군구 코드 (city.code) — Integer(5) — Foreign key → city.시군구 코드 — NOT NULL
  • 시도 코드 (province.code) — Integer(2) — Foreign key → city.시도 코드 — NOT NULL
  • 지점 코드 (branch.code) — Character(10) — Foreign key → branch.지점 코드 — NOT NULL
  • 점포 명 (name) — Character(20)
  • 주소 (address) — Character(100)
  • 전화번호 (phone_number) — Integer(11)