ALTER TABLE tankPlants
    ADD CONSTRAINT fk_tankPlants_tank
    FOREIGN KEY (tankID)
    REFERENCES tanks(tankID)
    ON DELETE CASCADE
    ON UPDATE CASCADE;

ALTER TABLE tankPlants
    ADD CONSTRAINT fk_tankPlants_plant
    FOREIGN KEY (plantID)
    REFERENCES plants(plantID)
    ON DELETE CASCADE
    ON UPDATE CASCADE;
