-
Notifications
You must be signed in to change notification settings - Fork 0
/
jezzy.sql
executable file
·122 lines (98 loc) · 3.36 KB
/
jezzy.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
-- phpMyAdmin SQL Dump
-- version 3.5.3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 19, 2015 at 09:26 AM
-- Server version: 5.6.21-70.1-log
-- PHP Version: 5.3.10-1ubuntu3.15
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 */;
--
-- Database: `jezzy`
--
-- --------------------------------------------------------
--
-- Table structure for table `catalog`
--
CREATE TABLE IF NOT EXISTS `catalog` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`id_parent` bigint(20) DEFAULT NULL,
`name` varchar(256) NOT NULL,
`latin` varchar(256) NOT NULL,
`hidden` int(11) NOT NULL DEFAULT '0',
UNIQUE KEY `id` (`id`)
) ENGINE=Innodb DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
--
-- Dumping data for table `catalog`
--
INSERT INTO `catalog` (`id`, `id_parent`, `name`, `latin`, `hidden`) VALUES
(1, NULL, 'Мобильные', 'mobilnie', 0),
(2, NULL, 'Компьютерные', 'komputernie', 0),
(3, 2, 'Логические', 'logicheskie', 0),
(4, 2, 'Аркадные', 'arkadnyie', 0),
(5, 2, 'Стрелялки', 'strelyalki', 0),
(6, 2, 'Cимуляторы', 'cimulyatoryi', 0),
(7, 2, 'Настольные', 'nastolnyie', 0),
(8, 2, 'Детские', 'detskie', 0),
(9, 2, 'Я ищу', 'ya-ischu', 0);
-- --------------------------------------------------------
--
-- Table structure for table `catalog_games`
--
CREATE TABLE IF NOT EXISTS `catalog_games` (
`id_catalog` bigint(20) NOT NULL,
`id_game` bigint(20) NOT NULL
) ENGINE=Innodb DEFAULT CHARSET=utf8;
--
-- Dumping data for table `catalog_games`
--
INSERT INTO `catalog_games` (`id_catalog`, `id_game`) VALUES
(3, 1),
(5, 1);
-- --------------------------------------------------------
--
-- Table structure for table `games`
--
CREATE TABLE IF NOT EXISTS `games` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`rate` bigint(20) DEFAULT NULL,
`name` varchar(256) NOT NULL,
`lead` varchar(512) NOT NULL,
`desc` text NOT NULL,
`latin` varchar(256) NOT NULL,
`thumb` varchar(256) NOT NULL,
`picture` varchar(256) NOT NULL,
`size` bigint(20) DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`identity` varchar(512) DEFAULT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=Innodb DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `links`
--
CREATE TABLE IF NOT EXISTS `links` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`id_game` bigint(20) NOT NULL,
`url` varchar(256) NOT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=Innodb DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `screens`
--
CREATE TABLE IF NOT EXISTS `screens` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`id_game` bigint(20) NOT NULL,
`thumb` varchar(256) DEFAULT NULL,
`picture` varchar(256) DEFAULT NULL,
UNIQUE KEY `id` (`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 */;