Update index.md

Update the positions of "hasMany" and "belongsTo" in the sample.