-
Notifications
You must be signed in to change notification settings - Fork 1
/
tshirt.sql
123 lines (98 loc) · 3.66 KB
/
tshirt.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
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 14, 2012 at 05:02 PM
-- Server version: 5.5.24-log
-- PHP Version: 5.2.9-2
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: `ftmk_tshirt`
--
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE IF NOT EXISTS `orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`no_matric` varchar(30) NOT NULL,
`contact_no` varchar(20) NOT NULL,
`email` varchar(100) NOT NULL,
`size_id` int(11) NOT NULL,
`status_id` int(11) NOT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `name`, `no_matric`, `contact_no`, `email`, `size_id`, `status_id`, `created`, `modified`) VALUES
(1, 'Hazwan', '1234567', '0123456789', '[email protected]', 5, 1, '2012-01-02 17:42:54', '2012-01-02 17:42:54');
-- --------------------------------------------------------
--
-- Table structure for table `sizes`
--
CREATE TABLE IF NOT EXISTS `sizes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`size_name` varchar(10) NOT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `sizes`
--
INSERT INTO `sizes` (`id`, `size_name`, `created`, `modified`) VALUES
(1, 'S', '2012-01-02 16:56:36', '2012-01-02 16:56:36'),
(2, 'M', '2012-01-02 16:56:40', '2012-01-02 16:56:40'),
(3, 'L', '2012-01-02 16:56:44', '2012-01-02 16:56:44'),
(4, 'XL', '2012-01-02 16:56:48', '2012-01-02 16:56:48'),
(5, 'XXL', '2012-01-02 16:56:52', '2012-01-02 16:56:52');
-- --------------------------------------------------------
--
-- Table structure for table `statuses`
--
CREATE TABLE IF NOT EXISTS `statuses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status_name` varchar(50) NOT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `statuses`
--
INSERT INTO `statuses` (`id`, `status_name`, `created`, `modified`) VALUES
(1, 'Belum Bayar', '2012-01-02 16:57:33', '2012-01-02 16:57:33'),
(2, 'Dah Bayar', '2012-01-02 16:57:38', '2012-01-02 16:57:38'),
(3, 'Belum dapat', '2012-01-02 16:57:48', '2012-01-02 16:57:48'),
(4, 'Dah dapat', '2012-01-02 16:57:52', '2012-01-02 16:57:52');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(25) NOT NULL,
`password` varchar(50) NOT NULL,
`first_name` varchar(50) NOT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `first_name`, `created`, `modified`) VALUES
(1, 'admin', '9264f90db5df1c6510934b67ffde283a74362bc5', 'Admin', '0000-00-00 00:00:00', '0000-00-00 00:00:00');
/*!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 */;