created invite code model, added relationships