1 |
DROP DATABASE IF EXISTS dbname; |
2 |
|
3 |
CREATE DATABASE dbname; |
4 |
|
5 |
USE dbname; |
6 |
|
7 |
SET time_zone='+0:00'; |
8 |
|
9 |
CREATE TABLE `_RUNID_GEN` ( |
10 |
`ID` int(10) unsigned NOT NULL auto_increment, |
11 |
PRIMARY KEY (`ID`) |
12 |
) ENGINE=InnoDB; |
13 |
|
14 |
CREATE TABLE `GL_RAW` ( |
15 |
`ID` int(10) unsigned NOT NULL auto_increment, |
16 |
`PATH` varchar(255) NOT NULL default '', |
17 |
`NAME` varchar(255) NOT NULL default '', |
18 |
`BOOT_NUMBER` smallint(5) unsigned default NULL, |
19 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
20 |
PRIMARY KEY (`ID`), |
21 |
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
22 |
KEY `PATH_index` (`PATH`) |
23 |
) ENGINE=InnoDB; |
24 |
|
25 |
INSERT INTO GL_RAW VALUES(0,'$PAM_L2','level2 files',NULL,NULL); |
26 |
|
27 |
CREATE TABLE `GL_ROOT` ( |
28 |
`ID` int(10) unsigned NOT NULL auto_increment, |
29 |
`ID_RAW` int(10) unsigned NOT NULL default '0', |
30 |
`ID_TIMESYNC` int(10) unsigned NOT NULL default '0', |
31 |
`PATH` varchar(255) NOT NULL default '', |
32 |
`NAME` varchar(255) NOT NULL default '', |
33 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
34 |
PRIMARY KEY (`ID`), |
35 |
KEY `ID_RAW_index` (`ID_RAW`), |
36 |
KEY `PATH_index` (`PATH`), |
37 |
CONSTRAINT `ROOT_fk` FOREIGN KEY (`ID_RAW`) REFERENCES `GL_RAW` (`ID`) ON DELETE CASCADE |
38 |
) ENGINE=InnoDB; |
39 |
|
40 |
CREATE TABLE `GL_RESURS_OFFSET` ( |
41 |
`ID` int(10) unsigned NOT NULL auto_increment, |
42 |
`FROM_ORBIT` int(10) unsigned NOT NULL default '0', |
43 |
`SPECIAL_FILE` varchar(255) NOT NULL default '', |
44 |
`OFFSET_DATE` timestamp default '0000-00-00 00:00:00', |
45 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
46 |
PRIMARY KEY (`ID`) |
47 |
) ENGINE=InnoDB; |
48 |
|
49 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','','2006-06-14 21:00:00',NULL); |
50 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'1619','','2006-09-28 21:00:00',NULL); |
51 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'2797','','2006-12-12 21:00:00',NULL); |
52 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'3221','','2007-01-08 21:00:00',NULL); |
53 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_002_001_cln1.pam','2007-01-08 21:00:00',NULL); |
54 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04584_003_001_cln1.pam','2007-01-08 21:00:00',NULL); |
55 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_002_001_cln1.pam','2007-01-08 21:00:00',NULL); |
56 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'0','04586_003_001_cln1.pam','2007-01-08 21:00:00',NULL); |
57 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'4576','','2007-04-08 21:00:00',NULL); |
58 |
INSERT INTO GL_RESURS_OFFSET VALUES(0,'5960','','2007-07-08 21:00:00',NULL); |
59 |
|
60 |
CREATE TABLE `GL_TIMESYNC` ( |
61 |
`ID` int(10) unsigned NOT NULL auto_increment, |
62 |
`ID_RAW` int(10) unsigned NOT NULL default '0', |
63 |
`OBT0` int(10) unsigned NOT NULL default '0', |
64 |
`TIMESYNC` int(10) unsigned NOT NULL default '0', |
65 |
`TYPE` smallint(5) unsigned NOT NULL default '0', |
66 |
PRIMARY KEY (`ID`), |
67 |
KEY `ID_RAW_index` (`ID_RAW`), |
68 |
KEY `TYPE_index` (`TYPE`), |
69 |
CONSTRAINT `TIME_RAW_fk` FOREIGN KEY (`ID_RAW`) REFERENCES `GL_RAW` (`ID`) ON DELETE CASCADE |
70 |
) ENGINE=InnoDB; |
71 |
|
72 |
CREATE TABLE `GL_PARAM` ( |
73 |
`ID` int(10) unsigned NOT NULL auto_increment, |
74 |
`PATH` varchar(255) NOT NULL default '', |
75 |
`NAME` varchar(255) NOT NULL default '', |
76 |
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
77 |
`TO_TIME` int(10) unsigned NOT NULL default '0', |
78 |
`TYPE` smallint(5) unsigned NOT NULL default '0', |
79 |
`DESCR` varchar(255) NOT NULL default '', |
80 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
81 |
PRIMARY KEY (`ID`), |
82 |
KEY `PATH_index` (`PATH`), |
83 |
KEY `NAME_index` (`NAME`), |
84 |
KEY `TYPE_index` (`TYPE`), |
85 |
KEY `DESCR_index` (`DESCR`) |
86 |
) ENGINE=InnoDB; |
87 |
|
88 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","field_param-0/",0,0,1,"field",NULL); |
89 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mip_param-0/",0,0,2,"trk mip",NULL); |
90 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","charge_param-1/",0,0,3,"trk charge",NULL); |
91 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","eta_param-2/",0,0,4,"trk pfa",NULL); |
92 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","align_param-Q.A/",0,0,5,"trk alignment",NULL); |
93 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","mask_param-1/",0,0,6,"trk mask",NULL); |
94 |
insert into GL_PARAM values(0,"$PAM_CALIB/trk-param/","default_calib/",0,0,7,"default calibration",NULL); |
95 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP-dws2000.dat",1,1,101,"Calorimeter ADC to MIP from flight data dw serie 2000",NULL); |
96 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIP.dat",1,1,101,"Calorimeter ADC to MIP from ground data",NULL); |
97 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloADC2MIPfc.dat",2,4294967295,101,"Calorimeter ADC to MIP from flight, relativistic particles",NULL); |
98 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign.dat",1,1,102,"Calorimeter alignement",NULL); |
99 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flight.dat",1,1,102,"Calorimeter alignement with flight data",NULL); |
100 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloAlign-flightEMS.dat",2,4294967295,102,"Calorimeter alignement with flight data EM showers",NULL); |
101 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloBadMask.dat",0,0,103,"Calorimeter bad strip offline mask",NULL); |
102 |
insert into GL_PARAM values(0,"$PAM_CALIB/cal-param/","FCaloDefaultCalib.root",0,0,104,"Calorimeter default calibration",NULL); |
103 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_a.rz",1,1153660000,201," 0 - 07-23 - A A standard",NULL); |
104 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_b.rz",1153660001,1154375000,201," 07-23 - 07-31 HV problems B B july",NULL); |
105 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_c.rz",1154375001,1155850000,201," 07-31 - 08-17 - C C standard",NULL); |
106 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_d.rz",1155850001,1156280000,201," 08-17 - 08-22 HV problems D D august",NULL); |
107 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_e.rz",1156280001,1165400000,201," 08-22 - 12-06 - E E standard",NULL); |
108 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_f.rz",1165400001,1168490000,201," 12-06 - 01-11 Decmber Tracker off/on F F standard",NULL); |
109 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_g.rz",1168490001,1168940000,201," 01-11 - 01-16 HV problems G G january",NULL); |
110 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_g1.rz",1168940001,1169580000,201," 01-16 - 01-23 HV problems conn. F&M G1 G1 standard",NULL); |
111 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_h.rz",1169580001,1170200000,201," 01-23 - 01-30 - H H standard",NULL); |
112 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_i.rz",1170200001,1171000000,201," 01-30 - 02-09 30.1. Threshold changed I I standard",NULL); |
113 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_j.rz",1171000001,1174665000,201," 02-09 - 03-23 09.2. Threshold changed J J standard",NULL); |
114 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_k.rz",1174665001,1175000000,201," 03-23 - 03-27 HV problems K K standard",NULL); |
115 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_l.rz",1175000001,1176120000,201," 03-27 - 04-09 - L L standard",NULL); |
116 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_m.rz",1176120001,1176800000,201," 04-09 - 04-17 HV problems M M standard",NULL); |
117 |
insert into GL_PARAM values(0,"$PAM_CALIB/tof-param/","tofcalib_n.rz",1176800001,4294967295,201," > 04-17 - N N standard",NULL); |
118 |
insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05.dat",0,0,301,"igrf 2005",NULL); |
119 |
insert into GL_PARAM values(0,"$PAM_CALIB/orb-param/","igrf05s.dat",0,0,302,"igrf 2010",NULL); |
120 |
|
121 |
CREATE TABLE `GL_TLE` ( |
122 |
`ID` int(10) NOT NULL auto_increment, |
123 |
`TLE1` varchar(255) NOT NULL default '', |
124 |
`TLE2` varchar(255) NOT NULL default '', |
125 |
`TLE3` varchar(255) NOT NULL default '', |
126 |
`FROM_TIME` datetime NOT NULL default '0000-00-00 00:00:00', |
127 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
128 |
PRIMARY KEY (`ID`) |
129 |
) ENGINE=InnoDB; |
130 |
|
131 |
CREATE TABLE `GL_RUN` ( |
132 |
`ID` int(10) unsigned NOT NULL auto_increment, |
133 |
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
134 |
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
135 |
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
136 |
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
137 |
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
138 |
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
139 |
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
140 |
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
141 |
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
142 |
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
143 |
`EV_FROM` int(10) unsigned NOT NULL default '0', |
144 |
`EV_TO` int(10) unsigned NOT NULL default '0', |
145 |
`NEVENTS` int(10) unsigned NOT NULL default '0', |
146 |
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
147 |
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
148 |
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
149 |
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
150 |
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
151 |
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
152 |
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
153 |
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
154 |
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
155 |
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
156 |
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
157 |
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
158 |
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
159 |
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
160 |
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
161 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
162 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
163 |
PRIMARY KEY (`ID`), |
164 |
KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
165 |
KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`), |
166 |
KEY `ID_ROOT_L2_index` (`ID_ROOT_L2`), |
167 |
KEY `COMPILATIONTS_index` (`COMPILATIONTIMESTAMP`), |
168 |
KEY `VALID_index` (`VALIDATION`), |
169 |
KEY `TRKCALIB_index` (`TRK_CALIB_USED`), |
170 |
KEY `CALDSPMASK_index` (`CAL_DSP_MASK`), |
171 |
KEY `EFF_WS_index` (`EFF_WRK_SCHEDULE`), |
172 |
KEY `FAV_WS_index` (`FAV_WRK_SCHEDULE`), |
173 |
KEY `RM_ACQ_AFTER_CALIB_index` (`RM_ACQ_AFTER_CALIB`), |
174 |
KEY `RM_ACQ_SETTING_MODE_index` (`RM_ACQ_SETTING_MODE`), |
175 |
KEY `ACQ_VAR_INFO_index` (`ACQ_VAR_INFO`), |
176 |
KEY `TRG_MODE_A_index` (`PRH_VAR_TRG_MODE_A`), |
177 |
KEY `TRG_MODE_B_index` (`PRH_VAR_TRG_MODE_B`), |
178 |
KEY `NEVENTS_index` (`NEVENTS`), |
179 |
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
180 |
KEY `ID_RUN_fk_constraint` (`ID_ROOT_L0`), |
181 |
KEY `ID_RUN_L2_fk_constraint` (`ID_ROOT_L2`) |
182 |
) ENGINE=InnoDB; |
183 |
|
184 |
CREATE TABLE `GL_RUN_FRAGMENTS` ( |
185 |
`ID` int(10) unsigned NOT NULL auto_increment, |
186 |
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
187 |
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
188 |
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
189 |
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
190 |
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
191 |
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
192 |
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
193 |
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
194 |
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
195 |
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
196 |
`EV_FROM` int(10) unsigned NOT NULL default '0', |
197 |
`EV_TO` int(10) unsigned NOT NULL default '0', |
198 |
`NEVENTS` int(10) unsigned NOT NULL default '0', |
199 |
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
200 |
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
201 |
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
202 |
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
203 |
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
204 |
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
205 |
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
206 |
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
207 |
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
208 |
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
209 |
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
210 |
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
211 |
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
212 |
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
213 |
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
214 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
215 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
216 |
PRIMARY KEY (`ID`), |
217 |
KEY `ID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
218 |
KEY `ID_ROOT_L0_index` (`ID_ROOT_L0`), |
219 |
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
220 |
KEY `TRKCALIB_index` (`TRK_CALIB_USED`), |
221 |
KEY `NID_RUN_fk_constraint` (`ID_ROOT_L0`) |
222 |
) ENGINE=InnoDB; |
223 |
|
224 |
CREATE TABLE `GL_RUN_TRASH` ( |
225 |
`ID_TRASH` int(10) unsigned NOT NULL auto_increment, |
226 |
`ID` int(10) unsigned NOT NULL default '0', |
227 |
`ID_RUN_FRAG` int(10) unsigned NOT NULL default '0', |
228 |
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
229 |
`ID_ROOT_L2` int(10) unsigned NOT NULL default '0', |
230 |
`RUNHEADER_TIME` int(10) unsigned NOT NULL default '0', |
231 |
`RUNTRAILER_TIME` int(10) unsigned NOT NULL default '0', |
232 |
`RUNHEADER_OBT` int(10) unsigned NOT NULL default '0', |
233 |
`RUNTRAILER_OBT` int(10) unsigned NOT NULL default '0', |
234 |
`RUNHEADER_PKT` int(10) unsigned NOT NULL default '0', |
235 |
`RUNTRAILER_PKT` int(10) unsigned NOT NULL default '0', |
236 |
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
237 |
`EV_FROM` int(10) unsigned NOT NULL default '0', |
238 |
`EV_TO` int(10) unsigned NOT NULL default '0', |
239 |
`NEVENTS` int(10) unsigned NOT NULL default '0', |
240 |
`PKT_COUNTER` int(10) unsigned NOT NULL default '0', |
241 |
`PKT_READY_COUNTER` int(10) unsigned NOT NULL default '0', |
242 |
`COMPILATIONTIMESTAMP` int(10) unsigned NOT NULL default '0', |
243 |
`FAV_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
244 |
`EFF_WRK_SCHEDULE` tinyint(3) unsigned NOT NULL default '0', |
245 |
`PRH_VAR_TRG_MODE_A` int(10) unsigned NOT NULL default '0', |
246 |
`PRH_VAR_TRG_MODE_B` int(10) unsigned NOT NULL default '0', |
247 |
`ACQ_BUILD_INFO` int(10) unsigned NOT NULL default '0', |
248 |
`ACQ_VAR_INFO` smallint(5) unsigned NOT NULL default '0', |
249 |
`RM_ACQ_AFTER_CALIB` tinyint(3) NOT NULL default '0', |
250 |
`RM_ACQ_SETTING_MODE` tinyint(3) NOT NULL default '0', |
251 |
`TRK_CALIB_USED` int(10) unsigned NOT NULL default '0', |
252 |
`CAL_DSP_MASK` tinyint(3) unsigned NOT NULL default '0', |
253 |
`LAST_TIMESYNC` int(10) unsigned NOT NULL default '0', |
254 |
`OBT_TIMESYNC` int(10) unsigned NOT NULL default '0', |
255 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
256 |
`FILENAMEL0` varchar(255) NOT NULL default '', |
257 |
`FILENAMEL2` varchar(255) NOT NULL default '', |
258 |
`BELONGED_TO` varchar(255) NOT NULL default '', |
259 |
`INSERT_TIME` timestamp NOT NULL default CURRENT_TIMESTAMP, |
260 |
PRIMARY KEY (`ID_TRASH`), |
261 |
KEY `TID_RUN_FRAG_index` (`ID_RUN_FRAG`), |
262 |
KEY `TID_ROOT_L0_index` (`ID_ROOT_L0`), |
263 |
KEY `TBOOTNUMBER_index` (`BOOT_NUMBER`), |
264 |
KEY `TTRKCALIB_index` (`TRK_CALIB_USED`), |
265 |
KEY `TFNAME0_index` (`FILENAMEL0`), |
266 |
KEY `TFNAME2_index` (`FILENAMEL2`), |
267 |
KEY `TBELONG_index` (`BELONGED_TO`) |
268 |
) ENGINE=InnoDB; |
269 |
|
270 |
CREATE TABLE `GL_CALO_CALIB` ( |
271 |
`ID` int(10) unsigned NOT NULL auto_increment, |
272 |
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
273 |
`EV_ROOT` int(10) unsigned NOT NULL default '0', |
274 |
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
275 |
`TO_TIME` int(10) unsigned NOT NULL default '0', |
276 |
`SECTION` tinyint(3) unsigned NOT NULL default '0', |
277 |
`OBT` int(10) unsigned NOT NULL default '0', |
278 |
`PKT` int(10) unsigned NOT NULL default '0', |
279 |
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
280 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
281 |
PRIMARY KEY (`ID`), |
282 |
KEY `SECTION_index` (`SECTION`), |
283 |
KEY `EV_ROOT_index` (`EV_ROOT`), |
284 |
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
285 |
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
286 |
KEY `VALID1_index` (`VALIDATION`) |
287 |
) ENGINE=InnoDB; |
288 |
|
289 |
CREATE TABLE `GL_TRK_CALIB` ( |
290 |
`ID` int(10) unsigned NOT NULL auto_increment, |
291 |
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
292 |
`EV_ROOT_CALIBTRK1` int(10) unsigned default NULL, |
293 |
`EV_ROOT_CALIBTRK2` int(10) unsigned default NULL, |
294 |
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
295 |
`TO_TIME` int(10) unsigned NOT NULL default '0', |
296 |
`OBT1` int(10) unsigned NOT NULL default '0', |
297 |
`PKT1` int(10) unsigned NOT NULL default '0', |
298 |
`OBT2` int(10) unsigned NOT NULL default '0', |
299 |
`PKT2` int(10) unsigned NOT NULL default '0', |
300 |
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
301 |
`VALIDATION` tinyint(3) unsigned NOT NULL default '0', |
302 |
PRIMARY KEY (`ID`), |
303 |
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
304 |
KEY `EV_ROOT_CALIBTRK1index` (`EV_ROOT_CALIBTRK1`), |
305 |
KEY `EV_ROOT_CALIBTRK2index` (`EV_ROOT_CALIBTRK2`), |
306 |
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`), |
307 |
KEY `VALID2_index` (`VALIDATION`) |
308 |
) ENGINE=InnoDB; |
309 |
|
310 |
CREATE TABLE `GL_S4_CALIB` ( |
311 |
`ID` int(10) unsigned NOT NULL auto_increment, |
312 |
`ID_ROOT_L0` int(10) unsigned NOT NULL default '0', |
313 |
`EV_ROOT` int(10) unsigned NOT NULL default '0', |
314 |
`FROM_TIME` int(10) unsigned NOT NULL default '0', |
315 |
`TO_TIME` int(10) unsigned NOT NULL default '0', |
316 |
`OBT` int(10) unsigned NOT NULL default '0', |
317 |
`PKT` int(10) unsigned NOT NULL default '0', |
318 |
`BOOT_NUMBER` smallint(5) unsigned NOT NULL default '0', |
319 |
PRIMARY KEY (`ID`), |
320 |
KEY `ID_ROOT_index` (`ID_ROOT_L0`), |
321 |
KEY `BOOTNUMBER_index` (`BOOT_NUMBER`) |
322 |
) ENGINE=InnoDB; |
323 |
|
324 |
|