-
Notifications
You must be signed in to change notification settings - Fork 0
/
DatabaseModel.sql
127 lines (103 loc) · 3.87 KB
/
DatabaseModel.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
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 10, 2016 at 03:03 PM
-- Server version: 5.6.20
-- PHP Version: 5.5.15
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: `Pravartate`
--
-- --------------------------------------------------------
--
-- Table structure for table `AttendanceOLTP`
--
CREATE TABLE IF NOT EXISTS `AttendanceOLTP` (
`time` datetime NOT NULL,
`adminPhoneNumber` varchar(10) NOT NULL,
`textMessage` varchar(100) NOT NULL,
`schoolid` int(11) NOT NULL,
`adminid` int(11) NOT NULL,
`adminName` varchar(100) NOT NULL,
`schoolTotal` int(11) NOT NULL,
`schoolName` varchar(1000) NOT NULL,
`mandal` varchar(1000) NOT NULL,
`ItoVAttendance` int(11) NOT NULL,
`VItoVIIIAttendance` int(11) NOT NULL,
`IXtoXAttendance` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `Kitchen`
--
CREATE TABLE IF NOT EXISTS `Kitchen` (
`id` int(11) NOT NULL,
`kitchenCode` varchar(1000) NOT NULL,
`kitchenName` varchar(1000) NOT NULL,
`area` varchar(1000) NOT NULL,
`managerid` int(11) NOT NULL,
`district` varchar(1000) NOT NULL,
`city` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `Login`
--
CREATE TABLE IF NOT EXISTS `Login` (
`loginId` int(11) NOT NULL,
`group` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(3000) NOT NULL,
`createdOn` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `Login` (`loginId`, `group`, `email`, `password`, `createdOn`) VALUES ('1', 'admin', '[email protected]', MD5('root'), '2016-09-10 17:30:44');
INSERT INTO `Login` (`loginId`, `group`, `email`, `password`, `createdOn`) VALUES ('2', 'manager', '[email protected]', MD5('root'), '2016-09-10 17:31:44');
INSERT INTO `Login` (`loginId`, `group`, `email`, `password`, `createdOn`) VALUES ('3', 'manager', '[email protected]', MD5('root'), '2016-09-10 17:32:45');
INSERT INTO `Login` (`loginId`, `group`, `email`, `password`, `createdOn`) VALUES ('4', 'manager', '[email protected]', MD5('root'), '2016-09-10 17:33:46');
-- --------------------------------------------------------
--
-- Table structure for table `Manager`
--
CREATE TABLE IF NOT EXISTS `Manager` (
`managerid` int(11) NOT NULL,
`managerName` varchar(1000) NOT NULL,
`managerPhone` varchar(10) NOT NULL,
`schoolid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `School`
--
CREATE TABLE IF NOT EXISTS `School` (
`schoolid` int(11) NOT NULL,
`district` varchar(50) NOT NULL,
`schoolName` varchar(400) NOT NULL,
`mandal` varchar(100) NOT NULL,
`ItoVTotal` int(11) NOT NULL,
`VItoVIIITotal` int(11) NOT NULL,
`IXtoXTotal` int(11) NOT NULL,
`allTotal` int(11) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `SchoolAdmins`
--
CREATE TABLE IF NOT EXISTS `SchoolAdmins` (
`schoolid` int(11) NOT NULL,
`adminid` int(11) NOT NULL,
`adminName` varchar(100) NOT NULL,
`adminPhoneNumber` varchar(10) NOT NULL,
`adminDesignation` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!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 */;