<aside> 🧑🏻🦱 Student Name: 許恒睿 Student ID: 109704001
</aside>
| # | From | To | Relation Type |
|---|---|---|---|
| 1. | Region | Store | 1 : M |
| 2. | Store | Employee | 1 : M |
| 3. | Job | Employee | 1 : M |

A driver can be allocated to many tasks. Driver : Task ⇒ 1 : M
Moreover, a truck is able to finish multiple tasks. Truck : Task ⇒ 1 : M
.png)
| TABLE | PRIMARY KEY | FOREIGN KEY(S) |
|---|---|---|
| EMPLOYEE | EMP_CODE | JOB_CODE |
| BENEFIT | EMP_CODE and PLAN_CODE | EMP_CODE, PLAN_CODE |
| JOB | JOB_CODE | NONE |
| PLAN | PLAN_CODE | NONE |
| TABLE | ENTITY INTEGRITY | EXPLANATION |
|---|---|---|
| EMPLOYEE | YES | Every entity is unique and not null in the primary key “EMP_CODE” |
| BENEFIT | YES | Every entity is unique and not null in the primary key “EMP_CODE and PLAN_CODE” |
| JOB | YES | Every entity is unique and not null in the primary key “JOB_CODE” |
| PLAN | YES | Every entity is unique and not null in the primary key “PLAN_CODE” |