forked from opencad-community/OpenCAD-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenCAD_Initialization.sql
More file actions
1919 lines (1764 loc) · 58.3 KB
/
Copy pathOpenCAD_Initialization.sql
File metadata and controls
1919 lines (1764 loc) · 58.3 KB
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
--
-- OpenCAD Database Scheme
-- Last Updated: 3 May 2018
-- Updated By: Matt Myers <mmyers@opencad.io>
--
-- --------------------------------------------------------
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 26, 2018 at 10:15 PM
-- Server version: 10.1.30-MariaDB-0ubuntu0.17.10.1
-- PHP Version: 7.1.15-0ubuntu0.17.10.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `opencad_test`
--
-- --------------------------------------------------------
--
-- Table structure for table `active_users`
--
CREATE TABLE `active_users` (
`identifier` varchar(255) NOT NULL,
`callsign` varchar(255) NOT NULL COMMENT 'Unit Callsign',
`status` int(11) NOT NULL COMMENT 'Unit status, 0=busy/unavailable, 1=available, 2=dispatcher',
`status_detail` int(11) NOT NULL COMMENT 'Paired to Statuses table',
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `bolos_persons`
--
CREATE TABLE `bolos_persons` (
`id` int(11) NOT NULL,
`first_name` varchar(255) NOT NULL COMMENT 'First name of BOLO suspect.',
`last_name` varchar(255) NOT NULL COMMENT 'Last name of BOLO suspect.',
`gender` varchar(255) NOT NULL COMMENT 'Gender of BOLO suspect.',
`physical_description` varchar(255) NOT NULL COMMENT 'Physical description of BOLO suspect.',
`reason_wanted` varchar(255) NOT NULL COMMENT 'Reason BOLO suspect is wanted.',
`last_seen` varchar(255) NOT NULL COMMENT 'Last observed location of BOLO suspect.'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `bolos_vehicles`
--
CREATE TABLE `bolos_vehicles` (
`id` int(11) NOT NULL,
`vehicle_make` varchar(255) NOT NULL COMMENT 'Make of BOLO vehicle.',
`vehicle_model` varchar(255) NOT NULL COMMENT 'Model of BOLO vehicle.',
`vehicle_plate` varchar(255) NOT NULL COMMENT 'License of BOLO vehicle.',
`primary_color` varchar(255) NOT NULL COMMENT 'Primary color of BOLO vehicle.',
`secondary_color` varchar(255) NOT NULL COMMENT 'Secondary color of BOLO vehicle.',
`reason_wanted` varchar(255) NOT NULL COMMENT 'Reason BOLO suspect is wanted.',
`last_seen` varchar(255) NOT NULL COMMENT 'Last observed location of BOLO vehicle.'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `calls`
--
CREATE TABLE `calls` (
`call_id` int(4) NOT NULL,
`call_type` text NOT NULL,
`call_primary` text NOT NULL,
`call_street1` text NOT NULL,
`call_street2` text,
`call_street3` text,
`call_narrative` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
ALTER TABLE `calls`
CHANGE COLUMN `call_primary` `call_primary` TEXT NULL DEFAULT NULL AFTER `call_type`;
-- --------------------------------------------------------
--
-- Table structure for table `calls_users`
--
CREATE TABLE `calls_users` (
`call_id` int(11) NOT NULL,
`identifier` varchar(255) NOT NULL,
`callsign` varchar(255) NOT NULL,
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `call_history`
--
CREATE TABLE `call_history` (
`call_id` int(11) NOT NULL,
`call_primary` text NOT NULL,
`call_type` text NOT NULL,
`call_street1` text NOT NULL,
`call_street2` text,
`call_street3` text,
`call_narrative` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `call_list`
--
CREATE TABLE `call_list` (
`call_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `citations`
--
CREATE TABLE `citations` (
`id` int(11) NOT NULL,
`citation_name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `citations`
--
INSERT INTO `citations` (`id`, `citation_name`) VALUES
(6, 'ABANDON VEH - D MIS.'),
(10, 'BLOCKING EMERG VEH - A MIS.'),
(27, 'DESTRUCTION OF PROPERTY - A MIS.'),
(26, 'DESTRUCTION OF PROPERTY - B MIS.'),
(11, 'DRIVING W/O LICENSE - D MIS.'),
(18, 'EXCESSIVE USE OF HORN - B MIS.'),
(17, 'EXCESSIVE USE OF HORN - C MIS.'),
(21, 'FAIL. NOTIFY CCP - B MIS.'),
(20, 'FAIL. NOTIFY CCP - C MIS.'),
(8, 'FAIL. YIELD FOR EMERG VEH - C MIS.'),
(7, 'FAIL. YIELD FOR EMERG VEH - D MIS.'),
(23, 'HARASSMENT - B MIS.'),
(22, 'HARASSMENT - C MIS.'),
(25, 'IMPEDING PEACE OFFICER - A MIS.'),
(24, 'IMPEDING PEACE OFFICER - B MIS.'),
(9, 'IMPEDING TRAFFIC - D MIS.'),
(16, 'LICENSE PLATE - C MIS.'),
(41, 'OBSTRUCTING A LAW ENFORCEMENT OFFICER - A MIS.'),
(40, 'OTHER - A MIS.'),
(39, 'OTHER - B MIS.'),
(38, 'OTHER - C MIS.'),
(37, 'OTHER - D MIS.'),
(30, 'POSS. CNTRL SUB. - A MIS.'),
(29, 'POSS. CNTRL SUB. - B MIS.'),
(28, 'POSS. CNTRL SUB. - C MIS.'),
(32, 'POSS. ILLEGAL SUB. - A MIS.'),
(31, 'POSS. ILLEGAL SUB. - B MIS.'),
(34, 'PROSTITUTION / SOLICITATION - A MIS.'),
(33, 'PROSTITUTION / SOLICITATION - B MIS.'),
(36, 'PUBLIC INTOX. B MIS.'),
(35, 'PUBLIC INTOX. C MIS.'),
(13, 'RECKLESS DRIVING - C MIS.'),
(12, 'RECKLESS DRIVING - D MIS.'),
(5, 'RUNNING STOP SIGN - D MIS.'),
(3, 'SPEEDING - A. MIS'),
(2, 'SPEEDING - B. MIS'),
(1, 'SPEEDING - C. MIS'),
(0, 'SPEEDING - D. MIS'),
(4, 'U-TURN - D. MIS'),
(15, 'UNAUTHORIZED LIGHTING - B MIS.'),
(14, 'UNAUTHORIZED LIGHTING - C MIS.'),
(19, 'WINDOW TINT - C MIS.');
-- --------------------------------------------------------
--
-- Table structure for table `civilian_names`
--
CREATE TABLE `civilian_names` (
`user_id` int(11) NOT NULL COMMENT 'Links to users table',
`names_id` int(11) NOT NULL COMMENT 'Links to names table'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `colors`
--
CREATE TABLE `colors` (
`id` int(11) NOT NULL,
`color_group` varchar(255) DEFAULT NULL,
`color_name` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `colors`
--
INSERT INTO `colors` (`id`, `color_group`, `color_name`) VALUES
(1, 'Chrome', 'Chrome'),
(2, 'Classic', 'Black'),
(3, 'Classic', 'Carbon Black'),
(4, 'Classic', 'Graphite'),
(5, 'Classic', 'Anthracite Black'),
(6, 'Classic', 'Black Steel'),
(7, 'Classic', 'Dark Steel'),
(8, 'Classic', 'Silver'),
(9, 'Classic', 'Bluish Silver'),
(10, 'Classic', 'Rolled Steel'),
(11, 'Classic', 'Shadow Silver'),
(12, 'Classic', 'Midnigh Silver'),
(13, 'Classic', 'Cast Iron Silver'),
(14, 'Classic', 'Red'),
(15, 'Classic', 'Torino Red'),
(16, 'Classic', 'Forumula Red'),
(17, 'Classic', 'Lava Red'),
(18, 'Classic', 'Blaze Red'),
(19, 'Classic', 'Grace Red'),
(20, 'Classic', 'Garnet Red'),
(21, 'Classic', 'Sunset Red'),
(22, 'Classic', 'Cabernet Red'),
(23, 'Classic', 'Wine Red'),
(24, 'Classic', 'Candy Red'),
(25, 'Classic', 'Hot Pink'),
(26, 'Classic', 'Pfister Pink'),
(27, 'Classic', 'Salmon Pink'),
(28, 'Classic', 'Sunrise Orange'),
(29, 'Classic', 'Orange'),
(30, 'Classic', 'Bright Orange'),
(31, 'Classic', 'Gold'),
(32, 'Classic', 'Bronze'),
(33, 'Classic', 'Yellow'),
(34, 'Classic', 'Race Yellow'),
(35, 'Classic', 'Dew Yellow'),
(36, 'Classic', 'Dark Green'),
(37, 'Classic', 'Racing Green'),
(38, 'Classic', 'Sea Green'),
(39, 'Classic', 'Olive Green'),
(40, 'Classic', 'Bright Green'),
(41, 'Classic', 'Gasoline Green'),
(42, 'Classic', 'Lime Green'),
(43, 'Classic', 'Midnight Blue'),
(44, 'Classic', 'Galaxy Blue'),
(45, 'Classic', 'Dark Blue'),
(46, 'Classic', 'Saxon Blue'),
(47, 'Classic', 'Blue'),
(48, 'Classic', 'Mariner Blue'),
(49, 'Classic', 'Harbor Blue'),
(50, 'Classic', 'Diamond Blue'),
(51, 'Classic', 'Surf Blue'),
(52, 'Classic', 'Nautical Blue'),
(53, 'Classic', 'Racaing Blue'),
(54, 'Classic', 'Ultra Blue'),
(55, 'Classic', 'Light Blue'),
(56, 'Classic', 'Chocolate Brown'),
(57, 'Classic', 'Bison Brown'),
(58, 'Classic', 'Creek Brown'),
(59, 'Classic', 'Feltzer Brown'),
(60, 'Classic', 'Maple Brown'),
(61, 'Classic', 'Beechwood Brown'),
(62, 'Classic', 'Sienna Brown'),
(63, 'Classic', 'Saddle Brown'),
(64, 'Classic', 'Moss Brown'),
(65, 'Classic', 'Woodbeech Brown'),
(66, 'Classic', 'Straw Brown'),
(67, 'Classic', 'Sandy Brown'),
(68, 'Classic', 'Bleached Brown'),
(69, 'Classic', 'Schafter Purple'),
(70, 'Classic', 'Spinnaker Purple'),
(71, 'Classic', 'Midnight Purple'),
(72, 'Classic', 'Bright Purple'),
(73, 'Classic', 'Cream'),
(74, 'Classic', 'Ice White'),
(75, 'Classic', 'Frost White'),
(76, 'Matte', 'Black'),
(77, 'Matte', 'Gray'),
(78, 'Matte', 'Light Gray'),
(79, 'Matte', 'Ice White'),
(80, 'Matte', 'Blue'),
(81, 'Matte', 'Dark Blue'),
(82, 'Matte', 'Midnight Blue'),
(83, 'Matte', 'Midnight Purple'),
(84, 'Matte', 'Shafter Purple'),
(85, 'Matte', 'Red'),
(86, 'Matte', 'Dark Red'),
(87, 'Matte', 'Orange'),
(88, 'Matte', 'Yellow'),
(89, 'Matte', 'Lime Green'),
(90, 'Matte', 'Green'),
(91, 'Matte', 'Forest Green'),
(92, 'Matte', 'Foliage Green'),
(93, 'Matte', 'Olive Drag'),
(94, 'Matte', 'Dark Earch'),
(95, 'Matte', 'Desert Tan'),
(96, 'Metallic', 'Black'),
(97, 'Metallic', 'Carbon Black'),
(98, 'Metallic', 'Graphite'),
(99, 'Metallic', 'Anthracite Black'),
(100, 'Metallic', 'Black Steel'),
(101, 'Metallic', 'Dark Steel'),
(102, 'Metallic', 'Silver'),
(103, 'Metallic', 'Bluish Silver'),
(104, 'Metallic', 'Rolled Steel'),
(105, 'Metallic', 'Shadow Silver'),
(106, 'Metallic', 'Stone Silver'),
(107, 'Metallic', 'Midnight Silver'),
(108, 'Metallic', 'Cast Iron Silver'),
(109, 'Metallic', 'Red'),
(110, 'Metallic', 'Torino Red'),
(111, 'Metallic', 'Formula Red'),
(112, 'Metallic', 'Lava Red'),
(113, 'Metallic', 'Blaze Red'),
(114, 'Metallic', 'Grace Red'),
(115, 'Metallic', 'Garnet Red'),
(116, 'Metallic', 'Sunset Red'),
(117, 'Metallic', 'Cabernet Red'),
(118, 'Metallic', 'Wine Red'),
(119, 'Metallic', 'Candy Red'),
(120, 'Metallic', 'Hot Pink'),
(121, 'Metallic', 'Pfister Pink'),
(122, 'Metallic', 'Salmon Pink'),
(123, 'Metallic', 'Sunrise Orange'),
(124, 'Metallic', 'Orange'),
(125, 'Metallic', 'Bright Orange'),
(126, 'Metallic', 'Gold Bronze'),
(127, 'Metallic', 'Yellow'),
(128, 'Metallic', 'Race Yellow'),
(129, 'Metallic', 'Dew Yellow'),
(130, 'Metallic', 'Dark Green'),
(131, 'Metallic', 'Racing Green'),
(132, 'Metallic', 'Sea Green'),
(133, 'Metallic', 'Olive Green'),
(134, 'Metallic', 'Bright Green'),
(135, 'Metallic', 'Gasoline Green'),
(136, 'Metallic', 'Lime Green'),
(137, 'Metallic', 'Midnight Blue'),
(138, 'Metallic', 'Galazy BLue'),
(139, 'Metallic', 'Dark Blue'),
(140, 'Metallic', 'Saxon Blue'),
(141, 'Metallic', 'Blue'),
(142, 'Metallic', 'Mariner Bue'),
(143, 'Metallic', 'Harbor Blue'),
(144, 'Metallic', 'Diamond BLue'),
(145, 'Metallic', 'Surf Blue'),
(146, 'Metallic', 'Nauical Blue'),
(147, 'Metallic', 'Racing Blue'),
(148, 'Metallic', 'Ultra Blue'),
(149, 'Metallic', 'Light Blue'),
(150, 'Metallic', 'Chocolate Brown'),
(151, 'Metallic', 'Bison Brown'),
(152, 'Metallic', 'Creek Brown'),
(153, 'Metallic', 'Feltzer Brown'),
(154, 'Metallic', 'Maple Brown'),
(155, 'Metallic', 'Beechwood Brown'),
(156, 'Metallic', 'Sienna Brown'),
(157, 'Metallic', 'Saddle Brown'),
(158, 'Metallic', 'Moss Brown'),
(159, 'Metallic', 'Woodbeech Brown'),
(160, 'Metallic', 'Straw Brown'),
(161, 'Metallic', 'Sandy BRown'),
(162, 'Metallic', 'Bleached Brown'),
(163, 'Metallic', 'Schafter Purple'),
(164, 'Metallic', 'Spinnaker Purple'),
(165, 'Metallic', 'Midnight Purple'),
(166, 'Metallic', 'Bright Purple'),
(167, 'Metallic', 'Cream'),
(168, 'Metallic', 'Ice White'),
(169, 'Metallic', 'Frost White'),
(170, 'Metals', 'Brushed Steel'),
(171, 'Metals', 'Brushed Black Steel'),
(172, 'Metals', 'Brushed Aluminium'),
(173, 'Metals', 'Pure Gold'),
(174, 'Metals', 'Brushed Gold'),
(175, 'Pearlescent', 'Black'),
(176, 'Pearlescent', 'Carbon Black'),
(177, 'Pearlescent', 'Graphite'),
(178, 'Pearlescent', 'Anthracite Black'),
(179, 'Pearlescent', 'Black Steel'),
(180, 'Pearlescent', 'Dark Steel'),
(181, 'Pearlescent', 'Silver'),
(182, 'Pearlescent', 'Bluish Silver'),
(183, 'Pearlescent', 'Rolled Steel'),
(184, 'Pearlescent', 'Shadow Silver'),
(185, 'Pearlescent', 'Stone Silver'),
(186, 'Pearlescent', 'Midnight Silver'),
(187, 'Pearlescent', 'Cast Iron Silver'),
(188, 'Pearlescent', 'Red'),
(189, 'Pearlescent', 'Torino Red'),
(190, 'Pearlescent', 'Formula Red'),
(191, 'Pearlescent', 'Lava Red'),
(192, 'Pearlescent', 'Blaze Red'),
(193, 'Pearlescent', 'Grace Red'),
(194, 'Pearlescent', 'Garnet Red'),
(195, 'Pearlescent', 'Sunset Red'),
(196, 'Pearlescent', 'Cabernet Red'),
(197, 'Pearlescent', 'Wine Red'),
(198, 'Pearlescent', 'Candy Red'),
(199, 'Pearlescent', 'Hot Pink'),
(200, 'Pearlescent', 'Pfister Pink'),
(201, 'Pearlescent', 'Salmon Pink'),
(202, 'Pearlescent', 'Sunrise Orange'),
(203, 'Pearlescent', 'Orange'),
(204, 'Pearlescent', 'Bright Orange'),
(205, 'Pearlescent', 'Gold Bronze'),
(206, 'Pearlescent', 'Yellow'),
(207, 'Pearlescent', 'Race Yellow'),
(208, 'Pearlescent', 'Dew Yellow'),
(209, 'Pearlescent', 'Dark Green'),
(210, 'Pearlescent', 'Racing Green'),
(211, 'Pearlescent', 'Sea Green'),
(212, 'Pearlescent', 'Olive Green'),
(213, 'Pearlescent', 'Bright Green'),
(214, 'Pearlescent', 'Gasoline Green'),
(215, 'Pearlescent', 'Lime Green'),
(216, 'Pearlescent', 'Midnight Blue'),
(217, 'Pearlescent', 'Galazy BLue'),
(218, 'Pearlescent', 'Dark Blue'),
(219, 'Pearlescent', 'Saxon Blue'),
(220, 'Pearlescent', 'Blue'),
(221, 'Pearlescent', 'Mariner Bue'),
(222, 'Pearlescent', 'Harbor Blue'),
(223, 'Pearlescent', 'Diamond BLue'),
(224, 'Pearlescent', 'Surf Blue'),
(225, 'Pearlescent', 'Nauical Blue'),
(226, 'Pearlescent', 'Racing BLue'),
(227, 'Pearlescent', 'Ultra BLue'),
(228, 'Pearlescent', 'Light BLue'),
(229, 'Pearlescent', 'Chocolate Brown'),
(230, 'Pearlescent', 'Bison Brown'),
(231, 'Pearlescent', 'Creek Brown'),
(232, 'Pearlescent', 'Feltzer Brown'),
(233, 'Pearlescent', 'Maple Brown'),
(234, 'Pearlescent', 'Beechwood Brown'),
(235, 'Pearlescent', 'Sienna Brown'),
(236, 'Pearlescent', 'Saddle Brown'),
(237, 'Pearlescent', 'Moss Brown'),
(238, 'Pearlescent', 'Woodbeech Brown'),
(239, 'Pearlescent', 'Straw Brown'),
(240, 'Pearlescent', 'Sandy Brown'),
(241, 'Pearlescent', 'Bleached Brown'),
(242, 'Pearlescent', 'Schafter Purple'),
(243, 'Pearlescent', 'Spinnaker Purple'),
(244, 'Pearlescent', 'Midnight Purple'),
(245, 'Pearlescent', 'Bright Purple'),
(246, 'Pearlescent', 'Cream'),
(247, 'Pearlescent', 'Ice White'),
(248, 'Pearlescent', 'Frost White');
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE `departments` (
`department_id` int(11) NOT NULL,
`department_name` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `departments`
--
INSERT INTO `departments` (`department_id`, `department_name`) VALUES
(0, 'Head Administrators'),
(1, 'Communications'),
(2, 'EMS'),
(3, 'Fire'),
(4, 'Highway'),
(5, 'Police'),
(6, 'Sheriff'),
(7, 'Civilian'),
(8, 'Admins'),
(9, 'State');
-- --------------------------------------------------------
--
-- Table structure for table `dispatchers`
--
CREATE TABLE `dispatchers` (
`identifier` varchar(255) NOT NULL,
`callsign` varchar(255) NOT NULL COMMENT 'Unit Callsign',
`status` int(11) NOT NULL COMMENT 'Unit status, 0=offline, 1=online'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `dispatchers`
--
INSERT INTO `dispatchers` (`identifier`, `callsign`, `status`) VALUES
('1A-98', '1A-98', 1);
-- --------------------------------------------------------
--
-- Table structure for table `genders`
--
CREATE TABLE `genders` (
`id` int(11) NOT NULL,
`genders` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `genders`
--
INSERT INTO `genders` (`id`, `genders`) VALUES
(0, 'Male'),
(1, 'Female');
-- --------------------------------------------------------
--
-- Table structure for table `incident_type`
--
CREATE TABLE `incident_type` (
`code_id` varchar(255) NOT NULL DEFAULT '',
`code_name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `incident_type`
--
INSERT INTO `incident_type` (`code_id`, `code_name`) VALUES
('68', 'Armed Robbery'),
('25', 'Domestic Dispute'),
('10', 'Fight in Progress'),
('49', 'Homicide'),
('55', 'Intoxicated Driver'),
('56', 'Intoxicated Person'),
('62', 'Kidnapping'),
('66', 'Reckless Driver'),
('13', 'Shots Fired'),
('16', 'Stolen Vehicle'),
('17', 'Suspicious Person'),
('11', 'Traffic Stop'),
('50', 'Vehicle Accident');
-- --------------------------------------------------------
--
-- Table structure for table `ncic_arrests`
--
CREATE TABLE `ncic_arrests` (
`id` int(11) NOT NULL,
`name_id` int(11) NOT NULL COMMENT 'Paired to ID of ncic_names table',
`arrest_reason` varchar(255) NOT NULL,
`arrest_fine` int(11) NOT NULL,
`issued_date` date DEFAULT NULL,
`issued_by` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `ncic_citations`
--
CREATE TABLE `ncic_citations` (
`id` int(11) NOT NULL,
`status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0 = Pending, 1 = Approved/Active',
`name_id` int(11) NOT NULL COMMENT 'Paired to ID of ncic_names table',
`citation_name` varchar(255) NOT NULL,
`citation_fine` int(11) NOT NULL,
`issued_date` date DEFAULT NULL,
`issued_by` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `ncic_names`
--
CREATE TABLE `ncic_names` (
`id` int(11) NOT NULL,
`submittedByName` varchar(255) NOT NULL,
`submittedById` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`dob` date NOT NULL COMMENT 'Date of birth',
`address` text NOT NULL,
`gender` varchar(255) NOT NULL,
`race` text NOT NULL,
`dl_status` set('Valid','Suspended','Expired') NOT NULL,
`hair_color` text NOT NULL,
`build` text NOT NULL,
`weapon_permit` varchar(255) NOT NULL,
`deceased` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `ncic_plates`
--
CREATE TABLE `ncic_plates` (
`id` int(11) NOT NULL,
`name_id` int(11) NOT NULL COMMENT 'Links to ncic_names db for driver information',
`veh_plate` text NOT NULL,
`veh_make` text NOT NULL,
`veh_model` text NOT NULL,
`veh_pcolor` text NOT NULL,
`veh_scolor` text NOT NULL,
`veh_insurance` set('VALID','EXPIRED') NOT NULL DEFAULT 'VALID',
`flags` set('NONE','STOLEN','WANTED','SUSPENDED REGISTRATION','UC FLAG','HPIU FLAG') NOT NULL DEFAULT 'NONE',
`veh_reg_state` text NOT NULL,
`notes` text COMMENT 'Any special flags visible to dispatchers',
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `ncic_warnings`
--
CREATE TABLE `ncic_warnings` (
`id` int(11) NOT NULL,
`status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0 = Pending, 1 = Approved/Active',
`name_id` int(11) NOT NULL COMMENT 'Paired to ID of ncic_names table',
`warning_name` varchar(255) NOT NULL,
`issued_date` date DEFAULT NULL,
`issued_by` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `ncic_warrants`
--
CREATE TABLE `ncic_warrants` (
`id` int(11) NOT NULL,
`expiration_date` date DEFAULT NULL,
`warrant_name` varchar(255) NOT NULL,
`issuing_agency` varchar(255) NOT NULL,
`name_id` int(11) NOT NULL COMMENT 'Key that pairs to the ncic_name id',
`issued_date` date DEFAULT NULL,
`status` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `ncic_weapons`
--
CREATE TABLE `ncic_weapons` (
`id` int(11) NOT NULL,
`name_id` int(11) NOT NULL COMMENT 'Links to ncic_names db for driver information',
`weapon_type` varchar(255) NOT NULL,
`weapon_name` varchar(255) NOT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `permissions`
--
CREATE TABLE `permissions` (
`perm_id` int(11) NOT NULL,
`perm_desc` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Table structure for table `statuses`
--
CREATE TABLE `statuses` (
`status_id` int(11) NOT NULL,
`status_text` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `statuses`
--
INSERT INTO `statuses` (`status_id`, `status_text`) VALUES
(1, '10-8 | Available'),
(2, '10-6 | Busy'),
(3, '10-7 | Unavailable | On Call'),
(4, '10-5 | Meal Break'),
(5, 'Signal 11'),
(6, '10-7 | Unavailable'),
(7, '10-23 | Arrived on Scene'),
(8, '10-65 | Transporting Prisoner');
-- --------------------------------------------------------
--
-- Table structure for table `streets`
--
CREATE TABLE `streets` (
`id` int(11) NOT NULL COMMENT 'Primary key for each street',
`name` text NOT NULL COMMENT 'Street name',
`county` text NOT NULL COMMENT 'County name'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
--
-- Dumping data for table `streets`
--
INSERT INTO `streets` (`id`, `name`, `county`) VALUES
(1, 'Abattoir Avenue', 'Los Santos County'),
(2, 'Abe Milton Parkway', 'Los Santos County'),
(3, 'Ace Jones Drive', 'Los Santos County'),
(4, 'Adam\'s Apple Boulevard', 'Los Santos County'),
(5, 'Aguja Street', 'Los Santos County'),
(6, 'Alta Place', 'Los Santos County'),
(7, 'Alta Street', 'Los Santos County'),
(8, 'Amarillo Vista', 'Los Santos County'),
(9, 'Amarillo Way', 'Los Santos County'),
(10, 'Americano Way', 'Los Santos County'),
(11, 'Atlee Street', 'Los Santos County'),
(12, 'Autopia Parkway', 'Los Santos County'),
(13, 'Banham Canyon Drive', 'Los Santos County'),
(14, 'Barbareno Road', 'Los Santos County'),
(15, 'Bay City Avenue', 'Los Santos County'),
(16, 'Bay City Incline', 'Los Santos County'),
(17, 'Baytree Canyon Road (City)', 'Los Santos County'),
(18, 'Boulevard Del Perro', 'Los Santos County'),
(19, 'Bridge Street', 'Los Santos County'),
(20, 'Brouge Avenue', 'Los Santos County'),
(21, 'Buccaneer Way', 'Los Santos County'),
(22, 'Buen Vino Road', 'Los Santos County'),
(23, 'Caesars Place', 'Los Santos County'),
(24, 'Calais Avenue', 'Los Santos County'),
(25, 'Capital Boulevard', 'Los Santos County'),
(26, 'Carcer Way', 'Los Santos County'),
(27, 'Carson Avenue', 'Los Santos County'),
(28, 'Chum Street', 'Los Santos County'),
(29, 'Chupacabra Street', 'Los Santos County'),
(30, 'Clinton Avenue', 'Los Santos County'),
(31, 'Cockingend Drive', 'Los Santos County'),
(32, 'Conquistador Street', 'Los Santos County'),
(33, 'Cortes Street', 'Los Santos County'),
(34, 'Cougar Avenue', 'Los Santos County'),
(35, 'Covenant Avenue', 'Los Santos County'),
(36, 'Cox Way', 'Los Santos County'),
(37, 'Crusade Road', 'Los Santos County'),
(38, 'Davis Avenue', 'Los Santos County'),
(39, 'Decker Street', 'Los Santos County'),
(40, 'Didion Drive', 'Los Santos County'),
(41, 'Dorset Drive', 'Los Santos County'),
(42, 'Dorset Place', 'Los Santos County'),
(43, 'Dry Dock Street', 'Los Santos County'),
(44, 'Dunstable Drive', 'Los Santos County'),
(45, 'Dunstable Lane', 'Los Santos County'),
(46, 'Dutch London Street', 'Los Santos County'),
(47, 'Eastbourne Way', 'Los Santos County'),
(48, 'East Galileo Avenue', 'Los Santos County'),
(49, 'East Mirror Drive', 'Los Santos County'),
(50, 'Eclipse Boulevard', 'Los Santos County'),
(51, 'Edwood Way', 'Los Santos County'),
(52, 'Elgin Avenue', 'Los Santos County'),
(53, 'El Burro Boulevard', 'Los Santos County'),
(54, 'El Rancho Boulevard', 'Los Santos County'),
(55, 'Equality Way', 'Los Santos County'),
(56, 'Exceptionalists Way', 'Los Santos County'),
(57, 'Fantastic Place', 'Los Santos County'),
(58, 'Fenwell Place', 'Los Santos County'),
(59, 'Forum Drive', 'Los Santos County'),
(60, 'Fudge Lane', 'Los Santos County'),
(61, 'Galileo Road', 'Los Santos County'),
(62, 'Gentry Lane', 'Los Santos County'),
(63, 'Ginger Street', 'Los Santos County'),
(64, 'Glory Way', 'Los Santos County'),
(65, 'Goma Street', 'Los Santos County'),
(66, 'Greenwich Parkway', 'Los Santos County'),
(67, 'Greenwich Place', 'Los Santos County'),
(68, 'Greenwich Way', 'Los Santos County'),
(69, 'Grove Street', 'Los Santos County'),
(70, 'Hanger Way', 'Los Santos County'),
(71, 'Hangman Avenue', 'Los Santos County'),
(72, 'Hardy Way', 'Los Santos County'),
(73, 'Hawick Avenue', 'Los Santos County'),
(74, 'Heritage Way', 'Los Santos County'),
(75, 'Hillcrest Avenue', 'Los Santos County'),
(76, 'Hillcrest Ridge Access Road', 'Los Santos County'),
(77, 'Imagination Court', 'Los Santos County'),
(78, 'Industry Passage', 'Los Santos County'),
(79, 'Ineseno Road', 'Los Santos County'),
(80, 'Integrity Way', 'Los Santos County'),
(81, 'Invention Court', 'Los Santos County'),
(82, 'Innocence Boulevard', 'Los Santos County'),
(83, 'Jamestown Street', 'Los Santos County'),
(84, 'Kimble Hill Drive', 'Los Santos County'),
(85, 'Kortz Drive', 'Los Santos County'),
(86, 'Labor Place', 'Los Santos County'),
(87, 'Laguna Place', 'Los Santos County'),
(88, 'Lake Vinewood Drive', 'Los Santos County'),
(89, 'Las Lagunas Boulevard', 'Los Santos County'),
(90, 'Liberty Street', 'Los Santos County'),
(91, 'Lindsay Circus', 'Los Santos County'),
(92, 'Little Bighorn Avenue', 'Los Santos County'),
(93, 'Low Power Street', 'Los Santos County'),
(94, 'Macdonald Street', 'Los Santos County'),
(95, 'Mad Wayne Thunder Drive', 'Los Santos County'),
(96, 'Magellan Avenue', 'Los Santos County'),
(97, 'Marathon Avenue', 'Los Santos County'),
(98, 'Marlowe Drive', 'Los Santos County'),
(99, 'Melanoma Street', 'Los Santos County'),
(100, 'Meteor Street', 'Los Santos County'),
(101, 'Milton Road', 'Los Santos County'),
(102, 'Mirror Park Boulevard', 'Los Santos County'),
(103, 'Mirror Place', 'Los Santos County'),
(104, 'Morningwood Boulevard', 'Los Santos County'),
(105, 'Mount Haan Drive', 'Los Santos County'),
(106, 'Mount Haan Road', 'Los Santos County'),
(107, 'Mount Vinewood Drive', 'Los Santos County'),
(108, 'Movie Star Way', 'Los Santos County'),
(109, 'Mutiny Road', 'Los Santos County'),
(110, 'New Empire Way', 'Los Santos County'),
(111, 'Nikola Avenue', 'Los Santos County'),
(112, 'Nikola Place', 'Los Santos County'),
(113, 'Normandy Drive', 'Los Santos County'),
(114, 'North Archer Avenue', 'Los Santos County'),
(115, 'North Conker Avenue', 'Los Santos County'),
(116, 'North Sheldon Avenue', 'Los Santos County'),
(117, 'North Rockford Drive', 'Los Santos County'),
(118, 'Occupation Avenue', 'Los Santos County'),
(119, 'Orchardville Avenue', 'Los Santos County'),
(120, 'Palomino Avenue', 'Los Santos County'),
(121, 'Peaceful Street', 'Los Santos County'),
(122, 'Perth Street', 'Los Santos County'),
(123, 'Picture Perfect Drive', 'Los Santos County'),
(124, 'Plaice Place', 'Los Santos County'),
(125, 'Playa Vista', 'Los Santos County'),
(126, 'Popular Street', 'Los Santos County'),
(127, 'Portola Drive', 'Los Santos County'),
(128, 'Power Street', 'Los Santos County'),
(129, 'Prosperity Street', 'Los Santos County'),
(130, 'Prosperity Street Promenade', 'Los Santos County'),
(131, 'Red Desert Avenue', 'Los Santos County'),
(132, 'Richman Street', 'Los Santos County'),
(133, 'Rockford Drive', 'Los Santos County'),
(134, 'Roy Lowenstein Boulevard', 'Los Santos County'),
(135, 'Rub Street', 'Los Santos County'),
(136, 'Sam Austin Drive', 'Los Santos County'),
(137, 'San Andreas Avenue', 'Los Santos County'),
(138, 'Sandcastle Way', 'Los Santos County'),
(139, 'San Vitus Boulevard', 'Los Santos County'),
(140, 'Senora Road', 'Los Santos County'),
(141, 'Shank Street', 'Los Santos County'),
(142, 'Signal Street', 'Los Santos County'),
(143, 'Sinner Street', 'Los Santos County'),
(144, 'Sinners Passage', 'Los Santos County'),
(145, 'South Arsenal Street', 'Los Santos County'),
(146, 'South Boulevard Del Perro', 'Los Santos County'),
(147, 'South Mo Milton Drive', 'Los Santos County'),
(148, 'South Rockford Drive', 'Los Santos County'),
(149, 'South Shambles Street', 'Los Santos County'),
(150, 'Spanish Avenue', 'Los Santos County'),
(151, 'Steele Way', 'Los Santos County'),
(152, 'Strangeways Drive', 'Los Santos County'),
(153, 'Strawberry Avenue', 'Los Santos County'),
(154, 'Supply Street', 'Los Santos County'),
(155, 'Sustancia Road', 'Los Santos County'),
(156, 'Swiss Street', 'Los Santos County'),
(157, 'Tackle Street', 'Los Santos County'),
(158, 'Tangerine Street', 'Los Santos County'),
(159, 'Tongva Drive', 'Los Santos County'),
(160, 'Tower Way', 'Los Santos County'),
(161, 'Tug Street', 'Los Santos County'),
(162, 'Utopia Gardens', 'Los Santos County'),
(163, 'Vespucci Boulevard', 'Los Santos County'),
(164, 'Vinewood Boulevard', 'Los Santos County'),
(165, 'Vinewood Park Drive', 'Los Santos County'),
(166, 'Vitus Street', 'Los Santos County'),
(167, 'Voodoo Place', 'Los Santos County'),
(168, 'West Eclipse Boulevard', 'Los Santos County'),
(169, 'West Galileo Avenue', 'Los Santos County'),
(170, 'West Mirror Drive', 'Los Santos County'),
(171, 'Whispymound Drive', 'Los Santos County'),
(172, 'Wild Oats Drive', 'Los Santos County'),
(173, 'York Street', 'Los Santos County'),
(174, 'Zancudo Barranca', 'LOS Santos'),
(175, 'Algonquin Boulevard', 'Blaine County'),
(176, 'Alhambra Drive', 'Blaine County'),
(177, 'Armadillo Avenue', 'Blaine County'),
(178, 'Baytree Canyon Road (County)', 'Blaine County'),
(179, 'Calafia Road', 'Blaine County'),
(180, 'Cascabel Avenue', 'Blaine County'),
(181, 'Cassidy Trail', 'Blaine County'),
(182, 'Cat-Claw Avenue', 'Blaine County'),
(183, 'Chianski Passage', 'Blaine County'),
(184, 'Cholla Road', 'Blaine County'),
(185, 'Cholla Springs Avenue', 'Blaine County'),
(186, 'Duluoz Avenue', 'Blaine County'),
(187, 'East Joshua Road', 'Blaine County'),
(188, 'Fort Zancudo Approach Road', 'Blaine County'),
(189, 'Galileo Road', 'Blaine County'),
(190, 'Grapeseed Avenue', 'Blaine County'),
(191, 'Grapeseed Main Street', 'Blaine County'),
(192, 'Joad Lane', 'Blaine County'),
(193, 'Joshua Road', 'Blaine County'),
(194, 'Lesbos Lane', 'Blaine County'),
(195, 'Lolita Avenue', 'Blaine County'),
(196, 'Marina Drive', 'Blaine County'),
(197, 'Meringue Lane', 'Blaine County'),
(198, 'Mount Haan Road', 'Blaine County'),
(199, 'Mountain View Drive', 'Blaine County'),
(200, 'Niland Avenue', 'Blaine County'),
(201, 'North Calafia Way', 'Blaine County'),
(202, 'Nowhere Road', 'Blaine County'),
(203, 'O\'Neil Way', 'Blaine County'),
(204, 'Paleto Boulevard', 'Blaine County'),
(205, 'Panorama Drive', 'Blaine County'),
(206, 'Procopio Drive', 'Blaine County'),
(207, 'Procopio Promenade', 'Blaine County'),
(208, 'Pyrite Avenue', 'Blaine County'),
(209, 'Raton Pass', 'Blaine County'),
(210, 'Route 68 Approach', 'Blaine County'),
(211, 'Seaview Road', 'Blaine County'),
(212, 'Senora Way', 'Blaine County'),
(213, 'Smoke Tree Road', 'Blaine County'),
(214, 'Union Road', 'Blaine County'),
(215, 'Zancudo Avenue', 'Blaine County'),
(216, 'Zancudo Road', 'Blaine County'),
(217, 'Zancudo Trail', 'Blaine County'),
(218, 'Interstate 1', 'State'),
(219, 'Interstate 2', 'State'),
(220, 'Interstate 4', 'State'),
(221, 'Interstate 5', 'State'),
(222, 'Route 1', 'State'),
(223, 'Route 11', 'State'),
(224, 'Route 13', 'State'),
(225, 'Route 14', 'State'),
(226, 'Route 15', 'State'),
(227, 'Route 16', 'State'),
(228, 'Route 17', 'State'),
(229, 'Route 18', 'State'),
(230, 'Route 19', 'State'),
(231, 'Route 20', 'State'),
(232, 'Route 22', 'State'),
(233, 'Route 23', 'State'),
(234, 'Route 68', 'State\r\n ');
-- --------------------------------------------------------
--
-- Table structure for table `tones`
--
CREATE TABLE `tones` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`active` set('0','1') NOT NULL DEFAULT '0' COMMENT '0 = inactive, 1 = active'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Tones table. DO NOT ADD ROWS TO THIS TABLE' ROW_FORMAT=COMPACT;
--
-- Dumping data for table `tones`
--
INSERT INTO `tones` (`id`, `name`, `active`) VALUES
(0, 'priority', '0'),
(1, 'recurring', '0'),
(2, 'panic', '0');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` INT(11) NOT NULL,
`name` TEXT NOT NULL,
`email` VARCHAR(255) NOT NULL,
`password` TEXT NULL,
`identifier` VARCHAR(255) NULL DEFAULT NULL,
`password_reset` INT(1) NOT NULL DEFAULT '0' COMMENT '1 means password reset required. 0 means it\'s not.',
`approved` INT(1) NOT NULL DEFAULT '0' COMMENT 'Three main statuses: 0 means pending approval. 1 means has access. 2 means suspended',