Model relations
Fix routes
Invite codes with JSON