db lab 6
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
Customers
|
||||
ID
|
||||
First name
|
||||
Last name
|
||||
Street Address
|
||||
City
|
||||
Province/State
|
||||
Postal Code
|
||||
Phone Number
|
||||
Email Address
|
||||
|
||||
Purpose:
|
||||
Tracks who the client is and how to contact them.
|
||||
|
||||
Relationship:
|
||||
One customer can have multiple contracts.
|
||||
|
||||
Contracts
|
||||
Contract ID (unique identifier)
|
||||
Customer ID (links to the customer)
|
||||
Building Street Address
|
||||
City
|
||||
Province/State
|
||||
Postal Code
|
||||
Scheduled Date
|
||||
Scheduled Time
|
||||
Employee ID (employee assigned to the job)
|
||||
|
||||
Purpose:
|
||||
Tracks each job being performed.
|
||||
|
||||
Relationships:
|
||||
Each contract belongs to one customer.
|
||||
Each contract is handled by one employee.
|
||||
Each contract can contain multiple rooms.
|
||||
|
||||
Rooms
|
||||
Room ID
|
||||
Contract ID
|
||||
Room Name
|
||||
Paint ID
|
||||
|
||||
Purpose:
|
||||
Tracks individual areas being painted for each contract.
|
||||
|
||||
Relationships:
|
||||
Each room belongs to one contract.
|
||||
Each room uses one paint color.
|
||||
|
||||
Inventory
|
||||
Paint ID
|
||||
Paint Name
|
||||
Cost Per Can
|
||||
Quantity
|
||||
|
||||
Purpose:
|
||||
Tracks paint options and pricing so customers know how much each paint can costs.
|
||||
|
||||
Relationships:
|
||||
One paint type can be used in many rooms.
|
||||
|
||||
Employees
|
||||
Employee ID
|
||||
First Name
|
||||
Last Name
|
||||
Address
|
||||
Postal Code
|
||||
Hire Date
|
||||
Salary
|
||||
|
||||
Purpose:
|
||||
Tracks the staff doing the work.
|
||||
|
||||
Relationship:
|
||||
One employee can be assigned to multiple contracts.
|
||||
Each contract has exactly one employee.
|
||||
Reference in New Issue
Block a user