Add log model and associations