added foreign keys to invite