def _create_box_store(self) -> Store:
        """Registering the VectorEntity model and setting up objectbox database."""
        db_path = DIRECTORY if self.db_directory is None else self.db_directory
        if self.clear_db and os.path.exists(db_path):
            shutil.rmtree(db_path)
        model = Model()
        model.entity(self._entity_class)
        return Store(model=model, directory=db_path)
Registering the VectorEntity model and setting up objectbox database.
llama-index-integrations/vector_stores/llama-index-vector-stores-objectbox/llama_index/vector_stores/objectbox/base.py