There isn't any generation going on...

The same as ``get_index_name`` is a standalone function, ``type_id`` is just derived from the name of the class (or the metaclass if ``persistable`` is a type).