Add model and relations for tag.