belongsTo, hasOne and hasMany working together
Building federations module