Файл: tables.sql
Строк: 43
-- phpMyAdmin SQL Dump
-- version 4.0.10
--
http://www.phpmyadmin.net
--
-- Хост: 127.0.0.1:3306
-- Время
создания: Окт 09 2014 г., 20:42
-- Версия сервера:
5.6.19-log
-- Версия PHP: 5.5.13
SET SQL_MODE =
"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 */;
--
-- База данных: `trance24.local`
--
--
--------------------------------------------------------
--
--
Структура таблицы `files`
--
CREATE TABLE IF NOT EXISTS
`files` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`display_name` text NOT
NULL,
`artist` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`album` varchar(100) NOT NULL,
`year` int(4) NOT NULL,
`track` int(4)
NOT NULL,
`genre` varchar(100) NOT NULL,
`comment` text NOT NULL,
`rating` float NOT NULL,
`path` varchar(255) NOT NULL,
`downloads`
int(11) NOT NULL,
`download_last_time` int(11) NOT NULL,
`date`
datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT
CHARSET=utf8 AUTO_INCREMENT=1 ;
--
--------------------------------------------------------
--
--
Структура таблицы `news`
--
CREATE TABLE IF NOT EXISTS
`news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` text NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT
CHARSET=utf8 AUTO_INCREMENT=1 ;
--
--------------------------------------------------------
--
--
Структура таблицы `rating`
--
CREATE TABLE IF NOT EXISTS
`rating` (
`rating_id` int(11) NOT NULL AUTO_INCREMENT,
`track_id`
int(11) NOT NULL,
`rating_type` int(11) NOT NULL,
`user_ip`
varchar(150) NOT NULL,
`date_rec` datetime NOT NULL,
PRIMARY KEY
(`rating_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
--------------------------------------------------------
--
--
Структура таблицы `users`
--
CREATE TABLE IF NOT EXISTS
`users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`first_name`
varchar(50) CHARACTER SET utf8 NOT NULL,
`last_name` varchar(50)
CHARACTER SET utf8 NOT NULL,
`sex` int(1) NOT NULL,
`bdate` varchar(50)
CHARACTER SET utf8 NOT NULL,
`social_id` int(30) NOT NULL,
`social_type` varchar(10) CHARACTER SET utf8 NOT NULL,
`level` int(11)
NOT NULL,
`date_rec` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM
DEFAULT CHARSET=latin1 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 */;