VbzCart/docs/tables/ord pull

From Woozle Writes Code
< VbzCart‎ | docs‎ | tables
Revision as of 01:26, 10 July 2009 by imported>Woozle (New page: ==About== * '''Purpose''': Log of order pulls/releases * '''Notes''': this should probably be expanded into an order-related event log * '''Relates to''': {{vbzcart|table|core_orders}}, {{...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  • Purpose: Log of order pulls/releases
  • Notes: this should probably be expanded into an order-related event log
  • Relates to: Template:Vbzcart, Template:Vbzcart
  • Fields:
    • WhenFreed (was WhenReleased): when the pull was cancelled/revoked; NOT NULL means this pull is inactive
  • History:
    • 2009-07-09 Adapted from MS Access

SQL

<section begin=sql /><mysql>CREATE TABLE `ord_pull` (

 `ID`         INT             NOT NULL AUTO_INCREMENT,
 `ID_Ord`     INT             NOT NULL COMMENT "core_orders.ID",
 `ID_Type`    INT             NOT NULL COMMENT "ord_pull_type.ID",
 `WhenPulled` DATETIME        NOT NULL COMMENT "when this pull occurred",
 `WhenFreed` DATETIME     DEFAULT NULL COMMENT "when this pull was dropped",
 `Notes`     VARCHAR(255) DEFAULT NULL COMMENT "human-added notes",
 PRIMARY KEY(`ID`)

) ENGINE = MYISAM;</mysql> <section end=sql />