Ferreteria/sql/tf node

From Woozle Writes Code
< Ferreteria‎ | sql
Revision as of 09:44, 28 July 2017 by htyp>Woozle (post-move: added module link)
Jump to navigation Jump to search

About

  • Purpose: a thing that has values
  • Module: Template:L/ferreteria/module
  • History:
    • 2017-03-12 started
    • 2017-04-09 decided there really should be a WhenMade timestamp; can always remove later

SQL

<mysql>CREATE TABLE `tf_node` (

 `ID`       INT(4)        NOT NULL AUTO_INCREMENT,
 `Class`    VARCHAR(255)  NOT NULL COMMENT "app-defined code to indicate what class of object to use for wrapping this node and its values",
 `WhenMade` DATETIME      NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY(`ID`)

) ENGINE=InnoDB;</mysql>