11111

Tables (7)

board

  • board_id — INT — NOT NULL
  • b_user_id — INT — Foreign key → customer.user_id — NOT NULL
  • b_item_id — INT — Foreign key → product.item_id — NOT NULL
  • n_type — VARCHAR(1) — NOT NULL
  • title — VARCHAR(100) — NOT NULL
  • board_date — DATETIME
  • content — VARCHAR(300) — NOT NULL
  • rate — INT

cart

  • cart_id — INT — Primary key — NOT NULL
  • c_user_id — INT — Foreign key → customer.user_id — NOT NULL
  • c_item_id — INT — Foreign key → product.item_id — NOT NULL
  • cnt — INT — NOT NULL
  • price_sum — INT — NOT NULL

customer

  • user_id — INT — Primary key — NOT NULL
  • user_email — VARCHAR(50) — NOT NULL
  • user_name — VARCHAR(15) — NOT NULL
  • user_pwd — VARCHAR(150) — NOT NULL
  • user_phonenum — VARCHAR(15) — NOT NULL
  • user_gender — INT

delivery

  • delivery_id — INT — Primary key — NOT NULL
  • zipcode — VARCHAR(6) — NOT NULL
  • takep_request — VARCHAR(100)
  • order_id — INT — Foreign key → orders.order_id — NOT NULL
  • deliver_action (Field) — VARCHAR(20)

orders

  • order_id — INT — Primary key — NOT NULL
  • order_date — DATETIME
  • takep_name — VARCHAR(15) — NOT NULL
  • takep_phonenum — VARCHAR(15) — NOT NULL
  • takep_address — VARCHAR(300) — NOT NULL
  • o_cart_id (cart_id) — INT — Foreign key → cart.cart_id — NOT NULL

product

  • item_id — INT — Primary key — NOT NULL
  • item_name — VARCHAR(150) — NOT NULL
  • item_exp — VARCHAR(1000)
  • img — VARCHAR(6000)
  • item_price — INT — NOT NULL
  • cnt — INT — NOT NULL
  • category_name — VARCHAR(30) — NOT NULL
  • CHECK — (cnt>= 0)

wish

  • wish_id — INT — Primary key — NOT NULL
  • w_user_id — INT — Foreign key → customer.user_id — NOT NULL
  • w_item_id — INT — Foreign key → product.item_id — NOT NULL