updated schema for invite codes