lint all files
This commit is contained in:
@@ -13,12 +13,12 @@ VALUES ('h01', 'Royal Infirmary', 'Manchester', 'M13 1AB'),
|
||||
('h04', 'Wythenshawe Hospital', 'Manchester', 'M22 4XD');
|
||||
```
|
||||
|
||||
2. **transplant_unit** Table
|
||||
1. **transplant_unit** Table
|
||||
Attributes:
|
||||
`unit_id` (Primary Key)
|
||||
`hospital_id` (Foreign Key referencing Hospital)
|
||||
`specialisation`
|
||||
|
||||
|
||||
```SQL
|
||||
INSERT INTO transplant_unit
|
||||
VALUES ( 'u001', 'h01', 'Kidney (Renal)' ),
|
||||
@@ -28,7 +28,7 @@ VALUES ( 'u001', 'h01', 'Kidney (Renal)' ),
|
||||
( 'u005', 'h04', 'Cardiothoracic' );
|
||||
```
|
||||
|
||||
3. **organ** Table:
|
||||
1. **organ** Table:
|
||||
Attributes:
|
||||
`organ_id` (Primary Key)
|
||||
`organ_type`
|
||||
@@ -42,7 +42,7 @@ VALUES ( 'o1', 'kidney' ),
|
||||
( 'o5', 'liver' );
|
||||
```
|
||||
|
||||
4. **patient** Table:
|
||||
1. **patient** Table:
|
||||
Attributes:
|
||||
`patient_id` (Primary Key)
|
||||
`patient_name`
|
||||
@@ -55,7 +55,7 @@ VALUES ( 'p03', 'ben', 58 ),
|
||||
( 'p05', 'joan', 50);
|
||||
```
|
||||
|
||||
5. **donor** Table:
|
||||
1. **donor** Table:
|
||||
Attributes:
|
||||
`donor_id` (Primary Key)
|
||||
`donor_name`
|
||||
@@ -71,7 +71,7 @@ VALUES ( 'd01', 'tom', 34 ),
|
||||
( 'd06', 'rose', 34 );
|
||||
```
|
||||
|
||||
6. **operation** Table
|
||||
1. **operation** Table
|
||||
Attributes:
|
||||
`operation_id` (Primary Key)
|
||||
`unit_id` (Foreign Key referencing TransplantUnit)
|
||||
@@ -87,4 +87,4 @@ VALUES ( 'op1', 'o1', 'u002', 'p03', 'd01' ),
|
||||
( 'op3', 'o4', 'u003', 'p05', 'd03' ),
|
||||
( 'op4', 'o5', 'u004', 'p05', 'd05' ),
|
||||
( 'op5', 'o5', 'u002', 'p03', 'd01' );
|
||||
```
|
||||
```
|
||||
|
Reference in New Issue
Block a user