User:WhiteWizard/SQL FB Authentication
From Tapestries MUCK
< User:WhiteWizard
Revision as of 07:19, 7 March 2008 by WhiteWizard (Talk | contribs)
Character Table
CREATE TABLE muck_characters ( id SERIAL PRIMARY KEY, player_id INTEGER, -- Stuff that must match up with the Muck name VARCHAR(30) NOT NULL, dbref INTEGER, created BIGINT, -- Administrative information suspended BIGINT, -- NULL = active, 0 = Suspended indefinably, > 0 = time_t when available again. toaded BOOLEAN );
CREATE TABLE character_log ( time BIGINT PRIMARY KEY, player_id INTEGER, character_id INTEGER, ipaddr inet, type text, -- LOGIN, LOGOUT, MCREATED, CREATED, TOADED, MREJECT, etc. etc. info text );