I have a model I am trying to link to users so that each user can only have one item in the database, I have setup a one-to-one in the relations() function within the model, however instead of throwing a clean looking error when testing that only one item per user can be created it spits an ugly SQL error along with a stack trace. Am I missing something from the process of establishing the one-to-one relationship or is this how it will always react when it encounters nn attempt to create a second entry?