I am currently trying to create a new record using GORM and these two models has a one to one relationship with each other. Model1 has 'has one' relationship with Model2. I was thinking if it is possible to create query Model2 instead of Model1 in this case. Here is an example from the docs:
So in the docs context, is it possible to create query from the CreditCard struct as I want to persist the 'has one' relationship.