Build relations among model