1 DROP TABLE div_aa_annotation;
2 CREATE TABLE div_aa_annotation
4 div_aa_annotation_id Long Integer (4),
5 div_annotation_type_id Long Integer (4),
6 div_allele_assay_id Long Integer (4),
7 annotation_value Text (50)
10 -- CREATE ANY INDEXES ...
12 DROP TABLE div_allele;
13 CREATE TABLE div_allele
15 div_allele_id Long Integer (4),
16 div_obs_unit_sample_id Long Integer (4),
17 div_allele_assay_id Long Integer (4),
18 allele_num Long Integer (4),
19 quality Long Integer (4),
23 -- CREATE ANY INDEXES ...
25 DROP TABLE div_allele_assay;
26 CREATE TABLE div_allele_assay
28 div_allele_assay_id Long Integer (4),
29 div_marker_id Long Integer (4),
30 div_poly_type_id Long Integer (4),
32 date DateTime (Short) (8),
34 phase_determined Text (50),
38 div_ref_stock_id Long Integer (4),
39 source_assay Text (50),
40 length Long Integer (4)
43 -- CREATE ANY INDEXES ...
45 DROP TABLE div_annotation_type;
46 CREATE TABLE div_annotation_type
48 div_annotation_type_id Long Integer (4),
52 -- CREATE ANY INDEXES ...
54 DROP TABLE div_exp_entry;
55 CREATE TABLE div_exp_entry
57 div_exp_entry_id Long Integer (4),
58 div_experiment_id Long Integer (4),
59 div_obsunit_id Long Integer (4),
60 div_stock_id Long Integer (4),
64 -- CREATE ANY INDEXES ...
66 DROP TABLE div_experiment;
67 CREATE TABLE div_experiment
69 div_experiment_id Long Integer (4),
75 -- CREATE ANY INDEXES ...
77 DROP TABLE div_generation;
78 CREATE TABLE div_generation
80 div_generation_id Long Integer (4),
84 -- CREATE ANY INDEXES ...
86 DROP TABLE div_locality;
87 CREATE TABLE div_locality
89 div_locality_id Long Integer (4),
90 elevation Long Integer (4),
94 latitude Long Integer (4),
95 longitude Long Integer (4),
96 locality_name Text (50),
97 state_province Text (50)
100 -- CREATE ANY INDEXES ...
102 DROP TABLE div_locus;
103 CREATE TABLE div_locus
105 div_locus_id Long Integer (4),
106 chromosome_number Long Integer (4),
108 genetic_bin Text (50),
109 genetic_map Text (50),
110 genetic_position Long Integer (4),
111 locus_type Text (50),
113 physical_position Long Integer (4)
116 -- CREATE ANY INDEXES ...
118 DROP TABLE div_marker;
119 CREATE TABLE div_marker
121 div_marker_id Long Integer (4),
122 div_locus_id Long Integer (4),
125 div_ref_stock_id Long Integer (4)
128 -- CREATE ANY INDEXES ...
130 DROP TABLE div_obs_unit;
131 CREATE TABLE div_obs_unit
133 div_obs_unit_id Long Integer (4),
134 div_experiment_id Long Integer (4),
135 div_stock_id Long Integer (4),
136 div_locality_id Long Integer (4),
138 field_coord_x Long Integer (4),
139 field_coord_y Long Integer (4),
140 rep Long Integer (4),
141 block Long Integer (4),
142 plot Long Integer (4),
144 planting_date DateTime (Short) (8),
145 harvest_date DateTime (Short) (8),
149 -- CREATE ANY INDEXES ...
151 DROP TABLE div_obs_unit_sample;
152 CREATE TABLE div_obs_unit_sample
154 div_obs_unit_sample_id Long Integer (4),
155 div_obs_unit_id Long Integer (4),
156 date DateTime (Short) (8),
161 -- CREATE ANY INDEXES ...
163 DROP TABLE div_passport;
164 CREATE TABLE div_passport
166 div_passport_id Long Integer (4),
167 div_locality_id Long Integer (4),
169 collnumb Long Integer (4),
173 germplasm_type Text (50),
174 local_name Text (50),
175 population Text (50),
178 secondary_source Text (50),
181 subspecies Text (50),
183 accenumb Long Integer (4),
187 subtauthor Text (50),
189 acqdate DateTime (Short) (8),
190 colldate DateTime (Short) (8),
195 donornumb Long Integer (4),
196 othernumb Long Integer (4),
201 -- CREATE ANY INDEXES ...
203 DROP TABLE div_poly_type;
204 CREATE TABLE div_poly_type
206 div_poly_type_id Long Integer (4),
210 -- CREATE ANY INDEXES ...
212 DROP TABLE div_statistic_type;
213 CREATE TABLE div_statistic_type
215 div_statistic_type_id Long Integer (4),
219 -- CREATE ANY INDEXES ...
221 DROP TABLE div_stock;
222 CREATE TABLE div_stock
224 div_stock_id Long Integer (4),
225 div_generation_id Long Integer (4),
226 div_passport_id Long Integer (4),
230 -- CREATE ANY INDEXES ...
232 DROP TABLE div_stock_parent;
233 CREATE TABLE div_stock_parent
235 div_stock_parent_id Long Integer (4),
236 div_stock_id Long Integer (4),
237 div_parent_id Long Integer (4),
242 -- CREATE ANY INDEXES ...
244 DROP TABLE div_trait;
245 CREATE TABLE div_trait
247 div_trait_id Long Integer (4),
248 div_trait_uom_id Long Integer (4),
249 div_statistic_type_id Long Integer (4),
250 div_obs_unit_id Long Integer (4),
251 date DateTime (Short) (8),
255 -- CREATE ANY INDEXES ...
257 DROP TABLE div_trait_uom;
258 CREATE TABLE div_trait_uom
260 div_trait_uom_id Long Integer (4),
261 qtl_trait_ontology_id Long Integer (4),
262 div_unit_of_measure_id Long Integer (4),
263 local_trait_name Text (50)
266 -- CREATE ANY INDEXES ...
268 DROP TABLE div_treatment;
269 CREATE TABLE div_treatment
271 div_treatment_id Long Integer (4),
272 div_treatment_uom_id Long Integer (4),
273 div_obs_unit_id Long Integer (4),
277 -- CREATE ANY INDEXES ...
279 DROP TABLE div_treatment_uom;
280 CREATE TABLE div_treatment_uom
282 div_treatment_uom_id Long Integer (4),
283 qtl_treatment_ontology_id Long Integer (4),
284 div_unit_of_measure_id Long Integer (4)
287 -- CREATE ANY INDEXES ...
289 DROP TABLE div_unit_of_measure;
290 CREATE TABLE div_unit_of_measure
292 div_unit_of_measure_id Long Integer (4),
296 -- CREATE ANY INDEXES ...
298 DROP TABLE qtl_trait_ontology;
299 CREATE TABLE qtl_trait_ontology
301 qtl_trait_ontology_id Long Integer (4)
304 -- CREATE ANY INDEXES ...
306 DROP TABLE qtl_treatment_ontology;
307 CREATE TABLE qtl_treatment_ontology
309 qtl_treatment_ontology_id Long Integer (4)
312 -- CREATE ANY INDEXES ...
316 -- CREATE ANY Relationships ...