Difference between revisions of "VbzCart/tables/cust emails"
Jump to navigation
Jump to search
(WhenEnt, WhenUpd) |
(note about WhenUpd) |
||
Line 3: | Line 3: | ||
** '''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 and WhenUpd | ** '''2011-11-23''' added WhenEnt and WhenUpd | ||
+ | * '''Notes''': | ||
+ | ** (2011-11-23) Possibly WhenUpd should be removed and replaced with one or both of: | ||
+ | *** WhenCnf (when confirmed) -- stamp whenever a new order is received that contains this email | ||
+ | *** WhenEdt (when edited) -- stamp whenever an admin saves the record | ||
+ | **: same for {{vbzcart/table|cust_phones}} and {{vbzcart/table|cust_names}} | ||
==SQL== | ==SQL== | ||
<section begin=sql /><mysql>CREATE TABLE `cust_emails` ( | <section begin=sql /><mysql>CREATE TABLE `cust_emails` ( |
Latest revision as of 13:20, 23 November 2011
About
- History:
- 2009-07-09 moved to separate wiki page; no design changes
- 2011-11-23 added WhenEnt and WhenUpd
- Notes:
- (2011-11-23) Possibly WhenUpd should be removed and replaced with one or both of:
- WhenCnf (when confirmed) -- stamp whenever a new order is received that contains this email
- WhenEdt (when edited) -- stamp whenever an admin saves the record
- same for
- (2011-11-23) Possibly WhenUpd should be removed and replaced with one or both of:
- REDIRECT Template:l/vc/table and cust_names
SQL
<mysql>CREATE TABLE `cust_emails` (
`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", `Name` VARCHAR(31) COMMENT "human-assigned name for this address (work, home...)", `ID_Cust` INT COMMENT "core_custs.ID", `Email` VARCHAR(255) NOT NULL COMMENT "the email address itself", `isActive` BOOL DEFAULT FALSE COMMENT "NO=former address; do not use", PRIMARY KEY(`ID`)
) ENGINE = MYISAM;</mysql>