forked from savsofts/savsoftquiz_v5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
savsoftquiz_v5_0.sql
1567 lines (1404 loc) · 63.9 KB
/
savsoftquiz_v5_0.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
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
-- phpMyAdmin SQL Dump
-- version 4.8.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 17, 2019 at 10:51 AM
-- Server version: 10.1.33-MariaDB
-- PHP Version: 7.2.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `savsoftquiz_v5.0`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_type`
--
CREATE TABLE `account_type` (
`account_id` int(11) NOT NULL,
`users` varchar(1000) DEFAULT NULL,
`quiz` varchar(1000) DEFAULT NULL,
`results` varchar(1000) DEFAULT NULL,
`questions` varchar(1000) DEFAULT NULL,
`account_name` varchar(1000) DEFAULT NULL,
`setting` varchar(100) DEFAULT NULL,
`study_material` varchar(1000) NOT NULL,
`appointment` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `account_type`
--
INSERT INTO `account_type` (`account_id`, `users`, `quiz`, `results`, `questions`, `account_name`, `setting`, `study_material`, `appointment`) VALUES
(1, 'Add,Edit,View,List,List_all,Myaccount,Remove', 'Attempt,Add,Edit,View,List,List_all,Remove', 'View,List,List_all,Remove', 'Add,Edit,View,list,List_all,Remove', 'Administrator', 'All', 'Add,Edit,View,List,List_all,Remove', 'List,List_all'),
(2, 'Myaccount', 'Attempt,View,List', 'View,List,Remove', '', 'User', NULL, 'View,List', 'List');
-- --------------------------------------------------------
--
-- Table structure for table `appointment_request`
--
CREATE TABLE `appointment_request` (
`appointment_id` int(11) NOT NULL,
`request_by` int(11) NOT NULL,
`to_id` int(11) NOT NULL,
`appointment_timing` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`appointment_time_zone` varchar(100) NOT NULL DEFAULT 'Asia/Kolkata',
`appointment_status` varchar(100) NOT NULL DEFAULT 'Pending'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `appointment_request`
--
INSERT INTO `appointment_request` (`appointment_id`, `request_by`, `to_id`, `appointment_timing`, `appointment_time_zone`, `appointment_status`) VALUES
(2, 9, 1, '2017-08-30 07:53:57', 'Asia/Kolkata', 'Accepted'),
(3, 1, 1, '2017-12-27 08:43:25', 'Asia/Kolkata', 'Accepted'),
(4, 1, 1, '2019-03-18 06:18:40', 'Asia/Kolkata', 'Accepted'),
(5, 5, 1, '2019-03-18 12:50:32', 'Asia/Kolkata', 'Accepted');
-- --------------------------------------------------------
--
-- Table structure for table `ci_sessions`
--
CREATE TABLE `ci_sessions` (
`id` varchar(40) NOT NULL DEFAULT '0',
`ip_address` varchar(45) NOT NULL DEFAULT '0',
`data` text NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `savsoftquiz_custom_form`
--
CREATE TABLE `savsoftquiz_custom_form` (
`field_id` int(11) NOT NULL,
`field_title` varchar(100) NOT NULL,
`field_type` varchar(100) NOT NULL DEFAULT 'text',
`field_validate` varchar(1000) NOT NULL DEFAULT 'pattern="[A-Za-z0-9]{1,100}"',
`field_value` varchar(100) DEFAULT NULL,
`display_at` varchar(100) NOT NULL DEFAULT 'Registration'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `savsoftquiz_setting`
--
CREATE TABLE `savsoftquiz_setting` (
`setting_id` int(11) NOT NULL,
`setting_name` varchar(1000) NOT NULL,
`setting_value` varchar(1000) DEFAULT 'true',
`setting_group_name` varchar(100) NOT NULL DEFAULT 'General',
`order_by` int(11) NOT NULL,
`setting_description` varchar(1000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoftquiz_setting`
--
INSERT INTO `savsoftquiz_setting` (`setting_id`, `setting_name`, `setting_value`, `setting_group_name`, `order_by`, `setting_description`) VALUES
(1, 'App_Name', '', 'General', 1, NULL),
(2, 'App_title', '', 'General', 1, NULL),
(3, 'SMTP_hostname', 'ssl://smtp.gmail.com', 'Email', 2, NULL),
(4, 'SMTP_username', '', 'Email', 2, NULL),
(5, 'SMTP_password', '', 'Email', 2, NULL),
(6, 'SMTP_port', '465', 'Email', 2, NULL),
(7, 'Language_direction', 'ltr', 'General', 1, NULL),
(8, 'Enable_web_cam', 'true', 'General', 1, NULL),
(9, 'Enable_google_chart', 'true', 'General', 1, NULL),
(10, 'Enable_dompdf', 'true', 'General', 1, NULL),
(11, 'Enable_user_registration', 'true', 'General', 1, NULL),
(12, 'Verify_user_email', 'true', 'Email', 2, NULL),
(13, 'Tinymce_editor', 'true', 'Editor', 3, NULL),
(14, 'Tinymce_eqneditor_plugin', 'true', 'Editor', 3, NULL),
(15, 'Tinymce_wiris_plugin', 'true', 'Editor', 3, NULL),
(16, 'Mathjax', 'true', 'Editor', 3, NULL),
(17, 'Default_group_id', '1', 'General', 1, NULL),
(18, 'Enable_open_quiz', 'true', 'General', 1, NULL),
(19, 'Enable_sharethis', 'true', 'General', 1, NULL),
(20, 'Sharethis_property_id', '', 'General', 1, NULL),
(21, 'Advertisement_display_after_seconds', '60', 'General', 1, NULL),
(22, 'Advertisement_display_for_seconds', '10', 'General', 1, NULL),
(23, 'Android_API_key', '', 'General', 1, NULL),
(25, 'Email_protocol', 'mail', 'Email', 2, NULL),
(26, 'SMTP_mailtype', 'text', 'Email', 2, NULL),
(28, 'Activation_email_subject', 'Action required to verify your account', 'Email', 2, NULL),
(29, 'Activation_email_message', 'Hi, \\r\\n Thank you for registering with us. Please click below link to verify your email address.\\r\\n <a href=\'[verilink]\'>[verilink]</a> \\r\\n or \\r\\n Copy below link and visit in browser \\r\\n [verilink] \\r\\n \\r\\n Thanks', 'Email', 2, NULL),
(30, 'Password_change_subject', 'Password Changed', 'Email', 2, NULL),
(31, 'Password_change_message', 'Hi, \\r\\n Your New Password is: [new_password] \\r\\n Thanks', 'Email', 2, NULL),
(32, 'Send_result_email', 'true', 'Email', 2, NULL),
(33, 'Result_email_subject', 'Result generated for quiz [quiz_name]', 'Email', 2, NULL),
(34, 'Result_email_message', 'Hi [last_name],\\r\\n \\r\\n You have [result_status] Quiz: \'[quiz_name]\' and obtained [percentage_obtained]% marks. To get more information please login to your quiz portal.\\r\\n \\r\\n Thanks', 'Email', 2, NULL),
(35, 'Master_password', 'savsoftquiz', 'General', 1, NULL),
(36, 'Base_currency_prefix', '$', 'Payment_Gateway', 4, NULL),
(37, 'Base_currency_sufix', 'USD', 'Payment_Gateway', 4, NULL),
(38, 'Payment_gateways', 'paypal,checkout,payumoney,paytm', 'Payment_Gateway', 4, 'Comma separated'),
(39, 'Default_gateway', 'paypal', 'Payment_Gateway', 4, NULL),
(40, 'Enable_paypal', 'true', 'Payment_Gateway', 4, NULL),
(41, 'Paypal_environment', '', 'Payment_Gateway', 4, 'Empty for real or sandbox '),
(42, 'Paypal_receiver', '', 'Payment_Gateway', 4, 'Paypal email id'),
(43, 'Paypal_currency_prefix', '$', 'Payment_Gateway', 4, NULL),
(44, 'Paypal_currency_sufix', 'USD', 'Payment_Gateway', 4, NULL),
(45, 'Paypal_conversion', '1', 'Payment_Gateway', 4, '1 if base currency is same'),
(46, 'Enable_checkout', 'true', 'Payment_Gateway', 4, NULL),
(47, 'Checkout_environment', '', 'Payment_Gateway', 4, NULL),
(48, 'Checkout_sid', '', 'Payment_Gateway', 4, NULL),
(49, 'Checkout_SecretWord', '', 'Payment_Gateway', 4, ''),
(50, 'Checkout_receiver', '', 'Payment_Gateway', 4, NULL),
(51, 'Checkout_currency_prefix', '$', 'Payment_Gateway', 4, NULL),
(52, 'Checkout_currency_sufix', 'USD', 'Payment_Gateway', 4, NULL),
(53, 'Checkout_conversion', '1', 'Payment_Gateway', 4, NULL),
(54, 'Enable_payumoney', 'false', 'Payment_Gateway', 4, NULL),
(55, 'Payu_merchant_key', '', 'Payment_Gateway', 4, NULL),
(56, 'Payu_salt', '', 'Payment_Gateway', 4, NULL),
(57, 'Payumoney_currency_prefix', 'Rs', 'Payment_Gateway', 4, NULL),
(58, 'Payumoney_currency_sufix', 'INR', 'Payment_Gateway', 4, NULL),
(59, 'Payumoney_conversion', '66', 'Payment_Gateway', 4, NULL),
(60, 'Enable_paytm', 'false', 'Payment_Gateway', 4, NULL),
(61, 'Paytm_environment', 'Test', 'Payment_Gateway', 4, NULL),
(62, 'Paytm_merchant_key', '', 'Payment_Gateway', 4, NULL),
(63, 'Paytm_merchant_id', '', 'Payment_Gateway', 4, NULL),
(64, 'Paytm_merchant_website', 'WEB_STAGING', 'Payment_Gateway', 4, NULL),
(65, 'Paytm_currency_prefix', 'Rs', 'Payment_Gateway', 4, NULL),
(66, 'Paytm_currency_sufix', 'INR', 'Payment_Gateway', 4, NULL),
(67, 'Paytm_conversion', '', 'Payment_Gateway', 4, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_add`
--
CREATE TABLE `savsoft_add` (
`add_id` int(11) NOT NULL,
`advertisement_code` text NOT NULL,
`banner` varchar(1000) NOT NULL,
`banner_link` varchar(1000) DEFAULT NULL,
`position` varchar(100) NOT NULL,
`add_status` varchar(100) NOT NULL DEFAULT 'Active'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `savsoft_add`
--
INSERT INTO `savsoft_add` (`add_id`, `advertisement_code`, `banner`, `banner_link`, `position`, `add_status`) VALUES
(1, '', '1501084226.jpg', 'https://savsoftquiz.com', 'Top', 'Inactive'),
(2, ' ', '1501084206.jpg', 'https://savsoftquiz.com', 'Bottom', 'Active'),
(3, '', '1501084197.jpg', 'https://savsoftquiz.com', 'Center_Result', 'Active'),
(4, '', '1501084258.jpg', 'https://savsoftquiz.com', 'During_Quiz', 'Active');
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_answers`
--
CREATE TABLE `savsoft_answers` (
`aid` int(11) NOT NULL,
`qid` int(11) NOT NULL,
`q_option` text NOT NULL,
`uid` int(11) NOT NULL,
`score_u` float NOT NULL DEFAULT '0',
`rid` int(11) NOT NULL,
`qn` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_answers`
--
INSERT INTO `savsoft_answers` (`aid`, `qid`, `q_option`, `uid`, `score_u`, `rid`, `qn`) VALUES
(8, 79, '300', 1, 1, 1, 0),
(9, 80, '304', 1, 1, 1, 0),
(10, 81, '317', 1, 0.5, 1, 0),
(11, 81, '319', 1, 0.5, 1, 0),
(15, 81, '317', 1, 0.5, 3, 0),
(16, 79, '302', 1, 0, 3, 0),
(24, 79, '300', 1, 1, 4, 0),
(25, 80, '304', 1, 1, 4, 0),
(26, 81, '317', 1, 0.5, 4, 0),
(27, 81, '319', 1, 0.5, 4, 0),
(34, 79, '300', 1, 1, 5, 0),
(35, 80, '305', 1, 0, 5, 0),
(36, 81, '317', 1, 0.5, 5, 0),
(43, 79, '300', 1, 1, 6, 0),
(44, 80, '305', 1, 0, 6, 0),
(45, 81, '317', 1, 0.5, 6, 0),
(52, 79, '301', 1, 0, 7, 0),
(53, 80, '305', 1, 0, 7, 0),
(54, 81, '318', 1, 0, 7, 0),
(64, 79, '300', 1, 1, 8, 0),
(65, 80, '305', 1, 0, 8, 0),
(66, 81, '318', 1, 0, 8, 0),
(106, 79, '300', 1, 1, 9, 0),
(107, 81, '317', 1, 0.5, 9, 0),
(114, 79, '301', 5, 0, 10, 0),
(115, 80, '306', 5, 0, 10, 0),
(116, 81, '318', 5, 0, 10, 0),
(118, 79, '303', 1, 0, 11, 0),
(120, 79, '303', 1, 0, 12, 0),
(123, 115, '465', 1, 0, 13, 0),
(137, 81, '318', 1, 0, 14, 0),
(138, 79, '302', 1, 0, 14, 0),
(139, 81, '316', 1, 0, 15, 0),
(143, 79, '300', 1, 1, 15, 1),
(144, 81, '317', 1, 0.5, 16, 0),
(145, 81, '319', 1, 0.5, 16, 0),
(146, 79, '301', 13, 0, 17, 0),
(147, 80, '305', 13, 0, 17, 1),
(148, 79, '301', 1, 0, 18, 0),
(150, 80, '306', 1, 0, 18, 1);
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_category`
--
CREATE TABLE `savsoft_category` (
`cid` int(11) NOT NULL,
`category_name` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_category`
--
INSERT INTO `savsoft_category` (`cid`, `category_name`) VALUES
(1, 'General knowledge'),
(2, 'Math');
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_group`
--
CREATE TABLE `savsoft_group` (
`gid` int(11) NOT NULL,
`group_name` varchar(1000) NOT NULL,
`price` float NOT NULL,
`valid_for_days` int(11) NOT NULL DEFAULT '0',
`description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_group`
--
INSERT INTO `savsoft_group` (`gid`, `group_name`, `price`, `valid_for_days`, `description`) VALUES
(1, 'Free', 0, 0, '10 Free quiz'),
(3, 'Premium-1', 100, 90, '100 Quizzes'),
(4, 'Group 3', 2500, 90, '<p>Unlimites quizzes.</p>\r\n<p>Phone support</p>');
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_level`
--
CREATE TABLE `savsoft_level` (
`lid` int(11) NOT NULL,
`level_name` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_level`
--
INSERT INTO `savsoft_level` (`lid`, `level_name`) VALUES
(1, 'Easy'),
(2, 'Difficult');
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_notification`
--
CREATE TABLE `savsoft_notification` (
`nid` int(11) NOT NULL,
`notification_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`title` varchar(100) DEFAULT NULL,
`message` varchar(1000) DEFAULT NULL,
`click_action` varchar(100) DEFAULT NULL,
`notification_to` varchar(1000) DEFAULT NULL,
`response` text,
`uid` int(11) NOT NULL,
`viewed` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_notification`
--
INSERT INTO `savsoft_notification` (`nid`, `notification_date`, `title`, `message`, `click_action`, `notification_to`, `response`, `uid`, `viewed`) VALUES
(1, '2019-03-18 06:20:37', 'Developer', 'test', 'http://localhost/savsoftquiz_v5/', '/topics/SavsoftQuiz', '<HTML>\n<HEAD>\n<TITLE>Invalid (legacy) Server-key delivered or Sender is not authorized to perform request.</TITLE>\n</HEAD>\n<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\">\n<H1>Invalid (legacy) Server-key delivered or Sender is not authorized to perform request.</H1>\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 0, 0),
(2, '2019-03-18 12:41:51', 'Developer', 'Helllo', 'http://localhost/savsoftquiz_v5/', '/topics/SavsoftQuiz', '<HTML>\n<HEAD>\n<TITLE>Invalid (legacy) Server-key delivered or Sender is not authorized to perform request.</TITLE>\n</HEAD>\n<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\">\n<H1>Invalid (legacy) Server-key delivered or Sender is not authorized to perform request.</H1>\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_options`
--
CREATE TABLE `savsoft_options` (
`oid` int(11) NOT NULL,
`qid` int(11) NOT NULL,
`q_option` text NOT NULL,
`q_option_match` varchar(1000) DEFAULT NULL,
`q_option1` text NOT NULL,
`score` float NOT NULL DEFAULT '0',
`q_option_match1` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_options`
--
INSERT INTO `savsoft_options` (`oid`, `qid`, `q_option`, `q_option_match`, `q_option1`, `score`, `q_option_match1`) VALUES
(46, 6, 'Good Morning', 'Good Night', '', 0.25, ''),
(47, 6, 'Honda', 'BMW', '', 0.25, ''),
(48, 6, 'Keyboard', 'CPU', '', 0.25, ''),
(49, 6, 'Red', 'Green', '', 0.25, ''),
(51, 7, 'Blue, Sky Blue', NULL, '', 1, ''),
(52, 3, '4', NULL, '', 0.5, ''),
(53, 3, '5', NULL, '', 0, ''),
(54, 3, 'Four', NULL, '', 0.5, ''),
(55, 3, 'Six', NULL, '', 0, ''),
(56, 1, 'Patiala', NULL, '', 0, ''),
(57, 1, 'New Delhi', NULL, '', 1, ''),
(58, 1, 'Chandigarh', NULL, '', 0, ''),
(59, 1, 'Mumbai', NULL, '', 0, ''),
(76, 14, 'A', 'B', '', 0.25, ''),
(77, 14, 'C', 'D', '', 0.25, ''),
(78, 14, 'E', 'F', '', 0.25, ''),
(79, 14, 'G', 'H', '', 0.25, ''),
(81, 15, 'Washington, Washington D.C', NULL, '', 1, ''),
(82, 13, '<p>five</p>', NULL, '', 0, ''),
(83, 13, '<p>40</p>', NULL, '', 0.5, ''),
(84, 13, '<p>fourty</p>', NULL, '', 0.5, ''),
(85, 13, '<p>six</p>', NULL, '', 0, ''),
(86, 12, '<p>five</p>', NULL, '', 0, ''),
(87, 12, '<p>14</p>', NULL, '', 1, ''),
(88, 12, '<p>three</p>', NULL, '', 0, ''),
(89, 12, '<p>six</p>', NULL, '', 0, ''),
(90, 17, '<p>5</p>', NULL, '', 1, ''),
(91, 17, '<p>6</p>', NULL, '', 0, ''),
(92, 17, '<p>7</p>', NULL, '', 0, ''),
(93, 17, '<p>9</p>', NULL, '', 0, ''),
(98, 19, '<p>sasa</p>', NULL, '', 1, ''),
(99, 19, '<p>asasas</p>', NULL, '', 0, ''),
(100, 19, '<p>sasas</p>', NULL, '', 0, ''),
(101, 19, '<p>asasas</p>', NULL, '', 0, ''),
(102, 20, '<p>dfgfgfg</p>', NULL, '', 1, ''),
(103, 20, '<p>jhjhj</p>', NULL, '', 0, ''),
(104, 20, '<p>lklklk</p>', NULL, '', 0, ''),
(105, 20, '<p>hghgh</p>', NULL, '', 0, ''),
(106, 21, '<p>fgdfgfdg</p>', NULL, '', 1, ''),
(107, 21, '<p>gfdgfdg</p>', NULL, '', 0, ''),
(108, 21, '<p>deasdsad</p>', NULL, '', 0, ''),
(109, 21, '<p>gfdgfdgfdg</p>', NULL, '', 0, ''),
(114, 34, '<p>eop1</p>', NULL, '<p>hop1</p>', 1, ''),
(115, 34, '', NULL, '', 0, ''),
(116, 34, '', NULL, '', 0, ''),
(117, 34, '', NULL, '', 0, ''),
(158, 22, '<p>Eop1</p>', NULL, '<p>Hop1</p>', 0, ''),
(159, 22, '', NULL, '', 1, ''),
(160, 22, '', NULL, '', 0, ''),
(161, 22, '', NULL, '', 0, ''),
(162, 22, '<p>Eop2</p>', NULL, '<p>Hop2</p>', 0, ''),
(163, 22, '', NULL, '', 0, ''),
(164, 22, '<p>Hop2</p>', NULL, '', 0, ''),
(165, 22, '', NULL, '', 0, ''),
(166, 22, '<p>Eop3</p>', NULL, '', 0, ''),
(167, 22, '', NULL, '', 0, ''),
(168, 22, '', NULL, '', 0, ''),
(169, 22, '', NULL, '', 0, ''),
(170, 22, '<p>Eop4</p>', NULL, '', 0, ''),
(171, 22, '', NULL, '', 0, ''),
(172, 22, '', NULL, '', 0, ''),
(173, 22, '', NULL, '', 0, ''),
(174, 35, ' 4', NULL, '', 1, ''),
(175, 35, ' 5', NULL, '', 0, ''),
(176, 35, ' 6', NULL, '', 0, ''),
(177, 35, ' 3', NULL, '', 0, ''),
(178, 36, ' 4', NULL, '', 0, ''),
(179, 36, ' 8', NULL, '', 0.5, ''),
(180, 36, ' 6', NULL, '', 0, ''),
(181, 36, ' Eight', NULL, '', 0.5, ''),
(182, 37, ' Osama', NULL, '', 0, ''),
(183, 37, ' Obama', NULL, '', 1, ''),
(184, 37, ' Arvind', NULL, '', 0, ''),
(185, 37, ' Anil', NULL, '', 0, ''),
(186, 38, ' 4', NULL, '', 1, ''),
(187, 38, ' 5', NULL, '', 0, ''),
(188, 38, ' 6', NULL, '', 0, ''),
(189, 38, ' 3', NULL, '', 0, ''),
(190, 39, ' 4', NULL, '', 0, ''),
(191, 39, ' 8', NULL, '', 0.5, ''),
(192, 39, ' 6', NULL, '', 0, ''),
(193, 39, ' Eight', NULL, '', 0.5, ''),
(194, 40, ' Osama', NULL, '', 0, ''),
(195, 40, ' Obama', NULL, '', 1, ''),
(196, 40, ' Arvind', NULL, '', 0, ''),
(197, 40, ' Anil', NULL, '', 0, ''),
(198, 41, ' 4', NULL, ' 4', 1, ''),
(199, 41, ' 5', NULL, ' 5', 0, ''),
(200, 41, ' 6', NULL, ' 6', 0, ''),
(201, 41, ' 3', NULL, ' 3', 0, ''),
(202, 42, ' 4', NULL, '', 1, ''),
(203, 42, ' 5', NULL, '', 0, ''),
(204, 42, ' 6', NULL, '', 0, ''),
(205, 42, ' 3', NULL, '', 0, ''),
(206, 43, ' 4', NULL, '', 0, ''),
(207, 43, ' 8', NULL, '', 0.5, ''),
(208, 43, ' 6', NULL, '', 0, ''),
(209, 43, ' Eight', NULL, '', 0.5, ''),
(210, 44, ' Osama', NULL, '', 0, ''),
(211, 44, ' Obama', NULL, '', 1, ''),
(212, 44, ' Arvind', NULL, '', 0, ''),
(213, 44, ' Anil', NULL, '', 0, ''),
(214, 45, 'five', NULL, '', 0, ''),
(215, 45, 'four', NULL, '', 0.5, ''),
(216, 45, 'four', NULL, '', 0.5, ''),
(217, 45, 'six', NULL, '', 0, ''),
(218, 46, 'A', 'B', '', 0.25, ''),
(219, 46, 'C', 'D', '', 0.25, ''),
(220, 46, 'E', 'F', '', 0.25, ''),
(221, 46, 'G', 'H', '', 0.25, ''),
(222, 47, 'Blue, Sky blue', NULL, '', 0.25, ''),
(223, 49, 'five', NULL, '', 0, ''),
(224, 49, 'four', NULL, '', 0.5, ''),
(225, 49, 'four', NULL, '', 0.5, ''),
(226, 49, 'six', NULL, '', 0, ''),
(227, 50, 'A', 'B', '', 0.25, ''),
(228, 50, 'C', 'D', '', 0.25, ''),
(229, 50, 'E', 'F', '', 0.25, ''),
(230, 50, 'G', 'H', '', 0.25, ''),
(231, 51, 'Blue, Sky blue', NULL, '', 0.25, ''),
(232, 53, 'five', NULL, '', 0, ''),
(233, 53, 'four', NULL, '', 0.5, ''),
(234, 53, 'four', NULL, '', 0.5, ''),
(235, 53, 'six', NULL, '', 0, ''),
(236, 54, 'A', 'B', '', 0.25, ''),
(237, 54, 'C', 'D', '', 0.25, ''),
(238, 54, 'E', 'F', '', 0.25, ''),
(239, 54, 'G', 'H', '', 0.25, ''),
(240, 55, 'Blue, Sky blue', NULL, '', 0.25, ''),
(241, 57, 'five', NULL, '', 0, ''),
(242, 57, 'four', NULL, '', 1, ''),
(243, 57, 'three', NULL, '', 0, ''),
(244, 57, 'six', NULL, '', 0, ''),
(245, 58, 'five', NULL, '', 0, ''),
(246, 58, 'four', NULL, '', 0.5, ''),
(247, 58, 'four', NULL, '', 0.5, ''),
(248, 58, 'six', NULL, '', 0, ''),
(249, 59, 'A', 'B', '', 0.25, ''),
(250, 59, 'C', 'D', '', 0.25, ''),
(251, 59, 'E', 'F', '', 0.25, ''),
(252, 59, 'G', 'H', '', 0.25, ''),
(253, 60, 'Blue, Sky blue', NULL, '', 0.25, ''),
(254, 62, 'five', NULL, '', 0, ''),
(255, 62, 'four', NULL, '', 1, ''),
(256, 62, 'three', NULL, '', 0, ''),
(257, 62, 'six', NULL, '', 0, ''),
(258, 63, 'five', NULL, '', 0, ''),
(259, 63, 'four', NULL, '', 1, ''),
(260, 63, 'three', NULL, '', 0, ''),
(261, 63, 'six', NULL, '', 0, ''),
(262, 66, 'five', NULL, '', 0, ''),
(263, 66, 'four', NULL, '', 1, ''),
(264, 66, 'three', NULL, '', 0, ''),
(265, 66, 'six', NULL, '', 0, ''),
(266, 67, 'five', NULL, '', 0, ''),
(267, 67, 'four', NULL, '', 0.5, ''),
(268, 67, 'four', NULL, '', 0.5, ''),
(269, 67, 'six', NULL, '', 0, ''),
(270, 68, 'A', 'B', '', 0.25, ''),
(271, 68, 'C', 'D', '', 0.25, ''),
(272, 68, 'E', 'F', '', 0.25, ''),
(273, 68, 'G', 'H', '', 0.25, ''),
(274, 69, 'Blue, Sky blue', NULL, '', 0.25, ''),
(275, 71, 'five', NULL, '', 0, ''),
(276, 71, 'four', NULL, '', 1, ''),
(277, 71, 'three', NULL, '', 0, ''),
(278, 71, 'six', NULL, '', 0, ''),
(279, 72, 'five', NULL, '', 0, ''),
(280, 72, 'four', NULL, '', 1, ''),
(281, 72, 'three', NULL, '', 0, ''),
(282, 72, 'six', NULL, '', 0, ''),
(283, 73, 'five', NULL, '', 0, ''),
(284, 73, 'four', NULL, '', 1, ''),
(285, 73, 'three', NULL, '', 0, ''),
(286, 73, 'six', NULL, '', 0, ''),
(287, 74, 'five', NULL, 'five', 0, ''),
(288, 74, 'four', NULL, 'four', 1, ''),
(289, 74, 'three', NULL, 'three', 0, ''),
(290, 74, 'six', NULL, 'six', 0, ''),
(291, 75, 'five', NULL, '', 0, ''),
(292, 75, 'four', NULL, '', 0.5, ''),
(293, 75, 'four', NULL, '', 0.5, ''),
(294, 75, 'six', NULL, '', 0, ''),
(295, 76, 'A', 'B', '', 0.25, ''),
(296, 76, 'C', 'D', '', 0.25, ''),
(297, 76, 'E', 'F', '', 0.25, ''),
(298, 76, 'G', 'H', '', 0.25, ''),
(299, 77, 'Blue, Sky blue', NULL, '', 0.25, ''),
(300, 79, ' 4', NULL, ' 4 second language', 1, ''),
(301, 79, ' 5', NULL, ' 5 second language', 0, ''),
(302, 79, ' 6', NULL, ' 6 second language', 0, ''),
(303, 79, ' 3', NULL, ' 3 second language', 0, ''),
(304, 80, ' 4 second language', NULL, '', 1, ''),
(305, 80, ' 5 second language', NULL, '', 0, ''),
(306, 80, ' 6 second language', NULL, '', 0, ''),
(307, 80, ' 3 second language', NULL, '', 0, ''),
(312, 82, ' Osama', NULL, '', 0, ''),
(313, 82, ' Obama', NULL, '', 1, ''),
(314, 82, ' Arvind', NULL, '', 0, ''),
(315, 82, ' Anil', NULL, '', 0, ''),
(316, 81, ' 4', NULL, '', 0, ''),
(317, 81, ' 8', NULL, '', 0.5, ''),
(318, 81, ' 6', NULL, '', 0, ''),
(319, 81, ' Eight', NULL, '', 0.5, ''),
(448, 111, ' 4', NULL, ' 4 second language', 1, ''),
(449, 111, ' 5', NULL, ' 5 second language', 0, ''),
(450, 111, ' 6', NULL, ' 6 second language', 0, ''),
(451, 111, ' 3', NULL, ' 3 second language', 0, ''),
(452, 112, ' 4 second language', NULL, '', 1, ''),
(453, 112, ' 5 second language', NULL, '', 0, ''),
(454, 112, ' 6 second language', NULL, '', 0, ''),
(455, 112, ' 3 second language', NULL, '', 0, ''),
(456, 113, ' 4', NULL, '', 0, ''),
(457, 113, ' 8', NULL, '', 0.5, ''),
(458, 113, ' 6', NULL, '', 0, ''),
(459, 113, ' Eight', NULL, '', 0.5, ''),
(460, 114, ' Osama', NULL, '', 0, ''),
(461, 114, ' Obama', NULL, '', 1, ''),
(462, 114, ' Arvind', NULL, '', 0, ''),
(463, 114, ' Anil', NULL, '', 0, ''),
(464, 115, ' 4', NULL, ' 4 second language', 1, ''),
(465, 115, ' 5', NULL, ' 5 second language', 0, ''),
(466, 115, ' 6', NULL, ' 6 second language', 0, ''),
(467, 115, ' 3', NULL, ' 3 second language', 0, ''),
(468, 116, ' 4 second language', NULL, '', 1, ''),
(469, 116, ' 5 second language', NULL, '', 0, ''),
(470, 116, ' 6 second language', NULL, '', 0, ''),
(471, 116, ' 3 second language', NULL, '', 0, ''),
(472, 117, ' 4', NULL, '', 0, ''),
(473, 117, ' 8', NULL, '', 0.5, ''),
(474, 117, ' 6', NULL, '', 0, ''),
(475, 117, ' Eight', NULL, '', 0.5, ''),
(480, 118, '<p>Osama</p>', NULL, '', 0, ''),
(481, 118, '<p>Obama</p>', NULL, '', 1, ''),
(482, 118, '<p>Arvind K</p>', NULL, '', 0, ''),
(483, 118, '<p>Anil</p>', NULL, '', 0, '');
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_payment`
--
CREATE TABLE `savsoft_payment` (
`pid` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`gid` int(11) NOT NULL,
`quid` int(11) NOT NULL DEFAULT '0',
`amount` float NOT NULL,
`paid_date` int(11) NOT NULL,
`payment_gateway` varchar(100) NOT NULL DEFAULT 'Paypal',
`payment_status` varchar(100) NOT NULL DEFAULT 'Pending',
`transaction_id` varchar(1000) NOT NULL,
`other_data` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_payment`
--
INSERT INTO `savsoft_payment` (`pid`, `uid`, `gid`, `quid`, `amount`, `paid_date`, `payment_gateway`, `payment_status`, `transaction_id`, `other_data`) VALUES
(1, 10, 3, 0, 100, 0, 'Paypal', 'Paid', '1233423DCFDFD', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_qbank`
--
CREATE TABLE `savsoft_qbank` (
`qid` int(11) NOT NULL,
`question_type` varchar(100) NOT NULL DEFAULT 'Multiple Choice Single Answer',
`question` text NOT NULL,
`description` text NOT NULL,
`question1` text,
`description1` text,
`cid` int(11) NOT NULL,
`lid` int(11) NOT NULL,
`no_time_served` int(11) NOT NULL DEFAULT '0',
`no_time_corrected` int(11) NOT NULL DEFAULT '0',
`no_time_incorrected` int(11) NOT NULL DEFAULT '0',
`no_time_unattempted` int(11) NOT NULL DEFAULT '0',
`inserted_by` int(11) NOT NULL,
`inserted_by_name` varchar(100) DEFAULT NULL,
`paragraph` text,
`paragraph1` text,
`parent_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_qbank`
--
INSERT INTO `savsoft_qbank` (`qid`, `question_type`, `question`, `description`, `question1`, `description1`, `cid`, `lid`, `no_time_served`, `no_time_corrected`, `no_time_incorrected`, `no_time_unattempted`, `inserted_by`, `inserted_by_name`, `paragraph`, `paragraph1`, `parent_id`) VALUES
(79, 'Multiple Choice Single Answer', ' what is 2+2 =?', ' description here', ' what is 2+2 =? – This is second language question Note – keep question number same as its primary language question', ' description here', 1, 1, 55, 16, 15, 24, 0, NULL, NULL, NULL, 0),
(80, 'Multiple Choice Single Answer', ' what is 2+2 =? – This is second language question Note – keep question number same as its primary language question', ' description here', NULL, NULL, 1, 1, 21, 2, 10, 9, 0, NULL, NULL, NULL, 0),
(81, 'Multiple Choice Multiple Answer', ' what is 2+6 =?', ' ', NULL, NULL, 2, 1, 48, 13, 19, 16, 0, NULL, NULL, NULL, 0),
(82, 'Multiple Choice Single Answer', ' Who is in the picture?<img src="http://localhost/savsoftquiz_v4.0_enterprise/upload/word_images/15090303561.jpeg">', ' ', NULL, NULL, 1, 1, 0, 0, 0, 0, 0, NULL, NULL, NULL, 0),
(111, 'Multiple Choice Single Answer', ' what is 2+2 =?', ' description here', ' what is 2+2 =? – This is second language question Note – keep question number same as its primary language question', ' description here', 2, 1, 0, 0, 0, 0, 0, NULL, '', NULL, 0),
(112, 'Multiple Choice Single Answer', ' what is 2+2 =? – This is second language question Note – keep question number same as its primary language question', ' description here', NULL, NULL, 2, 1, 0, 0, 0, 0, 0, NULL, '', NULL, 0),
(113, 'Multiple Choice Multiple Answer', ' what is 2+6 =?', ' ', NULL, NULL, 2, 1, 0, 0, 0, 0, 0, NULL, '', NULL, 0),
(114, 'Multiple Choice Single Answer', ' Who is in the picture?<img src="http://localhost/savsoftquiz_v4.0_enterprise/upload/word_images/15091000591.jpeg">', ' ', NULL, NULL, 2, 1, 0, 0, 0, 0, 0, NULL, '', NULL, 0),
(115, 'Multiple Choice Single Answer', ' what is 2+2 =?', ' description here', ' what is 2+2 =? – This is second language question Note – keep question number same as its primary language question', ' description here', 2, 1, 2, 0, 1, 1, 0, NULL, ' Paragraph here', ' Paragraph here', 0),
(116, 'Multiple Choice Single Answer', ' what is 2+2 =? – This is second language question Note – keep question number same as its primary language question', ' description here', NULL, NULL, 2, 1, 0, 0, 0, 0, 0, NULL, ' Paragraph here', NULL, 0),
(117, 'Multiple Choice Multiple Answer', ' what is 2+6 =?', ' ', NULL, NULL, 2, 1, 2, 0, 0, 2, 0, NULL, '', NULL, 0),
(118, 'Multiple Choice Single Answer', '<p>Who is in the picture?<img src=\"../../../../savsoftquiz_v4.0_enterprise/upload/word_images/15091002001.jpeg\" /></p>', '', NULL, NULL, 2, 1, 2, 0, 0, 2, 0, NULL, NULL, NULL, 0);
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_qcl`
--
CREATE TABLE `savsoft_qcl` (
`qcl_id` int(11) NOT NULL,
`quid` int(11) NOT NULL,
`cid` int(11) NOT NULL,
`lid` int(11) NOT NULL,
`noq` int(11) NOT NULL,
`i_correct` text NOT NULL,
`i_incorrect` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_qcl`
--
INSERT INTO `savsoft_qcl` (`qcl_id`, `quid`, `cid`, `lid`, `noq`, `i_correct`, `i_incorrect`) VALUES
(80, 2, 1, 1, 3, '1', '0'),
(81, 2, 0, 1, 1, '1', '0'),
(82, 2, 2, 1, 1, '1', '0');
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_quiz`
--
CREATE TABLE `savsoft_quiz` (
`quid` int(11) NOT NULL,
`quiz_name` varchar(1000) NOT NULL,
`description` text NOT NULL,
`start_date` int(11) NOT NULL,
`end_date` int(11) NOT NULL,
`gids` text NOT NULL,
`qids` text NOT NULL,
`noq` int(11) NOT NULL,
`correct_score` text NOT NULL,
`incorrect_score` text NOT NULL,
`ip_address` text NOT NULL,
`duration` int(11) NOT NULL DEFAULT '10',
`maximum_attempts` int(11) NOT NULL DEFAULT '1',
`pass_percentage` float NOT NULL DEFAULT '50',
`view_answer` int(11) NOT NULL DEFAULT '1',
`camera_req` int(11) NOT NULL DEFAULT '1',
`question_selection` int(11) NOT NULL DEFAULT '1',
`gen_certificate` int(11) NOT NULL DEFAULT '0',
`certificate_text` text,
`with_login` int(11) NOT NULL DEFAULT '1',
`quiz_template` varchar(100) NOT NULL DEFAULT 'Default',
`uids` varchar(1000) DEFAULT NULL,
`inserted_by` int(11) NOT NULL DEFAULT '1',
`inserted_by_name` varchar(100) DEFAULT 'Admin',
`show_chart_rank` int(11) NOT NULL DEFAULT '1',
`quiz_price` float NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_quiz`
--
INSERT INTO `savsoft_quiz` (`quid`, `quiz_name`, `description`, `start_date`, `end_date`, `gids`, `qids`, `noq`, `correct_score`, `incorrect_score`, `ip_address`, `duration`, `maximum_attempts`, `pass_percentage`, `view_answer`, `camera_req`, `question_selection`, `gen_certificate`, `certificate_text`, `with_login`, `quiz_template`, `uids`, `inserted_by`, `inserted_by_name`, `show_chart_rank`, `quiz_price`) VALUES
(6, '1BPS', '<p>Description here</p>', 1509030367, 1572102367, '1', '81,79', 2, '1,1', '0,0', '', 100, 100, 50, 1, 0, 0, 0, NULL, 1, 'IN', NULL, 1, 'Admin Admin', 1, 0),
(7, 'Quiz - Paid', '', 1511412289, 1574484289, '1', '115,117,118', 3, '1,1,1', '0,0,0', '', 10, 10, 50, 1, 0, 0, 0, NULL, 1, 'Default', NULL, 1, 'Admin Admin', 1, 10),
(8, 'Default Quiz', '', 1511412326, 1606106726, '1,3', '79,80,81', 3, '1,1,1', '-1,-1,-0.5', '', 10, 10, 50, 1, 0, 0, 0, NULL, 0, 'Default', NULL, 1, 'Admin Admin', 1, 0),
(9, 'Quiz 23 March 2018', '', 1555490864, 1556009264, '1', '117,116,115,114', 4, '1,1,1,1', '0,0,0,0', '', 10, 10, 50, 1, 0, 0, 0, NULL, 1, 'Default', NULL, 1, 'Admin Admin', 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_result`
--
CREATE TABLE `savsoft_result` (
`rid` int(11) NOT NULL,
`quid` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`result_status` varchar(100) NOT NULL DEFAULT 'Open',
`start_time` int(11) NOT NULL,
`end_time` int(11) NOT NULL,
`categories` text NOT NULL,
`category_range` text NOT NULL,
`r_qids` text NOT NULL,
`individual_time` text NOT NULL,
`total_time` int(11) NOT NULL DEFAULT '0',
`score_obtained` float NOT NULL DEFAULT '0',
`percentage_obtained` float NOT NULL DEFAULT '0',
`attempted_ip` varchar(100) NOT NULL,
`score_individual` text NOT NULL,
`photo` varchar(100) NOT NULL,
`manual_valuation` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_result`
--
INSERT INTO `savsoft_result` (`rid`, `quid`, `uid`, `result_status`, `start_time`, `end_time`, `categories`, `category_range`, `r_qids`, `individual_time`, `total_time`, `score_obtained`, `percentage_obtained`, `attempted_ip`, `score_individual`, `photo`, `manual_valuation`) VALUES
(1, 8, 1, 'Pass', 1511412687, 1511412701, 'General knowledge,Math', '2,1', '79,80,81', '0,6,0', 6, 3, 100, '::1', '1,1,1', '', 0),
(2, 6, 1, 'Fail', 1511413331, 1511413340, 'Math,General knowledge', '1,1', '81,79', '5,0', 5, 0, 0, '::1', '0,0', '', 0),
(3, 6, 1, 'Fail', 1511413356, 1511413383, 'Math,General knowledge', '1,1', '81,79', '0,5', 5, 0, 0, '::1', '2,2', '', 0),
(4, 8, 1, 'Pass', 1513919539, 1513919552, 'General knowledge,Math', '2,1', '79,80,81', '0,4,0', 4, 3, 100, '::1', '1,1,1', '', 0),
(5, 8, 1, 'Fail', 1514276635, 1514276648, 'General knowledge,Math', '2,1', '79,80,81', '0,5,4', 9, 0.5, 5.55556, '::1', '1,2,2', '', 0),
(6, 8, 1, 'Fail', 1514276724, 1514276735, 'General knowledge,Math', '2,1', '79,80,81', '0,5,3', 8, -0.5, -5.55556, '::1', '1,2,2', '', 0),
(7, 8, 1, 'Fail', 1552662063, 1552662225, 'General knowledge,Math', '2,1', '79,80,81', '89,7,0', 96, -2.5, -83.3333, '::1', '2,2,2', '', 0),
(8, 8, 1, 'Fail', 1552669931, 1552669944, 'General knowledge,Math', '2,1', '79,80,81', '0,7,2', 9, -0.5, -16.6667, '::1', '1,2,2', '', 0),
(9, 8, 1, 'Fail', 1552889514, 1552889691, 'General knowledge,Math', '2,1', '79,80,81', '35,43,53', 131, -0.5, -16.6667, '::1', '1,2,2', '', 0),
(10, 8, 5, 'Fail', 1552913410, 1552913423, 'General knowledge,Math', '2,1', '79,80,81', '0,5,0', 5, -2.5, -83.3333, '::1', '2,2,2', '', 0),
(11, 8, 1, 'Fail', 1553771627, 1553771665, 'General knowledge,Math', '2,1', '79,80,81', '0,0,0', 0, -1, -33.3333, '::1', '2,0,0', '', 0),
(12, 8, 1, 'Fail', 1553771675, 1553771682, 'General knowledge,Math', '2,1', '79,80,81', '3,0,0', 3, -1, -33.3333, '::1', '2,0,0', '', 0),
(13, 7, 1, 'Fail', 1556044127, 1556044162, 'Math', '3', '115,117,118', '0,30,0', 30, 0, 0, '::1', '2,0,0', '', 0),
(14, 6, 1, 'Fail', 1556044200, 1556044253, 'Math,General knowledge', '1,1', '81,79', '7,41', 48, 0, 0, '::1', '2,2', '', 0),
(15, 6, 1, 'Pass', 1557312571, 1557313635, 'Math,General knowledge', '1,1', '81,79', '268,760', 1028, 1, 50, '::1', '2,1', '', 0),
(16, 6, 1, 'Pass', 1557313955, 1557314164, 'Math,General knowledge', '1,1', '81,79', '0,205', 205, 1, 50, '::1', '1,0', '', 0),
(17, 8, 13, 'Fail', 1558001409, 1558001423, 'General knowledge,Math', '2,1', '79,80,81', '0,6,0', 6, -2, -66.6667, '::1', '2,2,0', '', 0),
(18, 8, 1, 'Fail', 1558082971, 1558082983, 'General knowledge,Math', '2,1', '79,80,81', '0,3,0', 3, -2, -66.6667, '::1', '2,2,0', '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_users`
--
CREATE TABLE `savsoft_users` (
`uid` int(11) NOT NULL,
`password` varchar(1000) NOT NULL,
`email` varchar(100) DEFAULT NULL,
`first_name` varchar(100) DEFAULT NULL,
`last_name` varchar(100) DEFAULT NULL,
`contact_no` varchar(1000) DEFAULT NULL,
`connection_key` varchar(1000) DEFAULT NULL,
`gid` varchar(100) NOT NULL DEFAULT '1',
`su` int(11) NOT NULL DEFAULT '0',
`inserted_by` int(11) NOT NULL DEFAULT '0',
`subscription_expired` int(11) NOT NULL DEFAULT '0',
`verify_code` int(11) NOT NULL DEFAULT '0',
`wp_user` varchar(100) DEFAULT NULL,
`registered_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`photo` varchar(1000) DEFAULT NULL,
`user_status` varchar(100) NOT NULL DEFAULT 'Active',
`web_token` varchar(1000) DEFAULT NULL,
`android_token` varchar(1000) DEFAULT NULL,
`skype_id` varchar(100) DEFAULT NULL,
`time_zone` varchar(100) DEFAULT 'Asia/Kolkata'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `savsoft_users`
--
INSERT INTO `savsoft_users` (`uid`, `password`, `email`, `first_name`, `last_name`, `contact_no`, `connection_key`, `gid`, `su`, `inserted_by`, `subscription_expired`, `verify_code`, `wp_user`, `registered_date`, `photo`, `user_status`, `web_token`, `android_token`, `skype_id`, `time_zone`) VALUES
(1, '21232f297a57a5a743894a0e4a801fc3', '[email protected]', 'Admin', 'Admin', '1234567890', NULL, '1', 1, 0, 1776277800, 0, '', '2017-04-20 11:22:38', NULL, 'Active', 'dnwIpQWkxyA:APA91bFZLhdxZnPcNareTyHnJRikJGqaT7qh9DF4jSmyKSOq1rv6k7uwgmaQ4_K7jT3WNNUeKRdRQYsNf_OZaQZ7i5nKI_CjA6QGPwPsL5_D7ShPTtsuIwTkr0CuGx0RS7oAVNg_bImc', NULL, 'sandhu4222', 'Asia/Kolkata'),
(5, 'e10adc3949ba59abbe56e057f20f883e', '[email protected]', 'Userss', 'User', '1234567890', '123', '1', 2, 0, 2147483647, 0, '', '2017-04-20 11:22:38', NULL, 'Active', NULL, NULL, NULL, 'Asia/Kolkata'),
(6, '21232f297a57a5a743894a0e4a801fc3', '[email protected]', 'Subadmin', 'Admin', '1234567890', NULL, '1', 1, 0, 1818873000, 0, NULL, '2017-08-24 05:50:57', NULL, 'Active', NULL, NULL, NULL, 'Asia/Kolkata'),
(9, 'e10adc3949ba59abbe56e057f20f883e', '[email protected]', 'user2', 'user2', '1234567890', NULL, '1', 2, 0, 0, 0, NULL, '2017-08-25 10:20:10', NULL, 'Active', NULL, NULL, 'sandhu4222', 'Asia/Kolkata'),
(10, '202cb962ac59075b964b07152d234b70', '[email protected]', 'user', 'user', '1234567890', NULL, '1,3', 2, 0, 0, 0, NULL, '2019-04-24 11:59:24', NULL, 'Active', NULL, NULL, NULL, 'Asia/Kolkata'),
(11, 'e10adc3949ba59abbe56e057f20f883e', '[email protected]', 'sandhu', 'laddi', '1234569870', NULL, '1', 2, 0, 0, 9545, NULL, '2019-05-14 07:09:48', NULL, 'Active', NULL, NULL, NULL, 'Asia/Kolkata'),
(12, 'e10adc3949ba59abbe56e057f20f883e', '[email protected]', 'sandhu', 'laddi', '1234567890', NULL, '1', 2, 0, 0, 6023, NULL, '2019-05-14 07:35:12', NULL, 'Active', NULL, NULL, NULL, 'Asia/Kolkata'),
(13, '3d1dfde9304bff15332bf4b308a47b50', '1558001408', 'Guest User', '1558001408', '', NULL, '1', 0, 0, 0, 0, NULL, '2019-05-16 10:10:08', NULL, 'Active', NULL, NULL, NULL, 'Asia/Kolkata');
-- --------------------------------------------------------
--
-- Table structure for table `savsoft_users_custom`
--
CREATE TABLE `savsoft_users_custom` (
`c_id` int(11) NOT NULL,
`field_id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`field_values` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `savsoft_users_custom`
--
INSERT INTO `savsoft_users_custom` (`c_id`, `field_id`, `uid`, `field_values`) VALUES
(10, 3, 5, '1234567890'),
(17, 1, 9, 'DAV'),
(18, 2, 9, '8529637410'),
(19, 3, 9, '1234567890');
-- --------------------------------------------------------
--
-- Table structure for table `social_group`
--
CREATE TABLE `social_group` (
`sg_id` int(11) NOT NULL,
`sg_name` varchar(30) NOT NULL,
`about` varchar(1000) NOT NULL,
`sg_status` varchar(100) NOT NULL DEFAULT 'Public',
`no_member` int(11) NOT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_by` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `social_group`
--
INSERT INTO `social_group` (`sg_id`, `sg_name`, `about`, `sg_status`, `no_member`, `created_date`, `created_by`) VALUES
(1, 'Quiz Star', 'Join masters and compare your ranking', 'Public', 3, '2017-08-27 06:45:45', 1),
(3, 'Genius Group', 'Group of genius.. JOIN NOW', 'Public', 2, '2017-08-27 08:11:45', 1);
-- --------------------------------------------------------
--
-- Table structure for table `social_group_joined`
--
CREATE TABLE `social_group_joined` (
`join_id` int(11) NOT NULL,
`sg_id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`joined_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `social_group_joined`
--
INSERT INTO `social_group_joined` (`join_id`, `sg_id`, `uid`, `joined_date`) VALUES
(3, 1, 1, '2017-08-27 08:06:39'),
(4, 2, 1, '2017-08-27 08:10:20'),
(5, 3, 1, '2017-08-27 08:11:45'),
(9, 3, 9, '2017-08-27 18:29:19'),
(11, 1, 9, '2017-08-27 18:57:03'),
(14, 1, 5, '2017-08-27 20:14:05');
-- --------------------------------------------------------
--
-- Table structure for table `study_material`
--
CREATE TABLE `study_material` (
`stid` int(11) NOT NULL,
`title` varchar(100) NOT NULL,
`study_description` text NOT NULL,
`gids` varchar(100) NOT NULL,
`cid` int(11) NOT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_by` int(11) NOT NULL,
`attachment` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `study_material`
--
INSERT INTO `study_material` (`stid`, `title`, `study_description`, `gids`, `cid`, `created_date`, `created_by`, `attachment`) VALUES
(8, 'GitHub', '<p><strong>GitHub</strong> is a web-based <a title=\"Git\" href=\"https://en.wikipedia.org/wiki/Git\">Git</a> or <a title=\"Repository (version control)\" href=\"https://en.wikipedia.org/wiki/Repository_(version_control)\">version control repository</a> and <a title=\"Internet hosting service\" href=\"https://en.wikipedia.org/wiki/Internet_hosting_service\">Internet hosting service</a>. It is mostly used for code. It offers all of the <a title=\"Distributed version control\" href=\"https://en.wikipedia.org/wiki/Distributed_version_control\">distributed version control</a> and <a class=\"mw-redirect\" title=\"Source code management\" href=\"https://en.wikipedia.org/wiki/Source_code_management\">source code management</a> (SCM) functionality of Git as well as adding its own features. It provides <a title=\"Access control\" href=\"https://en.wikipedia.org/wiki/Access_control\">access control</a> and several collaboration features such as <a title=\"Bug tracking system\" href=\"https://en.wikipedia.org/wiki/Bug_tracking_system\">bug tracking</a>, <a title=\"Software feature\" href=\"https://en.wikipedia.org/wiki/Software_feature\">feature requests</a>, <a title=\"Task management\" href=\"https://en.wikipedia.org/wiki/Task_management\">task management</a>, and<a title=\"Wiki\" href=\"https://en.wikipedia.org/wiki/Wiki\">wikis</a> for every project.<sup id=\"cite_ref-hugeinvestment_3-0\" class=\"reference\"><a href=\"https://en.wikipedia.org/wiki/GitHub#cite_note-hugeinvestment-3\">[3]</a></sup></p>\r\n<p>GitHub offers both plans for private and free <a title=\"Repository (version control)\" href=\"https://en.wikipedia.org/wiki/Repository_(version_control)\">repositories</a> on the same account<sup id=\"cite_ref-4\" class=\"reference\"><a href=\"https://en.wikipedia.org/wiki/GitHub#cite_note-4\">[4]</a></sup> which are commonly used to host <a class=\"mw-redirect\" title=\"Open-source\" href=\"https://en.wikipedia.org/wiki/Open-source\">open-source</a> software projects.<sup id=\"cite_ref-5\" class=\"reference\"><a href=\"https://en.wikipedia.org/wiki/GitHub#cite_note-5\">[5]</a></sup> As of April 2017, GitHub reports having almost 20 million users and 57 million repositories,<sup id=\"cite_ref-6\" class=\"reference\"><a href=\"https://en.wikipedia.org/wiki/GitHub#cite_note-6\">[6]</a></sup>making it the largest host of <a title=\"Source code\" href=\"https://en.wikipedia.org/wiki/Source_code\">source code</a> in the world.<sup id=\"cite_ref-7\" class=\"reference\"><a href=\"https://en.wikipedia.org/wiki/GitHub#cite_note-7\">[7]</a></sup></p>\r\n<p>GitHub has a <a title=\"Mascot\" href=\"https://en.wikipedia.org/wiki/Mascot\">mascot</a> called Octocat, a cat with five tentacles and a human-like face.<sup id=\"cite_ref-Octodex_FAQ_8-0\" class=\"reference\"><a href=\"https://en.wikipedia.org/wiki/GitHub#cite_note-Octodex_FAQ-8\">[8]</a></sup><sup id=\"cite_ref-Jaramillo_9-0\" class=\"reference\"><a href=\"https://en.wikipedia.org/wiki/GitHub#cite_note-Jaramillo-9\">[9]</a></sup></p>', '1,3,4', 1, '2017-08-28 19:49:57', 1, '1503949797.pdf');
-- --------------------------------------------------------
--
-- Table structure for table `warning_message`
--
CREATE TABLE `warning_message` (
`wid` int(11) NOT NULL,
`rid` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`warning_time` int(11) NOT NULL,
`warning_message` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `warning_message`
--
INSERT INTO `warning_message` (`wid`, `rid`, `uid`, `warning_time`, `warning_message`) VALUES
(1, 5, 1, 1512452823, 'User idle for more than 2 Minutes'),
(2, 5, 1, 1512452833, 'User idle for more than 2 Minutes'),
(3, 6, 1, 1512453042, 'User idle for more than 2 Minutes'),
(4, 6, 1, 1512453193, 'User idle for more than 2 Minutes'),
(5, 6, 1, 1512453463, 'User idle for more than 2 Minutes'),
(6, 6, 1, 1512453922, 'Skipping too many question'),
(7, 6, 1, 1512454045, 'User idle for more than 2 Minutes'),
(8, 9, 1, 1512463053, 'Movement Dedected'),
(9, 9, 1, 1512463067, 'Movement Dedected'),
(10, 9, 1, 1512463068, 'Movement Dedected'),
(11, 9, 1, 1512463072, 'Movement Dedected'),
(12, 9, 1, 1512463073, 'Movement Dedected'),
(13, 9, 1, 1512463079, 'Movement Dedected'),
(14, 9, 1, 1512463112, 'Movement Dedected'),
(15, 9, 1, 1512463138, 'Movement Dedected'),
(16, 9, 1, 1512463147, 'Movement Dedected'),
(17, 9, 1, 1512463148, 'Movement Dedected'),
(18, 9, 1, 1512463153, 'Movement Dedected'),
(19, 9, 1, 1512463177, 'Movement Dedected'),
(20, 9, 1, 1512463200, 'Movement Dedected'),
(21, 9, 1, 1512463201, 'Movement Dedected'),
(22, 9, 1, 1512463202, 'Movement Dedected'),
(23, 9, 1, 1512463206, 'Movement Dedected'),
(24, 9, 1, 1512463256, 'Movement Dedected'),
(25, 9, 1, 1512463257, 'Movement Dedected'),
(26, 9, 1, 1512463264, 'Movement Dedected'),
(27, 9, 1, 1512463269, 'Movement Dedected'),
(28, 9, 1, 1512463270, 'Movement Dedected'),
(29, 9, 1, 1512463316, 'Movement Dedected'),
(30, 9, 1, 1512463317, 'Movement Dedected'),
(31, 9, 1, 1512463325, 'Movement Dedected'),