Magento has two types of attributes that can be used to provide extra functionalities, i.e., Eav attributes and extension attributes. Learn the stepwise method to add eav attribute for the product in Magento 2.
Steps to add EAV attribute for the product in Magento 2:
Step 1: Declare EAV setup factory
Step 2: Add attribute
Step 3: Remove an EAV attribute for the product
For details, visit https://meetanshi.com/blog/add-eav-attribute-for-product-magento-2/