From 4451816adf19845ae2b191afb750e90be18f7b8f Mon Sep 17 00:00:00 2001 From: "Victor Eigbefoh (eigbefohv)" Date: Fri, 2 Dec 2022 15:21:35 +0000 Subject: [PATCH] Add files via upload --- jawara.sql | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 jawara.sql diff --git a/jawara.sql b/jawara.sql new file mode 100644 index 0000000..63057b9 --- /dev/null +++ b/jawara.sql @@ -0,0 +1,45 @@ +-- +-- File generated with SQLiteStudio v3.2.1 on Fri Dec 2 13:58:45 2022 +-- +-- Text encoding used: System +-- +PRAGMA foreign_keys = off; +BEGIN TRANSACTION; + +-- Table: Login +CREATE TABLE Login ( +userID VARCHAR(50) PRIMARY KEY NOT NULL, +password VARCHAR(50) NOT NULL, +jobTitle CHAR(50) NOT NULL +); +INSERT INTO Login (userID, password, jobTitle) VALUES ('director1', 'iamtheboss', 'Director of Production'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('plant1', 'sagalapardede', 'plant manager'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('plant2', 'sukirnapak', 'plant operator'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('plant3', 'password3', 'plant operator'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('plant4', 'password4', 'plant operator'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('production1', 'prodboss', 'production manager'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('production2', 'password5', 'production operative'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('production3', 'password6', 'production operative'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('engineer1', 'ayumasturoh', 'product engineer'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('engineer2', 'password7', 'product engineer'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('engineer3', 'password8', 'product engineer'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('accessories1', 'miskun', 'accessories production operative'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('accessories2', 'password9', 'accessories production operative'); +INSERT INTO Login (userID, password, jobTitle) VALUES ('accessories3', 'password10', 'accessories production operative'); + +-- Table: Manager +CREATE TABLE Manager ( +managerID VARCHAR(50) PRIMARY KEY NOT NULL, +managerName CHAR(50) NOT NULL, +jobTitle CHAR(50), +FOREIGN KEY (managerID) +REFERENCES Login(userID) +); +INSERT INTO Manager (managerID, managerName, jobTitle) VALUES ('director1', 'Pantun Nabanan', 'Director'); +INSERT INTO Manager (managerID, managerName, jobTitle) VALUES ('plant1', 'Sagala Pardede', 'Plant Manager'); +INSERT INTO Manager (managerID, managerName, jobTitle) VALUES ('production1', 'Brooke Perkins', 'Production Manager'); +INSERT INTO Manager (managerID, managerName, jobTitle) VALUES ('engineer1', 'Ayu Masturohj', 'Product Engineer'); +INSERT INTO Manager (managerID, managerName, jobTitle) VALUES ('accessories1', 'Suhardi Miskun', 'Accessories Manager'); + +COMMIT TRANSACTION; +PRAGMA foreign_keys = on;