> This page is for MVS Pay.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mvscloud.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mvscloud.com/_mcp/server.

# ADR-008: MerchantConnectorExtension sidecar table

## Status

Accepted (2026-05-28)

## Context

Per-MCA metadata (operator labels, last health check, MVS-specific flags) needs to live somewhere. Two options: a JSON column on `MerchantExtension` or a sidecar table keyed by `hyperswitch_merchant_connector_id`.

## Decision

Sidecar table `MerchantConnectorExtension`.

## Consequences

* Indexable per-MCA fields (e.g., filter by `connectorName`).
* Clean cascading delete when an MCA is removed.
* Slightly more schema surface than a JSON column.

## Alternatives considered

* **JSON column on MerchantExtension:** rejected — can't index per-MCA queries efficiently, schema migrations harder.