DROP TABLE IF EXISTS pre_ucenter_pms;
CREATE TABLE pre_ucenter_pms (
pmid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
msgfrom VARCHAR(15) NOT NULL DEFAULT '',
msgfromid MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
msgtoid MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
folder ENUM('inbox','outbox') NOT NULL DEFAULT 'inbox',
NEW TINYINT(1) NOT NULL DEFAULT '0',
SUBJECT VARCHAR(75) NOT NULL DEFAULT '',
dateline INT(10) UNSIGNED NOT NULL DEFAULT '0',
message TEXT NOT NULL,
delstatus TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
related INT(10) UNSIGNED NOT NULL DEFAULT '0',
fromappid SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY(pmid),
KEY msgtoid(msgtoid,folder,dateline),
KEY msgfromid(msgfromid,folder,dateline),
KEY related (related),
KEY getnum (msgtoid,folder,delstatus)
) TYPE=MYISAM; |