Add foreign key constraints for users.