Updated models entities to support preCommit and postCommit events.