constraints
fix contract constraint
delete log entity