added cascade handling to constraint unique/check