forked from dilanWijerathne/phpmyreservation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpmyreservation.sql
83 lines (67 loc) · 2.76 KB
/
phpmyreservation.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
-- phpMyAdmin SQL Dump
-- version 3.4.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 17, 2012 at 08:29 PM
-- Server version: 5.1.62
-- PHP Version: 5.3.2-1ubuntu4.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: `phpmyreservation`
--
-- --------------------------------------------------------
--
-- Table structure for table `phpmyreservation_configuration`
--
CREATE TABLE IF NOT EXISTS `phpmyreservation_configuration` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`price` float NOT NULL,
`max_reservations` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `phpmyreservation_configuration`
--
INSERT INTO `phpmyreservation_configuration` (`id`, `price`, `max_reservations`) VALUES
(1, 2, 8);
-- --------------------------------------------------------
--
-- Table structure for table `phpmyreservation_reservations`
--
CREATE TABLE IF NOT EXISTS `phpmyreservation_reservations` (
`reservation_id` int(10) NOT NULL AUTO_INCREMENT,
`reservation_made_time` datetime NOT NULL,
`reservation_year` smallint(4) NOT NULL,
`reservation_week` tinyint(2) NOT NULL,
`reservation_day` tinyint(1) NOT NULL,
`reservation_time` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`reservation_price` float NOT NULL,
`reservation_user_id` int(10) NOT NULL,
`reservation_user_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`reservation_user_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`reservation_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `phpmyreservation_users`
--
CREATE TABLE IF NOT EXISTS `phpmyreservation_users` (
`user_id` int(10) NOT NULL AUTO_INCREMENT,
`user_is_admin` tinyint(1) NOT NULL,
`user_active` tinyint(1) NOT NULL,
`user_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`user_phone` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`user_password` varchar(1000) COLLATE utf8_unicode_ci NOT NULL,
`user_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`user_reservation_reminder` tinyint(1) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
/*!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 */;