Model
Creditmemo
Magento\Sales\Model\ResourceModel\Order\Creditmemo
What it does
This class handles database operations for credit memo entities in Magento 2.
Developers interact with it indirectly when creating, updating, or loading credit memos through repositories or collections.
It ensures proper data relationships by automatically setting order_id, billing_address_id, and invoice_id before saving a credit memo record to the database.