package entity

import (
	tidbmgmtservicev1 "github.com/tidbcloud/tidb-management-service/api/spec/tidb_mgmt_service/v1"
)

// DataSynchronization is the domain entity for data synchronization.
//
// It embeds the API proto message for compatibility with existing patterns, while also
// keeping internal-only fields (e.g. dataflow resource IDs) that should not be exposed
// via the API.
type DataSynchronization struct {
	tidbmgmtservicev1.DataSynchronization

	// Internal-only fields persisted in mgmt DB for cleanup / reconciliation.
	ChangefeedConnectorID uint64
	SinkEndpointID        uint64
	AvailableZoneIDs      []string

	// Internal-only fields used during creation (not persisted).
	CdcUsername string
	CdcPassword string
}
