-
Notifications
You must be signed in to change notification settings - Fork 0
/
AReporter_db.sql
133 lines (112 loc) · 4.89 KB
/
AReporter_db.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
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 02, 2020 at 02:28 PM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.3.7
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: `AReporter_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `incidents`
--
CREATE TABLE `incidents` (
`id` int(10) NOT NULL,
`victimname` varchar(30) NOT NULL,
`victimaddress` varchar(30) NOT NULL,
`victimsex` varchar(15) NOT NULL,
`reportername` varchar(30) NOT NULL,
`reportercontact` int(10) UNSIGNED ZEROFILL NOT NULL,
`location` varchar(30) NOT NULL,
`date` varchar(15) NOT NULL,
`time` time NOT NULL,
`description` varchar(500) NOT NULL,
`witness` varchar(15) NOT NULL,
`injury` varchar(15) NOT NULL,
`treatment` varchar(15) NOT NULL,
`police` varchar(15) NOT NULL,
`certify` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `incidents`
--
INSERT INTO `incidents` (`id`, `victimname`, `victimaddress`, `victimsex`, `reportername`, `reportercontact`, `location`, `date`, `time`, `description`, `witness`, `injury`, `treatment`, `police`, `certify`) VALUES
(22, 'Ethan', 'Bweyogerere', 'Male', 'Apple', 0789034567, 'Kampala', '2020-05-12', '02:00:00', 'There was some theft', 'Yes', 'No', 'No', 'Yes', 'on'),
(24, 'Ethan', 'Bweyogerere', 'Male', 'Apple', 0789034567, 'Kampala', '2020-05-12', '02:00:00', 'There was some theft', 'Yes', 'No', 'No', 'Yes', 'on'),
(27, 'Ethan', 'Bweyogerere', 'Male', 'Apple', 0789034567, 'Kampala', '2020-05-12', '02:00:00', 'There was some theft', 'Yes', 'No', 'No', 'Yes', 'on'),
(28, 'Ethan', 'Bweyogerere', 'Male', 'Apple', 0789034567, 'Kampala', '2020-05-12', '02:00:00', 'There was some theft', 'Yes', 'No', 'No', 'Yes', 'on'),
(29, 'Ethan', 'Bweyogerere', 'Male', 'Apple', 0789034567, 'Kampala', '2020-05-12', '02:00:00', 'There was some theft', 'Yes', 'No', 'No', 'Yes', 'on'),
(30, 'mark', 'kibuli', 'Male', 'Don', 0759051203, 'kibuli', '2020-02-13', '00:00:00', 'the person was knocked by a car', 'Yes', 'Yes', 'Yes', 'No', 'on'),
(31, 'Joel', 'Bweyos', 'Male', 'Apple', 0903393033, 'Kenya', '0344-12-31', '14:23:00', 'He lies alot', 'No', 'Yes', 'No', 'Yes', 'on'),
(32, 'Achie', 'Mutungo, Zone 8', 'Female', 'Ethan', 0705467839, 'Bweyos', '2020-06-24', '12:23:00', 'Moving forward and making a change', 'Yes', 'No', 'No', 'No', 'on'),
(33, 'Acio', 'Kenya', 'Female', 'Pesay', 0000000123, 'Bweyos', '2020-08-02', '23:22:00', 'hhh', 'No', 'Yes', 'No', 'Yes', 'on'),
(34, 'Peace', 'Mutungo, Zone 8', 'Female', 'Peace', 0000000012, 'kibuli', '2020-06-24', '12:23:00', 'ajjs', 'No', 'Yes', 'No', 'Yes', 'on'),
(35, 'Pesay', 'Kla', 'Female', 'Peace', 0000000067, 'Kampala', '07/01/2020', '19:08:00', 'yhuu', 'Yes', 'No', 'Yes', 'Yes', 'on'),
(36, 'Pesay', 'Kla', 'Female', 'Peace', 0000000078, 'Kampala', '07/01/2020', '19:07:00', 'Apple', 'No', 'Yes', 'No', 'Yes', 'on');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(10) NOT NULL,
`username` text NOT NULL,
`email` varchar(50) NOT NULL,
`contact` int(15) NOT NULL,
`password` varchar(50) NOT NULL,
`admin` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `username`, `email`, `contact`, `password`, `admin`) VALUES
(20, 'Apple', '[email protected]', 678, 'apple', 0),
(21, 'Ethan', '[email protected]', 1234, 'ethan', 0),
(22, 'Ethan', '[email protected]', 234, 'asdf', 0),
(23, 'Francis', '[email protected]', 90890, 'frank', 0),
(24, 'apple7', '[email protected]', 89, '123', 0),
(25, 'Donald', '[email protected]', 789123456, 'don', 0),
(26, 'Acio', '[email protected]', 123, 'acio', 0),
(27, 'Deyo', '[email protected]', 2147483647, 'deo', 1),
(28, 'Joelo', '[email protected]', 12345, 'joelo', 0),
(29, 'Kiry', '[email protected]', 123, 'kiry', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `incidents`
--
ALTER TABLE `incidents`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `incidents`
--
ALTER TABLE `incidents`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;