Use the \Magento\Eav\Setup\EavSetup::addAttribute()
method to add an attribute to an EAV entity type (product, catalog, customer, address, order, invoice, shopment, credit memo):
Use the \Magento\Eav\Setup\EavSetup::addAttribute()
method to add an attribute to an EAV entity type (product, catalog, customer, address, order, invoice, shopment, credit memo):