https://jigarkarangiya.com/add-yes-no-attribute-in-magento-2-programmatically/
Add Yes/No Attribute in Magento 2 programmatically