Fixed the models

Fixed incorrectly set relations one-to-one