Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
fcc9ca6
TEAM J.A.C - Amara - Added Script for the Client table
amarauzoma Aug 1, 2024
dc5a531
TEAM J.A.C - Jerico - Added script to create sales employee table
jxryyy Aug 1, 2024
eaac495
Merge pull request #2 from amarauzoma/001-create-sales-employee
jericoatos Aug 1, 2024
a088570
Merge pull request #3 from amarauzoma/002-delivery-employee
Conaill4 Aug 1, 2024
382a423
Merge pull request #4 from amarauzoma/003-client-employee
amarauzoma Aug 1, 2024
5c83b61
TEAM J.A.C - Amara - Added Script for the Project table
amarauzoma Aug 1, 2024
339223b
Merge pull request #5 from amarauzoma/004-project-client
amarauzoma Aug 1, 2024
de198e6
TEAM J.A.C - Amara - Updated Script for the Client table
amarauzoma Aug 1, 2024
2f3b574
Merge branch 'main' into 004-project-client
amarauzoma Aug 1, 2024
a162a63
Merge pull request #8 from amarauzoma/004-project-client
amarauzoma Aug 1, 2024
9eb8b7f
TEAM J.A.C - Jerico - Updated script for project table
jxryyy Aug 1, 2024
b6e2e18
TEAM J.A.C - Amara - Updated Script for the V4 and added V8 table
amarauzoma Aug 1, 2024
a977014
TEAM J.A.C -Conaill Delivery employee table script added
Conaill4 Aug 1, 2024
3e90411
Merge pull request #1 from Conaill4/002-create-role
Conaill4 Aug 1, 2024
faa9081
TEAM J.A.C -Conaill Delivery employee project table many to many rela…
Conaill4 Aug 1, 2024
317fff8
Merge pull request #6 from amarauzoma/005-delivery-employee-project
amarauzoma Aug 1, 2024
52da849
v5
Conaill4 Aug 1, 2024
c3e16ea
Merge pull request #7 from amarauzoma/005-delivery-employee
Conaill4 Aug 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/resources/db/migration/V1__sales_employee_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE salesEmployee (
id int PRIMARY KEY AUTO_INCREMENT NOT NULL,
name varchar(30),
salary decimal(9,2),
accountNumber varchar(34),
nationalInsuranceNumber varchar (9),
commissionRate decimal(3,1)
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE `delivery_employee`
(
id int PRIMARY KEY AUTO_INCREMENT NOT NULL,
name varchar(30),
salary decimal(9,2),
accountNumber varchar(34),
nationalInsuranceNumber varchar(9)

);
6 changes: 6 additions & 0 deletions src/main/resources/db/migration/V3__client_employee_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE TABLE client (
id int PRIMARY KEY AUTO_INCREMENT NOT NULL,
name varchar(30),
address varchar(75),
phoneNumber varchar(20)
);
6 changes: 6 additions & 0 deletions src/main/resources/db/migration/V4__project_client_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE TABLE project (
id int PRIMARY KEY AUTO_INCREMENT NOT NULL,
name varchar(30),
value int,
technology varchar(20),
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE deliveryEmployeeProject (
id int PRIMARY KEY AUTO_INCREMENT NOT NULL,
projectID int NOT NULL,
deliveryEmpID int NOT NULL,

FOREIGN KEY (projectID) REFERENCES project(id),
FOREIGN KEY (deliveryEmpID) REFERENCES delivery_employee(id)

);
5 changes: 5 additions & 0 deletions src/main/resources/db/migration/V6__project_tech_lead.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE project
ADD techLead int;

ALTER TABLE project
ADD FOREIGN KEY (techLead) REFERENCES delivery_employee(id);
8 changes: 8 additions & 0 deletions src/main/resources/db/migration/V8__client_project_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE project (
id int PRIMARY KEY AUTO_INCREMENT NOT NULL,
name varchar(30),
value int,
technology varchar(20),
clientId int NOT NULL,
FOREIGN KEY (clientId) REFERENCES client(id)
);