Defined belongs to and has many relationships in models