-
Notifications
You must be signed in to change notification settings - Fork 0
/
bloodforlife.sql
121 lines (96 loc) · 3.06 KB
/
bloodforlife.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
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 16, 2017 at 02:20 AM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
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 utf8mb4 */;
--
-- Database: `bloodforlife`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`username` varchar(30) NOT NULL,
`location` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `appointments`
--
CREATE TABLE `appointments` (
`date` varchar(30) NOT NULL,
`time` varchar(30) NOT NULL,
`location` varchar(50) NOT NULL,
`username` varchar(50) NOT NULL,
`status` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `appointments`
--
INSERT INTO `appointments` (`date`, `time`, `location`, `username`, `status`) VALUES
('2017-03-16', '12:59', 'lappeenranta', 'munrat', 'Available');
-- --------------------------------------------------------
--
-- Table structure for table `bloodbarometer`
--
CREATE TABLE `bloodbarometer` (
`bloodType` varchar(10) NOT NULL,
`amount` int(11) NOT NULL,
`status` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `bloodbarometer`
--
INSERT INTO `bloodbarometer` (`bloodType`, `amount`, `status`) VALUES
('O+', 23, 'low'),
('O-', 56, 'medium'),
('A+', 89, 'High'),
('A-', 76, 'High'),
('B+', 12, 'low'),
('B-', 30, 'medium'),
('AB+', 69, 'medium'),
('AB-', 95, 'High');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`firstName` varchar(50) NOT NULL,
`lastName` varchar(50) NOT NULL,
`gender` varchar(10) NOT NULL,
`bloodGroup` varchar(10) NOT NULL,
`phoneNumber` varchar(20) NOT NULL,
`email` varchar(50) NOT NULL,
`zipCode` varchar(10) NOT NULL,
`userName` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL,
`anonymous` varchar(10) NOT NULL,
`userType` varchar(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`firstName`, `lastName`, `gender`, `bloodGroup`, `phoneNumber`, `email`, `zipCode`, `userName`, `password`, `anonymous`, `userType`) VALUES
('', '', '', '', '', '', '', 'admin', 'admin', '', 'admin'),
('Ahmed Afif', 'Monrat', 'male', 'B+', '652023343', 'ahmedmonrat@gmail.com', '54500', 'munrat', '1234', 'yes', 'user');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD UNIQUE KEY `userName` (`userName`);
/*!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 */;