От сердца отрываю :)
"NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- База данных: `programmers`
--
-- --------------------------------------------------------
--
-- Структура таблицы `fg5k_comments`
--
CREATE TABLE IF NOT EXISTS `fg5k_comments` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`author` int(11) NOT NULL,
`text` text NOT NULL,
`date` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `fg5k_honors`
--
CREATE TABLE IF NOT EXISTS `fg5k_honors` (
`id` int(3) NOT NULL AUTO_INCREMENT,
`name` varchar(120) NOT NULL,
`balls_next` int(10) NOT NULL,
`style` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Структура таблицы `fg5k_jobs`
--
CREATE TABLE IF NOT EXISTS `fg5k_jobs` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`author` int(10) NOT NULL,
`text` text NOT NULL,
`date` date NOT NULL,
`status` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `fg5k_jobsoptions`
--
CREATE TABLE IF NOT EXISTS `fg5k_jobsoptions` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`author` int(11) NOT NULL,
`text` text NOT NULL,
`correctly` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Структура таблицы `fg5k_photos`
--
CREATE TABLE IF NOT EXISTS `fg5k_photos` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`src` varchar(100) NOT NULL,
`author` varchar(100) NOT NULL,
`album` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
--
-- Структура таблицы `fg5k_posts`
--
CREATE TABLE IF NOT EXISTS `fg5k_posts` (
`id` int(3) NOT NULL AUTO_INCREMENT,
`text` text NOT NULL,
`author` int(10) NOT NULL,
`from` int(10) NOT NULL,
`likes` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Структура таблицы `fg5k_users`
--
CREATE TABLE IF NOT EXISTS `fg5k_users` (
`id` int(3) NOT NULL AUTO_INCREMENT,
`name` varchar(70) NOT NULL,
`lastname` varchar(70) NOT NULL,
`nickname` varchar(40) NOT NULL,
`status` text NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(100) NOT NULL,
`avatar` int(3) NOT NULL,
`rank_stady` int(3) NOT NULL DEFAULT '1',
`rank_balls` int(5) NOT NULL DEFAULT '0',
`hash` varchar(255) NOT NULL,
`pagename` varchar(100) NOT NULL,
`birthday` date NOT NULL,
`country` varchar(100) NOT NULL,
`city` varchar(100) NOT NULL,
`skype` varchar(100) NOT NULL,
`twitter` varchar(100) NOT NULL,
`facebook` varchar(100) NOT NULL,
`website` varchar(125) NOT NULL,
`edication` varchar(50) NOT NULL,
`school` varchar(255) NOT NULL,
`languages_for_programming` text NOT NULL,
`year_for_programming` year(4) NOT NULL,
`favorites` text NOT NULL,
`online` int(1) NOT NULL,
`lastvisit` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- Структура таблицы `fg5k_visited`
--
CREATE TABLE IF NOT EXISTS `fg5k_visited` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`ip` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;