def format_datastore(datastore):
    """Convert Datastore to fixture format.
    """
    return {
        "fields": {
            "name": datastore.name,
            "slug": datastore.slug,
            "workspace_id": str(datastore.workspace_id),
            "created_at": str(datastore.created_at),
            "updated_at": str(datastore.updated_at),
            "host": "database.host",
            "port": 5432,
            "username": "admin",
            "password": "password1234",
            "engine": datastore.engine,
            "version": "9.6.1"
        },
        "model": "definitions.datastore",
        "pk": datastore.pk,
    }