def _create_database_entity(self, database: dict) -> NotionDatabaseEntity:
        """Create a database entity from API response."""
        database_id = database["id"]
        title = self._extract_rich_text_plain(database.get("title", []))
        description = self._extract_rich_text_plain(database.get("description", []))

        parent = database.get("parent", {})

        return NotionDatabaseEntity(
            entity_id=database_id,
            breadcrumbs=[],
            database_id=database_id,
            title=title or "Untitled Database",
            description=description,
            properties=database.get("properties", {}),
            parent_id=parent.get("page_id", ""),
            parent_type=parent.get("type", "workspace"),
            icon=database.get("icon"),
            cover=database.get("cover"),
            archived=database.get("archived", False),
            is_inline=database.get("is_inline", False),
            url=database.get("url", ""),
            created_time=self._parse_datetime(database.get("created_time")),
            last_edited_time=self._parse_datetime(database.get("last_edited_time")),
        )
Create a database entity from API response.
backend/airweave/platform/sources/notion.py