By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | name |
---|---|
1 | Customer A |
id | customerid | name |
---|---|---|
1 | 1 | Compressor A |
id | customercompressorid | name | hourcapacity |
---|---|---|---|
1 | 1 | Air Filter | 1000 |
2 | 1 | Oil Filter | 1000 |
3 | 1 | Oil | 1000 |
4 | 1 | Separator | 2000 |
5 | 1 | Sensor | 6000 |
id | maintenancedate | customerid | customercompressorid | averageworkload |
---|---|---|---|---|
1 | 2022-01-01 | 1 | 1 | 5.00 |
2 | 2022-02-01 | 1 | 1 | 5.00 |
3 | 2022-03-01 | 1 | 1 | 5.00 |
4 | 2022-04-01 | 1 | 1 | 5.00 |
id | maintenanceid | customercompressorpartid |
---|---|---|
1 | 2 | 1 |
2 | 2 | 2 |
3 | 2 | 3 |
4 | 3 | 4 |