How to add custom attribute to categories?

How to add an attribute to an EAV entity type?

Examples: