-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqueires.sql
94 lines (84 loc) · 1.64 KB
/
queires.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
CREATE TABLE `laws` (
`id` int(11),
`number` varchar(64),
`law` text,
`lawyer` int(11),
PRIMARY KEY (`id`)
);
CREATE TABLE `polices` (
`id` int(11),
`designation` varchar(255),
`station` int(8),
PRIMARY KEY (`id`)
);
CREATE TABLE `complaints` (
`id` int(11),
`nic` varchar(100),
`full_name` varchar(255),
`mobile` varchar(10),
`address` varchar(255),
`complaint` text,
`file` text,
`people` int(11),
`created_on` datetime,
`status` int(1),
PRIMARY KEY (`id`)
);
CREATE TABLE `lawyers` (
`id` int(11),
`designation` varchar(255),
PRIMARY KEY (`id`)
);
CREATE TABLE `harassments` (
`id` int(11),
`description` text,
`created_on` datetime,
`people` int(11),
PRIMARY KEY (`id`)
);
CREATE TABLE `users` (
`id` int(11),
`nic` varchar(100),
`first_name` varchar(100),
`last_name` varchar(100),
`email` varchar(100),
`password` varchar(255),
`mobile` varchar(10),
`created_on` datetime,
`level` int(1),
`status` int(1),
PRIMARY KEY (`nic`)
);
CREATE TABLE `stations` (
`id` int(11),
`name` varchar(100),
`address` varchar(255),
PRIMARY KEY (`id`)
);
CREATE TABLE `peoples` (
`id` int(11),
`address` varchar(255),
PRIMARY KEY (`id`)
);
CREATE TABLE `wanted_list` (
`id` int(11),
`first_name` varchar(100),
`last_name` varchar(100),
`description` text,
`image` text,
`police` int(11),
`created_on` datetime,
`status` int(1),
PRIMARY KEY (`id`)
);
CREATE TABLE `suspects` (
`id` int(11),
`first_name` varchar(100),
`last_name` varchar(100),
`description` text,
`image` text,
`police` int(8),
`created_on` datetime,
`status` int(1),
PRIMARY KEY (`id`)
);