/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

{
    "schema":{
        "type":"struct",
        "fields":[
            {
                "type":"struct",
                "fields":[
                    {
                        "type":"string",
                        "optional":false,
                        "field":"version"
                    },
                    {
                        "type":"string",
                        "optional":false,
                        "field":"connector"
                    },
                    {
                        "type":"string",
                        "optional":false,
                        "field":"name"
                    },
                    {
                        "type":"int64",
                        "optional":false,
                        "field":"ts_ms"
                    },
                    {
                        "type":"string",
                        "optional":true,
                        "name":"io.debezium.data.Enum",
                        "version":1,
                        "parameters":{
                            "allowed":"true,last,false"
                        },
                        "default":"false",
                        "field":"snapshot"
                    },
                    {
                        "type":"string",
                        "optional":false,
                        "field":"db"
                    },
                    {
                        "type":"string",
                        "optional":true,
                        "field":"sequence"
                    },
                    {
                        "type":"string",
                        "optional":true,
                        "field":"table"
                    },
                    {
                        "type":"int64",
                        "optional":false,
                        "field":"server_id"
                    },
                    {
                        "type":"string",
                        "optional":true,
                        "field":"gtid"
                    },
                    {
                        "type":"string",
                        "optional":false,
                        "field":"file"
                    },
                    {
                        "type":"int64",
                        "optional":false,
                        "field":"pos"
                    },
                    {
                        "type":"int32",
                        "optional":false,
                        "field":"row"
                    },
                    {
                        "type":"int64",
                        "optional":true,
                        "field":"thread"
                    },
                    {
                        "type":"string",
                        "optional":true,
                        "field":"query"
                    }
                ],
                "optional":false,
                "name":"io.debezium.connector.mysql.Source",
                "field":"source"
            },
            {
                "type":"string",
                "optional":true,
                "field":"historyRecord"
            }
        ],
        "optional":false,
        "name":"io.debezium.connector.mysql.SchemaChangeValue"
    },
    "payload":{
        "source":{
            "version":"1.6.4.Final",
            "connector":"mysql",
            "name":"mysql_binlog_source",
            "ts_ms":1695203563233,
            "snapshot":"false",
            "db":"tinyint1_not_bool_test",
            "sequence":null,
            "table":"t1",
            "server_id":223344,
            "gtid":null,
            "file":"mysql-bin.000003",
            "pos":219,
            "row":0,
            "thread":null,
            "query":null
        },
        "historyRecord":"{\"source\":{\"file\":\"mysql-bin.000003\",\"pos\":219,\"server_id\":223344},\"position\":{\"transaction_id\":null,\"ts_sec\":1695203563,\"file\":\"mysql-bin.000003\",\"pos\":379,\"server_id\":223344},\"databaseName\":\"tinyint1_not_bool_test\",\"ddl\":\"ALTER TABLE t1 ADD COLUMN _new_tinyint1 TINYINT(1)\",\"tableChanges\":[{\"type\":\"ALTER\",\"id\":\"\\\"tinyint1_not_bool_test\\\".\\\"t1\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"pk\"],\"columns\":[{\"name\":\"pk\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"length\":11,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false},{\"name\":\"_tinyint1\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false},{\"name\":\"_new_tinyint1\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false}]}}]}"
    }
}
