Added onupdate and ondelete to generated schemas