If you take a look into the WordPress documentation you will find WordPress Taxonomies
- term_id is the ID of a term in the terms table
- term_taxonomy_id is a unique ID for the term + taxonomy pair.
If you take a look into the WordPress documentation you will find WordPress Taxonomies