-
Notifications
You must be signed in to change notification settings - Fork 1
/
godblesspos.sql
150 lines (120 loc) · 4.55 KB
/
godblesspos.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 22, 2014 at 04:05 PM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
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: `godblesspos`
--
-- --------------------------------------------------------
--
-- Table structure for table `account`
--
CREATE TABLE IF NOT EXISTS `account` (
`emp_ID` varchar(20) DEFAULT NULL,
`emp_uNAme` mediumtext,
`emp_Pass` mediumtext
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `account`
--
INSERT INTO `account` (`emp_ID`, `emp_uNAme`, `emp_Pass`) VALUES
('L042014OP', 'Hÿo®oG2´WõùŠ„c', '‚w\rˆÀ©æ¢¯´B+'),
('L042014OP', 'Hÿo®oG2´WõùŠ„c', '‚w\rˆÀ©æ¢¯´B+'),
('M092014KG', 'ŠñctZê®o½,ÄxOê', 'gXEÈuh*‰/‚y—*™É'),
('2014-G0904CT', 'xºÎÛ7D÷H#K¬¤Ð', '†V®æЋUúUÿÃG°J');
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE IF NOT EXISTS `category` (
`cat_ID` int(11) NOT NULL AUTO_INCREMENT,
`cat_name` varchar(30) DEFAULT NULL,
PRIMARY KEY (`cat_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`cat_ID`, `cat_name`) VALUES
(1, 'Food and Beverage'),
(2, 'Can goods'),
(3, 'Appliances'),
(4, 'Dairy Products');
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE IF NOT EXISTS `employees` (
`emp_id` varchar(20) NOT NULL,
`emp_Fname` varchar(20) DEFAULT NULL,
`emp_Mname` varchar(20) DEFAULT NULL,
`emp_Lname` varchar(20) DEFAULT NULL,
`emp_Bdate` varchar(20) DEFAULT NULL,
`emp_DateHire` varchar(20) DEFAULT NULL,
`emp_Address` varchar(100) DEFAULT NULL,
`emp_PosID` int(11) DEFAULT NULL,
`emp_pic` varchar(20) DEFAULT NULL,
`emp_Gender` varchar(6) DEFAULT NULL,
PRIMARY KEY (`emp_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`emp_id`, `emp_Fname`, `emp_Mname`, `emp_Lname`, `emp_Bdate`, `emp_DateHire`, `emp_Address`, `emp_PosID`, `emp_pic`, `emp_Gender`) VALUES
('2014-G0904CT', 'CRISTINE', 'TUALLA', 'GAYAS', '9/4/1994', '3/21/2014', 'JARO', 1, '2014-G0904CT.jpg', 'Female'),
('L042014OP', 'OLIVER', 'PELENIO', 'LACABE', '4/25/1991', '3/21/2014', 'SAN MIGUEL', 1, 'L042014OP.jpg', 'Male'),
('M092014KG', 'KIMBERLY', 'GOBANGCO', 'MORENO', '9/6/1991', '3/21/2014', 'DULAG', 2, 'M092014KG.jpg', 'Female');
-- --------------------------------------------------------
--
-- Table structure for table `emppos`
--
CREATE TABLE IF NOT EXISTS `emppos` (
`PosID` int(11) NOT NULL AUTO_INCREMENT,
`PosName` varchar(20) DEFAULT NULL,
PRIMARY KEY (`PosID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `emppos`
--
INSERT INTO `emppos` (`PosID`, `PosName`) VALUES
(1, 'Administrator'),
(2, 'Cashier');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE IF NOT EXISTS `products` (
`PID` int(11) NOT NULL AUTO_INCREMENT,
`prod_code` varchar(20) DEFAULT NULL,
`prod_cat` varchar(30) DEFAULT NULL,
`prod_name` varchar(30) DEFAULT NULL,
`prod_price` decimal(10,2) DEFAULT NULL,
`prod_stock` int(11) DEFAULT NULL,
PRIMARY KEY (`PID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`PID`, `prod_code`, `prod_cat`, `prod_name`, `prod_price`, `prod_stock`) VALUES
(1, '6666666666666', '1', 'Red Horse', 65.50, 100),
(2, '3333333333333', '3', 'Karaoke', 1999.95, 30),
(3, '7777777777777', '2', 'Youngs Town Sardines', 18.00, 200),
(4, '4444444444444', '2', 'Lucky 777', 13.00, 50),
(5, '2222222222222', '3', 'DVD', 500.00, 20),
(6, '5555555555555', '1', 'Lucky Me Instant Noodles', 7.00, 200),
(7, '1111111111111', '2', 'Argentina Corned Beef', 20.95, 40),
(8, '8888888888888', '4', 'Eden Cheese', 50.50, 200),
(9, '2625462546235', '3', 'TV', 1000.00, 5),
(10, '6725426472424', '4', 'Bear Brand', 20.00, 120);
/*!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 */;