-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.sql
executable file
·178 lines (153 loc) · 5.8 KB
/
ext_tables.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
#
# Table structure for table 'tx_mpdbcore_domain_model_subiteminstrument'
#
CREATE TABLE tx_mpdbcore_domain_model_subiteminstrument (
abbreviation varchar(255) DEFAULT '' NOT NULL,
expanded varchar(255) DEFAULT '' NOT NULL
);
#
# Table structure for table 'tx_mpdbcore_domain_model_publishedsubitem'
#
CREATE TABLE tx_mpdbcore_domain_model_publishedsubitem (
publisheditem int(11) unsigned DEFAULT '0' NOT NULL,
plate_id varchar(255) DEFAULT '' NOT NULL,
part varchar(255) DEFAULT '' NOT NULL,
voice varchar(255) DEFAULT '' NOT NULL,
price int(11) DEFAULT '0' NOT NULL,
comment text,
is_piano_reduction smallint(5) unsigned DEFAULT '0' NOT NULL,
piano_reduction_type varchar(255) DEFAULT '' NOT NULL,
date_of_publishing date DEFAULT NULL,
has_negative_store smallint(5) unsigned DEFAULT '0' NOT NULL,
approve_negative_store smallint(5) unsigned DEFAULT '0' NOT NULL,
start_store int(11) DEFAULT '0' NOT NULL,
db_identifier int(11) DEFAULT '0' NOT NULL,
contained_works int(11) unsigned DEFAULT '0' NOT NULL,
publisher_actions int(11) unsigned DEFAULT '0' NOT NULL,
mvdb_id varchar(255) DEFAULT '' NOT NULL
);
#
# Table structure for table 'tx_mpdbcore_domain_model_publisheditem'
#
CREATE TABLE tx_mpdbcore_domain_model_publisheditem (
title varchar(255) DEFAULT '' NOT NULL,
piano_combination varchar(255) DEFAULT '' NOT NULL,
type varchar(255) DEFAULT '' NOT NULL,
instrumentation varchar(255) DEFAULT '' NOT NULL,
data_acquisition_certain smallint(5) unsigned DEFAULT '0' NOT NULL,
related_persons_known smallint(5) unsigned DEFAULT '0' NOT NULL,
work_examined smallint(5) unsigned DEFAULT '0' NOT NULL,
data_set_manually_checked smallint(5) unsigned DEFAULT '0' NOT NULL,
contained_works_identified smallint(5) unsigned DEFAULT '0' NOT NULL,
responsible_person varchar(255) DEFAULT '' NOT NULL,
date_of_publishing date DEFAULT NULL,
final int(11) DEFAULT '0' NOT NULL,
language varchar(255) DEFAULT '' NOT NULL,
mvdb_id varchar(255) DEFAULT '' NOT NULL,
plate_ids varchar(255) DEFAULT '' NOT NULL,
comment text,
public_comment text,
contained_works int(11) unsigned DEFAULT '0' NOT NULL,
editors int(11) unsigned DEFAULT '0' NOT NULL,
instruments int(11) unsigned DEFAULT '0' NOT NULL,
genre int(11) unsigned DEFAULT '0' NOT NULL,
first_composer int(11) unsigned DEFAULT '0' NOT NULL,
published_subitems int(11) unsigned DEFAULT '0' NOT NULL,
publisher int(11) unsigned DEFAULT '0'
);
#
# Table structure for table 'tx_mpdbcore_domain_model_publisheraction'
#
CREATE TABLE tx_mpdbcore_domain_model_publisheraction (
publishedsubitem int(11) unsigned DEFAULT '0' NOT NULL,
date_of_action date DEFAULT NULL,
quantity int(11) DEFAULT '0' NOT NULL,
type varchar(255) DEFAULT '' NOT NULL,
certain smallint(5) unsigned DEFAULT '0' NOT NULL,
inferred smallint(5) unsigned DEFAULT '0' NOT NULL,
in_store smallint(5) unsigned DEFAULT '0' NOT NULL
);
#
# Table structure for table 'tx_mpdbcore_domain_model_publisher'
#
CREATE TABLE tx_mpdbcore_domain_model_publisher (
name varchar(255) DEFAULT '' NOT NULL,
shorthand varchar(255) DEFAULT '' NOT NULL,
location varchar(255) DEFAULT '' NOT NULL,
alternate_name varchar(255) DEFAULT '' NOT NULL,
active_from date DEFAULT NULL,
active_to date DEFAULT NULL,
public smallint(5) unsigned DEFAULT '0' NOT NULL
);
#
# Table structure for table 'tx_mpdbcore_publisheditem_work_mm'
#
CREATE TABLE tx_mpdbcore_publisheditem_work_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid_local,uid_foreign),
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_mpdbcore_publishedsubitem_work_mm'
#
CREATE TABLE tx_mpdbcore_publishedsubitem_work_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid_local,uid_foreign),
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_mpdbcore_publisheditem_person_mm'
#
CREATE TABLE tx_mpdbcore_publisheditem_person_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid_local,uid_foreign),
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_mpdbcore_publisheditem_instrument_mm'
#
CREATE TABLE tx_mpdbcore_publisheditem_instrument_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid_local,uid_foreign),
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_mpdbcore_publisheditem_genre_mm'
#
CREATE TABLE tx_mpdbcore_publisheditem_genre_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid_local,uid_foreign),
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);
#
# Table structure for table 'tx_mpdbcore_publisheditem_firstcomposer_person_mm'
#
CREATE TABLE tx_mpdbcore_publisheditem_firstcomposer_person_mm (
uid_local int(11) unsigned DEFAULT '0' NOT NULL,
uid_foreign int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
sorting_foreign int(11) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (uid_local,uid_foreign),
KEY uid_local (uid_local),
KEY uid_foreign (uid_foreign)
);