forked from Orangescrum/orangescrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
5823 lines (5124 loc) · 240 KB
/
database.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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `orangescrum`
--
-- --------------------------------------------------------
--
-- Table structure for table `actions`
--
CREATE TABLE `actions` (
`id` int(11) NOT NULL,
`uniq_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`module_id` int(11) NOT NULL,
`action` text COLLATE utf8_unicode_ci NOT NULL,
`display_name` varchar(225) COLLATE utf8_unicode_ci DEFAULT NULL,
`display_group` tinyint(2) NOT NULL DEFAULT 0,
`created` datetime NOT NULL,
`modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `actions`
--
INSERT INTO `actions` (`id`, `uniq_id`, `module_id`, `action`, `display_name`, `display_group`, `created`, `modified`) VALUES
(1, '88a0ef43b19c03aa6d17a91080ccf193', 1, 'Create Task', 'Create', 1, '2017-03-15 04:41:20', '2017-03-15 04:41:20'),
(2, '29f5ef81468b813a1c1856c200bf50e7', 1, 'Edit Task', 'Edit My Task', 1, '2017-03-15 04:50:20', '2017-03-15 04:50:20'),
(3, '71de5ef0880310a7e2b2593ee6292973', 1, 'Reply on Task', 'Reply', 1, '2017-03-15 05:14:24', '2017-03-15 05:14:24'),
(4, 'd2d535876ba366a1045c08b5e3438d23', 1, 'Delete Task', 'Delete My Task', 2, '2017-03-16 03:54:45', '2017-03-16 03:54:45'),
(5, '7a184221ad371e56dfc955d64d8e4bdc', 1, 'Move to Milestone', 'Move to Taskgroup/Sprint', 1, '2017-03-16 03:58:43', '2017-03-16 03:58:43'),
(6, '83f311f3cda05a2170c4be30bc01caf4', 1, 'Move to Project', 'Move to Project', 1, '2017-03-16 03:59:01', '2017-03-16 03:59:01'),
(7, '028d11d076ceeada460765cce617a05b', 1, 'Change Assigned to', 'Change Assign to', 1, '2017-03-16 03:59:22', '2017-03-16 03:59:22'),
(8, 'add14f1ef72f8086f9e3b74c331eb461', 1, 'Change Status of Task', 'Update Task Status', 1, '2017-03-16 03:59:47', '2017-03-16 03:59:47'),
(9, 'a4d02d07ef2da4666ecb231f88048214', 1, 'Change Other Details of Task', 'Update Other Details', 1, '2017-03-16 04:01:12', '2017-03-16 04:01:12'),
(10, '71ad7936b4d64aa912e47f26d36cc2a8', 1, 'Archive Task', 'Archive My Task', 2, '2017-03-16 04:01:45', '2017-03-16 04:01:45'),
(11, '9da30cd8ece12fc783be9153c244920b', 1, 'Download Task', 'Download Tasks', 1, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(12, '0c16733ba363ce3a60261f2ad46f161a', 2, 'Upload File to Task', 'Upload', 1, '2017-03-16 04:07:13', '2017-03-16 04:07:13'),
(13, 'c75ba6399e01301198440001cee31426', 2, 'View File', 'View', 0, '2017-03-16 04:07:31', '2017-03-16 04:07:31'),
(14, '3bbe643120d9ef8b0dce477023a08b03', 2, 'Delete File', 'Delete', 2, '2017-03-16 04:07:56', '2017-03-16 04:07:56'),
(15, 'a3a43c0509667c28d328396bb4dc5f99', 2, 'Archive File', 'Archive', 2, '2017-03-16 04:08:17', '2017-03-16 04:08:17'),
(16, '490b32b19c4dbd7a472d8ceb6a468193', 2, 'Download File', 'Download', 1, '2017-03-16 04:08:55', '2017-03-16 04:08:55'),
(17, '8d503535080301d79795afe068018cb5', 5, 'Create Project', 'Create', 1, '2017-03-16 04:09:46', '2017-03-16 04:09:46'),
(18, 'e20003ba22fd5fb53bd1a0e5cd4c775c', 5, 'Edit Project', 'Edit', 1, '2017-03-16 04:10:04', '2017-03-16 04:10:04'),
(20, 'adfb9b97fbae43ae8e4b6a1612fe0e8d', 5, 'Add Users to Project', 'Add User', 1, '2017-03-16 04:11:21', '2017-03-16 04:11:21'),
(21, 'c1ce5e22a8e70841a658510e33c55b0a', 5, 'Remove Users from Project', 'Remove User', 1, '2017-03-16 04:11:45', '2017-03-16 04:11:45'),
(22, 'd143ad0e7db7c7b909710e3c970f5e48', 6, 'Add New User', 'Add/Invite', 1, '2017-03-16 04:12:14', '2017-03-16 04:12:14'),
(23, '6e42c1fdd74726634aa4668b00f547ec', 6, 'Disable Users', 'Disable', 1, '2017-03-16 04:12:45', '2017-03-16 04:12:45'),
(24, 'f56b2d328327a37b7631f0d504b9e5a0', 6, 'Delete User', 'Delete', 2, '2017-03-16 04:13:16', '2017-03-16 04:13:16'),
(25, '2533053bd50837ad04bbc8140af8cb2a', 8, 'View Dashboard', 'View', 0, '2017-03-16 04:14:02', '2017-03-16 04:14:02'),
(26, 'cb98b48eb7249fb65e3148ca747259d9', 10, 'Create Milestone', 'Create', 1, '2017-03-16 04:14:32', '2017-03-16 04:14:32'),
(27, 'e491f3d9f36cbac3b3f026613cc66525', 10, 'Edit Milestone', 'Edit', 1, '2017-03-16 04:15:12', '2017-03-16 04:15:12'),
(28, '2542d2a6872171391049fa4baa91848a', 10, 'View Milestones', 'View', 0, '2017-03-16 04:15:43', '2017-03-16 04:15:43'),
(29, 'feec1df0ed2e386fc0d74e8133262303', 10, 'Mark Milestone as Completed', 'Mark as Completed', 1, '2017-03-16 04:17:47', '2017-03-16 04:17:47'),
(30, 'c472d95119165768abe7cb5d8e081df9', 10, 'Delete Milestone', 'Delete', 2, '2017-03-16 04:18:23', '2017-03-16 04:18:23'),
(31, 'aede0fd63f707235cb702a7c4c0dcac0', 10, 'Assign Milestone to User', 'Assign to User', 1, '2017-03-16 04:19:48', '2017-03-16 04:19:48'),
(32, '8970492a7dc1323d81f638c120f3b630', 10, 'Add Tasks to MIlestone', 'Add Task', 1, '2017-03-16 04:20:22', '2017-03-16 04:20:22'),
(34, '81cb8c20a9e8a4b536a3c77227807b83', 6, 'Assign Project', 'Assign Project', 1, '2017-03-16 10:57:35', '2017-03-16 10:57:35'),
(35, '3614e89ea6b7c5f0739cbf4a46ba47b5', 6, 'Remove Project', 'Remove Project', 1, '2017-03-16 10:58:05', '2017-03-16 10:58:05'),
(36, '0979a8fb4f44cf1b782ae08988c68bec', 6, 'View Users', 'View', 0, '2017-03-16 11:02:20', '2017-03-16 11:02:20'),
(37, '1def05f812231bb6e854b73de0dd9673', 6, 'Enable User', 'Enable', 1, '2017-03-16 11:20:39', '2017-03-16 11:20:39'),
(41, '541c2ebbd0185def982d78035fb9a87b', 1, 'View Kanban', 'Kanban', 0, '2017-03-23 05:35:47', '2017-03-23 05:35:47'),
(42, 'acbc1dad47ae0653405e4cec534c6c92', 11, 'Set Daily Catch-Up', NULL, 0, '2017-03-23 05:38:31', '2017-03-23 05:38:31'),
(43, 'b6f17e07d7975ae5916802606b3db138', 1, 'View Calendar', 'Calendar', 0, '2017-03-23 05:41:12', '2017-03-23 05:41:12'),
(48, '88a0ef43b19c03aa6d17a91080ccf19j', 3, 'Manual Time Entry', 'Manual Time Entry', 1, '2017-03-15 04:41:20', '2017-03-15 04:41:20'),
(49, '29f5ef81468b813a1c1856c200bf50ef', 3, 'Start Timer', 'Start Timer', 1, '2017-03-15 04:50:20', '2017-03-15 04:50:20'),
(50, '71de5ef0880310a7e2b2593ee6292979', 3, 'Edit Timelog Entry', 'Edit Timelog Entry', 1, '2017-03-15 05:14:24', '2017-03-15 05:14:24'),
(51, 'd2d535876ba366a1045c08b5e3438d28', 3, 'Delete Timelog Entry', 'Time Log', 2, '2017-03-16 03:54:45', '2017-03-16 03:54:45'),
(52, '7a184221ad371e56dfc955d64d8e4bdi', 4, 'Create Invoice', 'Create', 1, '2017-03-16 03:58:43', '2017-03-16 03:58:43'),
(53, '83f311f3cda05a2170c4be30bc01cafv', 4, 'Edit Invoice', 'Edit', 1, '2017-03-16 03:59:01', '2017-03-16 03:59:01'),
(54, '028d11d076ceeada460765cce617a05u', 4, 'View Invoices', 'View', 0, '2017-03-16 03:59:22', '2017-03-16 03:59:22'),
(55, 'add14f1ef72f8086f9e3b74c331eb46h', 4, 'Download or Print Invoice', 'Download or Print', 1, '2017-03-16 03:59:47', '2017-03-16 03:59:47'),
(56, 'a4d02d07ef2da4666ecb231f8804821d', 4, 'Add Customer', 'Add Customer', 1, '2017-03-16 04:01:12', '2017-03-16 04:01:12'),
(57, '71ad7936b4d64aa912e47f26d36cc2a7', 4, 'Edit Customer', 'Edit Customer', 1, '2017-03-16 04:01:45', '2017-03-16 04:01:45'),
(59, '9da30cd8ece12fc783be9153c244920g', 7, 'View Gantt Chart', 'View', 0, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(60, '9da30cd8ece12fc783be9153c2423ty8', 15, 'Add Expense', NULL, 0, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(61, '9da30cd8ece12fc783be9153c2423hu5', 15, 'View Expense', NULL, 0, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(62, '9da30cd8ece12fc783be9153c242oi6n', 16, 'Add Wiki', 'Create', 1, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(63, '9da30cd8ece12fc783be9153c24ju2u7', 16, 'View Wiki', 'View', 0, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(64, '9da30cd8ece12fc783be9153c24ui8f3', 16, 'Comment On Wiki', 'Comment on Wiki', 1, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(65, '9da30cd8ece12fc783be9153c240o33i', 7, 'View And Edit Gantt Chart', 'Edit', 1, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(66, '88a0ef43b19c03aa6d17a91080c32jkl', 3, 'View Resource Utilization', 'Resource Utilization', 0, '2018-03-15 04:41:20', '2018-03-15 04:41:20'),
(67, '29f5ef81468b813a1c1856c200bokm25', 3, 'View Resource Availability', 'Resource Availability', 0, '2018-03-15 04:50:20', '2018-03-15 04:50:20'),
(68, '96df5f81468b813a1c1856c200bokm25', 3, 'Add Leave', 'Add Leave', 1, '2018-03-15 04:50:20', '2018-03-15 04:50:20'),
(69, '88a0ef43b19c03aa6d17a91080c896kh', 17, 'View Daily Catchup', 'View Daily Catchup', 0, '2018-03-15 04:41:20', '2018-03-15 04:41:20'),
(79, '88a0ef43b19c03aa6d17a91080c96df3', 4, 'Archive Invoice', 'Archive', 2, '2018-03-15 04:41:20', '2018-03-15 04:41:20'),
(80, '88a0ef43b19c03aa6d17a91080copyh5', 4, 'Restore Invoice', 'Restore', 1, '2018-03-15 04:41:20', '2018-03-15 04:41:20'),
(81, '29f5ef81468b813a1c1856c200bopl65', 4, 'Delete Invoice', 'Delete', 2, '2018-03-15 04:50:20', '2018-03-15 04:50:20'),
(82, '29f5ef81468b813a1c1856c200b96lkn', 4, 'Mark paid Invoice', 'Mark as Paid', 1, '2018-03-15 04:50:20', '2018-03-15 04:50:20'),
(83, '29f5ef81468b813a1c1856c200bopj65', 4, 'Mark unpaid Invoice', 'Mark as Unpaid', 1, '2018-03-15 04:50:20', '2018-03-15 04:50:20'),
(84, '29f5ef81468b813a1c1856c200b632ng', 4, 'Email Invoice', 'Email', 1, '2018-03-15 04:50:20', '2018-03-15 04:50:20'),
(85, '88a0ef43b19c03aa6d17a91080ciuw85', 4, 'View Invoice Setting', 'Invoice Setting', 0, '2018-03-15 04:41:20', '2018-03-15 04:41:20'),
(86, '29f5ef81468b813a1c1856c200bwqsd5', 4, 'Edit Invoice Setting', 'Edit Invoice Setting', 1, '2018-03-15 04:50:20', '2018-03-15 04:50:20'),
(92, 'p07vrcd8ece12fc783be9153c24olkj5', 1, 'View All Task', 'All Task', 0, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(93, 'p07vrcd8ece12fc783be9153c24olkj6', 1, 'Link Task', 'Link Task', 1, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(94, 'p07vrcd8ece12fc783be9153c24olkj7', 1, 'Est Hours', 'Update Est. Hours', 1, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(95, 'p07vrcd8ece12fc783be9153c24olkj8', 1, 'Add Label', 'Add Label', 1, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(96, 'p07vrcd8ece12fc783be9153c24olkj9', 1, 'Remove Archive Task', 'Delete Archive Tasks', 2, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(97, 'p07vrcd8ece12fc783be9153c24olkk1', 1, 'Restore Archive Task', 'Restore Archive Tasks', 2, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(98, 'p07vrcd8ece12fc783be9153c24olkk2', 0, 'Notcomplete Project', NULL, 0, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(99, 'p07vrcd8ece12fc783be9153c24olkk5', 0, 'Complete Project', NULL, 0, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(100, 'p07vrcd8ece12fc783be9153c24olk33', 1, 'Remove Link Task', 'Delete Link Tasks', 2, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(101, 'p07vrcd8ece12fc783be9153c24olk44', 1, 'Remove Label', 'Label', 2, '2017-03-16 04:02:05', '2017-03-16 04:02:05'),
(102, 'p07vrcd8ece12fc983ce9153c24olkk2', 5, 'View Project', 'View', 0, '2019-04-15 02:09:25', '2019-04-15 02:09:25'),
(103, 'p08vrcd8ece12fc983ce9153c24olkk3', 1, 'Edit All Task', 'Edit All Task', 1, '2019-04-17 01:00:00', '2019-04-17 01:00:00'),
(104, 'p0dvrcd8ece12fc983ce9153c24olkk3', 1, 'Delete All Task', 'Delete All Task', 2, '2019-04-17 01:00:00', '2019-04-17 01:00:00'),
(105, 'p0evrcd8ece12fc983ce9153c24olkk4', 1, 'Archive All Task', 'Archive All Task', 2, '2019-04-17 01:00:00', '2019-04-17 01:00:00'),
(106, 'p0evrcd8ece12fc983ce9153c24olkk5', 3, 'View All Timelog', 'View All Timelog', 0, '2019-04-17 01:00:00', '2019-04-17 01:00:00'),
(107, 'p0evrcd8ece12fc983ce9153c24olkk6', 3, 'View All Resource', 'View All Resource', 0, '2019-04-17 01:00:00', '2019-04-17 01:00:00'),
(108, '88a0ef43b16d53aa6d17a91080ccf193', 1, 'Status change except Close', 'Close Task', 1, '2019-03-15 04:41:20', '2019-03-15 04:41:20'),
(109, '88a0ef63b19c03aa6d16a91080ccf193', 1, 'Update Task Duedate', 'Change Due date', 1, '2019-08-16 00:00:00', '2019-08-16 00:00:00'),
(110, '88a0egt6b19c03aa6d17a91080ccf000', 5, 'Customer Name', 'Customer Name', 0, '2020-11-25 04:41:20', '2020-11-25 04:41:20'),
(111, '29f5ef27668b813a1c1856c200bf5110', 5, 'Budget', 'Budget', 0, '2020-11-25 04:50:20', '2020-11-25 04:50:20'),
(112, '71de5ef9800310a7e2b2593ee62929ws', 5, 'Default Rate', 'Default Rate', 0, '2020-11-25 05:14:24', '2020-11-25 05:14:24'),
(113, 'd2d533496ba366a1045c08b5e3438dxe', 5, 'Maximum Tolerance', 'Maximum Tolerance', 0, '2020-11-25 03:54:45', '0000-00-00 00:00:00'),
(114, '7cf54221ad371e56dfc955d64d8e4bpc', 5, 'Minimum Tolerance', 'Minimum Tolerance', 0, '2020-11-25 03:58:43', '2020-11-25 03:58:43'),
(115, '45t0egt6b19c03aa6d17a91080ccf000', 5, 'Cost Appr', 'Cost Approved', 0, '2020-11-25 03:58:43', '2020-11-25 03:58:43'),
(116, '88a0ef43b19c03aa6d17a91080cr45bg', 3, 'Time Entry On Closed Task', 'Time Entry On Closed Task', 1, '2020-12-19 11:35:13', '2020-12-19 11:35:13'),
(117, '88a0ef43b19c03aa6d17a91080nhud4n', 3, 'Time Entry Greater Than Estimated Hour', 'Time Entry Greater Than Estimated Hour', 1, '2020-12-19 11:35:13', '2020-12-19 11:35:13'),
(118, '88a0ef43b20c03aa6d17a91080nhud4n', 3, 'Edit Time Log For All', 'Edit Time Log For All Users', 1, '2021-02-05 11:35:13', '2021-02-05 11:35:13'),
(119, '88a0ef43b19c03aa6d17a91080chgfc8', 3, 'View Resource Allocation Report', 'View Resource Allocation Report', 0, '2021-07-21 10:56:05', '2021-07-21 10:56:05');
-- --------------------------------------------------------
--
-- Table structure for table `approve_wikis`
--
CREATE TABLE `approve_wikis` (
`id` int(11) NOT NULL,
`approver_id` int(11) DEFAULT NULL,
`wiki_id` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`created` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `archives`
--
CREATE TABLE `archives` (
`id` int(250) NOT NULL,
`easycase_id` int(250) NOT NULL,
`case_file_id` int(250) NOT NULL,
`user_id` int(250) NOT NULL,
`type` tinyint(4) NOT NULL COMMENT '1-archive,2-move,3-delete',
`company_id` int(11) NOT NULL,
`dt_created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- --------------------------------------------------------
--
-- Table structure for table `beta_users`
--
CREATE TABLE `beta_users` (
`id` int(11) NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`invit_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_approve` tinyint(2) NOT NULL DEFAULT 0,
`is_admin_invited` tinyint(1) NOT NULL DEFAULT 0,
`registered_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `case_actions`
--
CREATE TABLE `case_actions` (
`id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`user_id` int(11) NOT NULL COMMENT 'Foreign key of "users"',
`action` tinyint(2) NOT NULL DEFAULT 0 COMMENT '1-Close, 2-Start',
`dt_created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_activities`
--
CREATE TABLE `case_activities` (
`id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`comment_id` int(11) NOT NULL COMMENT 'Foreign key of "comments"',
`case_no` smallint(6) NOT NULL,
`project_id` int(11) NOT NULL COMMENT 'Foreign key of "projects"',
`user_id` int(11) NOT NULL COMMENT 'Foreign key of "users"',
`type` tinyint(4) NOT NULL COMMENT '1-New 2-Opened, 3-Closed, 4-Start, 5-Resolve, 7-Comments, 8-Deleted,10->Modified',
`isactive` tinyint(2) NOT NULL DEFAULT 1 COMMENT '0-Inactive, 1-Active',
`dt_created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_comments`
--
CREATE TABLE `case_comments` (
`id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`comments` text CHARACTER SET latin1 NOT NULL,
`user_id` int(11) NOT NULL COMMENT 'Foreign key of "users"',
`dt_created` datetime NOT NULL,
`isactive` tinyint(2) NOT NULL DEFAULT 1 COMMENT '0-Inactive, 1-Active'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_editor_files`
--
CREATE TABLE `case_editor_files` (
`id` int(11) NOT NULL,
`uniq_id` varchar(64) NOT NULL,
`company_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL DEFAULT 0,
`easycase_id` int(11) NOT NULL DEFAULT 0,
`user_id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`file_size` int(11) NOT NULL DEFAULT 0 COMMENT 'in kb',
`is_deleted` tinyint(2) NOT NULL DEFAULT 0 COMMENT '0-new, 1-deleted, 2- exist',
`created` datetime NOT NULL,
`modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `case_files`
--
CREATE TABLE `case_files` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`comment_id` int(11) NOT NULL COMMENT 'Foreign key of "case_comments"',
`file` varchar(222) NOT NULL,
`display_name` varchar(255) DEFAULT NULL,
`upload_name` varchar(255) DEFAULT NULL,
`thumb` varchar(222) NOT NULL,
`file_size` decimal(7,1) NOT NULL,
`count` smallint(6) NOT NULL,
`downloadurl` text DEFAULT NULL,
`isactive` tinyint(2) NOT NULL DEFAULT 1 COMMENT '0-Inactive, 1-Active'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_file_drives`
--
CREATE TABLE `case_file_drives` (
`id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`file_info` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_filters`
--
CREATE TABLE `case_filters` (
`id` int(10) NOT NULL,
`user_id` int(10) NOT NULL COMMENT 'Foreign Key of "Users"',
`order` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_recents`
--
CREATE TABLE `case_recents` (
`id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`company_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL COMMENT 'Foreign key of "users"',
`project_id` int(11) NOT NULL COMMENT 'Foreign key of "projects"',
`dt_created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_reminders`
--
CREATE TABLE `case_reminders` (
`id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL,
`comment` text COLLATE utf8_unicode_ci NOT NULL,
`reminder_datetime` datetime NOT NULL,
`status` tinyint(2) NOT NULL DEFAULT 0,
`is_emailed` tinyint(2) NOT NULL DEFAULT 0,
`user_ids` text COLLATE utf8_unicode_ci NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`project_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `case_removed_files`
--
CREATE TABLE `case_removed_files` (
`id` int(11) NOT NULL,
`case_file_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`case_file_name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `case_settings`
--
CREATE TABLE `case_settings` (
`id` int(250) NOT NULL,
`project_id` int(250) NOT NULL,
`project_uniqid` varchar(250) NOT NULL,
`type_id` int(250) NOT NULL,
`assign_to` int(250) NOT NULL,
`priority` tinyint(4) NOT NULL,
`due_date` varchar(250) NOT NULL,
`email` varchar(250) NOT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_templates`
--
CREATE TABLE `case_templates` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`is_active` tinyint(2) NOT NULL DEFAULT 1 COMMENT '0-Inactive, 1-Active',
`created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `case_templates`
--
INSERT INTO `case_templates` (`id`, `user_id`, `company_id`, `name`, `description`, `is_active`, `created`) VALUES
(2, 19, 1, 'Status update', '<p><strong>Today\'s accomplishment:</strong></p>\r\n<p><strong> Task no: 120</strong></p>\r\n<ul>\r\n<li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>\r\n<li>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</li>\r\n<li>Contrary to popular belief, Lorem Ipsum is not simply random text</li>\r\n</ul>\r\n<p> <strong>Task no: 125</strong></p>\r\n<ul>\r\n<li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>\r\n<li>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</li>\r\n<li>Contrary to popular belief, Lorem Ipsum is not simply random text</li>\r\n</ul>\r\n<p><br /> <strong>List of files changed:</strong></p>\r\n<ol>\r\n<li>index.html</li>\r\n<li>style.css</li>\r\n<li>contact-us.html</li>\r\n</ol>\r\n<p>Is code checked in Repository: <strong>Y/N</strong><br /> Is code available in Stager: <strong>Y/N</strong> </p>\r\n<p><strong>Blocker/Testing Issues:</strong></p>\r\n<p><strong>Milestone Update: < Specify Milestone name here ></strong></p>\r\n<p> 1. Total tasks:</p>\r\n<p> 2. # of Work in Progress tasks:</p>\r\n<p> 3. # of Resolve tasks:</p>\r\n<p> 4. # of tasks not started:</p>\r\n<p><br /> <strong>Next Day\'s Plan:</strong></p>', 1, '0000-00-00 00:00:00'),
(8, 515, 2, 'New', 'New Template', 1, '2013-02-12 06:54:28'),
(9, 615, 30, 'NEW TEMPLATE', 'TO DO<br />1.<br />2.', 1, '2013-09-29 06:51:13'),
(10, 487, 404, 'Bug', '<b>Browser version:</b>\n <br/>\n <b>OS version:</b>\n <br/><br/>\n <b>Url:</b>\n <br/><br/>\n <b>What is the test case:</b><br/>\n <b>What is the expected result:</b><br/>\n <b>What is the actual result:</b><br/><br/>\n\n <b>Is it happening all the time or intermittently:</b><br/>\n <br/>\n <b>Attach screenshots:</b>', 1, '2013-11-06 12:42:47'),
(11, 487, 404, 'Change Request', '<p><strong>Change Requested:</strong></p>\n <p><strong> Task no: 120</strong></p>\n <p><strong> Task no: 125</strong></p>\n <p><strong>Today\'s accomplishment:</strong></p>\n <p><strong> Task no: 120</strong></p>\n <ul>\n <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>\n <li>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</li>\n <li>Contrary to popular belief, Lorem Ipsum is not simply random text</li>\n </ul>\n <p> <strong>Task no: 125</strong></p>\n <ul>\n <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>\n <li>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</li>\n <li>Contrary to popular belief, Lorem Ipsum is not simply random text</li>\n </ul>\n <p><br /> <strong>List of files changed:</strong></p>\n <ol>\n <li>index.html</li>\n <li>style.css</li>\n <li>contact-us.html</li>\n </ol>\n <p>Is code checked in Repository: <strong>Y/N</strong><br /> Is code available in Stager: <strong>Y/N</strong> </p>\n <p><strong>Blocker/Testing Issues:</strong></p>\n <p><strong>Milestone Update: < Specify Milestone name here ></strong></p>\n <p> 1. Total tasks:</p>\n <p> 2. # of Work in Progress tasks:</p>\n <p> 3. # of Resolve tasks:</p>\n <p> 4. # of tasks not started:</p>\n <p><br /> <strong>Next Day\'s Plan:</strong></p>', 1, '2013-11-06 12:42:47'),
(12, 487, 404, 'Meeting Minute', '<b>Attendees:</b> John, Micheal<br/>\n <b>Date and Time:</b> July 11th 11 am PST<br/>\n <b>Purpose:</b><br/>\n <br/>\n <b>Agenda:</b> \n <o>\n <li>Discuss Layout </li>\n <li>Discuss on Design</li>\n </ol>\n <br/>\n <b>Discussion:</b><br/>', 1, '2013-11-06 12:42:47'),
(14, 487, 404, 'Status update', '<b>Today\'s accomplishment</b><br/>\n <ul>\n <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>\n <li>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</li>\n <li>Contrary to popular belief, Lorem Ipsum is not simply random text</li>\n <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>\n <li>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout</li>\n <li>Contrary to popular belief, Lorem Ipsum is not simply random text</li>\n </ul>\n <br/>\n <b>List of files changed:</b> \n <ol>\n <li>index.html</li>\n <li>style.css</li>\n <li>contact-us.html</li>\n </ol>\n Is code checked in Repository: <b>Y/N</b><br/>\n Is code available in Stager: <b>Y/N</b>\n <br/><br/>\n <b>Blocker/Testing Issues:</b> \n <br/><br/>\n <b>Next Day\'s Plan:</b>', 1, '2013-11-06 12:42:47');
-- --------------------------------------------------------
--
-- Table structure for table `case_user_emails`
--
CREATE TABLE `case_user_emails` (
`id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`user_id` int(11) NOT NULL COMMENT 'Foreign key of "users"',
`ismail` tinyint(2) NOT NULL DEFAULT 1 COMMENT '0-Stop Mailing, 1-Email Me'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `case_user_views`
--
CREATE TABLE `case_user_views` (
`id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL COMMENT 'Foreign key of "easycases"',
`user_id` int(11) NOT NULL COMMENT 'Foreign key of "users"',
`project_id` int(11) NOT NULL COMMENT 'Foreign key of "projects"',
`istype` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1-New, 2-Reply, 3-Closed, 4-Start, 5-Edit',
`isviewed` tinyint(2) NOT NULL DEFAULT 0 COMMENT '0-Not Viewed, 1-Viewed',
`dt_created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
--
-- Table structure for table `check_lists`
--
CREATE TABLE `check_lists` (
`id` int(11) NOT NULL,
`uniq_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`company_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`easycase_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`is_checked` tinyint(1) NOT NULL DEFAULT 0,
`sequence` int(11) NOT NULL DEFAULT 0,
`created` datetime NOT NULL,
`modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `companies`
--
CREATE TABLE `companies` (
`id` int(11) NOT NULL,
`uniq_id` mediumtext DEFAULT NULL,
`name` varchar(250) NOT NULL,
`seo_url` varchar(250) NOT NULL,
`subscription_id` int(11) NOT NULL,
`logo` varchar(100) NOT NULL,
`website` varchar(100) NOT NULL,
`contact_phone` varchar(100) NOT NULL,
`referrer` mediumtext DEFAULT NULL,
`industry_id` int(11) NOT NULL DEFAULT 0,
`work_hour` int(11) NOT NULL DEFAULT 8,
`week_ends` varchar(100) DEFAULT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`user_last_login` datetime NOT NULL,
`is_beta` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1->Beta company , 0-> Default',
`is_active` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1:Active , 2: Cancelled ',
`is_deactivated` tinyint(2) NOT NULL DEFAULT 0 COMMENT '1-> Auto Deactivated , 2-> Deactivated by admin,3->Disable By admin,0-> Default ',
`is_skipped` tinyint(3) NOT NULL DEFAULT 0 COMMENT '0:No, 1: Yes',
`twitted` tinyint(2) NOT NULL DEFAULT 0,
`refering_plan_id` int(11) NOT NULL DEFAULT 0,
`country_name` varchar(150) NOT NULL DEFAULT 'no',
`new_layout_no` tinyint(2) NOT NULL DEFAULT 0,
`is_per_user` tinyint(2) NOT NULL DEFAULT 0,
`plan_user_count` tinyint(3) NOT NULL DEFAULT 0,
`is_delete_checked` tinyint(2) NOT NULL DEFAULT 0,
`add_defect_master` tinyint(2) DEFAULT 0,
`auth_token` varchar(255) DEFAULT NULL,
`api_access_code` varchar(8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `company_apis`
--
CREATE TABLE `company_apis` (
`id` int(12) NOT NULL,
`company_id` int(12) NOT NULL,
`api_key` varchar(255) NOT NULL,
`is_active` smallint(2) NOT NULL DEFAULT 1,
`created` datetime NOT NULL,
`user_id` int(12) NOT NULL DEFAULT 0,
`project_id` int(12) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `company_holidays`
--
CREATE TABLE `company_holidays` (
`id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`holiday` datetime NOT NULL,
`description` varchar(255) NOT NULL,
`created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `company_users`
--
CREATE TABLE `company_users` (
`id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`company_uniq_id` varchar(250) NOT NULL,
`user_id` int(11) NOT NULL,
`user_type` int(11) NOT NULL COMMENT '1-owner,2-Admin,3-member',
`is_active` tinyint(2) NOT NULL DEFAULT 1 COMMENT '0-Inactive, 1-Active,2- Not confirmed , 3- Deleted user',
`is_access_change` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1-email changed, 2-password changed, 3-user to admin, 4-user to client, 5 - Admin to client, 6 - client to user, 7 - client to admin, 8 - disable user',
`change_timestamp` bigint(20) NOT NULL DEFAULT 0,
`is_client` tinyint(2) NOT NULL DEFAULT 0 COMMENT '1:client',
`role_id` int(11) NOT NULL DEFAULT 0,
`est_billing_amt` float(10,2) NOT NULL DEFAULT 0.00 COMMENT 'Keep the estimated billing amount for the period',
`act_date` datetime DEFAULT NULL,
`billing_start_date` datetime DEFAULT NULL,
`billing_end_date` datetime DEFAULT NULL,
`company_trial_expired` tinyint(2) NOT NULL DEFAULT 0,
`google_token` text DEFAULT NULL,
`is_dummy` tinyint(2) NOT NULL DEFAULT 0,
`created` datetime NOT NULL,
`modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `countries`
--
CREATE TABLE `countries` (
`id` int(11) NOT NULL,
`ccode` varchar(2) NOT NULL DEFAULT '',
`country` varchar(200) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `countries`
--
INSERT INTO `countries` (`id`, `ccode`, `country`) VALUES
(1, 'AF', 'Afghanistan'),
(2, 'AX', 'Aland Islands'),
(3, 'AL', 'Albania'),
(4, 'DZ', 'Algeria'),
(5, 'AS', 'American Samoa'),
(6, 'AD', 'Andorra'),
(7, 'AO', 'Angola'),
(8, 'AI', 'Anguilla'),
(9, 'AQ', 'Antarctica'),
(10, 'AG', 'Antigua and Barbuda'),
(11, 'AR', 'Argentina'),
(12, 'AM', 'Armenia'),
(13, 'AW', 'Aruba'),
(14, 'AU', 'Australia'),
(15, 'AT', 'Austria'),
(16, 'AZ', 'Azerbaijan'),
(17, 'BS', 'Bahamas'),
(18, 'BH', 'Bahrain'),
(19, 'BD', 'Bangladesh'),
(20, 'BB', 'Barbados'),
(21, 'BY', 'Belarus'),
(22, 'BE', 'Belgium'),
(23, 'BZ', 'Belize'),
(24, 'BJ', 'Benin'),
(25, 'BM', 'Bermuda'),
(26, 'BT', 'Bhutan'),
(27, 'BO', 'Bolivia'),
(28, 'BA', 'Bosnia and Herzegovina'),
(29, 'BW', 'Botswana'),
(30, 'BV', 'Bouvet Island'),
(31, 'BR', 'Brazil'),
(32, 'IO', 'British Indian Ocean Territory'),
(33, 'BN', 'Brunei Darussalam'),
(34, 'BG', 'Bulgaria'),
(35, 'BF', 'Burkina Faso'),
(36, 'BI', 'Burundi'),
(37, 'KH', 'Cambodia'),
(38, 'CM', 'Cameroon'),
(39, 'CA', 'Canada'),
(40, 'CV', 'Cape Verde'),
(41, 'KY', 'Cayman Islands'),
(42, 'CF', 'Central African Republic'),
(43, 'TD', 'Chad'),
(44, 'CL', 'Chile'),
(45, 'CN', 'China'),
(46, 'CX', 'Christmas Island'),
(47, 'CC', 'Cocos (Keeling) Islands'),
(48, 'CO', 'Colombia'),
(49, 'KM', 'Comoros'),
(50, 'CG', 'Congo'),
(51, 'CD', 'Congo, The Democratic Republic of the'),
(52, 'CK', 'Cook Islands'),
(53, 'CR', 'Costa Rica'),
(54, 'CI', 'Cote D''Ivoire'),
(55, 'HR', 'Croatia'),
(56, 'CU', 'Cuba'),
(57, 'CY', 'Cyprus'),
(58, 'CZ', 'Czech Republic'),
(59, 'DK', 'Denmark'),
(60, 'DJ', 'Djibouti'),
(61, 'DM', 'Dominica'),
(62, 'DO', 'Dominican Republic'),
(63, 'EC', 'Ecuador'),
(64, 'EG', 'Egypt'),
(65, 'SV', 'El Salvador'),
(66, 'GQ', 'Equatorial Guinea'),
(67, 'ER', 'Eritrea'),
(68, 'EE', 'Estonia'),
(69, 'ET', 'Ethiopia'),
(70, 'FK', 'Falkland Islands (Malvinas)'),
(71, 'FO', 'Faroe Islands'),
(72, 'FJ', 'Fiji'),
(73, 'FI', 'Finland'),
(74, 'FR', 'France'),
(75, 'GF', 'French Guiana'),
(76, 'PF', 'French Polynesia'),
(77, 'TF', 'French Southern Territories'),
(78, 'GA', 'Gabon'),
(79, 'GM', 'Gambia'),
(80, 'GE', 'Georgia'),
(81, 'DE', 'Germany'),
(82, 'GH', 'Ghana'),
(83, 'GI', 'Gibraltar'),
(84, 'GR', 'Greece'),
(85, 'GL', 'Greenland'),
(86, 'GD', 'Grenada'),
(87, 'GP', 'Guadeloupe'),
(88, 'GU', 'Guam'),
(89, 'GT', 'Guatemala'),
(90, 'GG', 'Guernsey'),
(91, 'GN', 'Guinea'),
(92, 'GW', 'Guinea-Bissau'),
(93, 'GY', 'Guyana'),
(94, 'HT', 'Haiti'),
(95, 'HM', 'Heard Island and McDonald Islands'),
(96, 'VA', 'Holy See (Vatican City State)'),
(97, 'HN', 'Honduras'),
(98, 'HK', 'Hong Kong'),
(99, 'HU', 'Hungary'),
(100, 'IS', 'Iceland'),
(101, 'IN', 'India'),
(102, 'ID', 'Indonesia'),
(103, 'IR', 'Iran, Islamic Republic of'),
(104, 'IQ', 'Iraq'),
(105, 'IE', 'Ireland'),
(106, 'IM', 'Isle of Man'),
(107, 'IL', 'Israel'),
(108, 'IT', 'Italy'),
(109, 'JM', 'Jamaica'),
(110, 'JP', 'Japan'),
(111, 'JE', 'Jersey'),
(112, 'JO', 'Jordan'),
(113, 'KZ', 'Kazakhstan'),
(114, 'KE', 'Kenya'),
(115, 'KI', 'Kiribati'),
(116, 'KP', 'Korea, Democratic People''s Republic of'),
(117, 'KR', 'Korea, Republic of'),
(118, 'KW', 'Kuwait'),
(119, 'KG', 'Kyrgyzstan'),
(120, 'LA', 'Lao People''s Democratic Republic'),
(121, 'LV', 'Latvia'),
(122, 'LB', 'Lebanon'),
(123, 'LS', 'Lesotho'),
(124, 'LR', 'Liberia'),
(125, 'LY', 'Libyan Arab Jamahiriya'),
(126, 'LI', 'Liechtenstein'),
(127, 'LT', 'Lithuania'),
(128, 'LU', 'Luxembourg'),
(129, 'MO', 'Macao'),
(130, 'MK', 'Macedonia, The Former Yugoslav Republic of'),
(131, 'MG', 'Madagascar'),
(132, 'MW', 'Malawi'),
(133, 'MY', 'Malaysia'),
(134, 'MV', 'Maldives'),
(135, 'ML', 'Mali'),
(136, 'MT', 'Malta'),
(137, 'MH', 'Marshall Islands'),
(138, 'MQ', 'Martinique'),
(139, 'MR', 'Mauritania'),
(140, 'MU', 'Mauritius'),
(141, 'YT', 'Mayotte'),
(142, 'MX', 'Mexico'),
(143, 'FM', 'Micronesia, Federated States of'),
(144, 'MD', 'Moldova, Republic of'),
(145, 'MC', 'Monaco'),
(146, 'MN', 'Mongolia'),
(147, 'ME', 'Montenegro'),
(148, 'MS', 'Montserrat'),
(149, 'MA', 'Morocco'),
(150, 'MZ', 'Mozambique'),
(151, 'MM', 'Myanmar'),
(152, 'NA', 'Namibia'),
(153, 'NR', 'Nauru'),
(154, 'NP', 'Nepal'),
(155, 'NL', 'Netherlands'),
(156, 'AN', 'Netherlands Antilles'),
(157, 'NC', 'New Caledonia'),
(158, 'NZ', 'New Zealand'),
(159, 'NI', 'Nicaragua'),
(160, 'NE', 'Niger'),
(161, 'NG', 'Nigeria'),
(162, 'NU', 'Niue'),
(163, 'NF', 'Norfolk Island'),
(164, 'MP', 'Northern Mariana Islands'),
(165, 'NO', 'Norway'),
(166, 'OM', 'Oman'),
(167, 'PK', 'Pakistan'),
(168, 'PW', 'Palau'),
(169, 'PS', 'Palestinian Territory, Occupied'),
(170, 'PA', 'Panama'),
(171, 'PG', 'Papua New Guinea'),
(172, 'PY', 'Paraguay'),
(173, 'PE', 'Peru'),
(174, 'PH', 'Philippines'),
(175, 'PN', 'Pitcairn'),
(176, 'PL', 'Poland'),
(177, 'PT', 'Portugal'),
(178, 'PR', 'Puerto Rico'),
(179, 'QA', 'Qatar'),
(180, 'RE', 'Reunion'),
(181, 'RO', 'Romania'),
(182, 'RU', 'Russian Federation'),
(183, 'RW', 'Rwanda'),
(184, 'BL', 'Saint Barthelemy'),
(185, 'SH', 'Saint Helena'),
(186, 'KN', 'Saint Kitts and Nevis'),
(187, 'LC', 'Saint Lucia'),
(188, 'MF', 'Saint Martin'),
(189, 'PM', 'Saint Pierre and Miquelon'),
(190, 'VC', 'Saint Vincent and the Grenadines'),
(191, 'WS', 'Samoa'),
(192, 'SM', 'San Marino'),
(193, 'ST', 'Sao Tome and Principe'),
(194, 'SA', 'Saudi Arabia'),
(195, 'SN', 'Senegal'),
(196, 'RS', 'Serbia'),
(197, 'SC', 'Seychelles'),
(198, 'SL', 'Sierra Leone'),
(199, 'SG', 'Singapore'),
(200, 'SK', 'Slovakia'),
(201, 'SI', 'Slovenia'),
(202, 'SB', 'Solomon Islands'),
(203, 'SO', 'Somalia'),
(204, 'ZA', 'South Africa'),
(205, 'GS', 'South Georgia and the South Sandwich Islands'),
(206, 'ES', 'Spain'),
(207, 'LK', 'Sri Lanka'),
(208, 'SD', 'Sudan'),
(209, 'SR', 'Suriname'),
(210, 'SJ', 'Svalbard and Jan Mayen'),
(211, 'SZ', 'Swaziland'),
(212, 'SE', 'Sweden'),
(213, 'CH', 'Switzerland'),
(214, 'SY', 'Syrian Arab Republic'),
(215, 'TW', 'Taiwan, Province Of China'),
(216, 'TJ', 'Tajikistan'),
(217, 'TZ', 'Tanzania, United Republic of'),
(218, 'TH', 'Thailand'),
(219, 'TL', 'Timor-Leste'),
(220, 'TG', 'Togo'),
(221, 'TK', 'Tokelau'),
(222, 'TO', 'Tonga'),
(223, 'TT', 'Trinidad and Tobago'),
(224, 'TN', 'Tunisia'),
(225, 'TR', 'Turkey'),
(226, 'TM', 'Turkmenistan'),
(227, 'TC', 'Turks and Caicos Islands'),
(228, 'TV', 'Tuvalu'),
(229, 'UG', 'Uganda'),
(230, 'UA', 'Ukraine'),
(231, 'AE', 'United Arab Emirates'),
(232, 'GB', 'United Kingdom'),
(233, 'US', 'United States'),
(234, 'UM', 'United States Minor Outlying Islands'),
(235, 'UY', 'Uruguay'),
(236, 'UZ', 'Uzbekistan'),
(237, 'VU', 'Vanuatu'),
(238, 'VE', 'Venezuela'),
(239, 'VN', 'Viet Nam'),
(240, 'VG', 'Virgin Islands, British'),
(241, 'VI', 'Virgin Islands, U.S.'),
(242, 'WF', 'Wallis And Futuna'),
(243, 'EH', 'Western Sahara'),
(244, 'YE', 'Yemen'),
(245, 'ZM', 'Zambia'),
(246, 'ZW', 'Zimbabwe');
-- --------------------------------------------------------
--
-- Table structure for table `coupons`
--
CREATE TABLE `coupons` (
`id` int(11) UNSIGNED NOT NULL,
`company_id` int(11) UNSIGNED DEFAULT 0 COMMENT 'company using',
`code` varchar(50) NOT NULL,
`discount` float(7,2) DEFAULT NULL COMMENT 'bootstrap.php -> DISCOUNT',
`discount_type` tinyint(2) NOT NULL DEFAULT 2 COMMENT '1=flat, 2=percentage',
`expires` date DEFAULT NULL,
`isactive` tinyint(2) NOT NULL DEFAULT 1 COMMENT '0=inactive, 1=active',
`ip` varchar(20) DEFAULT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `currencies`
--
CREATE TABLE `currencies` (
`id` int(11) NOT NULL,
`name` varchar(64) DEFAULT NULL,
`code` char(3) DEFAULT NULL,
`status` enum('Active','Inactive') NOT NULL DEFAULT 'Active'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `currencies`
--
INSERT INTO `currencies` (`id`, `name`, `code`, `status`) VALUES
(1, 'Andorran Peseta', 'ADP', 'Active'),
(2, 'United Arab Emirates Dirham', 'AED', 'Active'),
(3, 'Afghanistan Afghani', 'AFA', 'Active'),
(4, 'Albanian Lek', 'ALL', 'Active'),
(5, 'Netherlands Antillian Guilder', 'ANG', 'Active'),
(6, 'Angolan Kwanza', 'AOK', 'Active'),
(7, 'Argentine Peso', 'ARS', 'Active'),
(9, 'Australian Dollar', 'AUD', 'Active'),
(10, 'Aruban Florin', 'AWG', 'Active'),
(11, 'Barbados Dollar', 'BBD', 'Active'),
(12, 'Bangladeshi Taka', 'BDT', 'Active'),
(14, 'Bulgarian Lev', 'BGN', 'Active'),
(15, 'Bahraini Dinar', 'BHD', 'Active'),
(16, 'Burundi Franc', 'BIF', 'Active'),
(17, 'Bermudian Dollar', 'BMD', 'Active'),
(18, 'Brunei Dollar', 'BND', 'Active'),
(19, 'Bolivian Boliviano', 'BOB', 'Active'),
(20, 'Brazilian Real', 'BRL', 'Active'),
(21, 'Bahamian Dollar', 'BSD', 'Active'),
(22, 'Bhutan Ngultrum', 'BTN', 'Active'),
(23, 'Burma Kyat', 'BUK', 'Active'),
(24, 'Botswanian Pula', 'BWP', 'Active'),
(25, 'Belize Dollar', 'BZD', 'Active'),
(26, 'Canadian Dollar', 'CAD', 'Active'),
(27, 'Swiss Franc', 'CHF', 'Active'),
(28, 'Chilean Unidades de Fomento', 'CLF', 'Active'),
(29, 'Chilean Peso', 'CLP', 'Active'),
(30, 'Yuan (Chinese) Renminbi', 'CNY', 'Active'),
(31, 'Colombian Peso', 'COP', 'Active'),
(32, 'Costa Rican Colon', 'CRC', 'Active'),
(33, 'Czech Republic Koruna', 'CZK', 'Active'),
(34, 'Cuban Peso', 'CUP', 'Active'),
(35, 'Cape Verde Escudo', 'CVE', 'Active'),
(36, 'Cyprus Pound', 'CYP', 'Active'),
(40, 'Danish Krone', 'DKK', 'Active'),
(41, 'Dominican Peso', 'DOP', 'Active'),
(42, 'Algerian Dinar', 'DZD', 'Active'),
(43, 'Ecuador Sucre', 'ECS', 'Active'),
(44, 'Egyptian Pound', 'EGP', 'Active'),
(45, 'Estonian Kroon (EEK)', 'EEK', 'Active'),
(46, 'Ethiopian Birr', 'ETB', 'Active'),
(47, 'Euro', 'EUR', 'Active'),
(49, 'Fiji Dollar', 'FJD', 'Active'),
(50, 'Falkland Islands Pound', 'FKP', 'Active'),
(52, 'British Pound', 'GBP', 'Active'),
(53, 'Ghanaian Cedi', 'GHC', 'Active'),
(54, 'Gibraltar Pound', 'GIP', 'Active'),
(55, 'Gambian Dalasi', 'GMD', 'Active'),
(56, 'Guinea Franc', 'GNF', 'Active'),
(58, 'Guatemalan Quetzal', 'GTQ', 'Active'),
(59, 'Guinea-Bissau Peso', 'GWP', 'Active'),
(60, 'Guyanan Dollar', 'GYD', 'Active'),
(61, 'Hong Kong Dollar', 'HKD', 'Active'),
(62, 'Honduran Lempira', 'HNL', 'Active'),
(63, 'Haitian Gourde', 'HTG', 'Active'),
(64, 'Hungarian Forint', 'HUF', 'Active'),
(65, 'Indonesian Rupiah', 'IDR', 'Active'),
(66, 'Irish Punt', 'IEP', 'Active'),
(67, 'Israeli Shekel', 'ILS', 'Active'),
(68, 'Indian Rupee', 'INR', 'Active'),
(69, 'Iraqi Dinar', 'IQD', 'Active'),
(70, 'Iranian Rial', 'IRR', 'Active'),
(73, 'Jamaican Dollar', 'JMD', 'Active'),
(74, 'Jordanian Dinar', 'JOD', 'Active'),
(75, 'Japanese Yen', 'JPY', 'Active'),
(76, 'Kenyan Schilling', 'KES', 'Active'),
(77, 'Kampuchean (Cambodian) Riel', 'KHR', 'Active'),
(78, 'Comoros Franc', 'KMF', 'Active'),
(79, 'North Korean Won', 'KPW', 'Active'),
(80, '(South) Korean Won', 'KRW', 'Active'),
(81, 'Kuwaiti Dinar', 'KWD', 'Active'),
(82, 'Cayman Islands Dollar', 'KYD', 'Active'),
(83, 'Lao Kip', 'LAK', 'Active'),
(84, 'Lebanese Pound', 'LBP', 'Active'),
(85, 'Sri Lanka Rupee', 'LKR', 'Active'),
(86, 'Liberian Dollar', 'LRD', 'Active'),
(87, 'Lesotho Loti', 'LSL', 'Active'),
(89, 'Libyan Dinar', 'LYD', 'Active'),
(90, 'Moroccan Dirham', 'MAD', 'Active'),
(91, 'Malagasy Franc', 'MGF', 'Active'),
(92, 'Mongolian Tugrik', 'MNT', 'Active'),
(93, 'Macau Pataca', 'MOP', 'Active'),
(94, 'Mauritanian Ouguiya', 'MRO', 'Active'),
(95, 'Maltese Lira', 'MTL', 'Active'),
(96, 'Mauritius Rupee', 'MUR', 'Active'),
(97, 'Maldive Rufiyaa', 'MVR', 'Active'),
(98, 'Malawi Kwacha', 'MWK', 'Active'),
(99, 'Mexican Peso', 'MXP', 'Active'),
(100, 'Malaysian Ringgit', 'MYR', 'Active'),
(101, 'Mozambique Metical', 'MZM', 'Active'),
(102, 'Namibian Dollar', 'NAD', 'Active'),
(103, 'Nigerian Naira', 'NGN', 'Active'),
(104, 'Nicaraguan Cordoba', 'NIO', 'Active'),
(105, 'Norwegian Kroner', 'NOK', 'Active'),
(106, 'Nepalese Rupee', 'NPR', 'Active'),
(107, 'New Zealand Dollar', 'NZD', 'Active'),
(108, 'Omani Rial', 'OMR', 'Active'),
(109, 'Panamanian Balboa', 'PAB', 'Active'),
(110, 'Peruvian Nuevo Sol', 'PEN', 'Active'),
(111, 'Papua New Guinea Kina', 'PGK', 'Active'),
(112, 'Philippine Peso', 'PHP', 'Active'),
(113, 'Pakistan Rupee', 'PKR', 'Active'),
(114, 'Polish Zloty', 'PLN', 'Active'),
(116, 'Paraguay Guarani', 'PYG', 'Active'),
(117, 'Qatari Rial', 'QAR', 'Active'),
(118, 'Romanian Leu', 'RON', 'Active'),
(119, 'Rwanda Franc', 'RWF', 'Active'),
(120, 'Saudi Arabian Riyal', 'SAR', 'Active'),
(121, 'Solomon Islands Dollar', 'SBD', 'Active'),
(122, 'Seychelles Rupee', 'SCR', 'Active'),
(123, 'Sudanese Pound', 'SDP', 'Active'),
(124, 'Swedish Krona', 'SEK', 'Active'),
(125, 'Singapore Dollar', 'SGD', 'Active'),
(126, 'St. Helena Pound', 'SHP', 'Active'),
(127, 'Sierra Leone Leone', 'SLL', 'Active'),
(128, 'Somali Schilling', 'SOS', 'Active'),
(129, 'Suriname Guilder', 'SRG', 'Active'),
(130, 'Sao Tome and Principe Dobra', 'STD', 'Active'),
(131, 'Russian Ruble', 'RUB', 'Active'),
(132, 'El Salvador Colon', 'SVC', 'Active'),
(133, 'Syrian Potmd', 'SYP', 'Active'),
(134, 'Swaziland Lilangeni', 'SZL', 'Active'),
(135, 'Thai Baht', 'THB', 'Active'),
(136, 'Tunisian Dinar', 'TND', 'Active'),
(137, 'Tongan Paanga', 'TOP', 'Active'),
(138, 'East Timor Escudo', 'TPE', 'Active'),
(139, 'Turkish Lira', 'TRY', 'Active'),
(140, 'Trinidad and Tobago Dollar', 'TTD', 'Active'),
(141, 'Taiwan Dollar', 'TWD', 'Active'),
(142, 'Tanzanian Schilling', 'TZS', 'Active'),
(143, 'Uganda Shilling', 'UGX', 'Active'),
(144, 'US Dollar', 'USD', 'Active'),
(145, 'Uruguayan Peso', 'UYU', 'Active'),
(146, 'Venezualan Bolivar', 'VEF', 'Active'),
(147, 'Vietnamese Dong', 'VND', 'Active'),
(148, 'Vanuatu Vatu', 'VUV', 'Active'),
(149, 'Samoan Tala', 'WST', 'Active'),
(150, 'Communauté Financière Africaine BEAC, Francs', 'XAF', 'Active'),
(151, 'Silver, Ounces', 'XAG', 'Active'),
(152, 'Gold, Ounces', 'XAU', 'Active'),
(153, 'East Caribbean Dollar', 'XCD', 'Active'),
(154, 'International Monetary Fund (IMF) Special Drawing Rights', 'XDR', 'Active'),
(155, 'Communauté Financière Africaine BCEAO - Francs', 'XOF', 'Active'),
(156, 'Palladium Ounces', 'XPD', 'Active'),
(157, 'Comptoirs Français du Pacifique Francs', 'XPF', 'Active'),
(158, 'Platinum, Ounces', 'XPT', 'Active'),
(159, 'Democratic Yemeni Dinar', 'YDD', 'Active'),
(160, 'Yemeni Rial', 'YER', 'Active'),
(161, 'New Yugoslavia Dinar', 'YUD', 'Active'),
(162, 'South African Rand', 'ZAR', 'Active'),
(163, 'Zambian Kwacha', 'ZMK', 'Active'),
(164, 'Zaire Zaire', 'ZRZ', 'Active'),
(165, 'Zimbabwe Dollar', 'ZWD', 'Active'),
(166, 'Slovak Koruna', 'SKK', 'Active'),
(167, 'Armenian Dram', 'AMD', 'Active');
-- --------------------------------------------------------
CREATE TABLE `custom_fields` (
`id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`project_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,