Ferreteria/sql/event in table

From Woozle Writes Code
< Ferreteria‎ | sql
Revision as of 19:51, 6 February 2017 by htyp>Woozle (sql can go there too, dangit)
Jump to navigation Jump to search

About

  • Purpose: dependent table for logging table-related events
  • Depends on: event

History

SQL

<mysql>CREATE TABLE `event_in_table` (

   ID_Event    INT              NOT NULL COMMENT "event.ID of parent event",
   TableKey    VARCHAR(15)      NOT NULL COMMENT "action key of table affected",
   TableRow    INT(4)       DEFAULT NULL COMMENT "ID of row (if any) being modified by this event",
   PRIMARY KEY (`ID_Event`)
) ENGINE = InnoDB;</mysql>