entities: add ENTITY_TYPE_BASE to allow override module part of entity_type

This is required to allow refactoring without having to update database
columns referring to entity_type (polymorphic discriminator)