-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsurveillance_db.sql
More file actions
119 lines (93 loc) · 2.97 KB
/
Copy pathsurveillance_db.sql
File metadata and controls
119 lines (93 loc) · 2.97 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
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 01, 2015 at 01:31 PM
-- Server version: 5.5.46-0ubuntu0.14.04.2
-- PHP Version: 5.5.30-1+deb.sury.org~trusty+1
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 utf8 */;
--
-- Database: `surveillance_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `access_entries`
--
CREATE TABLE IF NOT EXISTS `access_entries` (
`access_id` int(11) NOT NULL AUTO_INCREMENT,
`subject_id` int(11) NOT NULL,
`access_time` text NOT NULL,
`confidence` double NOT NULL,
`origin_x` int(11) NOT NULL,
`origin_y` int(11) NOT NULL,
`height` int(11) NOT NULL,
`width` int(11) NOT NULL,
PRIMARY KEY (`access_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `authentication_table`
--
CREATE TABLE IF NOT EXISTS `authentication_table` (
`room_id` int(11) NOT NULL,
`subject_id` int(11) NOT NULL,
PRIMARY KEY (`room_id`,`subject_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `authentication_table`
--
INSERT INTO `authentication_table` (`room_id`, `subject_id`) VALUES
(1, 1),
(1, 3);
-- --------------------------------------------------------
--
-- Table structure for table `motion_entries`
--
CREATE TABLE IF NOT EXISTS `motion_entries` (
`event_id` int(11) NOT NULL AUTO_INCREMENT,
`room_id` int(11) NOT NULL,
`occupied_time` text NOT NULL,
PRIMARY KEY (`event_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `rooms`
--
CREATE TABLE IF NOT EXISTS `rooms` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`room_id` int(11) NOT NULL,
`floor_number` int(11) NOT NULL,
`building_no` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `room_id` (`room_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `rooms`
--
INSERT INTO `rooms` (`id`, `room_id`, `floor_number`, `building_no`) VALUES
(1, 100, 5, 2);
-- --------------------------------------------------------
--
-- Table structure for table `subjects`
--
CREATE TABLE IF NOT EXISTS `subjects` (
`subject_id` int(11) NOT NULL,
`subject_name` text NOT NULL,
PRIMARY KEY (`subject_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `subjects`
--
INSERT INTO `subjects` (`subject_id`, `subject_name`) VALUES
(1, 'Saleh'),
(2, 'Tawhid'),
(3, 'Sajid');
/*!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 */;