Skip to content

Commit

Permalink
created db folder moved sql moved files
Browse files Browse the repository at this point in the history
  • Loading branch information
rdevans87 committed May 26, 2021
1 parent 61b00a5 commit fa9f3c5
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 519 deletions.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions employeeTracker.sql → db/employeeTracker.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-- DROPS DATABASE IF employeeTracker_db ALREADY EXISTS --
-- DROP DATABASE IF EXISTS employeeTracker_db;
DROP DATABASE IF EXISTS employeeTracker_db;

-- CREATE DATABASE employeeTracker_db;
CREATE DATABASE employeeTracker_db;

USE employeerTracker_db;

Expand Down Expand Up @@ -42,7 +41,7 @@ CREATE TABLE employee (
role_id INT NOT NULL,
FOREIGN KEY (role_id) REFERENCES role(id),
-- to hold reference to another employee --
manager_id INT L,
manager_id INT NOT NULL,
-- alt FOREIGN KEY (role_id) REFERENCES role(id) --
FOREIGN KEY (manager_id) REFERENCES role(id),
PRIMARY KEY (id)
Expand Down
File renamed without changes.
Loading

0 comments on commit fa9f3c5

Please sign in to comment.