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

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to: navigation, search
(note about WhenUpd)
m
Line 7: Line 7:
 
*** WhenCnf (when confirmed) -- stamp whenever a new order is received that contains this email
 
*** WhenCnf (when confirmed) -- stamp whenever a new order is received that contains this email
 
*** WhenEdt (when edited) -- stamp whenever an admin saves the record
 
*** WhenEdt (when edited) -- stamp whenever an admin saves the record
**: same for {{vbzcart/table|cust_phones}} and {{vbzcart/table|cust_emails}}
+
**: same for {{l/vc/table|cust_phones}} and {{l/vc/table|cust_emails}}
 
==SQL==
 
==SQL==
<section begin=sql /><mysql>CREATE TABLE `cust_names` (
+
<source lang=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",
 
   `WhenEnt`    DATETIME    NOT NULL COMMENT "date when record was first created",
Line 19: Line 19:
 
   PRIMARY KEY(`ID`)
 
   PRIMARY KEY(`ID`)
 
)
 
)
ENGINE = MYISAM;</mysql>
+
ENGINE = InnoDB;</source>
<section end=sql />
 

Revision as of 00:34, 3 July 2019

About

  • History:
    • 2009-07-09 moved to separate wiki page; no design changes
    • 2011-11-23 added WhenEnt, 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 cust_phones and cust_emails

SQL

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 = InnoDB;