CREATE TABLE IF NOT EXISTS `bb_users` (
`user_id` MEDIUMINT(8) NOT NULL AUTO_INCREMENT,
`user_active` TINYINT(1) NOT NULL DEFAULT '1',
`username` VARCHAR(25) NOT NULL DEFAULT '',
`user_password` VARCHAR(32)
CHARACTER SET utf8
COLLATE utf8_bin NOT NULL DEFAULT '',
`user_session_time` INT(11) NOT NULL DEFAULT '0',
`user_lastvisit` INT(11) NOT NULL DEFAULT '0',
`user_last_ip` VARCHAR(42) NOT NULL DEFAULT '0',
`user_regdate` INT(11) NOT NULL DEFAULT '0',
`user_reg_ip` VARCHAR(42) NOT NULL DEFAULT '0',
`user_level` TINYINT(4) NOT NULL DEFAULT '0',
`user_posts` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
`user_timezone` DECIMAL(5, 2) NOT NULL DEFAULT '0.00',
`user_lang` VARCHAR(255) NOT NULL DEFAULT 'ru',
`user_new_privmsg` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`user_unread_privmsg` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
`user_last_privmsg` INT(11) NOT NULL DEFAULT '0',
`user_opt` INT(11) NOT NULL DEFAULT '0',
`user_rank` INT(11) NOT NULL DEFAULT '0',
`avatar_ext_id` TINYINT(4) NOT NULL DEFAULT '0',
`user_gender` TINYINT(1) NOT NULL DEFAULT '0',
`user_birthday` DATE NOT NULL DEFAULT '1900-01-01',
`user_email` VARCHAR(255) NOT NULL DEFAULT '',
`user_skype` VARCHAR(32) NOT NULL DEFAULT '',
`user_twitter` VARCHAR(15) NOT NULL DEFAULT '',
`user_icq` VARCHAR(15) NOT NULL DEFAULT '',
`user_website` VARCHAR(100) NOT NULL DEFAULT '',
`user_from` VARCHAR(100) NOT NULL DEFAULT '',
`user_sig` TEXT NOT NULL DEFAULT '',
`user_occ` VARCHAR(100) NOT NULL DEFAULT '',
`user_interests` VARCHAR(255) NOT NULL DEFAULT '',
`user_actkey` VARCHAR(32) NOT NULL DEFAULT '',
`user_newpasswd` VARCHAR(32) NOT NULL DEFAULT '',
`autologin_id` VARCHAR(12)
CHARACTER SET utf8
COLLATE utf8_bin NOT NULL DEFAULT '',
`user_newest_pm_id` MEDIUMINT(8) NOT NULL DEFAULT '0',
`user_points` FLOAT(16, 2) NOT NULL DEFAULT '0.00',
`tpl_name` VARCHAR(255) NOT NULL DEFAULT 'default',
PRIMARY KEY (`user_id`),
KEY `username` (`username`(10)),
KEY `user_email` (`user_email`(10)),
KEY `user_level` (`user_level`)
)
ENGINE = MyISAM
DEFAULT CHARSET = utf8;