-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_tables.h
3015 lines (2889 loc) · 87.9 KB
/
create_tables.h
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* This file is part of z/VM Performance Monitor Daemon.
*
* z/VM Performance Monitor Daemon is free software: you can redistribute
* it and/or modify it under the terms of the GNU General Public License
* as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* z/VM Performance Monitor Daemon is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with z/VM Performance Monitor Daemon.
* If not, see <http://www.gnu.org/licenses/>.
*/
//MYSQL TABLE DEFINITION BEGIN
//DOMAIN-0's TABLE
const char *query_create_d0r1 =
"CREATE TABLE IF NOT EXISTS d0r1 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytsyp_pfxcpuad SMALLINT(1) UNSIGNED, \
sytsyp_plsabnct INT(1) UNSIGNED, \
sytsyp_plsdiagt INT(1) UNSIGNED, \
sytsyp_plsprvis INT(1) UNSIGNED, \
sytsyp_plsextnx INT(1) UNSIGNED, \
sytsyp_plsextnc INT(1) UNSIGNED, \
sytsyp_plsmchct INT(1) UNSIGNED, \
sytsyp_plsctss INT(1) UNSIGNED, \
sytsyp_plsctrs INT(1) UNSIGNED, \
sytsyp_plsctcs INT(1) UNSIGNED, \
sytsyp_plscths INT(1) UNSIGNED, \
sytsyp_plsctsi INT(1) UNSIGNED, \
sytsyp_plsctui INT(1) UNSIGNED, \
sytsyp_plspiopr INT(1) UNSIGNED, \
sytsyp_plspiopw INT(1) UNSIGNED, \
sytsyp_plspiosr INT(1) UNSIGNED, \
sytsyp_plspiosw INT(1) UNSIGNED, \
sytsyp_plsdguct INT(1) UNSIGNED, \
sytsyp_plsxitct INT(1) UNSIGNED, \
sytsyp_plspagps INT(1) UNSIGNED, \
sytsyp_plsstkpe INT(1) UNSIGNED, \
sytsyp_plstmrce INT(1) UNSIGNED, \
sytsyp_plsprvsc INT(1) UNSIGNED, \
sytsyp_pfxcputy TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sytsyp_pfxcpuad)) ENGINE=INNODB";
//d0r2 check and correct time values for total cpu time
const char *query_create_d0r2 =
"CREATE TABLE IF NOT EXISTS d0r2 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytprp_pfxcpuad SMALLINT(1) UNSIGNED, \
sytprp_plscuhaf SMALLINT(1) UNSIGNED, \
sytprp_pfxprbtm CHAR(8), \
sytprp_pfxutime BIGINT(1) UNSIGNED, \
sytprp_pfxtmsys CHAR(8), \
sytprp_pfxtotwt BIGINT(1) UNSIGNED, \
sytprp_pfxrunci INT(1) UNSIGNED, \
sytprp_pfxrunpf INT(1) UNSIGNED, \
sytprp_pfxruncp INT(1) UNSIGNED, \
sytprp_calfstph INT(1) UNSIGNED, \
sytprp_pfxspint BIGINT(1) UNSIGNED, \
sytprp_pfxspinc INT(1) UNSIGNED, \
sytprp_pfxcputy TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sytprp_pfxcpuad)) ENGINE=INNODB";
const char *query_create_d0r3 =
"CREATE TABLE IF NOT EXISTS d0r3 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytrsg_sysrsvpg INT(1) UNSIGNED, \
sytrsg_rsacplok INT(1) UNSIGNED, \
sytrsg_rsanonpg INT(1) UNSIGNED, \
sytrsg_rsapgabl INT(1) UNSIGNED, \
sytrsg_rsaavail INT(1) UNSIGNED, \
sytrsg_rsafrqwt INT(1) UNSIGNED, \
sytrsg_rsaxtend INT(1) UNSIGNED, \
sytrsg_rsasavfr INT(1) UNSIGNED, \
sytrsg_calflag1 TINYINT(1) UNSIGNED, \
sytrsg_hcpstpmb SMALLINT(1) UNSIGNED, \
sytrsg_sys98xa INT(1) UNSIGNED, \
sytrsg_tcmmidsz INT(1) UNSIGNED, \
sytrsg_tcmmain INT(1) UNSIGNED, \
sytrsg_tcmmnmin INT(1) UNSIGNED, \
sytrsg_tcmmnmax INT(1) UNSIGNED, \
sytrsg_tcmmndl INT(1) UNSIGNED, \
sytrsg_tcmstlmn INT(1) UNSIGNED, \
sytrsg_sysscmav INT(1) UNSIGNED, \
sytrsg_tcmmnblw INT(1) UNSIGNED, \
sytrsg_tcmmnabv INT(1) UNSIGNED, \
sytrsg_rsa2gdct INT(1) UNSIGNED, \
sytrsg_sysscgct INT(1) UNSIGNED, \
sytrsg_rsalgfrm BINARY(8), \
sytrsg_rsacplkg INT(1) UNSIGNED, \
sytrsg_rsa2gavl BINARY(8), \
sytrsg_rsa2gav1 INT(1) UNSIGNED, \
sytrsg_rsa2gav2 INT(1) UNSIGNED, \
sytrsg_rsafsb2g INT(1) UNSIGNED, \
sytrsg_rsafsa2g INT(1) UNSIGNED, \
sytrsg_rsafsyub INT(1) UNSIGNED, \
sytrsg_rsafsyua INT(1) UNSIGNED, \
sytrsg_rsasxcpl INT(1) UNSIGNED, \
sytrsg_rsasxcla INT(1) UNSIGNED, \
sytrsg_rsarfrst INT(1) UNSIGNED, \
sytrsg_rsarfrsg BINARY(8), \
sytrsg_rsasxbct INT(1) UNSIGNED, \
sytrsg_rsasxact INT(1) UNSIGNED, \
sytrsg_rsaafrdb INT(1) UNSIGNED, \
sytrsg_rsaafrdw BINARY(8), \
sytrsg_rsaafrib INT(1) UNSIGNED, \
sytrsg_rsaafriu BINARY(8), \
sytrsg_rsacalct BINARY(8), \
sytrsg_rsasng2g BINARY(8), \
sytrsg_rsasngav INT(1) UNSIGNED, \
sytrsg_rsaltdb1 INT(1) UNSIGNED, \
sytrsg_rsaltda1 INT(1) UNSIGNED, \
sytrsg_rsaltdd1 INT(1) UNSIGNED, \
sytrsg_rsaltdc1 INT(1) UNSIGNED, \
sytrsg_rsaltdb2 INT(1) UNSIGNED, \
sytrsg_rsaltda2 INT(1) UNSIGNED, \
sytrsg_rsaltdd2 INT(1) UNSIGNED, \
sytrsg_rsaltdc2 INT(1) UNSIGNED, \
sytrsg_rsaltdbe INT(1) UNSIGNED, \
sytrsg_rsaltdae INT(1) UNSIGNED, \
sytrsg_rsaltdde INT(1) UNSIGNED, \
sytrsg_rsaltdce INT(1) UNSIGNED, \
sytrsg_rsadrmb1 INT(1) UNSIGNED, \
sytrsg_rsadrma1 INT(1) UNSIGNED, \
sytrsg_rsadrmd1 INT(1) UNSIGNED, \
sytrsg_rsadrmc1 INT(1) UNSIGNED, \
sytrsg_rsadrmb2 INT(1) UNSIGNED, \
sytrsg_rsadrma2 INT(1) UNSIGNED, \
sytrsg_rsadrmd2 INT(1) UNSIGNED, \
sytrsg_rsadrmc2 INT(1) UNSIGNED, \
sytrsg_rsadrmbe INT(1) UNSIGNED, \
sytrsg_rsadrmae INT(1) UNSIGNED, \
sytrsg_rsadrmde INT(1) UNSIGNED, \
sytrsg_rsadrmce INT(1) UNSIGNED, \
sytrsg_rsaelgb1 INT(1) UNSIGNED, \
sytrsg_rsaelga1 INT(1) UNSIGNED, \
sytrsg_rsaelgd1 INT(1) UNSIGNED, \
sytrsg_rsaelgc1 INT(1) UNSIGNED, \
sytrsg_rsaelgb2 INT(1) UNSIGNED, \
sytrsg_rsaelga2 INT(1) UNSIGNED, \
sytrsg_rsaelgd2 INT(1) UNSIGNED, \
sytrsg_rsaelgc2 INT(1) UNSIGNED, \
sytrsg_rsaelgbe INT(1) UNSIGNED, \
sytrsg_rsaelgae INT(1) UNSIGNED, \
sytrsg_rsaelgde INT(1) UNSIGNED, \
sytrsg_rsaelgce INT(1) UNSIGNED, \
sytrsg_rsadspb1 INT(1) UNSIGNED, \
sytrsg_rsadspa1 INT(1) UNSIGNED, \
sytrsg_rsadspd1 INT(1) UNSIGNED, \
sytrsg_rsadspc1 INT(1) UNSIGNED, \
sytrsg_rsadspb2 INT(1) UNSIGNED, \
sytrsg_rsadspa2 INT(1) UNSIGNED, \
sytrsg_rsadspd2 INT(1) UNSIGNED, \
sytrsg_rsadspc2 INT(1) UNSIGNED, \
sytrsg_rsadspbe INT(1) UNSIGNED, \
sytrsg_rsadspae INT(1) UNSIGNED, \
sytrsg_rsadspde INT(1) UNSIGNED, \
sytrsg_rsadspce INT(1) UNSIGNED, \
sytrsg_rsashrb1 INT(1) UNSIGNED, \
sytrsg_rsashra1 INT(1) UNSIGNED, \
sytrsg_rsashrd1 INT(1) UNSIGNED, \
sytrsg_rsashrc1 INT(1) UNSIGNED, \
sytrsg_rsashrb2 INT(1) UNSIGNED, \
sytrsg_rsashra2 INT(1) UNSIGNED, \
sytrsg_rsashrd2 INT(1) UNSIGNED, \
sytrsg_rsashrc2 INT(1) UNSIGNED, \
sytrsg_rsashrbe INT(1) UNSIGNED, \
sytrsg_rsashrae INT(1) UNSIGNED, \
sytrsg_rsashrde INT(1) UNSIGNED, \
sytrsg_rsashrce INT(1) UNSIGNED, \
sytrsg_rsaresac INT(1) UNSIGNED, \
sytrsg_rsaresbc INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d0r4 =
"CREATE TABLE IF NOT EXISTS d0r4 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytrsp_pfxcpuad SMALLINT(1) UNSIGNED, \
sytrsp_plsstlfr INT(1) UNSIGNED, \
sytrsp_plsprqdf INT(1) UNSIGNED, \
sytrsp_plsshrrd INT(1) UNSIGNED, \
sytrsp_plsalemp INT(1) UNSIGNED, \
sytrsp_plsnocmp INT(1) UNSIGNED, \
sytrsp_plsmvb2g INT(1) UNSIGNED, \
sytrsp_plsalemg INT(1) UNSIGNED, \
sytrsp_plsgclem INT(1) UNSIGNED, \
sytrsp_plsmvabv INT(1) UNSIGNED, \
sytrsp_pfxcputy TINYINT(1) UNSIGNED, \
sytrsp_plsalecl INT(1) UNSIGNED, \
sytrsp_plsalecg INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sytrsp_pfxcpuad)) ENGINE=INNODB";
const char *query_create_d0r5 =
"CREATE TABLE IF NOT EXISTS d0r5 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytxsp_pfxcpuad SMALLINT(1) UNSIGNED, \
sytxsp_pfxpgin INT(1) UNSIGNED, \
sytxsp_plspgin INT(1) UNSIGNED, \
sytxsp_plspgout INT(1) UNSIGNED, \
sytxsp_plspgxrd INT(1) UNSIGNED, \
sytxsp_plspgxwt INT(1) UNSIGNED, \
sytxsp_plspgmrx INT(1) UNSIGNED, \
sytxsp_plspgmrd INT(1) UNSIGNED, \
sytxsp_pfxcputy TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sytxsp_pfxcpuad)) ENGINE=INNODB";
const char *query_create_d0r6 =
"CREATE TABLE IF NOT EXISTS d0r6 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytasg_cal90ful INT(1) UNSIGNED, \
sytasg_cal91ful INT(1) UNSIGNED, \
sytasg_calslta1 INT(1) UNSIGNED, \
sytasg_calslti1 INT(1) UNSIGNED, \
sytasg_calslta2 INT(1) UNSIGNED, \
sytasg_calslti2 INT(1) UNSIGNED, \
sytasg_syssfcrt INT(1) UNSIGNED, \
sytasg_syssfpur INT(1) UNSIGNED, \
sytasg_caltotm1 INT(1) UNSIGNED, \
sytasg_calavgm1 INT(1) UNSIGNED, \
sytasg_caltotm2 INT(1) UNSIGNED, \
sytasg_calavgm2 INT(1) UNSIGNED, \
sytasg_caldmpav INT(1) UNSIGNED, \
sytasg_caldmpiu INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d0r7 =
"CREATE TABLE IF NOT EXISTS d0r7 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytshs_systanss INT(1) UNSIGNED, \
sytshs_systadcs INT(1) UNSIGNED, \
sytshs_rsashare INT(1) UNSIGNED, \
sytshs_calnumsa INT(1) UNSIGNED, \
sytshs_rsactshr INT(1) UNSIGNED, \
sytshs_vmdsforo INT(1) UNSIGNED, \
sytshs_vmdsfore INT(1) UNSIGNED, \
sytshs_qdgsyslm INT(1) UNSIGNED, \
sytshs_qdgusrlm INT(1) UNSIGNED, \
sytshs_qdgsysca INT(1) UNSIGNED, \
sytshs_qdglkcnt INT(1) UNSIGNED, \
sytshs_qdgdisks INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d0r11 =
"CREATE TABLE IF NOT EXISTS d0r11 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytcom_pfxcpuad SMALLINT(1) UNSIGNED, \
sytcom_plsisevm INT(1) UNSIGNED, \
sytcom_plsisema INT(1) UNSIGNED, \
sytcom_plsisem INT(1) UNSIGNED, \
sytcom_plsisera INT(1) UNSIGNED, \
sytcom_plsisebl INT(1) UNSIGNED, \
sytcom_plsisemo INT(1) UNSIGNED, \
sytcom_plsistma INT(1) UNSIGNED, \
sytcom_plsistvm INT(1) UNSIGNED, \
sytcom_plsistm INT(1) UNSIGNED, \
sytcom_plsistra INT(1) UNSIGNED, \
sytcom_plsistbl INT(1) UNSIGNED, \
sytcom_plsistmo INT(1) UNSIGNED, \
sytcom_plsisuvm INT(1) UNSIGNED, \
sytcom_plsisuma INT(1) UNSIGNED, \
sytcom_plsisum INT(1) UNSIGNED, \
sytcom_plsisura INT(1) UNSIGNED, \
sytcom_plsisubl INT(1) UNSIGNED, \
sytcom_plsisumo INT(1) UNSIGNED, \
sytcom_plsvsevm INT(1) UNSIGNED, \
sytcom_plsvstvm INT(1) UNSIGNED, \
sytcom_plsvsuvm INT(1) UNSIGNED, \
sytcom_plsisecc INT(1) UNSIGNED, \
sytcom_plsistcc INT(1) UNSIGNED, \
sytcom_plsisucc INT(1) UNSIGNED, \
sytcom_plsisesi INT(1) UNSIGNED, \
sytcom_plsistsi INT(1) UNSIGNED, \
sytcom_plsisusi INT(1) UNSIGNED, \
sytcom_plsisesp INT(1) UNSIGNED, \
sytcom_plsistsp INT(1) UNSIGNED, \
sytcom_plsisusp INT(1) UNSIGNED, \
sytcom_plsisesy INT(1) UNSIGNED, \
sytcom_plsistsy INT(1) UNSIGNED, \
sytcom_plsisusy INT(1) UNSIGNED, \
sytcom_plsiseac INT(1) UNSIGNED, \
sytcom_plsistac INT(1) UNSIGNED, \
sytcom_plsisuac INT(1) UNSIGNED, \
sytcom_plsiselo INT(1) UNSIGNED, \
sytcom_plsistlo INT(1) UNSIGNED, \
sytcom_plsisulo INT(1) UNSIGNED, \
sytcom_plsisecr INT(1) UNSIGNED, \
sytcom_plsistcr INT(1) UNSIGNED, \
sytcom_plsisucr INT(1) UNSIGNED, \
sytcom_plsiseid INT(1) UNSIGNED, \
sytcom_plsistid INT(1) UNSIGNED, \
sytcom_plsisuid INT(1) UNSIGNED, \
sytcom_plsisecf INT(1) UNSIGNED, \
sytcom_plsistcf INT(1) UNSIGNED, \
sytcom_plsisucf INT(1) UNSIGNED, \
sytcom_plsiucvt INT(1) UNSIGNED, \
sytcom_pfxcputy TINYINT(1) UNSIGNED, \
sytcom_plsisevs INT(1) UNSIGNED, \
sytcom_plsistvs INT(1) UNSIGNED, \
sytcom_plsisuvs INT(1) UNSIGNED, \
sytcom_plsiseas INT(1) UNSIGNED, \
sytcom_plsistas INT(1) UNSIGNED, \
sytcom_plsisuas INT(1) UNSIGNED, \
sytcom_plsisesc INT(1) UNSIGNED, \
sytcom_plsistsc INT(1) UNSIGNED, \
sytcom_plsisusc INT(1) UNSIGNED, \
sytcom_plsiseve INT(1) UNSIGNED, \
sytcom_plsistve INT(1) UNSIGNED, \
sytcom_plsisuve INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sytcom_pfxcpuad)) ENGINE=INNODB";
const char *query_create_d0r12 =
"CREATE TABLE IF NOT EXISTS d0r12 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytuwt_caltidl INT(1) UNSIGNED, \
sytuwt_caltsvm INT(1) UNSIGNED, \
sytuwt_caliowt INT(1) SIGNED, \
sytuwt_calwtpag INT(1) SIGNED, \
sytuwt_calcfwt INT(1) SIGNED, \
sytuwt_calsimwt INT(1) SIGNED, \
sytuwt_calcpuwt INT(1) SIGNED, \
sytuwt_calcpurn INT(1) SIGNED, \
sytuwt_calothr INT(1) SIGNED, \
sytuwt_calqdisp INT(1) SIGNED, \
sytuwt_calelsvm INT(1) SIGNED, \
sytuwt_srmcelig SMALLINT(1) UNSIGNED, \
sytuwt_srmdsvmw INT(1) SIGNED, \
sytuwt_calioact INT(1) UNSIGNED, \
sytuwt_calllist INT(1) UNSIGNED, \
sytuwt_calllcp INT(1) UNSIGNED, \
sytuwt_calllzap INT(1) UNSIGNED, \
sytuwt_calllifl INT(1) UNSIGNED, \
sytuwt_calllzip INT(1) UNSIGNED, \
sytuwt_calcfcp INT(1) SIGNED, \
sytuwt_calcfzap INT(1) SIGNED, \
sytuwt_calcfifl INT(1) SIGNED, \
sytuwt_calcfzip INT(1) SIGNED, \
sytuwt_calswcp INT(1) SIGNED, \
sytuwt_calswzap INT(1) SIGNED, \
sytuwt_calswifl INT(1) SIGNED, \
sytuwt_calswzip INT(1) SIGNED, \
sytuwt_calcwcp INT(1) SIGNED, \
sytuwt_calcwzap INT(1) SIGNED, \
sytuwt_calcwifl INT(1) SIGNED, \
sytuwt_calcwzip INT(1) SIGNED, \
sytuwt_calcrcp INT(1) SIGNED, \
sytuwt_calcrzap INT(1) SIGNED, \
sytuwt_calcrifl INT(1) SIGNED, \
sytuwt_calcrzip INT(1) SIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time)) ENGINE=INNODB";
const char *query_create_d0r13 =
"CREATE TABLE IF NOT EXISTS d0r13 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytscp_pfxcpuad SMALLINT(1) UNSIGNED, \
sytscp_plseqkad SMALLINT(1) UNSIGNED, \
sytscp_plsefrc1 SMALLINT(1) UNSIGNED, \
sytscp_plsefrc2 SMALLINT(1) UNSIGNED, \
sytscp_plsefrc3 SMALLINT(1) UNSIGNED, \
sytscp_plsdspcn INT(1) UNSIGNED, \
sytscp_pfxcputy TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sytscp_pfxcpuad)) ENGINE=INNODB";
const char *query_create_d0r14 =
"CREATE TABLE IF NOT EXISTS d0r14 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytxsg_xstxbget INT(1) UNSIGNED, \
sytxsg_xstxbrel INT(1) UNSIGNED, \
sytxsg_xstusrsh INT(1) UNSIGNED, \
sytxsg_xstctxav BINARY(8), \
sytxsg_xstcppar BINARY(8), \
sytxsg_hcpmdcpy INT(1) UNSIGNED, \
sytxsg_hcpmdcpn INT(1) UNSIGNED, \
sytxsg_hcpmdcpr INT(1) UNSIGNED, \
sytxsg_hcpmdcpw INT(1) UNSIGNED, \
sytxsg_hcpmdcac INT(1) UNSIGNED, \
sytxsg_hcpmdcne INT(1) UNSIGNED, \
sytxsg_hcpmdcex INT(1) UNSIGNED, \
sytxsg_hcpmdcli INT(1) UNSIGNED, \
sytxsg_calmdcau INT(1) UNSIGNED, \
sytxsg_hcpmdcis INT(1) UNSIGNED, \
sytxsg_hcpmdcqc INT(1) UNSIGNED, \
sytxsg_hcpmdcxg INT(1) UNSIGNED, \
sytxsg_hcpmdcxr INT(1) UNSIGNED, \
sytxsg_hcpmdctr INT(1) UNSIGNED, \
sytxsg_hcpmdcia INT(1) UNSIGNED, \
sytxsg_hcpmdcib INT(1) UNSIGNED, \
sytxsg_hcpmdcit INT(1) UNSIGNED, \
sytxsg_tcmxidsz INT(1) UNSIGNED, \
sytxsg_tcmxsmin INT(1) UNSIGNED, \
sytxsg_tcmstlxs INT(1) UNSIGNED, \
sytxsg_xstavgag INT(1) UNSIGNED, \
sytxsg_hcpstpxb SMALLINT(1) UNSIGNED, \
sytxsg_tcmfshvm INT(1) UNSIGNED, \
sytxsg_tcmrdct INT(1) UNSIGNED, \
sytxsg_tcmpin4k INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time)) ENGINE=INNODB";
const char *query_create_d0r15 =
"CREATE TABLE IF NOT EXISTS d0r15 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytcug_lcutnpar TINYINT(1) UNSIGNED, \
sytcug_lcutflag TINYINT(1) UNSIGNED, \
sytcug_lcutslce SMALLINT(1) UNSIGNED, \
sytcug_lcutpcct SMALLINT(1) UNSIGNED, \
sytcug_lpnumber SMALLINT(1) UNSIGNED, \
sytcug_cpuchar TINYINT(1) UNSIGNED, \
sytcug_cpucount SMALLINT(1) UNSIGNED, \
sytcug_cpucfgct SMALLINT(1) UNSIGNED, \
sytcug_cpustnby SMALLINT(1) UNSIGNED, \
sytcug_cpuresvd SMALLINT(1) UNSIGNED, \
sytcug_lparname CHAR(8), \
sytcug_lparcaf INT(1) UNSIGNED, \
sytcug_cpudedct SMALLINT(1) UNSIGNED, \
sytcug_cpushard SMALLINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time)) ENGINE=INNODB";
const char *query_create_d0r19 =
"CREATE TABLE IF NOT EXISTS d0r19 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytsyg_xctmsact BINARY(8), \
sytsyg_ftrdone INT(1) UNSIGNED, \
sytsyg_ftrabort INT(1) UNSIGNED, \
sytsyg_ftrnotel INT(1) UNSIGNED, \
sytsyg_ftrwrite INT(1) UNSIGNED, \
sytsyg_ctndone INT(1) UNSIGNED, \
sytsyg_ctnabort INT(1) UNSIGNED, \
sytsyg_ctnnotel INT(1) UNSIGNED, \
sytsyg_scpcapab INT(1) UNSIGNED, \
sytsyg_cpucapab INT(1) UNSIGNED, \
sytsyg_cpucount SMALLINT(1) UNSIGNED, \
sytsyg_cpucfgct SMALLINT(1) UNSIGNED, \
sytsyg_cpustnby SMALLINT(1) UNSIGNED, \
sytsyg_cpuresvd SMALLINT(1) UNSIGNED, \
sytsyg_vl3dbct TINYINT(1) UNSIGNED, \
sytsyg_vl3count SMALLINT(1) UNSIGNED, \
sytsyg_vl3cfgct SMALLINT(1) UNSIGNED, \
sytsyg_vl3stnby SMALLINT(1) UNSIGNED, \
sytsyg_vl3resvd SMALLINT(1) UNSIGNED, \
sytsyg_vl3mname CHAR(8), \
sytsyg_vl3caf INT(1) UNSIGNED, \
sytsyg_vl3cpnam CHAR(16), \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time)) ENGINE=INNODB";
const char *query_create_d0r21 =
"CREATE TABLE IF NOT EXISTS d0r21 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytsxg_sxssize INT(1) UNSIGNED, \
sytsxg_rsasxavl INT(1) UNSIGNED, \
sytsxg_rsasxbka INT(1) UNSIGNED, \
sytsxg_rsasxbkb INT(1) UNSIGNED, \
sytsxg_rsasxusd INT(1) UNSIGNED, \
sytsxg_rsasxucp INT(1) UNSIGNED, \
sytsxg_rsasxuid INT(1) UNSIGNED, \
sytsxg_rsasxufs INT(1) UNSIGNED, \
sytsxg_rsasxufg INT(1) UNSIGNED, \
sytsxg_rsasxali INT(1) UNSIGNED, \
sytsxg_rsasxnop INT(1) UNSIGNED, \
sytsxg_rsasxcla INT(1) UNSIGNED, \
sytsxg_rsasxqct INT(1) UNSIGNED, \
sytsxg_rsasxact INT(1) UNSIGNED, \
sytsxg_rsasxbct INT(1) UNSIGNED, \
sytsxg_rsarsvsy INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time)) ENGINE=INNODB";
const char *query_create_d0r22 =
"CREATE TABLE IF NOT EXISTS d0r22 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sytsxp_pfxcpuad SMALLINT(1) UNSIGNED, \
sytsxp_plssxrep INT(1) UNSIGNED, \
sytsxp_plssxacc INT(1) UNSIGNED, \
sytsxp_plssxarc INT(1) UNSIGNED, \
sytsxp_plssxaqc INT(1) UNSIGNED, \
sytsxp_plsspfsc INT(1) UNSIGNED, \
sytsxp_plsspgpc INT(1) UNSIGNED, \
sytsxp_plsspgcc INT(1) UNSIGNED, \
sytsxp_plsspgct INT(1) UNSIGNED, \
sytsxp_plssprpc INT(1) UNSIGNED, \
sytsxp_plssprcc INT(1) UNSIGNED, \
sytsxp_plssprct INT(1) UNSIGNED, \
sytsxp_plssprqc INT(1) UNSIGNED, \
sytsxp_plssprqt INT(1) UNSIGNED, \
sytsxp_plsspgfc INT(1) UNSIGNED, \
sytsxp_plssprfc INT(1) UNSIGNED, \
sytsxp_pfxcputy TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sytsxp_pfxcpuad)) ENGINE=INNODB";
//DOMAIN-1's TABLE
const char *query_create_d1r1 =
"CREATE TABLE IF NOT EXISTS d1r1 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP UNIQUE, \
mtrepr_edomains TINYINT(1) UNSIGNED, \
ibm TINYINT(1) UNSIGNED, \
mtrepr_config SMALLINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d1r3=
"CREATE TABLE IF NOT EXISTS d1r3 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrsus_lostrcct INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time,mtrsus_lostrcct)) ENGINE=INNODB";
const char *query_create_d1r4 =
"CREATE TABLE IF NOT EXISTS d1r4 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP UNIQUE, \
mtrsys_hcpcpepp BINARY(8), \
mtrsys_hcpcpeid CHAR(8), \
mtrsys_systodst TIMESTAMP, \
mtrsys_systerm TIMESTAMP, \
mtrsys_sysdate CHAR(8), \
mtrsys_sysabncd BINARY(8), \
mtrsys_syszone INT(1) UNSIGNED, \
mtrsys_calflgs TINYINT(1) UNSIGNED, \
mtrsys_sysvrfsg TINYINT(1) UNSIGNED, \
mtrsys_calflg2 TINYINT(1) UNSIGNED, \
mtrsys_systmid CHAR(8), \
mtrsys_sysckvol CHAR(6), \
mtrsys_syswmvol CHAR(6), \
mtrsys_sysmtype CHAR(4), \
mtrsys_sysmmodl CHAR(16), \
mtrsys_sysmseqc CHAR(16), \
mtrsys_sysmpom CHAR(4), \
mtrsys_lpnumber SMALLINT(1) UNSIGNED, \
mtrsys_cpuchar TINYINT(1) UNSIGNED, \
mtrsys_cpucount SMALLINT(1) UNSIGNED, \
mtrsys_cpucfgct SMALLINT(1) UNSIGNED, \
mtrsys_cpustnby SMALLINT(1) UNSIGNED, \
mtrsys_cpuresvd SMALLINT(1) UNSIGNED, \
mtrsys_lparname CHAR(8), \
mtrsys_lparcaf INT(1) UNSIGNED, \
mtrsys_cpudedct SMALLINT(1) UNSIGNED, \
mtrsys_cpushard SMALLINT(1) UNSIGNED, \
mtrsys_cpucapab INT(1) UNSIGNED, \
mtrsys_scpcapab INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d1r5=
"CREATE TABLE IF NOT EXISTS d1r5 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrprp_pfxcpuad SMALLINT(1) UNSIGNED, \
mtrprp_pfxidmdl CHAR(2), \
mtrprp_pfxidser CHAR(3), \
mtrprp_calflags TINYINT(1) UNSIGNED, \
mtrprp_pcccsu TINYINT(1) UNSIGNED, \
mtrprp_pfxidver TINYINT(1) UNSIGNED, \
mtrprp_pfxtype TINYINT(1) UNSIGNED, \
mtrprp_caluded CHAR(8), \
mtrprp_pfxcputy TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time,mtrprp_pfxcpuad)) ENGINE=INNODB";
const char *query_create_d1r9=
"CREATE TABLE IF NOT EXISTS d1r9 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrspr_interval INT(1) SIGNED, \
mtrspr_hfrate INT(1) SIGNED, \
mtrspr_sdomains TINYINT(1) UNSIGNED, \
ibm TINYINT(1) UNSIGNED, \
mtrspr_hdomains TINYINT(1) UNSIGNED, \
mtrspr_config SMALLINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, mtrspr_interval)) ENGINE=INNODB";
const char *query_create_d1r10 =
"CREATE TABLE IF NOT EXISTS d1r10 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrscm_caltod TIMESTAMP, \
mtrscm_calbyct INT(1) UNSIGNED, \
mtrscm_calcmd VARCHAR(256), \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, mtrscm_caltod)) ENGINE=INNODB";
const char *query_create_d1r12 =
"CREATE TABLE IF NOT EXISTS d1r12 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d1r13 =
"CREATE TABLE IF NOT EXISTS d1r13 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d1r17 =
"CREATE TABLE IF NOT EXISTS d1r17 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrxsg_xstotalb BINARY(8), \
mtrxsg_sysxtsiz BINARY(8), \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d1r18 =
"CREATE TABLE IF NOT EXISTS d1r18 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrccc_cpucapab INT(1) UNSIGNED, \
mtrccc_scpcapab INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d1r19 =
"CREATE TABLE IF NOT EXISTS d1r19 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrqdc_rdevdev SMALLINT(1) UNSIGNED, \
mtrqdc_vmduser CHAR(8), \
mtrqdc_vdevdev SMALLINT(1) UNSIGNED, \
mtrqdc_qdiofmt SMALLINT(1) UNSIGNED, \
mtrqdc_qdinpct SMALLINT(1) UNSIGNED, \
mtrqdc_qdioutct SMALLINT(1) UNSIGNED, \
mtrqdc_status TINYINT(1) UNSIGNED, \
mtrqdc_qdiocsgr INT(1) UNSIGNED, \
mtrqdc_qdiocsgw INT(1) UNSIGNED, \
mtrqdc_qdiocsgs INT(1) UNSIGNED, \
mtrqdc_rdevvssr INT(1) UNSIGNED, \
mtrqdc_rdevvssw INT(1) UNSIGNED, \
mtrqdc_rdevvsss INT(1) UNSIGNED, \
mtrqdc_bftoa BIGINT(1) UNSIGNED, \
mtrqdc_bytoa BIGINT(1) UNSIGNED, \
mtrqdc_bffra BIGINT(1) UNSIGNED, \
mtrqdc_byfra BIGINT(1) UNSIGNED, \
mtrqdc_rdevvsin INT(1) UNSIGNED, \
mtrqdc_rdevvsir INT(1) UNSIGNED, \
mtrqdc_rdevvsid INT(1) UNSIGNED, \
mtrqdc_qsbsqbvm INT(1) UNSIGNED, \
mtrqdc_qsbsqbpv INT(1) UNSIGNED, \
mtrqdc_qsbeqbvm INT(1) UNSIGNED, \
mtrqdc_qsbeqbpv INT(1) UNSIGNED, \
mtrqdc_qsblock INT(1) UNSIGNED, \
mtrqdc_qsbfobx INT(1) UNSIGNED, \
mtrqdc_qsbolck INT(1) UNSIGNED, \
mtrqdc_qsbsigwt INT(1) UNSIGNED, \
mtrqdc_qsbsigrt INT(1) UNSIGNED, \
mtrqdc_qsbsiglt INT(1) UNSIGNED, \
mtrqdc_sumofpin INT(1) UNSIGNED, \
mtrqdc_sumunpin INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, mtrqdc_vdevdev)) ENGINE=INNODB";
const char *query_create_d1r20=
"CREATE TABLE IF NOT EXISTS d1r20 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
mtrhpp_hppoolnm SMALLINT(1) UNSIGNED, \
mtrhpp_hpptoken SMALLINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, mtrhpp_hppoolnm, mtrhpp_hpptoken)) ENGINE=INNODB";
//DOMAIN-2's TABLE
const char *query_create_d2r1 =
"CREATE TABLE IF NOT EXISTS d2r1 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP UNIQUE, \
sclrdb_vmduser CHAR(8), \
sclrdb_calflags TINYINT(1) UNSIGNED, \
sclrdb_rdevsid INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC, sclrdb_vmduser DESC)) ENGINE=INNODB";
const char *query_create_d2r2 =
"CREATE TABLE IF NOT EXISTS d2r2 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP UNIQUE, \
sclrdc_vmduser CHAR(8), \
sclrdc_calflags TINYINT(1) UNSIGNED, \
sclrdc_rdevsid INT(1) UNSIGNED, \
sclrdc_calbyct INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC, sclrdc_vmduser DESC)) ENGINE=INNODB";
const char *query_create_d2r3 =
"CREATE TABLE IF NOT EXISTS d2r3 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP UNIQUE, \
sclwrr_vmduser CHAR(8), \
sclwrr_calflags TINYINT(1) UNSIGNED, \
sclwrr_rdevsid INT(1) UNSIGNED, \
sclwrr_calbyct INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC, sclwrr_vmduser DESC)) ENGINE=INNODB";
const char *query_create_d2r9=
"CREATE TABLE IF NOT EXISTS d2r9 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sclshr_vmduser CHAR(8), \
sclshr_vmdrelsh INT(1) UNSIGNED, \
sclshr_vmdabssh INT(1) UNSIGNED, \
sclshr_calsharf TINYINT(1) UNSIGNED, \
sclshr_vmdmxshr INT(1) UNSIGNED, \
sclshr_vmdcfgem TINYINT(1) UNSIGNED, \
sclshr_vmdpust TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sclshr_vmduser)) ENGINE=INNODB";
const char *query_create_d2r10=
"CREATE TABLE IF NOT EXISTS d2r10 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sclsqd_vmduser CHAR(8), \
sclsqd_calflag1 TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, sclsqd_vmduser)) ENGINE=INNODB";
const char *query_create_d2r11=
"CREATE TABLE IF NOT EXISTS d2r11 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
scliop_vmduser CHAR(8), \
scliop_ipqupr1 INT(1) UNSIGNED, \
scliop_newrqlo TINYINT(1) UNSIGNED, \
scliop_newrqhi TINYINT(1) UNSIGNED, \
scliop_ipqx0 TINYINT(1) UNSIGNED, \
scliop_sysiopq INT(1) UNSIGNED, \
scliop_sysiopqh TINYINT(1) UNSIGNED, \
scliop_sysioplo TINYINT(1) UNSIGNED, \
scliop_sysiophi TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, scliop_vmduser)) ENGINE=INNODB";
const char *query_create_d2r12=
"CREATE TABLE IF NOT EXISTS d2r12 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
sclsca_vmduser CHAR(8), \
sclsca_vmdcfgem TINYINT(1) UNSIGNED, \
sclsca_vmdpust TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time,sclsca_vmduser)) ENGINE=INNODB";
//DOMAIN-3's TABLE
const char *query_create_d3r1=
"CREATE TABLE IF NOT EXISTS d3r1 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
storsg_calssubt INT(1) UNSIGNED, \
storsg_rsasavfr INT(1) UNSIGNED, \
storsg_rsamaxpp INT(1) UNSIGNED, \
storsg_rsacplok INT(1) UNSIGNED, \
storsg_rsaavllt INT(1) UNSIGNED, \
storsg_rsaavlht INT(1) UNSIGNED, \
storsg_xstbprct INT(1) UNSIGNED, \
storsg_xstsrgct INT(1) UNSIGNED, \
storsg_xstmrabi INT(1) UNSIGNED, \
storsg_xstsrabi INT(1) UNSIGNED, \
storsg_xstsrsct INT(1) UNSIGNED, \
storsg_calptrrt INT(1) UNSIGNED, \
storsg_calcaafp INT(1) UNSIGNED, \
storsg_calascut INT(1) UNSIGNED, \
storsg_rsasxcpl INT(1) UNSIGNED, \
storsg_rsasxcla INT(1) UNSIGNED, \
storsg_rsaavlhg INT(1) UNSIGNED, \
storsg_rsaavllg INT(1) UNSIGNED, \
storsg_rsacplkg INT(1) UNSIGNED, \
storsg_calssubg INT(1) UNSIGNED, \
storsg_rsarsvsy INT(1) UNSIGNED, \
storsg_rsacallt BINARY(8), \
storsg_rsacalmt BINARY(8), \
storsg_rsacalut BINARY(8), \
storsg_rsaafsdw INT(1) UNSIGNED, \
storsg_rsaafsdb INT(1) UNSIGNED, \
storsg_rsaafsiu INT(1) UNSIGNED, \
storsg_rsaafsib INT(1) UNSIGNED, \
storsg_rsavcbdw INT(1) UNSIGNED, \
storsg_rsavcbdb INT(1) UNSIGNED, \
storsg_rsavcbiu INT(1) UNSIGNED, \
storsg_rsavcbib INT(1) UNSIGNED, \
storsg_rsavfsdw INT(1) UNSIGNED, \
storsg_rsavfsiu INT(1) UNSIGNED, \
storsg_rsa2gdct INT(1) UNSIGNED, \
storsg_rsafrqwt INT(1) UNSIGNED, \
storsg_rsafrrda INT(1) UNSIGNED, \
storsg_rsafrrdc INT(1) UNSIGNED, \
storsg_rsastlwt INT(1) UNSIGNED, \
storsg_rsaswg2g INT(1) UNSIGNED, \
storsg_rsafvmud INT(1) UNSIGNED, \
storsg_rsafvmub INT(1) UNSIGNED, \
storsg_rsavmxfr INT(1) UNSIGNED, \
storsg_rsavmxfb INT(1) UNSIGNED, \
storsg_rsavmxud INT(1) UNSIGNED, \
storsg_rsavmxub INT(1) UNSIGNED, \
storsg_rsasysfr INT(1) UNSIGNED, \
storsg_rsasysfb INT(1) UNSIGNED, \
storsg_rsasysud INT(1) UNSIGNED, \
storsg_rsasysub INT(1) UNSIGNED, \
storsg_rsaplpct INT(1) UNSIGNED, \
storsg_rsaplpcb INT(1) UNSIGNED, \
storsg_rsanpgct INT(1) UNSIGNED, \
storsg_rsanpghi INT(1) UNSIGNED, \
storsg_rsanolkl INT(1) UNSIGNED, \
storsg_rsanolka BINARY(8), \
storsg_rsasxnop INT(1) UNSIGNED, \
storsg_rsapptps INT(1) UNSIGNED, \
storsg_rsapptpf INT(1) UNSIGNED, \
storsg_rsapptcs INT(1) UNSIGNED, \
storsg_rsablkgc INT(1) UNSIGNED, \
storsg_rsafrqmw INT(1) UNSIGNED, \
storsg_rsafrqdf INT(1) UNSIGNED, \
storsg_rsafrqdl INT(1) UNSIGNED, \
storsg_rsaalfmf INT(1) UNSIGNED, \
storsg_rsaavclt INT(1) UNSIGNED, \
storsg_rsaavcht INT(1) UNSIGNED, \
storsg_rsaavclg INT(1) UNSIGNED, \
storsg_rsaavchg INT(1) UNSIGNED, \
storsg_rsaemlo INT(1) UNSIGNED, \
storsg_rsaemhi INT(1) UNSIGNED, \
storsg_rsaemcpc INT(1) UNSIGNED, \
storsg_rsaemerg INT(1) UNSIGNED, \
storsg_rsaemblo INT(1) UNSIGNED, \
storsg_rsaempty INT(1) UNSIGNED, \
storsg_rsaemdfr INT(1) UNSIGNED, \
storsg_rsaswpwt INT(1) UNSIGNED, \
storsg_rsaswp2g INT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time DESC)) ENGINE=INNODB";
const char *query_create_d3r2=
"CREATE TABLE IF NOT EXISTS d3r2 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
storsp_pfxcpuad SMALLINT(1) UNSIGNED, \
storsp_plspread INT(1) UNSIGNED, \
storsp_plspnew INT(1) UNSIGNED, \
storsp_pfxclear INT(1) UNSIGNED, \
storsp_pfxptrct INT(1) UNSIGNED, \
storsp_plsreles INT(1) UNSIGNED, \
storsp_plsretfr INT(1) UNSIGNED, \
storsp_plsrelfr INT(1) UNSIGNED, \
storsp_plsalnct INT(1) UNSIGNED, \
storsp_plsstlwt INT(1) UNSIGNED, \
storsp_plsltd1 INT(1) UNSIGNED, \
storsp_plsdorm1 INT(1) UNSIGNED, \
storsp_plsshar1 INT(1) UNSIGNED, \
storsp_plselig1 INT(1) UNSIGNED, \
storsp_plsdisp1 INT(1) UNSIGNED, \
storsp_plsltd2 INT(1) UNSIGNED, \
storsp_plsdorm2 INT(1) UNSIGNED, \
storsp_plselig2 INT(1) UNSIGNED, \
storsp_plsdisp2 INT(1) UNSIGNED, \
storsp_plsshare INT(1) UNSIGNED, \
storsp_plsdorme INT(1) UNSIGNED, \
storsp_plselige INT(1) UNSIGNED, \
storsp_plsdispe INT(1) UNSIGNED, \
storsp_plsltdp1 INT(1) UNSIGNED, \
storsp_plsdrmp1 INT(1) UNSIGNED, \
storsp_plsshrp1 INT(1) UNSIGNED, \
storsp_plsdspp1 INT(1) UNSIGNED, \
storsp_plselgp1 INT(1) UNSIGNED, \
storsp_plsltdp2 INT(1) UNSIGNED, \
storsp_plsdrmp2 INT(1) UNSIGNED, \
storsp_plsshrp2 INT(1) UNSIGNED, \
storsp_plsdspp2 INT(1) UNSIGNED, \
storsp_plselgp2 INT(1) UNSIGNED, \
storsp_plsdrmpe INT(1) UNSIGNED, \
storsp_plsshrpe INT(1) UNSIGNED, \
storsp_plsdsppe INT(1) UNSIGNED, \
storsp_plselgpe INT(1) UNSIGNED, \
storsp_plspgdrd INT(1) UNSIGNED, \
storsp_plspgdwt INT(1) UNSIGNED, \
storsp_plsalncg INT(1) UNSIGNED, \
storsp_plsretfg INT(1) UNSIGNED, \
storsp_plsfsprb INT(1) UNSIGNED, \
storsp_plsfspra INT(1) UNSIGNED, \
storsp_plsfsctb INT(1) UNSIGNED, \
storsp_plsfscta INT(1) UNSIGNED, \
storsp_plsfretb INT(1) UNSIGNED, \
storsp_plsfreta INT(1) UNSIGNED, \
storsp_plsfssgb INT(1) UNSIGNED, \
storsp_plsfssga INT(1) UNSIGNED, \
storsp_plsfspgb INT(1) UNSIGNED, \
storsp_plsfspga INT(1) UNSIGNED, \
storsp_plsbgcnt INT(1) UNSIGNED, \
storsp_plsfgctm CHAR(8), \
storsp_plsfgcnt INT(1) UNSIGNED, \
storsp_plsfobem INT(1) UNSIGNED, \
storsp_plsfssra INT(1) UNSIGNED, \
storsp_plsfssrb INT(1) UNSIGNED, \
storsp_plsvatcl INT(1) UNSIGNED, \
storsp_plsupage INT(1) UNSIGNED, \
storsp_plsvpage INT(1) UNSIGNED, \
storsp_plspcpag INT(1) UNSIGNED, \
storsp_plspupag INT(1) UNSIGNED, \
storsp_plsuprec INT(1) UNSIGNED, \
storsp_plsessa INT(1) UNSIGNED, \
storsp_plsltdpe INT(1) UNSIGNED, \
storsp_plsasfcl INT(1) UNSIGNED, \
storsp_plsasfcg INT(1) UNSIGNED, \
storsp_pfxcputy TINYINT(1) UNSIGNED, \
PRIMARY KEY (id), \
INDEX (id), \
UNIQUE INDEX (time, storsp_pfxcpuad)) ENGINE=INNODB";
const char *query_create_d3r3=
"CREATE TABLE IF NOT EXISTS d3r3 (\
id INT AUTO_INCREMENT, \
time TIMESTAMP, \
stoshr_sntname CHAR(8), \
stoshr_sdfidnum SMALLINT(1) SIGNED, \
stoshr_sdfcltim INT(1) UNSIGNED, \
stoshr_sntusrsh SMALLINT(1) UNSIGNED, \
stoshr_sntusrex SMALLINT(1) UNSIGNED, \
stoshr_ascctprs INT(1) UNSIGNED, \
stoshr_sntstrct INT(1) UNSIGNED, \
stoshr_sntndtct INT(1) UNSIGNED, \
stoshr_asccspst INT(1) UNSIGNED, \
stoshr_ascptrsh INT(1) UNSIGNED, \
stoshr_asccspgr INT(1) UNSIGNED, \
stoshr_asccspgw INT(1) UNSIGNED, \
stoshr_asccsxrd INT(1) UNSIGNED, \
stoshr_asccsxwt INT(1) UNSIGNED, \