-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathioap_me.sql
More file actions
284 lines (265 loc) · 9.46 KB
/
ioap_me.sql
File metadata and controls
284 lines (265 loc) · 9.46 KB
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
/*
Navicat Premium Data Transfer
Source Server : hazy oap
Source Server Type : MySQL
Source Server Version : 50744
Source Host : hazy:3306
Source Schema : ioap_me
Target Server Type : MySQL
Target Server Version : 50744
File Encoding : 65001
Date: 11/03/2024 16:40:45
*/
--
-- NOTE: THIS IS OUT OF DATE!
--
-- Database tables are created by the system (assuming appropriate environment)
--
-- Databases ARE NOT!
--
--
-- CREATE DATABASE xxxx DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATION utf8mb4_0900_ai_ci
--
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for citation
-- ----------------------------
DROP TABLE IF EXISTS `citation`;
CREATE TABLE `citation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`citation_author_list` longtext,
`cruise_id` varchar(255) DEFAULT NULL,
`dataset_abstract` longtext,
`document_id` bigint(20) NOT NULL,
`expocode` varchar(255) DEFAULT NULL,
`purpose` longtext,
`research_projects` longtext,
`scientific_references` longtext,
`section` varchar(255) DEFAULT NULL,
`supplemental_information` longtext,
`title` longtext,
`use_limitation` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=503 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for country_suggestion
-- ----------------------------
DROP TABLE IF EXISTS `country_suggestion`;
CREATE TABLE `country_suggestion` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`suggestion` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for document
-- ----------------------------
DROP TABLE IF EXISTS `document`;
CREATE TABLE `document` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`dataset_identifier` varchar(255) NOT NULL,
`last_modified` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=508 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for document_update_listener
-- ----------------------------
DROP TABLE IF EXISTS `document_update_listener`;
CREATE TABLE `document_update_listener` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`document_id` varchar(255) NOT NULL,
`document_location` varchar(255) NOT NULL,
`notification_url` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for funding
-- ----------------------------
DROP TABLE IF EXISTS `funding`;
CREATE TABLE `funding` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`agency_name` varchar(255) DEFAULT NULL,
`document_id` bigint(20) DEFAULT NULL,
`grant_number` varchar(255) DEFAULT NULL,
`grant_title` longtext,
`funding_idx` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=405 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for generic_variable
-- ----------------------------
DROP TABLE IF EXISTS `generic_variable`;
CREATE TABLE `generic_variable` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`abbreviation` varchar(255) DEFAULT NULL,
`analyzing_instrument` longtext,
`batch_number` varchar(255) DEFAULT NULL,
`biological_subject` longtext,
`calculation_method` longtext,
`cell_type` varchar(255) DEFAULT NULL,
`crm_manufacture` varchar(255) DEFAULT NULL,
`curve_fitting_method` longtext,
`detailed_information` longtext,
`drying_method` longtext,
`duration` varchar(255) DEFAULT NULL,
`equilibrator_pressure_measure_method` longtext,
`equilibrator_temperature_measure_method` longtext,
`equilibrator_type` varchar(255) DEFAULT NULL,
`equilibrator_volume` varchar(255) DEFAULT NULL,
`field_replicate` longtext,
`flow_rate` varchar(255) DEFAULT NULL,
`freqency_of_standardization` longtext,
`full_variable_name` longtext,
`gas_concentration` varchar(255) DEFAULT NULL,
`gas_dectector_resolution` varchar(255) DEFAULT NULL,
`gas_dectector_uncertainty` longtext,
`gas_detector_manufacture` varchar(255) DEFAULT NULL,
`gas_detector_model` varchar(255) DEFAULT NULL,
`gas_flow_rate` varchar(255) DEFAULT NULL,
`headspace_volume` varchar(255) DEFAULT NULL,
`intake_depth` varchar(255) DEFAULT NULL,
`intake_location` varchar(255) DEFAULT NULL,
`life_stage` varchar(255) DEFAULT NULL,
`magnitude_of_blank_correction` varchar(255) DEFAULT NULL,
`manipulation_method` longtext,
`measured` varchar(255) DEFAULT NULL,
`observation_detail` longtext,
`observation_type` varchar(255) DEFAULT NULL,
`pco2temperature` varchar(255) DEFAULT NULL,
`ph_scale` varchar(255) DEFAULT NULL,
`ph_standards` longtext,
`ph_temperature` varchar(255) DEFAULT NULL,
`poison` longtext,
`poison_description` longtext,
`poison_volume` varchar(255) DEFAULT NULL,
`quality_flag` longtext,
`reference_method` longtext,
`researcher_institution` longtext,
`researcher_name` varchar(255) DEFAULT NULL,
`sampling_instrument` longtext,
`seawater_volume` varchar(255) DEFAULT NULL,
`species_id_code` varchar(255) DEFAULT NULL,
`standard_gas_manufacture` varchar(255) DEFAULT NULL,
`standard_gas_uncertainties` longtext,
`standardization_technique` longtext,
`storage_method` longtext,
`temperature_correction_method` longtext,
`temperature_measurement` varchar(255) DEFAULT NULL,
`temperature_standarization` longtext,
`titration_type` longtext,
`uncertainty` longtext,
`units` longtext,
`vapor_correction` longtext,
`vented` varchar(255) DEFAULT NULL,
`class` varchar(255) NOT NULL,
`document_id` bigint(20) DEFAULT NULL,
`variables_idx` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6642 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for ncei_suggestion
-- ----------------------------
DROP TABLE IF EXISTS `ncei_suggestion`;
CREATE TABLE `ncei_suggestion` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`suggestion` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for person
-- ----------------------------
DROP TABLE IF EXISTS `person`;
CREATE TABLE `person` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`address1` varchar(255) DEFAULT NULL,
`address2` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`extension` varchar(255) DEFAULT NULL,
`first_name` varchar(255) DEFAULT NULL,
`institution` varchar(255) DEFAULT NULL,
`last_name` varchar(255) DEFAULT NULL,
`mi` varchar(255) DEFAULT NULL,
`state` varchar(255) DEFAULT NULL,
`telephone` varchar(255) DEFAULT NULL,
`zip` varchar(255) DEFAULT NULL,
`class` varchar(255) NOT NULL,
`document_id` bigint(20) DEFAULT NULL,
`investigators_idx` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2488 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for person_typed_string
-- ----------------------------
DROP TABLE IF EXISTS `person_typed_string`;
CREATE TABLE `person_typed_string` (
`person_researcher_ids_id` bigint(20) DEFAULT NULL,
`typed_string_id` bigint(20) DEFAULT NULL,
`researcher_ids_idx` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for platform
-- ----------------------------
DROP TABLE IF EXISTS `platform`;
CREATE TABLE `platform` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`country` varchar(255) DEFAULT NULL,
`document_id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`owner` varchar(255) DEFAULT NULL,
`platform_id` varchar(255) DEFAULT NULL,
`platform_type` varchar(255) DEFAULT NULL,
`platforms_idx` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=250 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for suggest_query
-- ----------------------------
DROP TABLE IF EXISTS `suggest_query`;
CREATE TABLE `suggest_query` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`query` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for time_and_location
-- ----------------------------
DROP TABLE IF EXISTS `time_and_location`;
CREATE TABLE `time_and_location` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`document_id` bigint(20) NOT NULL,
`east_lon` varchar(255) DEFAULT NULL,
`end_date` varchar(255) DEFAULT NULL,
`geo_names` longtext,
`north_lat` varchar(255) DEFAULT NULL,
`organism_loc` varchar(255) DEFAULT NULL,
`south_lat` varchar(255) DEFAULT NULL,
`spatial_ref` varchar(255) DEFAULT NULL,
`start_date` varchar(255) DEFAULT NULL,
`west_lon` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=504 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for typed_string
-- ----------------------------
DROP TABLE IF EXISTS `typed_string`;
CREATE TABLE `typed_string` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`version` bigint(20) NOT NULL,
`type` varchar(255) DEFAULT NULL,
`value` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1068 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;