VbzCart/docs/tables/cart data

From Woozle Writes Code
< VbzCart‎ | docs‎ | tables
Revision as of 15:03, 25 July 2019 by imported>Woozle (Created page with "==About== * '''Purpose''': This is a simple table for retaining customer data entered at check-out time before converting the cart to an order. * '''Relates to''': parent: {{l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  • Purpose: This is a simple table for retaining customer data entered at check-out time before converting the cart to an order.
  • Relates to: parent: shop_cart
  • History:
    • 2019-07-25 creating from scratch, but very similar to the (obsolete) shop_cart_data table

SQL

DROP TABLE IF EXISTS `cart_data`;
CREATE TABLE `cart_data` (
  `ID_Cart`    INT NOT NULL COMMENT "shop_cart.ID",
  `name`       VARCHAR(63)  NOT NULL COMMENT "field name - defined in code",
  `value`      VARCHAR(255) NOT NULL COMMENT "Value of data item",
  PRIMARY KEY(`ID_Cart`,`name`)
 ) ENGINE = InnoDB;