Ferreteria/sql/event

From Woozle Writes Code
< Ferreteria‎ | sql
Revision as of 19:51, 6 February 2017 by htyp>Woozle
Jump to navigation Jump to search

About

  • Purpose: base table for logging application events
    • Records only the basic information common to all (or nearly all) events.

History

SQL

<mysql>CREATE TABLE `event` (

   ID         INT              NOT NULL AUTO_INCREMENT COMMENT "log line identifier",
   WhenStart  DATETIME         NOT NULL COMMENT "set just before starting the event",
   ID_Session INT              NOT NULL COMMENT "session.ID of active session",
   TypeCode    VARCHAR(7)  DEFAULT NULL COMMENT "mnemonic event code",
   Descrip    TEXT         DEFAULT NULL COMMENT "code-generated description of event",
   Stash      TEXT         DEFAULT NULL COMMENT "additional event-related data that doesn't need to be searchable",
   PRIMARY KEY (`ID`)
) ENGINE = InnoDB;</mysql>