CategoryProduct
Magento\Catalog\Model\ResourceModel\CategoryProduct
What it does
This resource model manages database operations for the relationship between categories and products in Magento 2.
Developers use this class when they need to interact with the catalog_category_product table, which stores the associations determining which products belong to which categories.
It provides the foundation for operations like assigning products to categories or retrieving product-category relationships.