Ferreteria/sql/event: Difference between revisions
< Ferreteria | sql
Jump to navigation
Jump to search
(Created page with "==About== * '''Purpose''': base table for logging application events ** Records only the basic information common to all (or nearly all) events. ==History== * '''2017-05-06'''...") |
(tweaks) |
||
Line 7: | Line 7: | ||
<mysql>CREATE TABLE `event` ( | <mysql>CREATE TABLE `event` ( | ||
ID INT NOT NULL AUTO_INCREMENT COMMENT "log line identifier", | ID INT NOT NULL AUTO_INCREMENT COMMENT "log line identifier", | ||
WhenStart DATETIME DEFAULT NULL COMMENT "set just before starting the event", | |||
ID_Session INT NOT NULL COMMENT "session.ID of active session", | ID_Session INT NOT NULL COMMENT "session.ID of active session", | ||
Descrip TEXT DEFAULT NULL COMMENT "code-generated description of event", | |||
Stash BLOB DEFAULT NULL COMMENT "additional event-related data that doesn't need to be searchable", | Stash BLOB DEFAULT NULL COMMENT "additional event-related data that doesn't need to be searchable", | ||
PRIMARY KEY (`ID`) | PRIMARY KEY (`ID`) | ||
) ENGINE = InnoDB;</mysql> | ) ENGINE = InnoDB;</mysql> |
Revision as of 13:16, 6 February 2017
About
- Purpose: base table for logging application events
- Records only the basic information common to all (or nearly all) events.
History
- 2017-05-06 Adapting the good bits from VbzCart/tables/event log
SQL
<mysql>CREATE TABLE `event` (
ID INT NOT NULL AUTO_INCREMENT COMMENT "log line identifier", WhenStart DATETIME DEFAULT NULL COMMENT "set just before starting the event", ID_Session INT NOT NULL COMMENT "session.ID of active session", Descrip TEXT DEFAULT NULL COMMENT "code-generated description of event", Stash BLOB DEFAULT NULL COMMENT "additional event-related data that doesn't need to be searchable", PRIMARY KEY (`ID`) ) ENGINE = InnoDB;</mysql>