package entity

type ClusterEncryptionBindingState string

const (
	ClusterEncryptionBindingStateModifying      ClusterEncryptionBindingState = "Modifying"
	ClusterEncryptionBindingStatePendingRestore ClusterEncryptionBindingState = "PendingRestore"
	ClusterEncryptionBindingStateRestoreFailed  ClusterEncryptionBindingState = "RestoreFailed"
	ClusterEncryptionBindingStateEnabled        ClusterEncryptionBindingState = "Enabled"
)

type ClusterEncryptionBinding struct {
	ClusterId       uint64 // UK — one binding per cluster
	TenantId        uint64 // for scoped queries
	EncryptionKeyId uint64 // FK → encryption_keys (target key)
	State           ClusterEncryptionBindingState
	Message         string // human-readable status or error detail
	DagInstanceId   string // FK → dag_instances (fastflow) for workflow correlation
}
