-- phpMyAdmin SQL Dump
-- version 2.6.1
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Фев 06 2009 г., 16:20
-- Версия сервера: 5.0.45
-- Версия PHP: 5.2.4
--
-- БД: `prochat`
--
-- --------------------------------------------------------
--
-- Структура таблицы `bye`
--
CREATE TABLE `bye` (
`bid` int(10) unsigned NOT NULL auto_increment,
`name` varchar(50) NOT NULL default '',
`opis` text NOT NULL,
`pass` text NOT NULL,
`admin` varchar(40) NOT NULL default '',
`timeadd` int(11) NOT NULL default '0',
`timebye` int(11) NOT NULL default '0',
`loginbye` varchar(40) NOT NULL default '',
`cena` int(11) NOT NULL default '0',
`limit` int(9) default '0',
PRIMARY KEY (`bid`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=4 ;
-- --------------------------------------------------------
--
-- Структура таблицы `friend`
--
CREATE TABLE `friend` (
`iid` int(11) NOT NULL auto_increment,
`nick` varchar(40) NOT NULL default '',
`login` varchar(40) NOT NULL default '',
PRIMARY KEY (`iid`),
KEY `login` (`login`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=10 ;
-- --------------------------------------------------------
--
-- Структура таблицы `game`
--
CREATE TABLE `game` (
`gid` int(10) unsigned NOT NULL auto_increment,
`uid` int(10) default NULL,
`time` int(11) default NULL,
`status` int(1) default NULL,
`k1` int(2) NOT NULL default '0',
`k2` int(2) NOT NULL default '0',
`k3` int(2) NOT NULL default '0',
`k4` int(2) NOT NULL default '0',
`k5` int(2) NOT NULL default '0',
`k6` int(2) NOT NULL default '0',
`k7` int(2) NOT NULL default '0',
`k8` int(2) NOT NULL default '0',
`k9` int(2) NOT NULL default '0',
`k10` int(2) NOT NULL default '0',
`stavka` int(10) NOT NULL default '0',
PRIMARY KEY (`gid`)
) ENGINE=MyISAM AUTO_INCREMENT=88 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=88 ;
-- --------------------------------------------------------
--
-- Структура таблицы `ignor`
--
CREATE TABLE `ignor` (
`iid` int(11) NOT NULL auto_increment,
`nick` varchar(40) NOT NULL default '',
`login` varchar(40) NOT NULL default '',
PRIMARY KEY (`iid`),
KEY `login` (`login`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=8 ;
-- --------------------------------------------------------
--
-- Структура таблицы `intim`
--
CREATE TABLE `intim` (
`mid` int(9) unsigned NOT NULL auto_increment,
`time` int(11) default NULL,
`key` varchar(39) NOT NULL default '0',
`mess` text NOT NULL,
`nick` varchar(45) NOT NULL default '',
`status` smallint(1) default '0',
`inwho` varchar(45) NOT NULL default '',
PRIMARY KEY (`mid`),
KEY `inwho` (`inwho`),
KEY `inwho_2` (`inwho`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=13 ;
-- --------------------------------------------------------
--
-- Структура таблицы `ipban`
--
CREATE TABLE `ipban` (
`bid` int(11) NOT NULL auto_increment,
`ipst` bigint(12) default NULL,
`ipend` bigint(12) default NULL,
`ipstatus` smallint(1) default NULL,
`user` varchar(40) default NULL,
`userstatus` smallint(1) default NULL,
`date` int(11) NOT NULL default '0',
`login` varchar(40) default NULL,
PRIMARY KEY (`bid`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Структура таблицы `mess`
--
CREATE TABLE `mess` (
`mid` int(9) unsigned NOT NULL auto_increment,
`time` int(11) default NULL,
`room` int(3) NOT NULL default '0',
`mess` text NOT NULL,
`nick` varchar(45) NOT NULL default '',
`status` smallint(1) default '0',
`inwho` varchar(45) NOT NULL default '',
PRIMARY KEY (`mid`),
KEY `inwho` (`inwho`),
KEY `inwho_2` (`inwho`)
) ENGINE=MyISAM AUTO_INCREMENT=870 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=870 ;
-- --------------------------------------------------------
--
-- Структура таблицы `pmess`
--
CREATE TABLE `pmess` (
`mid` int(11) NOT NULL auto_increment,
`from` varchar(40) default NULL,
`to` varchar(40) default NULL,
`time` int(11) default NULL,
`mess` text,
`status` smallint(1) default NULL,
PRIMARY KEY (`mid`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Структура таблицы `questions`
--
CREATE TABLE `questions` (
`qid` int(10) unsigned NOT NULL auto_increment,
`vopros` text NOT NULL,
`otvet` text NOT NULL,
PRIMARY KEY (`qid`)
) ENGINE=MyISAM AUTO_INCREMENT=12845 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=12845 ;
-- --------------------------------------------------------
--
-- Структура таблицы `room`
--
CREATE TABLE `room` (
`rid` int(11) NOT NULL auto_increment,
`name` varchar(40) NOT NULL default '',
`opis` varchar(80) NOT NULL default '',
`time` int(11) NOT NULL default '0',
`title` varchar(40) NOT NULL default '',
`status` smallint(1) NOT NULL default '0',
`shut` smallint(1) NOT NULL default '0',
`umnik` smallint(1) NOT NULL default '0',
`roomp` int(5) default '0',
PRIMARY KEY (`rid`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=8 ;
-- --------------------------------------------------------
--
-- Структура таблицы `shut`
--
CREATE TABLE `shut` (
`hid` int(10) unsigned NOT NULL auto_increment,
`rat` int(11) NOT NULL default '0',
`anekdot` text NOT NULL,
PRIMARY KEY (`hid`)
) ENGINE=MyISAM AUTO_INCREMENT=693 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=693 ;
-- --------------------------------------------------------
--
-- Структура таблицы `user`
--
CREATE TABLE `user` (
`uid` int(6) unsigned NOT NULL auto_increment,
`nick` varchar(50) NOT NULL default '',
`login` varchar(40) default NULL,
`pass` varchar(25) NOT NULL default '',
`name` varchar(50) NOT NULL default '',
`pol` int(1) NOT NULL default '0',
`dr` smallint(2) NOT NULL default '0',
`mr` smallint(2) NOT NULL default '0',
`year` int(4) NOT NULL default '0',
`ves` smallint(3) default '0',
`rost` smallint(3) default '0',
`city` varchar(50) NOT NULL default '',
`operator` varchar(50) NOT NULL default '',
`phone` varchar(50) NOT NULL default '',
`nomberphone` bigint(12) NOT NULL default '0',
`mail` varchar(35) NOT NULL default '',
`site` varchar(40) NOT NULL default '',
`about` varchar(250) NOT NULL default '',
`dreg` int(11) unsigned NOT NULL default '0',
`ldate` int(11) unsigned NOT NULL default '0',
`ip` varchar(15) NOT NULL default '',
`countpost` int(10) default NULL,
`status` smallint(2) default NULL,
`bantime` int(11) default NULL,
`banpr` varchar(100) default NULL,
`messroom` smallint(2) unsigned default '8',
`smile` smallint(1) default NULL,
`translit` smallint(1) NOT NULL default '0',
`nastroenie` smallint(2) NOT NULL default '0',
`fotost` smallint(1) default NULL,
`avatar` mediumint(3) default '0',
`countques` int(5) unsigned default '0',
`antimat` smallint(1) unsigned default NULL,
`refresh` mediumint(4) default '300',
`kolan` smallint(3) default '15',
`place` mediumint(4) unsigned default NULL,
`intimkey` varchar(30) default '0',
`useragent` varchar(50) default NULL,
`sequrity` smallint(1) default NULL,
`money` float default '0',
`longip` int(11) default '0',
`statusp` varchar(45) default NULL,
PRIMARY KEY (`uid`),
UNIQUE KEY `nick` (`nick`),
KEY `pass` (`pass`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=10 ;
-- --------------------------------------------------------
--
-- Структура таблицы `vstrechi`
--
CREATE TABLE `vstrechi` (
`vid` int(10) unsigned NOT NULL auto_increment,
`tema` varchar(100) default NULL,
`avtor` varchar(40) default NULL,
`body` text,
`time` int(11) default NULL,
`date` varchar(16) default NULL,
PRIMARY KEY (`vid`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- Структура таблицы `yourbye`
--
CREATE TABLE `yourbye` (
`bid` int(10) unsigned NOT NULL auto_increment,
`uid` int(11) default NULL,
`name` varchar(40) default NULL,
`opis` text,
`cena` int(5) default NULL,
`pass` text,
`time` int(10) default NULL,
PRIMARY KEY (`bid`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=7 ;