create table with references on delete cascades