#
# Table structure for table 'authaction'
#

CREATE TABLE authaction (
  actid bigint(20) NOT NULL auto_increment,
  actkey varchar(40) NOT NULL default '',
  keytype varchar(20) NOT NULL default 'login',
  acttype varchar(20) NOT NULL default 'sendmail',
  actdata blob,
  acttime datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (actid),
  KEY keyidx (actkey),
  KEY typeidx (acttype),
  KEY timeidx (acttime)
) TYPE=MyISAM;

#Table: authaction
#Field:  actid - just a key
#Field:  actkey - entyty to act on
#Field:  keytype - circumstances in which action must be made
#Field:  acttype - what kind of action must be undertaken
#Field:  actdata - arguments to action (i.e. emails to sendmail)
#Field:  acttime - datetime of action validity. will be deleted after

#
# Table structure for table 'renamereq'
#

CREATE TABLE renamereq (
  idreq bigint(20) NOT NULL auto_increment,
  intime datetime NOT NULL default '2001-01-01 00:00:00',
  uid bigint(20) NOT NULL default '0',
  name varchar(40) NOT NULL default '',
  sid int(5) NOT NULL default '0',
  session_id varchar(33) NOT NULL default '',
  reason varchar(255) default NULL,
  PRIMARY KEY  (idreq),
  UNIQUE KEY ns (name,sid),
  KEY intime (intime),
  KEY uid (uid)
) TYPE=MyISAM;

#Table: renamereq
#Field:  idreq - just a key
#Field:  intime - datetime when request was posted
#Field:  uid - user id who posted request
#Field:  name - name desired
#Field:  sid - service to rename
#Field:  session_id - session was reported by browser at time of request
#        posting
#Field:  reason - user description of the cause for renaming

#
# Table structure for table 'usertrack'
#

CREATE TABLE usertrack (
  idkey varchar(33) NOT NULL default '',
  intime datetime NOT NULL default '2000-01-01 00:00:00',
  extime datetime NOT NULL default '2000-01-01 00:00:00',
  length smallint(5) unsigned NOT NULL default '0',
  body blob,
  PRIMARY KEY  (idkey),
  KEY intime (intime),
  KEY extime (extime)
) TYPE=MyISAM;

#Table: usertrack
#Field:  idkey - the key. it will be sent to the user end to get back when
#        the next HTTP request arrives
#Field:  intime - datetime when track was inserted
#Field:  extime - datetime when track will be counted stale. clutrack.pl uses
#        this field to clear table
#Field:  length - length of track data
#Field:  body - track data, i.e. information saved in given track
