From c392684a3e9a7ccb5d5a3d97a5738bf8d337a48e Mon Sep 17 00:00:00 2001
From: st6g19 <st6g19@soton.ac.uk>
Date: Fri, 12 May 2023 01:58:01 +0800
Subject: [PATCH] bash file to create database and tables

---
 create_DB.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/create_DB.sh b/create_DB.sh
index f5997b8..3fabf59 100755
--- a/create_DB.sh
+++ b/create_DB.sh
@@ -1,4 +1,7 @@
 #!/bin/bash
 
-$(/opt/lampp/bin/mysql -u root -e "create database furniture_price; use furniture_price")
-$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table bed_price(id int, bed_type varchar(50), bed_price float, get_date timestamp)")
+#$(/opt/lampp/bin/mysql -u root -e "create database furniture_price; use furniture_price")
+#$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table bed_data(id int NOT NULL AUTO_INCREMENT, bed_name varchar(50), bed_price float, get_date timestamp, PRIMARY KEY (id))")
+#$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table sideTable_data(id int NOT NULL AUTO_INCREMENT, sideTable_name varchar(50), sideTable_price float, get_date timestamp, PRIMARY KEY (id))")
+#$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table drawer_data(id int NOT NULL AUTO_INCREMENT, drawer_name varchar(50), drawer_price float, get_date timestamp, PRIMARY KEY (id))")
+$(/opt/lampp/bin/mysql -u root -e "use furniture_price; create table wardrobe_data(id int NOT NULL AUTO_INCREMENT, wardrobe_name varchar(50), wardrobe_price float, get_date timestamp, PRIMARY KEY (id))")
-- 
GitLab