ON DELETE CASCADE
Indicates that when the row in the parent table is deleted, the dependent rows in the child table will also be deleted. ON DELETE SET NULL
Covert foreign key values to null when the parent value is removed. Without the ON DELETE CASCADE
or the ON DELETE SET NULL
options, the row in the parent table cannot be deleted if it is referenced in the child table.