piro16th_cafe

Tables (8)

Cafe (Untitled)

  • 업장번호 (business_id) — int — Primary key — NOT NULL
  • 상호명 (brand_name) — char

Customer (Untitled4)

  • 고객번호 (customer_id) — int — Primary key — NOT NULL
  • 이름 (name) — char

Employ (Untitled7)

  • 등록번호 (register_id) — int — Primary key — NOT NULL
  • 직원번호 (employee_id) — int — Foreign key → Employee.직원번호 — NOT NULL
  • 업장번호 (business_id) — int — Foreign key → Cafe.업장번호 — NOT NULL
  • 고용일자 (employ_date) — datetime

Employee (Untitled2)

  • 직원번호 (employee_id) — int — Primary key — NOT NULL
  • 이름 (name) — char
  • 직급 (job) — char

Membership (Untitled8)

  • 멤버십번호 (membership_id) — int — Primary key — NOT NULL
  • 업장번호 (business_id) — int — Foreign key → Cafe.업장번호 — NOT NULL
  • 고객번호 (customer_id) — int — Foreign key → Customer.고객번호 — NOT NULL
  • 적립금 (point) — int

Menu (Untitled3)

  • 메뉴번호 (menu_id) — int — Primary key — NOT NULL
  • 업장번호 (business_id) — int — Foreign key → Cafe.업장번호 — NOT NULL
  • 이름 (name) — char
  • 가격 (price) — int

Order (Untitled5)

  • 주문번호 (order_id) — int — Primary key — NOT NULL
  • 업장번호 (business_id) — int — Foreign key → Cafe.업장번호 — NOT NULL
  • 고객번호 (customer_id) — int — Foreign key → Customer.고객번호 — NOT NULL
  • 총금액 (total_price) — int

Sell (Untitled6)

  • 판매번호 (sell_id) — int — Primary key — NOT NULL
  • 메뉴번호 (menu_id) — int — Foreign key → Menu.메뉴번호 — NOT NULL
  • 주문번호 (order_id) — int — Foreign key → Order.주문번호 — NOT NULL
  • 판매일자 (sell_at) — datetime