-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp5112-database.sql
More file actions
152 lines (132 loc) · 4.65 KB
/
Copy pathhttp5112-database.sql
File metadata and controls
152 lines (132 loc) · 4.65 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
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
151
152
-- phpMyAdmin SQL Dump
-- version 5.1.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 10, 2023 at 05:08 PM
-- Server version: 5.7.24
-- PHP Version: 8.1.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `http5112-database`
--
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE `employees` (
`id` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`first_name` varchar(255) NOT NULL,
`sin` int(10) NOT NULL,
`phone` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`id`, `last_name`, `first_name`, `sin`, `phone`, `role`) VALUES
('110', 'Maracle', 'James', 123456789, '4165551234', 'Manager'),
('111', 'Marquis', 'Henry', 987654321, '4165551235', 'Sales'),
('112', 'Kaur', 'Jas', 456123789, '4165551236', 'Sales'),
('113', 'Neema', 'Hank', 654987321, '4165551237', 'Assistant'),
('114', 'Said', 'Farud', 258741369, '4165551238', 'Sales'),
('115', 'Fitzpatrick', 'Henry', 753951842, '4165551239', 'Stock');
-- --------------------------------------------------------
--
-- Table structure for table `sales`
--
CREATE TABLE `sales` (
`id` int(255) NOT NULL,
`date` date NOT NULL,
`item` varchar(255) NOT NULL,
`employee` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sales`
--
INSERT INTO `sales` (`id`, `date`, `item`, `employee`) VALUES
(21000, '2021-06-09', '1002', 111),
(21001, '2021-06-09', '1003', 111),
(21002, '2021-06-09', '1004', 111),
(21003, '2021-06-10', '1005', 112),
(21004, '2021-06-10', '1011', 114),
(21005, '2021-06-11', '1012', 111),
(21006, '2021-06-11', '1002', 111),
(21007, '2021-06-12', '1010', 114),
(21008, '2021-06-12', '1009', 114),
(21009, '2021-06-12', '1005', 111),
(21010, '2021-06-12', '1017', 114),
(21011, '2021-06-12', '1018', 114),
(21012, '2021-06-12', '1014', 112),
(21013, '2021-06-13', '1003', 112),
(21014, '2021-06-13', '1004', 112),
(21015, '2021-06-13', '1005', 112),
(21016, '2021-06-13', '1002', 111),
(21017, '2021-06-14', '1019', 114),
(21018, '2021-06-14', '1020', 112),
(21019, '2021-06-15', '1014', 111),
(21020, '2021-06-15', '1011', 114),
(21021, '2021-06-15', '1004', 114),
(21022, '2021-06-15', '1009', 112),
(21023, '2021-06-16', '1019', 111),
(21024, '2021-06-16', '1018', 111),
(21025, '2021-06-16', '1014', 114),
(21026, '2021-06-16', '1010', 111),
(21027, '2021-06-17', '1003', 114),
(21028, '2021-06-17', '1005', 114),
(21029, '2021-06-17', '1014', 112),
(21030, '2021-06-17', '1011', 112),
(21031, '2021-06-18', '1020', 114),
(21032, '2021-06-18', '1004', 111),
(21033, '2021-06-18', '1006', 114),
(21034, '2021-06-19', '1014', 112),
(21035, '2021-06-19', '1011', 112),
(21036, '2021-06-19', '1020', 111),
(21037, '2021-06-20', '1007', 114),
(21038, '2021-06-20', '1117', 114),
(21039, '2021-06-20', '1020', 112),
(21040, '2021-06-20', '1008', 111);
-- --------------------------------------------------------
--
-- Table structure for table `stock_items`
--
CREATE TABLE `stock_items` (
`id` int(255) NOT NULL,
`item` varchar(255) NOT NULL,
`price` int(255) NOT NULL,
`inventory` varchar(255) NOT NULL,
`category` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `stock_items`
--
INSERT INTO `stock_items` (`id`, `item`, `price`, `inventory`, `category`) VALUES
(1003, 'Water dish', 87, '11', 'Feline '),
(1004, 'Fish bowl starter kit', 46, '22', 'Piscine'),
(1005, 'Luxury cat bed', 89, '0', 'Feline '),
(1006, 'Just as good dog bed', 74, '14', 'Canine'),
(1007, 'Deluxe Aquarium', 12, '10', 'Piscine'),
(1008, 'Terrarium', 231, '24', 'Murine'),
(1009, 'Cat stand', 55, '6', 'Feline '),
(1010, 'Premium Terrarium', 524, '2', 'Murine'),
(1011, 'Water dish', 10, '88', 'Canine'),
(1012, 'Giant clam aerator', 15, '12', 'Piscine'),
(1013, 'Small cage', 20, '26', 'Murine'),
(1014, 'Small chew toy', 6, '123', 'Canine'),
(1015, 'Collar', 12, '65', 'Feline '),
(1016, 'Collar', 15, '87', 'Canine'),
(1017, 'Air pump', 18, '36', 'Piscine'),
(1018, 'Hamster tubes', 65, '12', 'Murine'),
(1019, 'Large cage', 30, '11', 'Murine'),
(1020, 'Leash', 18, '88', 'Canine');
COMMIT;
/*!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 */;