User:Woozle/PostFerret/sql/class

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< User:Woozle‎ | PostFerret‎ | sql
Revision as of 22:58, 29 June 2015 by Woozle (talk | contribs) (first draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  • Purpose: Defines classes that use atoms
    • This is a reference table, not generally modified by code. It may turn out to be basically unnecessary, but on the other hand it should reduce storage requirements just a little (4 bytes to encode the class for each atom rather than a variable number of characters).
  • History:
    • 2015-06-29 first draft

SQL

<mysql> CREATE TABLE `pf_class` (

  `ID`                  INT NOT NULL AUTO_INCREMENT,
  `Code`        VARCHAR(63) NOT NULL COMMENT "actual name within code of the class that implements the atom-chain",
  PRIMARY KEY(`ID`)
)

ENGINE = MYISAM; </mysql>