In my DB I have the following two tables:
CREATE TABLE Compilation( userId INTEGER NOT NULL REFERENCES User(id) ON DELETE CASCADE ON