편의점

테이블 (4)

상품 (product)

  • Product_id (product_id) — INT(11) — 기본 키 — NOT NULL
  • Convenience_Store_id (convenience_store_id) — INT(11) — 외래 키 → 편의점.Convenience_Store_id — NOT NULL
  • Name (name) — VARCHAR(255)
  • Price (price) — VARCHAR(255)
  • Shelf_Life (shelf_life) — INT(10)
  • Kind (kind) — VARCHAR(255)
  • Stock (stock) — VARCHAR(255) — NOT NULL

직원 (employee)

  • Employee_id (employee_id) — INT(11) — 기본 키 — NOT NULL
  • Convenience_Store_id (convenience_store_id) — INT(11) — 외래 키 → 편의점.Convenience_Store_id — NOT NULL
  • Last_Name (last_name) — VARCHAR(255)
  • First_Name (first_name) — VARCHAR(255)
  • Phone (phone) — VARCHAR(20)
  • Email (email) — VARCHAR(100)
  • Gender (gender) — CHAR(1)

판매 (sell)

  • Sell_id (sell_id) — INT(11) — 기본 키 — NOT NULL
  • Product_id (product_id) — INT(11) — 외래 키 → 상품.Product_id — NOT NULL
  • Convenience_Store_id (convenience_store_id) — INT(11) — 외래 키 → 상품.Convenience_Store_id — NOT NULL
  • Sell_Date (sell_date) — VARCHAR(255) — NOT NULL

편의점 (convenient_store)

  • Convenience_Store_id (convenience_store_id) — INT(11) — 기본 키 — NOT NULL
  • Manager (manager) — VARCHAR(255)
  • Phone (phone) — VARCHAR(20)