Foodplatform

Tables (7)

ceo (사장님)

  • 사장님 아이디 (ceoid) — PK — Primary key — NOT NULL
  • 사장님 이름 (ceoname)
  • 가게 종류 (ceoshop)

coupon (쿠폰종류)

  • 쿠폰 코드 (cpid) — PK — Primary key — NOT NULL
  • 할인률 (discount)
  • 쿠폰 이름 (cpname)

eventwin (쿠폰 소지자)

  • 사용자 아아디 (userid) — PK — Primary key — NOT NULL
  • 사용자 등급 (grade)
  • 할인률 (discount)
  • 쿠폰 이름 (eventname)

foodmenu (음식종류)

  • 음식 이름 (foodname) — PK — Primary key — NOT NULL
  • 음식 가격 (foodprice)
  • 음식 가게 (foodmesort)

orderlog (주문내역)

  • 주문번호 (no) — PK — Primary key — NOT NULL
  • 사용자 아이디 (user) — FK
  • 음식 이름 (product) — FK
  • 주문 날짜 (ymd)
  • 주문 갯수 (count)
  • 주문 가게 (shop)
  • 개당 가격 (TPrice) — 0

orderlog2 (장바구니)

  • 사용자 아이디 (user)
  • 음식 이름 (product)
  • 주문 날짜 (ymd)
  • 주문 갯수 (count)
  • 주문 가게 (shop)
  • 개당 가격 (TPrice) — 0

user (사용자)

  • 아이디 (id) — PK — Primary key — NOT NULL
  • 비밀번호 (password)
  • 이름 (name)
  • 잔금 (money) — 0
  • 등급 (grade) — 브론즈
  • 주문횟수 (ordercount) — 0