-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.sql
191 lines (171 loc) · 3.29 KB
/
schema.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
CREATE TABLE aka_name
(
id int,
person_id int,
name string(100),
imdb_index string(12),
name_pcode_cf string(5),
name_pcode_nf string(5),
surname_pcode string(5),
md5sum string(32)
);
CREATE TABLE aka_title
(
id int,
movie_id int,
title string(100),
imdb_index string(12),
kind_id int,
production_year int,
phonetic_code string(5),
episode_of_id int,
season_nr int,
episode_nr int,
note string(100),
md5sum string(32)
);
CREATE TABLE cast_info
(
id int,
person_id int,
movie_id int,
person_role_id int,
note string(100),
nr_order int,
role_id int
);
CREATE TABLE char_name
(
id int,
name string(100),
imdb_index string(12),
imdb_id int,
name_pcode_nf string(5),
surname_pcode string(5),
md5sum string(32)
);
CREATE TABLE comp_cast_type
(
id int,
kind string(32)
);
CREATE TABLE company_name
(
id int,
name string(100),
country_code string(255),
imdb_id int,
name_pcode_nf string(5),
name_pcode_sf string(5),
md5sum string(32)
);
CREATE TABLE company_type
(
id int,
kind string(32)
);
CREATE TABLE complete_cast
(
id int,
movie_id int,
subject_id int,
status_id int
);
CREATE TABLE info_type
(
id int,
info string(32)
);
CREATE TABLE keyword
(
id int,
keyword string(100),
phonetic_code string(5)
);
CREATE TABLE kind_type
(
id int,
kind string(15)
);
CREATE TABLE link_type
(
id int,
link string(32)
);
CREATE TABLE movie_companies
(
id int,
movie_id int,
company_id int,
company_type_id int,
note string(100)
);
CREATE TABLE movie_info
(
id int,
movie_id int,
info_type_id int,
info string(100),
note string(100)
);
CREATE TABLE movie_info_idx
(
id int,
movie_id int,
info_type_id int,
info string(100),
note string(100)
);
CREATE TABLE movie_keyword
(
id int,
movie_id int,
keyword_id int
);
CREATE TABLE movie_link
(
id int,
movie_id int,
linked_movie_id int,
link_type_id int
);
CREATE TABLE name
(
id int,
name string(100),
imdb_index string(12),
imdb_id int,
gender string(1),
name_pcode_cf string(5),
name_pcode_nf string(5),
surname_pcode string(5),
md5sum string(32)
);
CREATE TABLE person_info
(
id int,
person_id int,
info_type_id int,
info string(100),
note string(100)
);
CREATE TABLE role_type
(
id int,
role string(32)
);
CREATE TABLE title
(
id int,
title string(100),
imdb_index string(12),
kind_id int,
production_year int,
imdb_id int,
phonetic_code string(5),
episode_of_id int,
season_nr int,
episode_nr int,
series_years string(49),
md5sum string(32)
);