-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.sql
More file actions
71 lines (57 loc) · 1.99 KB
/
checkout.sql
File metadata and controls
71 lines (57 loc) · 1.99 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
-- phpMyAdmin SQL Dump
-- version 4.1.0-beta1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 19, 2014 at 08:58 AM
-- Server version: 5.5.35-0ubuntu0.12.04.2
-- PHP Version: 5.3.10-1ubuntu3.10
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: `checkout`
--
-- --------------------------------------------------------
--
-- Table structure for table `computer`
--
CREATE TABLE IF NOT EXISTS `computer` (
`asset` int(11) NOT NULL,
`type` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`asset`),
UNIQUE KEY `asset` (`asset`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `reservation`
--
CREATE TABLE IF NOT EXISTS `reservation` (
`requestNumber` int(10) unsigned NOT NULL AUTO_INCREMENT,
`teacher_name` varchar(255) NOT NULL,
`teacher_email` varchar(255) NOT NULL,
`location` varchar(255) NOT NULL,
`numberComputers` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`requestNumber`),
UNIQUE KEY `requestNumber` (`requestNumber`),
KEY `requestNumber_2` (`requestNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=151 ;
-- --------------------------------------------------------
--
-- Table structure for table `reserved`
--
CREATE TABLE IF NOT EXISTS `reserved` (
`day` date NOT NULL,
`asset` int(10) NOT NULL,
`block1` varchar(255) NOT NULL,
`block2` varchar(255) NOT NULL,
`block3` varchar(255) NOT NULL,
`block4` varchar(255) NOT NULL,
UNIQUE KEY `day` (`day`,`asset`)
) 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 */;