def format_schema(schema):
    """Convert Schema to fixture format.
    """
    return {
        "fields": {
            "name": schema.name,
            "datastore_id": schema.datastore_id,
            "workspace_id": str(schema.workspace_id),
            "created_at": str(schema.created_at),
            "updated_at": str(schema.updated_at),
            "object_id": schema.object_id,
            "tags": schema.tags,
        },
        "model": "definitions.schema",
        "pk": schema.pk,
    }