Ferreteria/sql/tf leaf text

From Woozle Writes Code
< Ferreteria‎ | sql
Revision as of 20:21, 12 March 2017 by htyp>Woozle
Jump to navigation Jump to search

About

  • Purpose: Node fields that are textual in nature

History

  • 2017-03-12 Started, because it's needed for multiple sub-projects.

SQL

<mysql>CREATE TABLE `tf_value_text` (

 `ID_Node` INT(4)        NOT NULL COMMENT "ID of node to which this value belongs",
 `Name`    VARCHAR(255)  NOT NULL COMMENT "internal name of this value",
 `Value`   TEXT      DEFAULT NULL COMMENT "the value",
 PRIMARY KEY(`ID_Node`,`Name`)

) ENGINE=InnoDB;</mysql>