VbzCart/docs/tables/cust names: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle (moved from "customer tables" page) |
imported>Woozle (added WhenEnt, WhenUpd) |
||
Line 2: | Line 2: | ||
* '''History''': | * '''History''': | ||
** '''2009-07-09''' moved to separate wiki page; no design changes | ** '''2009-07-09''' moved to separate wiki page; no design changes | ||
** '''2011-11-23''' added WhenEnt, WhenUpd | |||
==SQL== | ==SQL== | ||
<section begin=sql /><mysql>CREATE TABLE `cust_names` ( | <section begin=sql /><mysql>CREATE TABLE `cust_names` ( | ||
`ID` INT NOT NULL AUTO_INCREMENT, | `ID` INT NOT NULL AUTO_INCREMENT, | ||
`WhenEnt` DATETIME NOT NULL COMMENT "date when record was first created", | |||
`WhenUpd` DATETIME DEFAULT NULL COMMENT "date when record was last updated", | |||
`ID_Cust` INT COMMENT "core_custs.ID", | `ID_Cust` INT COMMENT "core_custs.ID", | ||
`Name` VARCHAR(127) COMMENT "customer's name, for shipping label", | `Name` VARCHAR(127) COMMENT "customer's name, for shipping label", |
Revision as of 13:04, 23 November 2011
About
- History:
- 2009-07-09 moved to separate wiki page; no design changes
- 2011-11-23 added WhenEnt, WhenUpd
SQL
<section begin=sql /><mysql>CREATE TABLE `cust_names` (
`ID` INT NOT NULL AUTO_INCREMENT, `WhenEnt` DATETIME NOT NULL COMMENT "date when record was first created", `WhenUpd` DATETIME DEFAULT NULL COMMENT "date when record was last updated", `ID_Cust` INT COMMENT "core_custs.ID", `Name` VARCHAR(127) COMMENT "customer's name, for shipping label", `NameSrch` VARCHAR(127) COMMENT "name with delimiters removed, for matching", `isActive` BOOL DEFAULT FALSE COMMENT "NO=wrong spelling or name; use for searching", PRIMARY KEY(`ID`)
) ENGINE = MYISAM;</mysql> <section end=sql />