Difference between revisions of "VbzCart/tables/cust emails"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(moved from "customer tables" page)
 
(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 and WhenUpd
 
==SQL==
 
==SQL==
 
<section begin=sql /><mysql>CREATE TABLE `cust_emails` (
 
<section begin=sql /><mysql>CREATE TABLE `cust_emails` (
   `ID`        INT NOT NULL AUTO_INCREMENT,
+
   `ID`        INT         NOT NULL AUTO_INCREMENT,
   `Name`      VARCHAR(31) COMMENT "human-assigned name for this address (work, home...)",
+
  `WhenEnt`    DATETIME    NOT NULL COMMENT "date when record was first created",
   `ID_Cust`    INT COMMENT "core_custs.ID",
+
  `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",
 
   `Email`      VARCHAR(255) NOT NULL COMMENT "the email address itself",
   `isActive`  BOOL DEFAULT FALSE COMMENT "NO=former address; do not use",
+
   `isActive`  BOOL   DEFAULT FALSE COMMENT "NO=former address; do not use",
 
   PRIMARY KEY(`ID`)
 
   PRIMARY KEY(`ID`)
 
)
 
)
 
ENGINE = MYISAM;</mysql>
 
ENGINE = MYISAM;</mysql>
 
<section end=sql />
 
<section end=sql />

Revision as of 12:57, 23 November 2011

About

  • History:
    • 2009-07-09 moved to separate wiki page; no design changes
    • 2011-11-23 added WhenEnt and WhenUpd

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>