roboforum.ruТехнический форум по робототехнике. |
|
|
D1mcon писал(а):А то скоро придется форум переделывать
CREATE TABLE IF NOT EXISTS `users` (
`user_id` mediumint(8) unsigned NOT NULL auto_increment,
`user_type` tinyint(2) NOT NULL default '0',
`group_id` mediumint(8) unsigned NOT NULL default '3',
`user_permissions` mediumtext collate utf8_bin NOT NULL,
`user_perm_from` mediumint(8) unsigned NOT NULL default '0',
`user_ip` varchar(40) collate utf8_bin NOT NULL default '',
`user_regdate` int(11) unsigned NOT NULL default '0',
`username` varchar(255) collate utf8_bin NOT NULL default '',
`username_clean` varchar(255) collate utf8_bin NOT NULL default '',
`user_password` varchar(40) collate utf8_bin NOT NULL default '',
`user_passchg` int(11) unsigned NOT NULL default '0',
`user_pass_convert` tinyint(1) unsigned NOT NULL default '0',
`user_email` varchar(100) collate utf8_bin NOT NULL default '',
`user_email_hash` bigint(20) NOT NULL default '0',
`user_birthday` varchar(10) collate utf8_bin NOT NULL default '',
`user_lastvisit` int(11) unsigned NOT NULL default '0',
`user_lastmark` int(11) unsigned NOT NULL default '0',
`user_lastpost_time` int(11) unsigned NOT NULL default '0',
`user_lastpage` varchar(200) collate utf8_bin NOT NULL default '',
`user_last_confirm_key` varchar(10) collate utf8_bin NOT NULL default '',
`user_last_search` int(11) unsigned NOT NULL default '0',
`user_warnings` tinyint(4) NOT NULL default '0',
`user_last_warning` int(11) unsigned NOT NULL default '0',
`user_login_attempts` tinyint(4) NOT NULL default '0',
`user_inactive_reason` tinyint(2) NOT NULL default '0',
`user_inactive_time` int(11) unsigned NOT NULL default '0',
`user_posts` mediumint(8) unsigned NOT NULL default '0',
`user_lang` varchar(30) collate utf8_bin NOT NULL default '',
`user_timezone` decimal(5,2) NOT NULL default '0.00',
`user_dst` tinyint(1) unsigned NOT NULL default '0',
`user_dateformat` varchar(30) collate utf8_bin NOT NULL default 'd M Y H:i',
`user_style` mediumint(8) unsigned NOT NULL default '0',
`user_rank` mediumint(8) unsigned NOT NULL default '0',
`user_colour` varchar(6) collate utf8_bin NOT NULL default '',
`user_new_privmsg` int(4) NOT NULL default '0',
`user_unread_privmsg` int(4) NOT NULL default '0',
`user_last_privmsg` int(11) unsigned NOT NULL default '0',
`user_message_rules` tinyint(1) unsigned NOT NULL default '0',
`user_full_folder` int(11) NOT NULL default '-3',
`user_emailtime` int(11) unsigned NOT NULL default '0',
`user_topic_show_days` smallint(4) unsigned NOT NULL default '0',
`user_topic_sortby_type` varchar(1) collate utf8_bin NOT NULL default 't',
`user_topic_sortby_dir` varchar(1) collate utf8_bin NOT NULL default 'd',
`user_post_show_days` smallint(4) unsigned NOT NULL default '0',
`user_post_sortby_type` varchar(1) collate utf8_bin NOT NULL default 't',
`user_post_sortby_dir` varchar(1) collate utf8_bin NOT NULL default 'a',
`user_notify` tinyint(1) unsigned NOT NULL default '0',
`user_notify_pm` tinyint(1) unsigned NOT NULL default '1',
`user_notify_type` tinyint(4) NOT NULL default '0',
`user_allow_pm` tinyint(1) unsigned NOT NULL default '1',
`user_allow_viewonline` tinyint(1) unsigned NOT NULL default '1',
`user_allow_viewemail` tinyint(1) unsigned NOT NULL default '1',
`user_allow_massemail` tinyint(1) unsigned NOT NULL default '1',
`user_options` int(11) unsigned NOT NULL default '895',
`user_avatar` varchar(255) collate utf8_bin NOT NULL default '',
`user_avatar_type` tinyint(2) NOT NULL default '0',
`user_avatar_width` smallint(4) unsigned NOT NULL default '0',
`user_avatar_height` smallint(4) unsigned NOT NULL default '0',
`user_sig` mediumtext collate utf8_bin NOT NULL,
`user_sig_bbcode_uid` varchar(8) collate utf8_bin NOT NULL default '',
`user_sig_bbcode_bitfield` varchar(255) collate utf8_bin NOT NULL default '',
`user_from` varchar(100) collate utf8_bin NOT NULL default '',
`user_icq` varchar(15) collate utf8_bin NOT NULL default '',
`user_aim` varchar(255) collate utf8_bin NOT NULL default '',
`user_yim` varchar(255) collate utf8_bin NOT NULL default '',
`user_msnm` varchar(255) collate utf8_bin NOT NULL default '',
`user_jabber` varchar(255) collate utf8_bin NOT NULL default '',
`user_website` varchar(200) collate utf8_bin NOT NULL default '',
`user_occ` text collate utf8_bin NOT NULL,
`user_interests` text collate utf8_bin NOT NULL,
`user_actkey` varchar(32) collate utf8_bin NOT NULL default '',
`user_newpasswd` varchar(40) collate utf8_bin NOT NULL default '',
`user_form_salt` varchar(32) collate utf8_bin NOT NULL default '',
`user_openid` varchar(255) collate utf8_bin NOT NULL default '',
PRIMARY KEY (`user_id`),
UNIQUE KEY `username_clean` (`username_clean`),
KEY `user_birthday` (`user_birthday`),
KEY `user_email_hash` (`user_email_hash`),
KEY `user_type` (`user_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=10118 ;
`user_posts` mediumint(8) unsigned NOT NULL default '0',
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6