VbzCart/docs/tables/ord pull: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | tables
Jump to navigation Jump to search
imported>Woozle
(expanded "Notes" field)
imported>Woozle
(added user/machine fields)
Line 1: Line 1:
==About==
-==About==-
* '''Purpose''': Log of order pulls/releases
* '''Purpose''': Log of order pulls/releases
* '''Notes''': this should probably be expanded into an order-related event log
* '''Notes''': this should probably be expanded into an order-related event log
Line 9: Line 9:
** '''2009-07-09''' Adapted from MS Access
** '''2009-07-09''' Adapted from MS Access
** '''2009-07-10''' Expanded "Notes" from VARCHAR(255) to MEDIUMTEXT
** '''2009-07-10''' Expanded "Notes" from VARCHAR(255) to MEDIUMTEXT
** '''2009-10-27''' Added user/machine fields
==SQL==
==SQL==
<section begin=sql /><mysql>CREATE TABLE `ord_pull` (
<section begin=sql /><mysql>CREATE TABLE `ord_pull` (
Line 16: Line 17:
   `WhenPulled` DATETIME      NOT NULL COMMENT "when this pull occurred",
   `WhenPulled` DATETIME      NOT NULL COMMENT "when this pull occurred",
   `WhenFreed`  DATETIME  DEFAULT NULL COMMENT "when this pull was dropped",
   `WhenFreed`  DATETIME  DEFAULT NULL COMMENT "when this pull was dropped",
/* fields relating to who pulled the order */
  `VbzUser`    VARCHAR(127)            COMMENT "VbzCart username, if available",
  `SysUser`    VARCHAR(127)            COMMENT "operating system username, if available",
  `Machine`    VARCHAR(63)    NOT NULL COMMENT "network name or IP address of client",
   `Notes`      MEDIUMTEXT DEFAULT NULL COMMENT "human-added notes",
   `Notes`      MEDIUMTEXT DEFAULT NULL COMMENT "human-added notes",
   PRIMARY KEY(`ID`)
   PRIMARY KEY(`ID`)

Revision as of 15:28, 27 October 2009

-==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
    • Notes may include quite lengthy explanations of what happened (similar to Template:Vbzcart)
  • History:
    • 2009-07-09 Adapted from MS Access
    • 2009-07-10 Expanded "Notes" from VARCHAR(255) to MEDIUMTEXT
    • 2009-10-27 Added user/machine fields

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",

/* fields relating to who pulled the order */

 `VbzUser`    VARCHAR(127)            COMMENT "VbzCart username, if available",
 `SysUser`    VARCHAR(127)            COMMENT "operating system username, if available",
 `Machine`    VARCHAR(63)    NOT NULL COMMENT "network name or IP address of client",
 `Notes`      MEDIUMTEXT DEFAULT NULL COMMENT "human-added notes",
 PRIMARY KEY(`ID`)

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