lint all files
This commit is contained in:
@@ -9,7 +9,7 @@ Attributes:
|
||||
|
||||
The Hospital table is in 1NF as values would be atomic with no repeating groups. It is in 2NF as all attributes are dependent on the primary key with no partial dependencies, and it is in 3NF as there are no transitive dependencies; all attributes exclusively depend on the primary key.
|
||||
|
||||
2. **TransplantUnit** Table:
|
||||
1. **TransplantUnit** Table:
|
||||
|
||||
Attributes:
|
||||
`UnitID` (Primary Key)
|
||||
@@ -18,7 +18,7 @@ Attributes:
|
||||
|
||||
The TransplantUnit table is in 1NF as values would be atomic with no repeating groups. It is in 2NF as all attributes are dependent on the primary key with no partial dependencies, and it is in 3NF as there are no transitive dependencies; all attributes exclusively depend on the primary key.
|
||||
|
||||
3. **Organ** Table:
|
||||
1. **Organ** Table:
|
||||
|
||||
Attributes:
|
||||
`OrganID` (Primary Key)
|
||||
@@ -26,7 +26,7 @@ Attributes:
|
||||
|
||||
The OrganType table is in 1NF as values would be atomic with no repeating groups. It is in 2NF as all attributes are dependent on the primary key with no partial dependencies, and it is in 3NF as there are no transitive dependencies; all attributes exclusively depend on the primary key.
|
||||
|
||||
4. **Donor** Table:
|
||||
1. **Donor** Table:
|
||||
|
||||
Attributes:
|
||||
`DonorID` (Primary Key)
|
||||
@@ -34,7 +34,7 @@ Attributes:
|
||||
`Age`
|
||||
The Donor table is in 1NF as values would be atomic with no repeating groups. It is in 2NF as all attributes are dependent on the primary key with no partial dependencies, and it is in 3NF as there are no transitive dependencies; all attributes exclusively depend on the primary key.
|
||||
|
||||
5. **Patient** Table:
|
||||
1. **Patient** Table:
|
||||
|
||||
Attributes:
|
||||
`PatientID` (Primary Key)
|
||||
@@ -43,7 +43,7 @@ Attributes:
|
||||
|
||||
The Patient table is in 1NF as values would be atomic with no repeating groups. It is in 2NF as all attributes are dependent on the primary key with no partial dependencies, and it is in 3NF as there are no transitive dependencies; all attributes exclusively depend on the primary key.
|
||||
|
||||
6. **Operation** Table:
|
||||
1. **Operation** Table:
|
||||
|
||||
We need an Operations table to record / capture information related to the operations themselves. This should include an ID for the operation as a primary key, the ID of the unit it was conducted in, the ID of the organ type used, the ID of the donor and the ID of the patient. This allows us to establish proper relationships to the other tables, and allows for a comprehensive record of the transplant process.
|
||||
This table also allows us to query easier, since all queries can be done on the one table to find essentially any information.
|
||||
|
Reference in New Issue
Block a user