lint all files
This commit is contained in:
@@ -14,7 +14,7 @@ CREATE TABLE hospital (
|
||||
);
|
||||
```
|
||||
|
||||
2. **transplant_unit** Table
|
||||
1. **transplant_unit** Table
|
||||
Attributes:
|
||||
`unit_id` (Primary Key)
|
||||
`hospital_id` (Foreign Key referencing Hospital)
|
||||
@@ -28,7 +28,7 @@ CREATE TABLE transplant_unit (
|
||||
);
|
||||
```
|
||||
|
||||
3. **organ** Table:
|
||||
1. **organ** Table:
|
||||
Attributes:
|
||||
`organ_id` (Primary Key)
|
||||
`organ_type`
|
||||
@@ -40,7 +40,7 @@ CREATE TABLE organ (
|
||||
);
|
||||
```
|
||||
|
||||
4. **patient** Table:
|
||||
1. **patient** Table:
|
||||
Attributes:
|
||||
`patient_id` (Primary Key)
|
||||
`patient_name`
|
||||
@@ -54,11 +54,11 @@ CREATE TABLE patient (
|
||||
);
|
||||
```
|
||||
|
||||
5. **donor** Table:
|
||||
1. **donor** Table:
|
||||
Attributes:
|
||||
`donor_id` (Primary Key)
|
||||
`donor_name`
|
||||
`age`
|
||||
`age`
|
||||
|
||||
```SQL
|
||||
CREATE TABLE donor (
|
||||
@@ -68,7 +68,7 @@ CREATE TABLE donor (
|
||||
);
|
||||
```
|
||||
|
||||
6. **operation** Table
|
||||
1. **operation** Table
|
||||
Attributes:
|
||||
`operation_id` (Primary Key)
|
||||
`unit_id` (Foreign Key referencing TransplantUnit)
|
||||
@@ -85,4 +85,4 @@ CREATE TABLE operation (
|
||||
donor_id CHAR(3) CONSTRAINT dID_fk FOREIGN KEY REFERENCES donor( donor_id ),
|
||||
CONSTRAINT comp_op_key PRIMARY KEY ( operation_id, organ_id )
|
||||
);
|
||||
```
|
||||
```
|
||||
|
Reference in New Issue
Block a user