{
  "name": "identity-postgres-connector",
  "config": {
    "connector.class": "io.debezium.connector.postgresql.PostgresConnector",
    "tasks.max": "1",

    "database.hostname": "rwa-postgres",
    "database.port": "5432",
    "database.user": "${POSTGRES_USER:-rwa_user}",
    "database.password": "${POSTGRES_PASSWORD:-rwa_secure_password}",
    "database.dbname": "rwa_identity",

    "topic.prefix": "cdc.identity",

    "table.include.list": "public.user_accounts,public.wallet_addresses",

    "plugin.name": "pgoutput",
    "publication.name": "debezium_identity_publication",
    "publication.autocreate.mode": "filtered",

    "slot.name": "debezium_identity_slot",

    "key.converter": "org.apache.kafka.connect.json.JsonConverter",
    "key.converter.schemas.enable": "false",
    "value.converter": "org.apache.kafka.connect.json.JsonConverter",
    "value.converter.schemas.enable": "false",

    "transforms": "unwrap",
    "transforms.unwrap.type": "io.debezium.transforms.ExtractNewRecordState",
    "transforms.unwrap.drop.tombstones": "true",
    "transforms.unwrap.delete.handling.mode": "rewrite",
    "transforms.unwrap.add.fields": "op,table,source.ts_ms",

    "heartbeat.interval.ms": "10000",
    "heartbeat.action.query": "INSERT INTO debezium_heartbeat (id, ts) VALUES (1, now()) ON CONFLICT (id) DO UPDATE SET ts = now()",

    "snapshot.mode": "initial",

    "decimal.handling.mode": "string",
    "time.precision.mode": "connect"
  }
}
