forked from Bancha/Bancha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
195 lines (173 loc) · 4.34 KB
/
database.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
-- phpMyAdmin SQL Dump
-- version 2.10.3
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Erstellungszeit: 18. Mai 2009 um 10:47
-- Server Version: 5.0.45
-- PHP-Version: 5.2.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Datenbank: `cakext`
--
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `actors`
--
CREATE TABLE `actors` (
`id` int(11) unsigned NOT NULL auto_increment,
`name` varchar(100) collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=33 ;
--
-- Daten für Tabelle `actors`
--
INSERT INTO `actors` (`id`, `name`) VALUES
(1, 'Dennis Hopper'),
(2, 'Marlon Brando'),
(3, 'Mr. T'),
(8, 'Markus Lange'),
(9, 'Christian Bale'),
(10, 'Heath Ledger'),
(11, 'Tim Roth'),
(12, 'Bruno Glanz'),
(13, 'Josh Lucas'),
(14, 'Al Pacino'),
(15, 'Robert De Niro'),
(16, 'Andy Garcia'),
(17, 'Val Kilmer'),
(18, 'Meg Ryan'),
(19, 'Tom Cruise'),
(20, 'Keanu Reeves'),
(21, 'Naomie Harris'),
(22, 'Cameron Diaz'),
(23, 'Leonardo DiCaprio'),
(24, 'Ewan McGregor'),
(25, 'Kurt Russel'),
(26, 'Bruce Willis'),
(27, 'Brad Pitt'),
(28, 'Willem Dafoe'),
(29, 'Charlie Sheen'),
(30, 'Uma Thurman'),
(31, 'Samuel Jackson'),
(32, 'Tim Roth');
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `directors`
--
CREATE TABLE `directors` (
`id` int(11) unsigned NOT NULL auto_increment,
`name` varchar(100) collate utf8_unicode_ci NOT NULL,
`alive` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ;
--
-- Daten für Tabelle `directors`
--
INSERT INTO `directors` (`id`, `name`, `alive`) VALUES
(1, 'Francis Ford Coppola', 1),
(2, 'Oliver Stone', 1),
(5, 'Danny Boyle', 1),
(6, 'Quentin Tarantino', 1),
(12, 'Christopher Nolan', 1),
(13, 'Mary Harron', 1);
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `movies`
--
CREATE TABLE `movies` (
`id` int(11) unsigned NOT NULL auto_increment,
`director_id` int(11) NOT NULL,
`name` varchar(100) collate utf8_unicode_ci NOT NULL,
`year` int(4) NOT NULL,
PRIMARY KEY (`id`),
KEY `director_id` (`director_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=26 ;
--
-- Daten für Tabelle `movies`
--
INSERT INTO `movies` (`id`, `director_id`, `name`, `year`) VALUES
(1, 1, 'Apocalipse Now', 1979),
(2, 2, 'Natural Born Killers', 2001),
(3, 5, 'Slumdog Millionaire', 2003),
(4, 12, 'Batman - The Dark Knight', 2008),
(5, 13, 'American Psycho', 2000),
(6, 1, 'Youth Without Youth', 2008),
(7, 1, 'The Godfather', 1972),
(8, 1, 'The Godfather II', 1975),
(9, 1, 'The Godfather III', 1990),
(10, 1, 'Bram Stoker´s Dracula', 1992),
(11, 2, 'The Doors', 1991),
(12, 2, 'Born on the Fourth of July', 1989),
(13, 2, 'Any Given Sunday', 1999),
(14, 5, '28 Days Later', 2002),
(15, 5, 'The Beach', 2000),
(16, 5, 'Trainspotting', 1996),
(17, 6, 'Death Proof', 2007),
(18, 6, 'Grindhouse', 2007),
(19, 6, 'Inglourious Basterds', 2009),
(20, 2, 'Platoon', 1996),
(21, 6, 'Kill Bill', 2003),
(22, 6, 'Jackie Brown', 1997),
(23, 6, 'Four Rooms', 1996),
(24, 6, 'Pulp Fiction', 1994),
(25, 6, 'Reservoir Dogs', 1991);
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `movies_actors`
--
CREATE TABLE `movies_actors` (
`id` int(11) unsigned NOT NULL auto_increment,
`movie_id` int(11) NOT NULL,
`actor_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `movie_id` (`movie_id`,`actor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=137 ;
--
-- Daten für Tabelle `movies_actors`
--
INSERT INTO `movies_actors` (`id`, `movie_id`, `actor_id`) VALUES
(82, 1, 2),
(55, 1, 3),
(38, 2, 1),
(83, 2, 2),
(57, 2, 3),
(66, 3, 1),
(84, 3, 2),
(72, 3, 8),
(76, 4, 9),
(77, 4, 10),
(78, 5, 9),
(81, 5, 13),
(133, 6, 11),
(123, 6, 12),
(119, 7, 2),
(120, 7, 14),
(126, 8, 14),
(127, 8, 15),
(128, 9, 14),
(129, 9, 16),
(118, 10, 20),
(91, 11, 17),
(92, 11, 18),
(121, 12, 19),
(124, 13, 14),
(125, 13, 22),
(96, 14, 21),
(102, 15, 23),
(103, 16, 24),
(104, 17, 25),
(117, 18, 26),
(106, 19, 27),
(107, 20, 28),
(108, 20, 29),
(131, 21, 30),
(115, 22, 31),
(134, 23, 11),
(111, 23, 32),
(135, 24, 11),
(116, 24, 26),
(132, 24, 30),
(114, 24, 31),
(136, 25, 11),
(130, 25, 32);