-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.sql
More file actions
45 lines (34 loc) · 1.18 KB
/
Copy pathschema.sql
File metadata and controls
45 lines (34 loc) · 1.18 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
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.6.35)
# Database: bamazon
# Generation Time: 2018-02-08 00:39:43 +0000
# ************************************************************
DROP DATABASE IF EXISTS `bamazon`;
CREATE DATABASE `bamazon`;
# Dump of table departments
# ------------------------------------------------------------
DROP TABLE IF EXISTS `departments`;
CREATE TABLE `departments` (
`department_id` int(11) NOT NULL AUTO_INCREMENT,
`department_name` varchar(50) DEFAULT NULL,
`over_head_costs` int(11) DEFAULT NULL,
PRIMARY KEY (`department_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
# Dump of table products
# ------------------------------------------------------------
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`item_id` int(11) NOT NULL AUTO_INCREMENT,
`product_name` varchar(50) NOT NULL,
`department_name` varchar(50) DEFAULT NULL,
`price` float NOT NULL,
`stock_quantity` int(11) NOT NULL,
`product_sale` float DEFAULT NULL,
PRIMARY KEY (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;