Adds dependent restricted association to some models

Should fix #348