Now the model macros generates the code related to table relationships