You are on page 1of 5

Employee Table

e_id e_fname e_mname e_lname e_address e_email e_com_email e_contact_number e_status e_nic e_image e_role_id e_role_name
1 James Newton Luk 11,Old james@gmail.com james@lockhood.lk +9792837467 Active 931234531V 1 user
street
2 Luk Peter James 21/1, York luk@gmail.com luk@lockhood.lk +9773948573 Not 893748374V 2 admin
street Active
3 Mary Kelly Rose 6,new mary@gmail.com mary@lockhood.lk +9773940539 Active 992837493V 1 user
street

Normalized Tables
USER TABLE
e_id e_fname e_mname e_lname e_address e_email e_com_email e_contact_number e_status e_nic e_image
1 James Newton Luk 11,Old james@gmail.com james@lockhood.lk +9792837467 Active 931234531V
street
2 Luk Peter James 21/1, York luk@gmail.com luk@lockhood.lk +9773948573 Not 893748374V
street Active
3 Mary Kelly Rose 6,new mary@gmail.com mary@lockhood.lk +9773940539 Active 992837493V
street

ROLE TABLE
Id name

1 user
2 admin
1 user

USER ROLE TABLE


role_id e_id
1 1
2 2
1 3
Work Table
plant_loca plant plant_name plant_r factory_ factory_name factory_type dep_i dep_name supervisor_name workshop_id workshop_name workshop_address workshop_email
tion _id eg_id id d

Colombo 1 Tender 1001, 1 KSJ Manu 1 Delivery Sam 1 KL 11,York street kl@gmail.com
Machine 100012

Colombo 2 JSC 10032 4 MN Fixture 2 Delivery- James, Sam 2 MI 43/12, old street. , Mi@gmail.com,
Manu 17, checkout lane. Mi2@gmail.com

Kandy 3 Tender 10023 3 KJS Patch-up 1 Delivery Sam 3 SW 7, new lane sw@gmail.com
Machine2

Normalized Tables
MANUFACTURING PLANT TABLE
plant_location plant_id plant_name plant_reg_id

Colombo 1 Tender Machine 1001

Colombo 1 Tender Machine 100012

Colombo 2 JSC 10032

Kandy 3 Tender Machine2 10023

FACTORY TABLE
factory_id factory_name factory_type

1 KSJ Manu

4 MN Fixture

3 KJS Patch-up
DEPARTMENT TABLE
dep_id dep_name supervisor_name

1 Delivery Sam

2 Delivery-Manu Sam

2 Delivery-Manu James,

1 Delivery Sam

WORKSOP TABLE
workshop_id workshop_name workshop_address workshop_email

1 KL 11,York street kl@gmail.com

2 MI 43/12, old street Mi@gmail.com

2 MI 17, checkout lane. Mi2@gmail.com

3 SW 7, new lane sw@gmail.com


Task Table
id status Task_title Start_time End_time Start_date Due_date decription User_e_id User_ User_ Kanban_id
Department_ Department_
Factory_id Factory_
Manufacturing_id

1 Y FX 8am 5pm 12.01.2023 12.01.2023 2,5 1 2,5 2 1


2 N M 8am 5pm 12.01.2023 14.01.2023 4,3 2 3,7 1 2

Normalized Table
Task Table
id status Task_title Start_time End_time Start_date Due_date decription User_e_id User_ User_ Kanbancard_id Kanbancard_user_e_id
Department_ Department_
Factory_id Factory_
Manufacturing_id

1 Y FX 8am 5pm 12.01.2023 12.01.2023 2,5 1 2,5 2 1 1


2 N M 8am 5pm 12.01.2023 14.01.2023 4,3 2 3,7 1 2 2

Kanban Card Table


id User_Department_Factory_id User_Department_Factory_Manufacturing_id User_e_id

1 2 2 1
1 5 2 1
2 3 1 3
2 7 1 3
Sale Table
id Sales_date quantity Total amount decription C_name C_address C_email
1 12-01-2023 20 $1000 KLU James 12,nile street james@gmail.com,
James01@gmail.com
2 13-01-2023 10 $500 MNH Kevin 19, York street kevin@gmail.com

Normalized Table

Sales Table
id Sales_date quantity Total amount C_id Income_id
1 12-01-2023 20 $1000 1 1
2 13-01-2023 10 $500 2 2

Customer Table
C_id C_name C_address C_email C_created_date C_created_by C_updated_date C_updated_by
1 James 12,nile street james@gmail.com 12-01-2023 2 12-01-2023 2
1 James 12,nile street James01@gmail.com 12-01-2023 2 12-01-2023 2
2 Kevin 19, York street kevin@gmail.com 13-01-2023 6 13-01-2023 6

Income Table
Income_id Total amount decription
1 $1000 KLU
2 $500 MNH

You might also like