2022-09-27 19:14:00 INFO i.a.v.j.JsonSchemaValidator(test):71 - JSON schema validation failed. errors: $.method: must be a constant value STANDARD, $.method: does not have a value in the enumeration [STANDARD] 2022-09-27 19:14:00 INFO i.a.v.j.JsonSchemaValidator(test):71 - JSON schema validation failed. errors: $.method: must be a constant value Standard 2022-09-27 19:14:00 INFO i.a.v.j.JsonSchemaValidator(test):71 - JSON schema validation failed. errors: $.credential.hmac_key_secret: object found, string expected, $.credential.hmac_key_access_id: object found, string expected 2022-09-27 19:14:00 INFO i.a.a.LoggingTrackingClient(track):43 - track. version: null, userId: null, action: Connector Jobs, metadata: {job_type=sync, config.destination.big_query_client_buffer_size_mb=set, namespace_definition=source, config.source.ssl_mode.mode=preferred, config.destination.dataset_location=US, config.source.port=set, frequency=60 min, connector_source_definition_id=435bb9a5-7887-4809-aa58-28c27df0d7ad, workspace_id=04e3d7e6-b345-4aaf-8bbe-a89b52b3426b, attempt_stage=STARTED, config.source.password._secret=set, config.destination.project_id=set, attempt_id=1, connector_destination=BigQuery, catalog.sync_mode.incremental=set, connector_destination_docker_repository=airbyte/destination-bigquery, table_prefix=false, config.destination.credentials_json._secret=set, workspace_name=04e3d7e6-b345-4aaf-8bbe-a89b52b3426b, catalog.destination_sync_mode.overwrite=set, number_of_streams=48, config.destination.dataset_id=set, catalog.destination_sync_mode.append_dedup=set, connector_source=MySQL, config.source.host=set, config.source.tunnel_method.tunnel_method=NO_TUNNEL, config.destination.transformation_priority=interactive, config.source.username=set, connector_source_docker_repository=airbyte/source-mysql, config.source.database=set, config.source.ssl=true, config.source.replication_method.method=CDC, catalog.sync_mode.full_refresh=set, connection_id=a7ccb58d-75ef-4b6e-a28c-bf5b6ceb56c2, job_id=27012, connector_source_version=0.6.13, connector_destination_version=1.2.3, operation.normalization=1, operation_count=1, connector_destination_definition_id=22f6c74f-5699-40ff-833c-4a879ea40133} 2022-09-27 19:14:00 INFO i.a.w.t.TemporalAttemptExecution(get):106 - Docker volume job log path: /tmp/workspace/27012/0/logs.log 2022-09-27 19:14:00 INFO i.a.w.t.TemporalAttemptExecution(get):111 - Executing worker wrapper. Airbyte version: 0.40.9 2022-09-27 19:14:00 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:14:00 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- START CHECK ----- 2022-09-27 19:14:00 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:14:00 INFO i.a.c.i.LineGobbler(voidCall):114 - Checking if airbyte/source-mysql:0.6.13 exists... 2022-09-27 19:14:00 INFO i.a.c.i.LineGobbler(voidCall):114 - airbyte/source-mysql:0.6.13 was found locally. 2022-09-27 19:14:00 INFO i.a.w.p.DockerProcessFactory(create):119 - Creating docker container = source-mysql-check-27012-0-ajbue with resources io.airbyte.config.ResourceRequirements@6684eec2[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=] 2022-09-27 19:14:00 INFO i.a.w.p.DockerProcessFactory(create):163 - Preparing command: docker run --rm --init -i -w /data/27012/0 --log-driver none --name source-mysql-check-27012-0-ajbue --network host -v airbyte_workspace:/data -v /tmp/airbyte_local:/local -e DEPLOYMENT_MODE=OSS -e USE_STREAM_CAPABLE_STATE=true -e WORKER_ENVIRONMENT=DOCKER -e AIRBYTE_ROLE= -e WORKER_JOB_ATTEMPT=0 -e WORKER_CONNECTOR_IMAGE=airbyte/source-mysql:0.6.13 -e AIRBYTE_VERSION=0.40.9 -e WORKER_JOB_ID=27012 airbyte/source-mysql:0.6.13 check --config source_config.json 2022-09-27 19:14:01 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - starting source: class io.airbyte.integrations.source.mysql.MySqlSource 2022-09-27 19:14:01 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - integration args: {check=null, config=source_config.json} 2022-09-27 19:14:01 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Running integration: io.airbyte.integrations.base.ssh.SshWrappedSource 2022-09-27 19:14:01 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Command: CHECK 2022-09-27 19:14:01 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Integration config: IntegrationConfig{command=CHECK, configPath='source_config.json', catalogPath='null', statePath='null'} 2022-09-27 19:14:01 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):100 - Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:14:01 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):100 - Unknown keyword examples - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:14:01 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):100 - Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:14:01 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):100 - Unknown keyword multiline - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Starting connection with method: NO_TUNNEL 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - HikariPool-1 - Starting... 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - HikariPool-1 - Start completed. 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Attempting to get metadata from the database to see if we can connect. 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - HikariPool-1 - Shutdown initiated... 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - HikariPool-1 - Shutdown completed. 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Completed integration: io.airbyte.integrations.base.ssh.SshWrappedSource 2022-09-27 19:14:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - completed source: class io.airbyte.integrations.source.mysql.MySqlSource 2022-09-27 19:14:02 INFO i.a.w.t.TemporalAttemptExecution(get):132 - Stopping cancellation check scheduling... 2022-09-27 19:14:02 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:14:02 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- END CHECK ----- 2022-09-27 19:14:02 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:14:03 INFO i.a.w.t.TemporalAttemptExecution(get):106 - Docker volume job log path: /tmp/workspace/27012/0/logs.log 2022-09-27 19:14:03 INFO i.a.w.t.TemporalAttemptExecution(get):111 - Executing worker wrapper. Airbyte version: 0.40.9 2022-09-27 19:14:03 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:14:03 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- START CHECK ----- 2022-09-27 19:14:03 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:14:03 INFO i.a.c.i.LineGobbler(voidCall):114 - Checking if airbyte/destination-bigquery:1.2.3 exists... 2022-09-27 19:14:03 INFO i.a.c.i.LineGobbler(voidCall):114 - airbyte/destination-bigquery:1.2.3 was found locally. 2022-09-27 19:14:03 INFO i.a.w.p.DockerProcessFactory(create):119 - Creating docker container = destination-bigquery-check-27012-0-mdrwj with resources io.airbyte.config.ResourceRequirements@6684eec2[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=] 2022-09-27 19:14:03 INFO i.a.w.p.DockerProcessFactory(create):163 - Preparing command: docker run --rm --init -i -w /data/27012/0 --log-driver none --name destination-bigquery-check-27012-0-mdrwj --network host -v airbyte_workspace:/data -v /tmp/airbyte_local:/local -e DEPLOYMENT_MODE=OSS -e USE_STREAM_CAPABLE_STATE=true -e WORKER_ENVIRONMENT=DOCKER -e AIRBYTE_ROLE= -e WORKER_JOB_ATTEMPT=0 -e WORKER_CONNECTOR_IMAGE=airbyte/destination-bigquery:1.2.3 -e AIRBYTE_VERSION=0.40.9 -e WORKER_JOB_ID=27012 airbyte/destination-bigquery:1.2.3 check --config source_config.json 2022-09-27 19:14:04 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - integration args: {check=null, config=source_config.json} 2022-09-27 19:14:04 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Running integration: io.airbyte.integrations.destination.bigquery.BigQueryDestination 2022-09-27 19:14:04 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Command: CHECK 2022-09-27 19:14:04 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Integration config: IntegrationConfig{command=CHECK, configPath='source_config.json', catalogPath='null', statePath='null'} 2022-09-27 19:14:04 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):100 - Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:14:04 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):100 - Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:14:04 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Selected loading method is set to: GCS 2022-09-27 19:14:06 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - S3 format config: {"format_type":"CSV","flattening":"No flattening"} 2022-09-27 19:14:06 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Started testing if all required credentials assigned to user for single file uploading 2022-09-27 19:14:07 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Finished checking for normal upload mode 2022-09-27 19:14:07 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Started testing if all required credentials assigned to user for multipart upload 2022-09-27 19:14:07 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/test_1664306047260 with full ID ABPnzm4uqwZg1boZ07v5xu8B9_BdIIXlgD05XVCz9NuqRZvoz8WOAUH_z2ZuTJQuZUi6ync 2022-09-27 19:14:07 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:14:07 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:14:07 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):100 - [MultipartOutputStream for parts 1 - 10000] is already closed 2022-09-27 19:14:07 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - [Manager uploading to airbyte-bigquery-staging-1/gwat_live/test_1664306047260 with id ABPnzm4uq...QuZUi6ync]: Uploading leftover stream [Part number 1 containing 3.34 MB] 2022-09-27 19:14:08 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - [Manager uploading to airbyte-bigquery-staging-1/gwat_live/test_1664306047260 with id ABPnzm4uq...QuZUi6ync]: Finished uploading [Part number 1 containing 3.34 MB] 2022-09-27 19:14:08 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - [Manager uploading to airbyte-bigquery-staging-1/gwat_live/test_1664306047260 with id ABPnzm4uq...QuZUi6ync]: Completed 2022-09-27 19:14:09 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Finished verification for multipart upload mode 2022-09-27 19:14:10 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):103 - Completed integration: io.airbyte.integrations.destination.bigquery.BigQueryDestination 2022-09-27 19:14:10 INFO i.a.w.t.TemporalAttemptExecution(get):132 - Stopping cancellation check scheduling... 2022-09-27 19:14:10 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:14:10 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- END CHECK ----- 2022-09-27 19:14:10 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:21:50 INFO i.a.w.t.TemporalAttemptExecution(get):106 - Docker volume job log path: /tmp/workspace/27012/0/logs.log 2022-09-27 19:21:50 INFO i.a.w.t.TemporalAttemptExecution(get):111 - Executing worker wrapper. Airbyte version: 0.40.9 2022-09-27 19:21:50 INFO i.a.c.f.EnvVariableFeatureFlags(getEnvOrDefault):49 - Using default value for environment variable LOG_CONNECTOR_MESSAGES: 'false' 2022-09-27 19:21:50 INFO i.a.c.EnvConfigs(getEnvOrDefault):1096 - Using default value for environment variable METRIC_CLIENT: '' 2022-09-27 19:21:50 WARN i.a.m.l.MetricClientFactory(initialize):60 - Metric client is already initialized to 2022-09-27 19:21:50 INFO i.a.c.f.EnvVariableFeatureFlags(getEnvOrDefault):49 - Using default value for environment variable LOG_CONNECTOR_MESSAGES: 'false' 2022-09-27 19:21:50 INFO i.a.w.g.DefaultReplicationWorker(run):122 - start sync worker. job id: 27012 attempt id: 0 2022-09-27 19:21:50 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:21:50 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- START REPLICATION ----- 2022-09-27 19:21:50 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:21:50 INFO i.a.w.g.DefaultReplicationWorker(run):135 - configured sync modes: {t_billing.inclusions_flights=incremental - append_dedup, t_billing.inclusions_other_charges=incremental - append_dedup, t_billing.v_transaction_currencies_used=full_refresh - overwrite, t_billing.charity_transactions=incremental - append_dedup, t_billing.inclusion_rooms=full_refresh - overwrite, t_billing.refunds_transactions=incremental - append_dedup, t_billing.v_bad_chargebacks=full_refresh - overwrite, t_billing.v_invoice_summaries=full_refresh - overwrite, t_billing.inclusions_transfers=incremental - append_dedup, t_billing.transaction_audits=incremental - append_dedup, t_billing.v_transaction_methods_used=full_refresh - overwrite, t_billing.payment_plans=incremental - append_dedup, t_billing.expenses_partners=incremental - append_dedup, t_billing.transactions=incremental - append_dedup, t_billing.v_trip_transactions_detail=full_refresh - overwrite, t_billing.transaction_claims=incremental - append_dedup, t_billing.refund_protects=incremental - append_dedup, t_billing.invoices=incremental - append_dedup, t_billing.v_inclusion_summaries=full_refresh - overwrite, t_billing.v_total_flight_paid=full_refresh - overwrite, t_billing.v_payment_plan_summaries=full_refresh - overwrite, t_billing.v_trip_sales_summary=full_refresh - overwrite, t_billing.inclusions_accommodations=incremental - append_dedup, t_billing.payment_plans_analysis=full_refresh - overwrite, t_billing.credit_types=incremental - append_dedup, t_billing.v_transaction_audit_summary=full_refresh - overwrite, t_billing.expenses_suppliers=incremental - append_dedup, t_billing.inclusions_charities=incremental - append_dedup, t_billing.other_charges=incremental - append_dedup, t_billing.v_transactions_invalid_currencies=full_refresh - overwrite, t_billing.transactions_1628688127=full_refresh - overwrite, t_billing.inclusions_tours=incremental - append_dedup, t_billing.refunds=incremental - append_dedup, t_billing.chargebacks=incremental - append_dedup, t_billing.cards=incremental - append_dedup, t_billing.credits=incremental - append_dedup, t_billing.inclusions_insurances=incremental - append_dedup, t_billing.v_charity_transaction_summaries=full_refresh - overwrite, t_billing.activity_log=incremental - append_dedup, t_billing.expenses=incremental - append_dedup, t_billing.transaction_credits=incremental - append_dedup, t_billing.v_transaction_invoice_joined=full_refresh - overwrite, t_billing.discounts=incremental - append_dedup, t_billing.inclusions=incremental - append_dedup, t_billing.inclusions_experiences=incremental - append_dedup, t_billing.v_discount_summaries=full_refresh - overwrite, t_billing.v_bad_transaction_audits=full_refresh - overwrite, t_billing.v_transaction_summaries=full_refresh - overwrite} 2022-09-27 19:21:50 INFO i.a.w.i.DefaultAirbyteDestination(start):69 - Running destination... 2022-09-27 19:21:50 INFO i.a.c.i.LineGobbler(voidCall):114 - Checking if airbyte/destination-bigquery:1.2.3 exists... 2022-09-27 19:21:50 INFO i.a.c.i.LineGobbler(voidCall):114 - airbyte/destination-bigquery:1.2.3 was found locally. 2022-09-27 19:21:50 INFO i.a.w.p.DockerProcessFactory(create):119 - Creating docker container = destination-bigquery-write-27012-0-awxpy with resources io.airbyte.config.ResourceRequirements@5c897ca5[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=] 2022-09-27 19:21:50 INFO i.a.w.p.DockerProcessFactory(create):163 - Preparing command: docker run --rm --init -i -w /data/27012/0 --log-driver none --name destination-bigquery-write-27012-0-awxpy --network host -v airbyte_workspace:/data -v /tmp/airbyte_local:/local -e DEPLOYMENT_MODE=OSS -e USE_STREAM_CAPABLE_STATE=true -e WORKER_ENVIRONMENT=DOCKER -e AIRBYTE_ROLE= -e WORKER_JOB_ATTEMPT=0 -e WORKER_CONNECTOR_IMAGE=airbyte/destination-bigquery:1.2.3 -e AIRBYTE_VERSION=0.40.9 -e WORKER_JOB_ID=27012 airbyte/destination-bigquery:1.2.3 write --config destination_config.json --catalog destination_catalog.json 2022-09-27 19:21:50 INFO i.a.c.i.LineGobbler(voidCall):114 - Checking if airbyte/source-mysql:0.6.13 exists... 2022-09-27 19:21:50 INFO i.a.c.i.LineGobbler(voidCall):114 - airbyte/source-mysql:0.6.13 was found locally. 2022-09-27 19:21:50 INFO i.a.w.p.DockerProcessFactory(create):119 - Creating docker container = source-mysql-read-27012-0-ohlhv with resources io.airbyte.config.ResourceRequirements@139c4f62[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=] 2022-09-27 19:21:50 INFO i.a.w.p.DockerProcessFactory(create):163 - Preparing command: docker run --rm --init -i -w /data/27012/0 --log-driver none --name source-mysql-read-27012-0-ohlhv --network host -v airbyte_workspace:/data -v /tmp/airbyte_local:/local -e DEPLOYMENT_MODE=OSS -e USE_STREAM_CAPABLE_STATE=true -e WORKER_ENVIRONMENT=DOCKER -e AIRBYTE_ROLE= -e WORKER_JOB_ATTEMPT=0 -e WORKER_CONNECTOR_IMAGE=airbyte/source-mysql:0.6.13 -e AIRBYTE_VERSION=0.40.9 -e WORKER_JOB_ID=27012 airbyte/source-mysql:0.6.13 read --config source_config.json --catalog source_catalog.json --state input_state.json 2022-09-27 19:21:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getDestinationOutputRunnable$7):435 - Destination output thread started. 2022-09-27 19:21:50 INFO i.a.w.g.DefaultReplicationWorker(run):177 - Waiting for source and destination threads to complete. 2022-09-27 19:21:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):322 - Replication thread started. 2022-09-27 19:21:52 source > starting source: class io.airbyte.integrations.source.mysql.MySqlSource 2022-09-27 19:21:52 source > integration args: {read=null, catalog=source_catalog.json, state=input_state.json, config=source_config.json} 2022-09-27 19:21:52 source > Running integration: io.airbyte.integrations.base.ssh.SshWrappedSource 2022-09-27 19:21:52 source > Command: READ 2022-09-27 19:21:52 source > Integration config: IntegrationConfig{command=READ, configPath='source_config.json', catalogPath='source_catalog.json', statePath='input_state.json'} 2022-09-27 19:21:52 destination > integration args: {catalog=destination_catalog.json, write=null, config=destination_config.json} 2022-09-27 19:21:52 destination > Running integration: io.airbyte.integrations.destination.bigquery.BigQueryDestination 2022-09-27 19:21:52 destination > Command: WRITE 2022-09-27 19:21:52 destination > Integration config: IntegrationConfig{command=WRITE, configPath='destination_config.json', catalogPath='destination_catalog.json', statePath='null'} 2022-09-27 19:21:52 source > Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:21:52 source > Unknown keyword examples - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:21:52 source > Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:21:52 source > Unknown keyword multiline - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:21:53 destination > Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:21:53 destination > Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2022-09-27 19:21:53 destination > Selected loading method is set to: GCS 2022-09-27 19:21:53 source > Starting connection with method: NO_TUNNEL 2022-09-27 19:21:53 source > Global state manager selected to manage state object with type GLOBAL. 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='transaction_claims', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='transactions', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_transaction_audit_summary', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='refunds', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='payment_plans', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_payment_plan_summaries', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='expenses_suppliers', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_transaction_invoice_joined', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='expenses_partners', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='other_charges', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='credit_types', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_transaction_methods_used', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusion_rooms', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='invoices', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='refund_protects', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_bad_transaction_audits', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_transaction_summaries', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='discounts', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_trip_transactions_detail', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='expenses', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='activity_log', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_transfers', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_trip_sales_summary', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_experiences', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_other_charges', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='refunds_transactions', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='chargebacks', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='charity_transactions', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_invoice_summaries', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_discount_summaries', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_charity_transaction_summaries', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_total_flight_paid', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='transaction_audits', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='transactions_1628688127', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='cards', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_inclusion_summaries', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_charities', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_insurances', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='transaction_credits', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_accommodations', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='credits', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_transactions_invalid_currencies', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_transaction_currencies_used', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_tours', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='v_bad_chargebacks', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='inclusions_flights', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Found matching cursor in state. Stream: AirbyteStreamNameNamespacePair{name='payment_plans_analysis', namespace='t_billing'}. Cursor Field: null Value: null 2022-09-27 19:21:53 source > Initialized CDC state with: io.airbyte.integrations.source.relationaldb.models.CdcState@22680f52[state={"mysql_cdc_offset":{"{\"schema\":null,\"payload\":[\"t_billing\",{\"server\":\"t_billing\"}]}":"{\"transaction_id\":null,\"ts_sec\":1664303115,\"file\":\"mysql-bin-changelog.000036\",\"pos\":21059227,\"row\":1,\"server_id\":239712215,\"event\":4}"},"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpressi… 2022-09-27 19:21:53 destination > S3 format config: {"format_type":"AVRO","flattening":"No flattening"} 2022-09-27 19:21:53 source > HikariPool-1 - Starting... 2022-09-27 19:21:53 destination > All tmp files will be removed from GCS when replication is finished 2022-09-27 19:21:53 source > HikariPool-1 - Start completed. 2022-09-27 19:21:54 destination > Creating BigQuery staging message consumer with staging ID d20c578e-1005-4a99-9478-20ad454310a7 at 2022-09-27T19:21:53.466Z 2022-09-27 19:21:54 source > Internal schemas to exclude: [information_schema, performance_schema, mysql, sys] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=activity_log, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_activity_log}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=cards, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_cards}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=chargebacks, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_njy_chargebacks}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_chargebacks}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=charity_transactions, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zrs_charity_transactions}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_charity_transactions}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=credit_types, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kwo_credit_types}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_credit_types}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=credits, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_plt_credits}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_credits}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=discounts, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_discounts}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=expenses, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rkp_expenses}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=expenses_partners, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ymm_expenses_partners}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses_partners}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=expenses_suppliers, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qyz_expenses_suppliers}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses_suppliers}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusion_rooms, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vuq_inclusion_rooms}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusion_rooms}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_accommodations, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_accommodations}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_charities, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_dzm_inclusions_charities}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_charities}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_experiences, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_experiences}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_flights, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_btg_inclusions_flights}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_flights}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_insurances, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ftf_inclusions_insurances}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_insurances}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_other_charges, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_alv_inclusions_other_charges}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_other_charges}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_tours, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yyz_inclusions_tours}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_tours}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=inclusions_transfers, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xim_inclusions_transfers}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_transfers}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=invoices, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_invoices}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=other_charges, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wzh_other_charges}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_other_charges}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=payment_plans, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qsc_payment_plans}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_payment_plans}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=payment_plans_analysis, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_payment_plans_analysis}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=refund_protects, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_jow_refund_protects}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refund_protects}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=refunds, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xli_refunds}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refunds}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=refunds_transactions, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kus_refunds_transactions}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refunds_transactions}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=transaction_audits, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_audits}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=transaction_claims, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ppv_transaction_claims}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_claims}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=transaction_credits, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rjy_transaction_credits}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_credits}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=transactions, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transactions}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=append_dedup, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=transactions_1628688127, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transactions_1628688127}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_bad_chargebacks, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_bad_chargebacks}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_bad_transaction_audits, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_bad_transaction_audits}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_charity_transaction_summaries, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_charity_transaction_summaries}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_discount_summaries, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_discount_summaries}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_inclusion_summaries, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_inclusion_summaries}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_invoice_summaries, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_invoice_summaries}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_payment_plan_summaries, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_payment_plan_summaries}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_total_flight_paid, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_total_flight_paid}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_transaction_audit_summary, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_audit_summary}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_transaction_currencies_used, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_currencies_used}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_transaction_invoice_joined, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_invoice_joined}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_transaction_methods_used, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_methods_used}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_transaction_summaries, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_summaries}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_transactions_invalid_currencies, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transactions_invalid_currencies}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_trip_sales_summary, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_trip_sales_summary}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > BigQuery write config: BigQueryWriteConfig[streamName=v_trip_transactions_detail, namespace=t_billing, datasetId=t_billing, datasetLocation=US, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_trip_transactions_detail}}, tableSchema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]] 2022-09-27 19:21:54 destination > class io.airbyte.integrations.destination.buffered_stream_consumer.BufferedStreamConsumer started. 2022-09-27 19:21:54 destination > Preparing tmp tables in destination started for 48 streams 2022-09-27 19:21:54 destination > Creating dataset t_billing 2022-09-27 19:21:54 source > Table expenses_partners column expense_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table expenses_partners column partner_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column transaction_id (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column method (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column excess_amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column processor (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column comment (type CHAR[127]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column transaction_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column card_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column department_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column deposit (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column final (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column transaction_claim_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column collector_staff_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column receipt_sent_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column transaction_date_formatted (type VARCHAR[41]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column deposit_paid_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column deposit_paid_at_formatted (type VARCHAR[41]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column first_name (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column last_name (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column trip_status (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column division (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column destination (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column trip_code (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column sold_by (type CHAR[128]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column sold_by_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column sales_register_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_transactions_detail column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_discount_summaries column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_discount_summaries column discount (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table inclusions_tours column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_tours column tour_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column checked_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column status (type TINYINT UNSIGNED[3]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_audits column internal_comments (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table refunds_transactions column refund_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table refunds_transactions column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusion_rooms column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusion_rooms column room_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table chargebacks column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table chargebacks column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table chargebacks column date_occurred (type INT[10]) -> false 2022-09-27 19:21:54 source > Table chargebacks column status (type VARCHAR[32]) -> false 2022-09-27 19:21:54 source > Table chargebacks column file_number (type CHAR[128]) -> false 2022-09-27 19:21:54 source > Table chargebacks column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table chargebacks column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table chargebacks column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table chargebacks column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_currencies_used column key (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table v_transaction_currencies_used column value (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column transaction_id (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column method (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column excess_amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column processor (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column comment (type CHAR[127]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column transaction_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column card_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column department_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column deposit (type TINYINT[3]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column final (type TINYINT[3]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column transaction_claim_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column collector_staff_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions_1628688127 column receipt_sent_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_transfers column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_transfers column transfer_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions column net (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table inclusions column markup (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table inclusions column tax (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table inclusions column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table inclusions column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table inclusions column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table expenses column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table expenses column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table expenses column amount (type DECIMAL[10]) -> false 2022-09-27 19:21:54 source > Table expenses column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table expenses column date (type INT[10]) -> false 2022-09-27 19:21:54 source > Table expenses column invoice_number (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table expenses column description (type TEXT[65535]) -> false 2022-09-27 19:21:54 source > Table expenses column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table expenses column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table expenses column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table expenses column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column status (type CHAR[16]) -> false 2022-09-27 19:21:54 source > Table payment_plans column date (type INT[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table payment_plans column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans column method (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table inclusions_flights column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_flights column flight_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_charities column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_charities column charity_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column transaction_token (type VARCHAR[64]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column method (type VARCHAR[32]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column currency (type VARCHAR[3]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column excess_amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column processor (type VARCHAR[64]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column comment (type VARCHAR[127]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column transaction_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column card_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column transaction_claim_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column collector_staff_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column receipt_sent_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column checked_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table charity_transactions column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_insurances column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_insurances column insurance_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_sales_summary column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_sales_summary column sale_register_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_sales_summary column sold_by_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_sales_summary column deposit_paid_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_trip_sales_summary column type (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_trip_sales_summary column status (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_trip_sales_summary column first_call (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table v_charity_transaction_summaries column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_charity_transaction_summaries column donations (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column invoice_type (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column status (type CHAR[16]) -> false 2022-09-27 19:21:54 source > Table v_payment_plan_summaries column date (type INT[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_accommodations column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_accommodations column accommodation_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_bad_chargebacks column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_bad_chargebacks column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_bad_chargebacks column status (type VARCHAR[32]) -> false 2022-09-27 19:21:54 source > Table transactions column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column transaction_id (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table transactions column method (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table transactions column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table transactions column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table transactions column excess_amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table transactions column processor (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table transactions column comment (type CHAR[127]) -> false 2022-09-27 19:21:54 source > Table transactions column transaction_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column card_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column department_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column deposit (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table transactions column final (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table transactions column transaction_claim_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transactions column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transactions column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column collector_staff_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transactions column receipt_sent_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table expenses_suppliers column expense_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table expenses_suppliers column supplier_id (type INT[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans_analysis column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table payment_plans_analysis column invoice_type (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table payment_plans_analysis column pp_numbers (type BIGINT[19]) -> false 2022-09-27 19:21:54 source > Table payment_plans_analysis column amount (type DECIMAL[15]) -> false 2022-09-27 19:21:54 source > Table inclusions_other_charges column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_other_charges column other_charge_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credit_types column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credit_types column credit_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credit_types column type (type VARCHAR[255]) -> false 2022-09-27 19:21:54 source > Table credit_types column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table credit_types column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credit_types column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table credit_types column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table other_charges column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table other_charges column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table other_charges column type (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table other_charges column name (type CHAR[128]) -> false 2022-09-27 19:21:54 source > Table other_charges column description (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table other_charges column comments (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table other_charges column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table other_charges column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table other_charges column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table other_charges column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_experiences column inclusion_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table inclusions_experiences column experience_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_summaries column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_summaries column paid (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_transaction_summaries column excess (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table invoices column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table invoices column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table invoices column expires_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table invoices column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table invoices column status (type CHAR[16]) -> false 2022-09-27 19:21:54 source > Table invoices column department_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table invoices column deposit (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table invoices column use_excess (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table invoices column type (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table invoices column is_public (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table invoices column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table invoices column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table invoices column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table invoices column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table invoices column deposit_paid_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table discounts column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table discounts column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table discounts column amount (type DECIMAL UNSIGNED[11]) -> false 2022-09-27 19:21:54 source > Table discounts column type (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table discounts column item (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table discounts column comments (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table discounts column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table discounts column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table discounts column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table discounts column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credits column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credits column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credits column cid (type BIGINT UNSIGNED[20]) -> false 2022-09-27 19:21:54 source > Table credits column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table credits column currency (type VARCHAR[100]) -> false 2022-09-27 19:21:54 source > Table credits column description (type VARCHAR[100]) -> false 2022-09-27 19:21:54 source > Table credits column credit_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credits column expiry_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credits column type (type VARCHAR[100]) -> false 2022-09-27 19:21:54 source > Table credits column is_claimed (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table credits column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table credits column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table credits column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table credits column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column transaction_id (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column transaction_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column method (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column department_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_invoice_joined column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column expires_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column status (type CHAR[16]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column department_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column deposit (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column use_excess (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column type (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column is_public (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column deposit_paid_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column net (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column markup (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column tax (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column total (type DECIMAL[35]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column discount (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column paid (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column donations (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column outstanding (type DECIMAL[37]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column is_expired (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_invoice_summaries column time_remaining (type BIGINT[19]) -> false 2022-09-27 19:21:54 source > Table v_transaction_methods_used column key (type VARCHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_transaction_methods_used column value (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table refund_protects column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table refund_protects column transaction_id (type VARCHAR[100]) -> false 2022-09-27 19:21:54 source > Table refund_protects column reference (type VARCHAR[100]) -> false 2022-09-27 19:21:54 source > Table refund_protects column status (type INT[10]) -> false 2022-09-27 19:21:54 source > Table refund_protects column insurance_end_date (type INT[10]) -> false 2022-09-27 19:21:54 source > Table refund_protects column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table refund_protects column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table refund_protects column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table refund_protects column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_inclusion_summaries column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_inclusion_summaries column net (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_inclusion_summaries column markup (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_inclusion_summaries column tax (type DECIMAL[33]) -> false 2022-09-27 19:21:54 source > Table v_inclusion_summaries column total (type DECIMAL[35]) -> false 2022-09-27 19:21:54 source > Table transaction_credits column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_credits column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_credits column credit_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_credits column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_credits column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_credits column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_credits column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column cid (type BIGINT UNSIGNED[20]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column transaction_id (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column method (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column excess_amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column processor (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column comment (type CHAR[127]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column transaction_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column card_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column department_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column deposit (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column final (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column transaction_claim_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column audit_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column checked_at (type INT[10]) -> false 2022-09-27 19:21:54 source > Table v_transaction_audit_summary column audit_status (type TINYINT UNSIGNED[3]) -> false 2022-09-27 19:21:54 source > Table v_bad_transaction_audits column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_bad_transaction_audits column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_bad_transaction_audits column status (type TINYINT UNSIGNED[3]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column transaction_id (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column method (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column excess_amount (type DECIMAL[11]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column transaction_date (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table v_transactions_invalid_currencies column invoice_currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table cards column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table cards column cid (type BIGINT UNSIGNED[20]) -> false 2022-09-27 19:21:54 source > Table cards column type (type VARCHAR[16]) -> false 2022-09-27 19:21:54 source > Table cards column payment_gateway (type CHAR[50]) -> false 2022-09-27 19:21:54 source > Table cards column provider (type CHAR[50]) -> false 2022-09-27 19:21:54 source > Table cards column currency (type CHAR[3]) -> false 2022-09-27 19:21:54 source > Table cards column status (type INT[10]) -> false 2022-09-27 19:21:54 source > Table cards column token (type MEDIUMTEXT[16777215]) -> false 2022-09-27 19:21:54 source > Table cards column customerId (type MEDIUMTEXT[16777215]) -> false 2022-09-27 19:21:54 source > Table cards column holder_name (type CHAR[128]) -> false 2022-09-27 19:21:54 source > Table cards column expiry_month (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table cards column expiry_year (type INT[10]) -> false 2022-09-27 19:21:54 source > Table cards column pan_suffix (type CHAR[4]) -> false 2022-09-27 19:21:54 source > Table cards column legal_declaration_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table cards column visible (type TINYINT UNSIGNED[3]) -> false 2022-09-27 19:21:54 source > Table cards column archived (type BIT[1]) -> false 2022-09-27 19:21:54 source > Table cards column payment_plan_nominated (type TINYINT UNSIGNED[3]) -> false 2022-09-27 19:21:54 source > Table cards column pan (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table cards column iv (type CHAR[64]) -> false 2022-09-27 19:21:54 source > Table cards column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table cards column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table cards column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table cards column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table activity_log column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table activity_log column table_name (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table activity_log column field_name (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table activity_log column record_id (type BIGINT UNSIGNED[20]) -> false 2022-09-27 19:21:54 source > Table activity_log column value (type TEXT[65535]) -> false 2022-09-27 19:21:54 source > Table activity_log column time (type INT[10]) -> false 2022-09-27 19:21:54 source > Table activity_log column staff_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table activity_log column action (type TINYINT UNSIGNED[3]) -> false 2022-09-27 19:21:54 source > Table refunds column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table refunds column transaction_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table refunds column invoice_id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table refunds column reason (type CHAR[255]) -> false 2022-09-27 19:21:54 source > Table refunds column status (type VARCHAR[64]) -> false 2022-09-27 19:21:54 source > Table refunds column method (type VARCHAR[64]) -> false 2022-09-27 19:21:54 source > Table refunds column amount (type DECIMAL[10]) -> false 2022-09-27 19:21:54 source > Table refunds column comment (type TEXT[65535]) -> false 2022-09-27 19:21:54 source > Table refunds column priority (type VARCHAR[32]) -> false 2022-09-27 19:21:54 source > Table refunds column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table refunds column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table refunds column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table refunds column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_total_flight_paid column tid (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table v_total_flight_paid column total_flight_paid (type DECIMAL[35]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column id (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column amount (type DECIMAL UNSIGNED[11]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column platform (type CHAR[32]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column claimed_date (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column _ca (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column _cb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column _lma (type INT[10]) -> false 2022-09-27 19:21:54 source > Table transaction_claims column _lmb (type INT UNSIGNED[10]) -> false 2022-09-27 19:21:54 source > Target File position : FileName: mysql-bin-changelog.000036, Position : 21454000 2022-09-27 19:21:54 source > Using CDC: true 2022-09-27 19:21:55 source > JsonConverterConfig values: converter.type = key decimal.format = BASE64 schemas.cache.size = 1000 schemas.enable = true 2022-09-27 19:21:55 source > JsonConverterConfig values: converter.type = value decimal.format = BASE64 schemas.cache.size = 1000 schemas.enable = false 2022-09-27 19:21:55 source > EmbeddedConfig values: access.control.allow.methods = access.control.allow.origin = admin.listeners = null bootstrap.servers = [localhost:9092] client.dns.lookup = use_all_dns_ips config.providers = [] connector.client.config.override.policy = All header.converter = class org.apache.kafka.connect.storage.SimpleHeaderConverter key.converter = class org.apache.kafka.connect.json.JsonConverter listeners = [http://:8083] metric.reporters = [] metrics.num.samples = 2 metrics.recording.level = INFO metrics.sample.window.ms = 30000 offset.flush.interval.ms = 1000 offset.flush.timeout.ms = 5000 offset.storage.file.filename = /tmp/cdc-state-offset690091934925333280/offset.dat offset.storage.partitions = null offset.storage.replication.factor = null offset.storage.topic = plugin.path = null response.http.headers.config = rest.advertised.host.name = null rest.advertised.listener = null rest.advertised.port = null rest.extension.classes = [] ssl.cipher.suites = null ssl.client.auth = none ssl.enabled.protocols = [TLSv1.2, TLSv1.3] ssl.endpoint.identification.algorithm = https ssl.engine.factory.class = null ssl.key.password = null ssl.keymanager.algorithm = SunX509 ssl.keystore.certificate.chain = null ssl.keystore.key = null ssl.keystore.location = null ssl.keystore.password = null ssl.keystore.type = JKS ssl.protocol = TLSv1.3 ssl.provider = null ssl.secure.random.implementation = null ssl.trustmanager.algorithm = PKIX ssl.truststore.certificates = null ssl.truststore.location = null ssl.truststore.password = null ssl.truststore.type = JKS task.shutdown.graceful.timeout.ms = 5000 topic.creation.enable = true topic.tracking.allow.reset = true topic.tracking.enable = true value.converter = class org.apache.kafka.connect.json.JsonConverter 2022-09-27 19:21:55 source > The worker has been configured with one or more internal converter properties ([internal.key.converter, internal.value.converter]). Support for these properties was deprecated in version 2.0 and removed in version 3.0, and specifying them will have no effect. Instead, an instance of the JsonConverter with schemas.enable set to false will be used. For more information, please visit http://kafka.apache.org/documentation/#upgrade and consult the upgrade notesfor the 3.0 release. 2022-09-27 19:21:55 source > Variables cannot be used in the 'plugin.path' property, since the property is used by plugin scanning before the config providers that replace the variables are initialized. The raw value 'null' was used for plugin scanning, as opposed to the transformed value 'null', and this may cause unexpected results. 2022-09-27 19:21:55 source > JsonConverterConfig values: converter.type = key decimal.format = BASE64 schemas.cache.size = 1000 schemas.enable = false 2022-09-27 19:21:55 source > JsonConverterConfig values: converter.type = value decimal.format = BASE64 schemas.cache.size = 1000 schemas.enable = false 2022-09-27 19:21:55 source > Starting FileOffsetBackingStore with file /tmp/cdc-state-offset690091934925333280/offset.dat 2022-09-27 19:21:55 source > Queueing query for table: inclusion_rooms 2022-09-27 19:21:55 source > Queueing query for table: payment_plans_analysis 2022-09-27 19:21:55 source > Queueing query for table: transactions_1628688127 2022-09-27 19:21:55 source > Queueing query for table: v_bad_chargebacks 2022-09-27 19:21:55 source > Queueing query for table: v_bad_transaction_audits 2022-09-27 19:21:55 source > Queueing query for table: v_charity_transaction_summaries 2022-09-27 19:21:55 source > Queueing query for table: v_discount_summaries 2022-09-27 19:21:55 source > Queueing query for table: v_inclusion_summaries 2022-09-27 19:21:55 source > Queueing query for table: v_invoice_summaries 2022-09-27 19:21:55 source > Queueing query for table: v_payment_plan_summaries 2022-09-27 19:21:55 source > Queueing query for table: v_total_flight_paid 2022-09-27 19:21:55 source > Queueing query for table: v_transaction_audit_summary 2022-09-27 19:21:55 source > Queueing query for table: v_transaction_currencies_used 2022-09-27 19:21:55 source > Queueing query for table: v_transaction_invoice_joined 2022-09-27 19:21:55 source > Queueing query for table: v_transaction_methods_used 2022-09-27 19:21:55 source > Queueing query for table: v_transaction_summaries 2022-09-27 19:21:55 source > Queueing query for table: v_transactions_invalid_currencies 2022-09-27 19:21:55 source > Queueing query for table: v_trip_sales_summary 2022-09-27 19:21:55 source > Queueing query for table: v_trip_transactions_detail 2022-09-27 19:21:55 source > Starting MySqlConnectorTask with configuration: 2022-09-27 19:21:55 source > connector.class = io.debezium.connector.mysql.MySqlConnector 2022-09-27 19:21:55 source > snapshot.locking.mode = none 2022-09-27 19:21:55 source > max.queue.size = 8192 2022-09-27 19:21:55 source > database.history.consumer.security.protocol = SSL 2022-09-27 19:21:55 source > include.schema.changes = false 2022-09-27 19:21:55 source > database.sslmode = PREFERRED 2022-09-27 19:21:55 source > binary.handling.mode = base64 2022-09-27 19:21:55 source > offset.storage.file.filename = /tmp/cdc-state-offset690091934925333280/offset.dat 2022-09-27 19:21:55 source > decimal.handling.mode = string 2022-09-27 19:21:55 source > converters = boolean, datetime 2022-09-27 19:21:55 source > datetime.type = io.airbyte.integrations.debezium.internals.MySQLDateTimeConverter 2022-09-27 19:21:55 source > value.converter = org.apache.kafka.connect.json.JsonConverter 2022-09-27 19:21:55 source > key.converter = org.apache.kafka.connect.json.JsonConverter 2022-09-27 19:21:55 source > database.history.file.filename = /tmp/cdc-db-history9876415302941824064/dbhistory.dat 2022-09-27 19:21:55 source > database.user = airbyte 2022-09-27 19:21:55 source > database.dbname = t_billing 2022-09-27 19:21:55 source > offset.storage = org.apache.kafka.connect.storage.FileOffsetBackingStore 2022-09-27 19:21:55 source > database.history.producer.security.protocol = SSL 2022-09-27 19:21:55 source > boolean.type = io.debezium.connector.mysql.converters.TinyIntOneToBooleanConverter 2022-09-27 19:21:55 source > database.server.name = t_billing 2022-09-27 19:21:55 source > offset.flush.timeout.ms = 5000 2022-09-27 19:21:55 source > database.port = 3306 2022-09-27 19:21:55 source > offset.flush.interval.ms = 1000 2022-09-27 19:21:55 source > key.converter.schemas.enable = false 2022-09-27 19:21:55 source > internal.key.converter = org.apache.kafka.connect.json.JsonConverter 2022-09-27 19:21:55 source > database.hostname = core-db.gwat.co 2022-09-27 19:21:55 source > database.password = ******** 2022-09-27 19:21:55 source > name = t_billing 2022-09-27 19:21:55 source > value.converter.schemas.enable = false 2022-09-27 19:21:55 source > internal.value.converter = org.apache.kafka.connect.json.JsonConverter 2022-09-27 19:21:55 source > max.batch.size = 2048 2022-09-27 19:21:55 source > table.include.list = t_billing.activity_log,t_billing.cards,t_billing.chargebacks,t_billing.charity_transactions,t_billing.credit_types,t_billing.credits,t_billing.discounts,t_billing.expenses,t_billing.expenses_partners,t_billing.expenses_suppliers,t_billing.inclusions,t_billing.inclusions_accommodations,t_billing.inclusions_charities,t_billing.inclusions_experiences,t_billing.inclusions_flights,t_billing.inclusions_insurances,t_billing.inclusions_other_charges,t_billing.inclusions_tours,t_billing.inclusions_transfers,t_billing.invoices,t_billing.other_charges,t_billing.payment_plans,t_billing.refund_protects,t_billing.refunds,t_billing.refunds_transactions,t_billing.transaction_audits,t_billing.transaction_claims,t_billing.transaction_credits,t_billing.transactions 2022-09-27 19:21:55 source > snapshot.mode = when_needed 2022-09-27 19:21:55 source > database.history = io.debezium.relational.history.FileDatabaseHistory 2022-09-27 19:21:55 source > database.include.list = t_billing 2022-09-27 19:21:55 source > Found previous partition offset MySqlPartition [sourcePartition={server=t_billing}]: {transaction_id=null, file=mysql-bin-changelog.000036, pos=21059227, row=1, event=4} 2022-09-27 19:21:55 source > Closing connection before starting schema recovery 2022-09-27 19:21:55 source > Connection gracefully closed 2022-09-27 19:21:55 source > Started database history recovery 2022-09-27 19:21:55 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ppv_transaction_claims}} 2022-09-27 19:21:55 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ppv_transaction_claims}} 2022-09-27 19:21:55 destination > Creating staging path for stream transaction_claims (dataset t_billing): gwat_live/t_billing_transaction_claims/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:21:56 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_claims/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:21:56 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_claims/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:21:56 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} 2022-09-27 19:21:56 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} 2022-09-27 19:21:56 destination > Creating staging path for stream transactions (dataset t_billing): gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:21:57 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:21:57 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:21:57 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} 2022-09-27 19:21:57 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} 2022-09-27 19:21:57 destination > Creating staging path for stream v_transaction_audit_summary (dataset t_billing): gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:21:57 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:21:57 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:21:57 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xli_refunds}} 2022-09-27 19:21:58 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xli_refunds}} 2022-09-27 19:21:58 destination > Creating staging path for stream refunds (dataset t_billing): gwat_live/t_billing_refunds/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:21:58 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_refunds/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:21:58 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_refunds/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:21:58 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qsc_payment_plans}} 2022-09-27 19:21:58 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qsc_payment_plans}} 2022-09-27 19:21:58 destination > Creating staging path for stream payment_plans (dataset t_billing): gwat_live/t_billing_payment_plans/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:21:58 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:21:59 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:21:59 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} 2022-09-27 19:21:59 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} 2022-09-27 19:21:59 destination > Creating staging path for stream v_payment_plan_summaries (dataset t_billing): gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:21:59 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:21:59 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:21:59 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qyz_expenses_suppliers}} 2022-09-27 19:21:59 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qyz_expenses_suppliers}} 2022-09-27 19:21:59 destination > Creating staging path for stream expenses_suppliers (dataset t_billing): gwat_live/t_billing_expenses_suppliers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:00 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_expenses_suppliers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:00 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_expenses_suppliers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:00 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} 2022-09-27 19:22:00 source > Finished database history recovery of 794 change(s) in 4984 ms 2022-09-27 19:22:00 source > Reconnecting after finishing schema recovery 2022-09-27 19:22:00 source > Get all known binlogs from MySQL 2022-09-27 19:22:00 source > MySQL has the binlog file 'mysql-bin-changelog.000036' required by the connector 2022-09-27 19:22:00 source > Requested thread factory for connector MySqlConnector, id = t_billing named = change-event-source-coordinator 2022-09-27 19:22:00 source > Creating thread debezium-mysqlconnector-t_billing-change-event-source-coordinator 2022-09-27 19:22:00 source > Metrics registered 2022-09-27 19:22:00 source > Context created 2022-09-27 19:22:00 source > A previous offset indicating a completed snapshot has been found. Neither schema nor data will be snapshotted. 2022-09-27 19:22:00 source > Snapshot ended with SnapshotResult [status=SKIPPED, offset=MySqlOffsetContext [sourceInfoSchema=Schema{io.debezium.connector.mysql.Source:STRUCT}, sourceInfo=SourceInfo [currentGtid=null, currentBinlogFilename=mysql-bin-changelog.000036, currentBinlogPosition=21059227, currentRowNumber=0, serverId=0, sourceTime=null, threadId=-1, currentQuery=null, tableIds=[], databaseName=null], snapshotCompleted=false, transactionContext=TransactionContext [currentTransactionId=null, perTableEventCount={}, totalEventCount=0], restartGtidSet=null, currentGtidSet=null, restartBinlogFilename=mysql-bin-changelog.000036, restartBinlogPosition=21059227, restartRowsToSkip=1, restartEventsToSkip=4, currentEventLengthInBytes=0, inTransaction=false, transactionId=null, incrementalSnapshotContext =IncrementalSnapshotContext [windowOpened=false, chunkEndPosition=null, dataCollectionsToSnapshot=[], lastEventKeySent=null, maximumKey=null]]] 2022-09-27 19:22:00 source > Requested thread factory for connector MySqlConnector, id = t_billing named = binlog-client 2022-09-27 19:22:00 source > Starting streaming 2022-09-27 19:22:00 source > GTID set purged on server: 2022-09-27 19:22:00 source > Skip 4 events on streaming start 2022-09-27 19:22:00 source > Skip 1 rows on streaming start 2022-09-27 19:22:00 source > Creating thread debezium-mysqlconnector-t_billing-binlog-client 2022-09-27 19:22:00 source > Creating thread debezium-mysqlconnector-t_billing-binlog-client 2022-09-27 19:22:00 source > Connected to MySQL binlog at core-db.gwat.co:3306, starting at MySqlOffsetContext [sourceInfoSchema=Schema{io.debezium.connector.mysql.Source:STRUCT}, sourceInfo=SourceInfo [currentGtid=null, currentBinlogFilename=mysql-bin-changelog.000036, currentBinlogPosition=21059227, currentRowNumber=0, serverId=0, sourceTime=null, threadId=-1, currentQuery=null, tableIds=[], databaseName=null], snapshotCompleted=false, transactionContext=TransactionContext [currentTransactionId=null, perTableEventCount={}, totalEventCount=0], restartGtidSet=null, currentGtidSet=null, restartBinlogFilename=mysql-bin-changelog.000036, restartBinlogPosition=21059227, restartRowsToSkip=1, restartEventsToSkip=4, currentEventLengthInBytes=0, inTransaction=false, transactionId=null, incrementalSnapshotContext =IncrementalSnapshotContext [windowOpened=false, chunkEndPosition=null, dataCollectionsToSnapshot=[], lastEventKeySent=null, maximumKey=null]] 2022-09-27 19:22:00 source > Waiting for keepalive thread to start 2022-09-27 19:22:00 source > Sep 27, 2022 7:22:00 PM com.github.shyiko.mysql.binlog.BinaryLogClient connect 2022-09-27 19:22:00 source > INFO: Connected to core-db.gwat.co:3306 at mysql-bin-changelog.000036/21059227 (sid:6010, cid:18712149) 2022-09-27 19:22:00 source > Creating thread debezium-mysqlconnector-t_billing-binlog-client 2022-09-27 19:22:00 source > Skipping previously processed row event: Event{header=EventHeaderV4{timestamp=1664303115000, eventType=EXT_UPDATE_ROWS, serverId=239712215, headerLength=19, dataLength=277, nextPosition=21059773, flags=0}, data=UpdateRowsEventData{tableId=2706, includedColumnsBeforeUpdate={0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}, includedColumns={0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}, rows=[ {before=[155399, 114300, [B@5948623, [B@59d5843d, [B@7d7a15fa, 1.00, 0.00, [B@375507f, [B@76f4c840, 1664236800, null, 1, 1, 1, null, 1664303106, 3, 1664303108, 3, 11, null], after=[155399, 114300, [B@5b8cd6a1, [B@72285f43, [B@5b771fd1, 1.00, 0.00, [B@b116a37, [B@36959c2a, 1664236800, null, 1, 1, 1, null, 1664303106, 3, 1664303115, 3, 11, 1664303115]} ]}} 2022-09-27 19:22:00 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} 2022-09-27 19:22:00 destination > Creating staging path for stream v_transaction_invoice_joined (dataset t_billing): gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:00 source > Keepalive thread is running 2022-09-27 19:22:00 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:00 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:00 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ymm_expenses_partners}} 2022-09-27 19:22:00 source > 67 records sent during previous 00:00:05.772, last recorded offset: {transaction_id=null, ts_sec=1664306516, file=mysql-bin-changelog.000036, pos=21459616, row=1, server_id=239712215, event=2} 2022-09-27 19:22:00 source > Signalling close because record's binlog file : mysql-bin-changelog.000036 , position : 21458435 is after target file : mysql-bin-changelog.000036 , target position : 21454000 2022-09-27 19:22:00 source > Stopping the embedded engine 2022-09-27 19:22:00 source > Waiting for PT5M for connector to stop 2022-09-27 19:22:01 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ymm_expenses_partners}} 2022-09-27 19:22:01 destination > Creating staging path for stream expenses_partners (dataset t_billing): gwat_live/t_billing_expenses_partners/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:01 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_expenses_partners/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:01 source > Stopping the task and engine 2022-09-27 19:22:01 source > Stopping down connector 2022-09-27 19:22:01 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_expenses_partners/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:01 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wzh_other_charges}} 2022-09-27 19:22:01 source > Finished streaming 2022-09-27 19:22:01 source > Stopped reading binlog after 0 events, last recorded offset: {transaction_id=null, ts_sec=1664306516, file=mysql-bin-changelog.000036, pos=21460317, server_id=239712215, event=1} 2022-09-27 19:22:01 source > Connection gracefully closed 2022-09-27 19:22:01 source > Stopped FileOffsetBackingStore 2022-09-27 19:22:01 source > Debezium engine shutdown. 2022-09-27 19:22:01 source > debezium state: {"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"… 2022-09-27 19:22:01 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wzh_other_charges}} 2022-09-27 19:22:01 destination > Creating staging path for stream other_charges (dataset t_billing): gwat_live/t_billing_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:01 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:02 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:02 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kwo_credit_types}} 2022-09-27 19:22:02 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kwo_credit_types}} 2022-09-27 19:22:02 destination > Creating staging path for stream credit_types (dataset t_billing): gwat_live/t_billing_credit_types/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:02 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_credit_types/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:02 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_credit_types/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:02 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} 2022-09-27 19:22:02 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} 2022-09-27 19:22:02 destination > Creating staging path for stream v_transaction_methods_used (dataset t_billing): gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:03 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:03 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:03 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vuq_inclusion_rooms}} 2022-09-27 19:22:03 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vuq_inclusion_rooms}} 2022-09-27 19:22:03 destination > Creating staging path for stream inclusion_rooms (dataset t_billing): gwat_live/t_billing_inclusion_rooms/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:03 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusion_rooms/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:03 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusion_rooms/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:03 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} 2022-09-27 19:22:04 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} 2022-09-27 19:22:04 destination > Creating staging path for stream invoices (dataset t_billing): gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:04 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:04 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:04 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_jow_refund_protects}} 2022-09-27 19:22:04 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_jow_refund_protects}} 2022-09-27 19:22:04 destination > Creating staging path for stream refund_protects (dataset t_billing): gwat_live/t_billing_refund_protects/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:04 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_refund_protects/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:05 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_refund_protects/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:05 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} 2022-09-27 19:22:05 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} 2022-09-27 19:22:05 destination > Creating staging path for stream v_bad_transaction_audits (dataset t_billing): gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:05 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:05 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:05 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} 2022-09-27 19:22:05 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} 2022-09-27 19:22:05 destination > Creating staging path for stream v_transaction_summaries (dataset t_billing): gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:06 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:06 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:06 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} 2022-09-27 19:22:06 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} 2022-09-27 19:22:06 destination > Creating staging path for stream discounts (dataset t_billing): gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:06 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:06 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:06 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} 2022-09-27 19:22:07 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} 2022-09-27 19:22:07 destination > Creating staging path for stream v_trip_transactions_detail (dataset t_billing): gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:07 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:07 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:07 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rkp_expenses}} 2022-09-27 19:22:07 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rkp_expenses}} 2022-09-27 19:22:07 destination > Creating staging path for stream expenses (dataset t_billing): gwat_live/t_billing_expenses/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:08 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_expenses/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:08 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_expenses/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:08 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} 2022-09-27 19:22:08 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} 2022-09-27 19:22:08 destination > Creating staging path for stream activity_log (dataset t_billing): gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:08 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:08 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:08 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xim_inclusions_transfers}} 2022-09-27 19:22:08 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xim_inclusions_transfers}} 2022-09-27 19:22:08 destination > Creating staging path for stream inclusions_transfers (dataset t_billing): gwat_live/t_billing_inclusions_transfers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:09 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_transfers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:09 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_transfers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:09 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} 2022-09-27 19:22:09 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} 2022-09-27 19:22:09 destination > Creating staging path for stream v_trip_sales_summary (dataset t_billing): gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:09 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:10 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:10 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} 2022-09-27 19:22:10 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} 2022-09-27 19:22:10 destination > Creating staging path for stream inclusions_experiences (dataset t_billing): gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:10 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:10 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:10 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_alv_inclusions_other_charges}} 2022-09-27 19:22:10 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_alv_inclusions_other_charges}} 2022-09-27 19:22:10 destination > Creating staging path for stream inclusions_other_charges (dataset t_billing): gwat_live/t_billing_inclusions_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:11 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:11 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:11 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kus_refunds_transactions}} 2022-09-27 19:22:11 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kus_refunds_transactions}} 2022-09-27 19:22:11 destination > Creating staging path for stream refunds_transactions (dataset t_billing): gwat_live/t_billing_refunds_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:11 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_refunds_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:11 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_refunds_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:11 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_njy_chargebacks}} 2022-09-27 19:22:12 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_njy_chargebacks}} 2022-09-27 19:22:12 destination > Creating staging path for stream chargebacks (dataset t_billing): gwat_live/t_billing_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:12 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:12 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:12 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zrs_charity_transactions}} 2022-09-27 19:22:12 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zrs_charity_transactions}} 2022-09-27 19:22:12 destination > Creating staging path for stream charity_transactions (dataset t_billing): gwat_live/t_billing_charity_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:12 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_charity_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:13 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_charity_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:13 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} 2022-09-27 19:22:13 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} 2022-09-27 19:22:13 destination > Creating staging path for stream v_invoice_summaries (dataset t_billing): gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:13 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:13 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:13 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} 2022-09-27 19:22:13 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} 2022-09-27 19:22:13 destination > Creating staging path for stream v_discount_summaries (dataset t_billing): gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:13 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:14 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:14 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} 2022-09-27 19:22:14 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} 2022-09-27 19:22:14 destination > Creating staging path for stream v_charity_transaction_summaries (dataset t_billing): gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:14 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:14 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:14 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} 2022-09-27 19:22:15 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} 2022-09-27 19:22:15 destination > Creating staging path for stream v_total_flight_paid (dataset t_billing): gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:15 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:15 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:15 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} 2022-09-27 19:22:15 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} 2022-09-27 19:22:15 destination > Creating staging path for stream transaction_audits (dataset t_billing): gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:15 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:16 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:16 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} 2022-09-27 19:22:16 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} 2022-09-27 19:22:16 destination > Creating staging path for stream transactions_1628688127 (dataset t_billing): gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:16 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:16 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:16 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} 2022-09-27 19:22:16 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} 2022-09-27 19:22:16 destination > Creating staging path for stream cards (dataset t_billing): gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:17 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:17 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:17 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} 2022-09-27 19:22:17 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} 2022-09-27 19:22:17 destination > Creating staging path for stream v_inclusion_summaries (dataset t_billing): gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:17 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:17 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:17 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} 2022-09-27 19:22:18 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} 2022-09-27 19:22:18 destination > Creating staging path for stream inclusions (dataset t_billing): gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:18 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:18 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:18 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_dzm_inclusions_charities}} 2022-09-27 19:22:18 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_dzm_inclusions_charities}} 2022-09-27 19:22:18 destination > Creating staging path for stream inclusions_charities (dataset t_billing): gwat_live/t_billing_inclusions_charities/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:18 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_charities/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:19 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_charities/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:19 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ftf_inclusions_insurances}} 2022-09-27 19:22:19 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ftf_inclusions_insurances}} 2022-09-27 19:22:19 destination > Creating staging path for stream inclusions_insurances (dataset t_billing): gwat_live/t_billing_inclusions_insurances/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:19 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_insurances/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:19 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_insurances/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:19 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rjy_transaction_credits}} 2022-09-27 19:22:20 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rjy_transaction_credits}} 2022-09-27 19:22:20 destination > Creating staging path for stream transaction_credits (dataset t_billing): gwat_live/t_billing_transaction_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:20 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:20 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:20 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} 2022-09-27 19:22:20 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} 2022-09-27 19:22:20 destination > Creating staging path for stream inclusions_accommodations (dataset t_billing): gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:20 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:21 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:21 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_plt_credits}} 2022-09-27 19:22:21 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_plt_credits}} 2022-09-27 19:22:21 destination > Creating staging path for stream credits (dataset t_billing): gwat_live/t_billing_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:21 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:21 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:21 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} 2022-09-27 19:22:21 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} 2022-09-27 19:22:21 destination > Creating staging path for stream v_transactions_invalid_currencies (dataset t_billing): gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:22 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:22 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:22 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} 2022-09-27 19:22:22 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} 2022-09-27 19:22:22 destination > Creating staging path for stream v_transaction_currencies_used (dataset t_billing): gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:22 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:22 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:22 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yyz_inclusions_tours}} 2022-09-27 19:22:23 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yyz_inclusions_tours}} 2022-09-27 19:22:23 destination > Creating staging path for stream inclusions_tours (dataset t_billing): gwat_live/t_billing_inclusions_tours/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:23 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_tours/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:23 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_tours/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:23 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} 2022-09-27 19:22:23 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} 2022-09-27 19:22:23 destination > Creating staging path for stream v_bad_chargebacks (dataset t_billing): gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:23 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:24 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:24 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_btg_inclusions_flights}} 2022-09-27 19:22:24 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_btg_inclusions_flights}} 2022-09-27 19:22:24 destination > Creating staging path for stream inclusions_flights (dataset t_billing): gwat_live/t_billing_inclusions_flights/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:24 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_flights/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:24 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_flights/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:24 destination > Creating tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} 2022-09-27 19:22:24 destination > Partitioned table created successfully: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} 2022-09-27 19:22:24 destination > Creating staging path for stream payment_plans_analysis (dataset t_billing): gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:24 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ does not exist in bucket; creating... 2022-09-27 19:22:25 destination > Storage Object airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ has been created in bucket. 2022-09-27 19:22:25 destination > Preparing tmp tables in destination completed. 2022-09-27 19:22:25 destination > Starting a new buffer for stream transactions (current state: 0 bytes in 0 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream activity_log (current state: 0 bytes in 1 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream transaction_audits (current state: 0 bytes in 2 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream invoices (current state: 0 bytes in 3 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream cards (current state: 0 bytes in 4 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream discounts (current state: 0 bytes in 5 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream inclusions (current state: 0 bytes in 6 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream inclusions_experiences (current state: 0 bytes in 7 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Starting a new buffer for stream inclusions_accommodations (current state: 0 bytes in 8 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 source > Set initial fetch size: 10 rows 2022-09-27 19:22:25 source > Set initial fetch size: 10 rows 2022-09-27 19:22:25 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:25 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 1000 (83 KB) 2022-09-27 19:22:25 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 2000 (147 KB) 2022-09-27 19:22:25 destination > Starting a new buffer for stream payment_plans_analysis (current state: 0 bytes in 9 buffers) 2022-09-27 19:22:25 destination > Default schema. 2022-09-27 19:22:25 destination > Flushing all 10 current buffers (0 bytes in total) 2022-09-27 19:22:25 destination > Flushing buffer of stream inclusions (324 bytes) 2022-09-27 19:22:25 destination > Flushing buffer for stream inclusions (324 bytes) to staging 2022-09-27 19:22:25 destination > Finished writing data to 0a833fca-8307-4600-8b00-18add31148d36602816907334421729.avro (1 KB) 2022-09-27 19:22:25 destination > Uploading records to staging for stream inclusions (dataset t_billing): gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:25 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6ejbcpphEe8FlREN2PQNZfwJPJDHJU4S980WR-2V9FX7aOmLML-3pUuNaw5-WtcqY 2022-09-27 19:22:25 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:25 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6ej...aw5-WtcqY]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:26 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6ej...aw5-WtcqY]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:26 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6ej...aw5-WtcqY]: Completed 2022-09-27 19:22:26 destination > Uploaded buffer file to storage: 0a833fca-8307-4600-8b00-18add31148d36602816907334421729.avro -> gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:26 destination > Added staged file: 1.avro 2022-09-27 19:22:26 destination > Deleting tempFile data 0a833fca-8307-4600-8b00-18add31148d36602816907334421729.avro 2022-09-27 19:22:26 destination > Flushing buffer of stream transactions (326 bytes) 2022-09-27 19:22:26 destination > Flushing buffer for stream transactions (326 bytes) to staging 2022-09-27 19:22:26 destination > Finished writing data to 8ffb177b-d28a-4ba6-9f19-cb55705a168f1438169160149269227.avro (12 KB) 2022-09-27 19:22:26 destination > Uploading records to staging for stream transactions (dataset t_billing): gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:26 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7N2cYerEFeROEOBfBSgbMlUiYZOYebUL1ZPEV56iBwHJX1jrX87YjgU5fMG2pxXnk 2022-09-27 19:22:26 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:26 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7N2...fMG2pxXnk]: Uploading leftover stream [Part number 1 containing 0.01 MB] 2022-09-27 19:22:27 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7N2...fMG2pxXnk]: Finished uploading [Part number 1 containing 0.01 MB] 2022-09-27 19:22:27 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7N2...fMG2pxXnk]: Completed 2022-09-27 19:22:27 destination > Uploaded buffer file to storage: 8ffb177b-d28a-4ba6-9f19-cb55705a168f1438169160149269227.avro -> gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:27 destination > Added staged file: 1.avro 2022-09-27 19:22:27 destination > Deleting tempFile data 8ffb177b-d28a-4ba6-9f19-cb55705a168f1438169160149269227.avro 2022-09-27 19:22:27 destination > Flushing buffer of stream inclusions_experiences (336 bytes) 2022-09-27 19:22:27 destination > Flushing buffer for stream inclusions_experiences (336 bytes) to staging 2022-09-27 19:22:27 destination > Finished writing data to 890320d4-651f-4dd9-b5eb-806352d54cb06199558648150412967.avro (1 KB) 2022-09-27 19:22:27 destination > Uploading records to staging for stream inclusions_experiences (dataset t_billing): gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:27 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6Q1pD6dygnSxpqP2gtkngMFa67Ev0LlzQB2ejaEXvd22Bj_-9eE5loj0TEAbNE_SA 2022-09-27 19:22:27 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:27 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6Q1...TEAbNE_SA]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:28 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6Q1...TEAbNE_SA]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:28 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6Q1...TEAbNE_SA]: Completed 2022-09-27 19:22:28 destination > Uploaded buffer file to storage: 890320d4-651f-4dd9-b5eb-806352d54cb06199558648150412967.avro -> gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:28 destination > Added staged file: 1.avro 2022-09-27 19:22:28 destination > Deleting tempFile data 890320d4-651f-4dd9-b5eb-806352d54cb06199558648150412967.avro 2022-09-27 19:22:28 destination > Flushing buffer of stream invoices (322 bytes) 2022-09-27 19:22:28 destination > Flushing buffer for stream invoices (322 bytes) to staging 2022-09-27 19:22:28 destination > Finished writing data to 19311a83-310f-43f2-a7bb-1f21c28c96583480721718093273623.avro (3 KB) 2022-09-27 19:22:28 destination > Uploading records to staging for stream invoices (dataset t_billing): gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:29 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6E6lGg3IOd2BSMWqTnJbp33k0ql6T7RDfEdMSu9VmLCGgC8NVMqF3tfHHuh1I2O1g 2022-09-27 19:22:29 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:29 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6E6...Huh1I2O1g]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:29 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6E6...Huh1I2O1g]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:30 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6E6...Huh1I2O1g]: Completed 2022-09-27 19:22:30 destination > Uploaded buffer file to storage: 19311a83-310f-43f2-a7bb-1f21c28c96583480721718093273623.avro -> gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:30 destination > Added staged file: 1.avro 2022-09-27 19:22:30 destination > Deleting tempFile data 19311a83-310f-43f2-a7bb-1f21c28c96583480721718093273623.avro 2022-09-27 19:22:30 destination > Flushing buffer of stream discounts (323 bytes) 2022-09-27 19:22:30 destination > Flushing buffer for stream discounts (323 bytes) to staging 2022-09-27 19:22:30 destination > Finished writing data to e8b632c0-f744-41c0-bc9a-9658b37fea964884160650957278163.avro (687 bytes) 2022-09-27 19:22:30 destination > Uploading records to staging for stream discounts (dataset t_billing): gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:30 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7fSoxHmbCL_7DFDd78OvAB2ML3J4wLfNkp1eLUzTFHIH0pgKjAcZp_QDTPNqXUIxc 2022-09-27 19:22:30 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:30 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7fS...TPNqXUIxc]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:30 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7fS...TPNqXUIxc]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:31 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7fS...TPNqXUIxc]: Completed 2022-09-27 19:22:31 destination > Uploaded buffer file to storage: e8b632c0-f744-41c0-bc9a-9658b37fea964884160650957278163.avro -> gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:31 destination > Added staged file: 1.avro 2022-09-27 19:22:31 destination > Deleting tempFile data e8b632c0-f744-41c0-bc9a-9658b37fea964884160650957278163.avro 2022-09-27 19:22:31 destination > Flushing buffer of stream inclusions_accommodations (339 bytes) 2022-09-27 19:22:31 destination > Flushing buffer for stream inclusions_accommodations (339 bytes) to staging 2022-09-27 19:22:31 destination > Finished writing data to 6cc795e7-c83e-4970-8d76-7b5e45c82fc74911042839970648380.avro (595 bytes) 2022-09-27 19:22:31 destination > Uploading records to staging for stream inclusions_accommodations (dataset t_billing): gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:31 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6rtuw_BDTDehHjhA9Ocx3G8i7a0orMusdnOmlr3rbhTcBQ4jV5X99v2cB84z9NrEo 2022-09-27 19:22:31 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:31 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6rt...B84z9NrEo]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:31 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6rt...B84z9NrEo]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:32 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6rt...B84z9NrEo]: Completed 2022-09-27 19:22:32 destination > Uploaded buffer file to storage: 6cc795e7-c83e-4970-8d76-7b5e45c82fc74911042839970648380.avro -> gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:32 destination > Added staged file: 1.avro 2022-09-27 19:22:32 destination > Deleting tempFile data 6cc795e7-c83e-4970-8d76-7b5e45c82fc74911042839970648380.avro 2022-09-27 19:22:32 destination > Flushing buffer of stream transaction_audits (332 bytes) 2022-09-27 19:22:32 destination > Flushing buffer for stream transaction_audits (332 bytes) to staging 2022-09-27 19:22:32 destination > Finished writing data to 9c1b4008-6e2e-483d-bf28-87c02d5cd96f11296108913597111519.avro (1 KB) 2022-09-27 19:22:32 destination > Uploading records to staging for stream transaction_audits (dataset t_billing): gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:32 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6yhlJx9uuVDo_orW4Ry-FvrIr9b_8HGxmfpdQRr74CDta11Po7ZvOyQacbAIoGSto 2022-09-27 19:22:32 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:32 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6yh...cbAIoGSto]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:32 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6yh...cbAIoGSto]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:33 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6yh...cbAIoGSto]: Completed 2022-09-27 19:22:33 destination > Uploaded buffer file to storage: 9c1b4008-6e2e-483d-bf28-87c02d5cd96f11296108913597111519.avro -> gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:33 destination > Added staged file: 1.avro 2022-09-27 19:22:33 destination > Deleting tempFile data 9c1b4008-6e2e-483d-bf28-87c02d5cd96f11296108913597111519.avro 2022-09-27 19:22:33 destination > Flushing buffer of stream cards (319 bytes) 2022-09-27 19:22:33 destination > Flushing buffer for stream cards (319 bytes) to staging 2022-09-27 19:22:33 destination > Finished writing data to 81da6c5a-5e14-4eb6-94ae-276f2438accc5868982131878348430.avro (965 bytes) 2022-09-27 19:22:33 destination > Uploading records to staging for stream cards (dataset t_billing): gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:33 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm4_OWjj6Eoii_UOgRA52FErCIrykavNQjuilL852FV2TVnA1C8txFucLHP1-po3NuM 2022-09-27 19:22:33 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:33 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4_O...P1-po3NuM]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:34 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4_O...P1-po3NuM]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:34 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4_O...P1-po3NuM]: Completed 2022-09-27 19:22:34 destination > Uploaded buffer file to storage: 81da6c5a-5e14-4eb6-94ae-276f2438accc5868982131878348430.avro -> gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:34 destination > Added staged file: 1.avro 2022-09-27 19:22:34 destination > Deleting tempFile data 81da6c5a-5e14-4eb6-94ae-276f2438accc5868982131878348430.avro 2022-09-27 19:22:34 destination > Flushing buffer of stream activity_log (326 bytes) 2022-09-27 19:22:34 destination > Flushing buffer for stream activity_log (326 bytes) to staging 2022-09-27 19:22:34 destination > Finished writing data to 4b1e84ca-5b47-4366-a4fd-6bc8ac6f2ea09299600728143818144.avro (8 KB) 2022-09-27 19:22:34 destination > Uploading records to staging for stream activity_log (dataset t_billing): gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:34 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7zfGMcJ6fR0jI2hM3UXR3Pbvqv0dLeBNwuTxpTBAgr9VU7Rsvk9vv5ofyGautXKvA 2022-09-27 19:22:34 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:34 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7zf...yGautXKvA]: Uploading leftover stream [Part number 1 containing 0.01 MB] 2022-09-27 19:22:35 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7zf...yGautXKvA]: Finished uploading [Part number 1 containing 0.01 MB] 2022-09-27 19:22:35 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7zf...yGautXKvA]: Completed 2022-09-27 19:22:35 destination > Uploaded buffer file to storage: 4b1e84ca-5b47-4366-a4fd-6bc8ac6f2ea09299600728143818144.avro -> gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:35 destination > Added staged file: 1.avro 2022-09-27 19:22:35 destination > Deleting tempFile data 4b1e84ca-5b47-4366-a4fd-6bc8ac6f2ea09299600728143818144.avro 2022-09-27 19:22:35 destination > Flushing buffer of stream payment_plans_analysis (336 bytes) 2022-09-27 19:22:35 destination > Flushing buffer for stream payment_plans_analysis (336 bytes) to staging 2022-09-27 19:22:35 destination > Finished writing data to 7684ad4d-c448-48b7-9cf2-2999f2b1017612311579264296504159.avro (462 bytes) 2022-09-27 19:22:35 destination > Uploading records to staging for stream payment_plans_analysis (dataset t_billing): gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:22:35 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7R09eEuPE9FyEVup7hezpai8m0ehlB4rpl9zayNDThnRzIxu6Ar1-UgP4gb8qqm5E 2022-09-27 19:22:35 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:22:35 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7R0...4gb8qqm5E]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:22:36 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7R0...4gb8qqm5E]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:22:36 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7R0...4gb8qqm5E]: Completed 2022-09-27 19:22:36 destination > Uploaded buffer file to storage: 7684ad4d-c448-48b7-9cf2-2999f2b1017612311579264296504159.avro -> gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:22:36 destination > Added staged file: 1.avro 2022-09-27 19:22:36 destination > Deleting tempFile data 7684ad4d-c448-48b7-9cf2-2999f2b1017612311579264296504159.avro 2022-09-27 19:22:36 destination > Closing buffer for stream inclusions 2022-09-27 19:22:36 destination > Closing buffer for stream transactions 2022-09-27 19:22:36 destination > Closing buffer for stream inclusions_experiences 2022-09-27 19:22:36 destination > Closing buffer for stream invoices 2022-09-27 19:22:36 destination > Closing buffer for stream discounts 2022-09-27 19:22:36 destination > Closing buffer for stream inclusions_accommodations 2022-09-27 19:22:36 destination > Closing buffer for stream transaction_audits 2022-09-27 19:22:36 destination > Closing buffer for stream cards 2022-09-27 19:22:36 destination > Closing buffer for stream activity_log 2022-09-27 19:22:36 destination > Closing buffer for stream payment_plans_analysis 2022-09-27 19:22:36 destination > Starting a new buffer for stream payment_plans_analysis (current state: 0 bytes in 0 buffers) 2022-09-27 19:22:36 destination > Default schema. 2022-09-27 19:22:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 3000 (211 KB) 2022-09-27 19:22:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 4000 (275 KB) 2022-09-27 19:22:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 5000 (340 KB) 2022-09-27 19:22:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 6000 (405 KB) 2022-09-27 19:22:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 7000 (470 KB) 2022-09-27 19:22:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 8000 (536 KB) 2022-09-27 19:22:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 9000 (601 KB) 2022-09-27 19:22:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 10000 (666 KB) 2022-09-27 19:22:37 source > Reading stream payment_plans_analysis. Records read: 10000 2022-09-27 19:22:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 11000 (731 KB) 2022-09-27 19:22:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 12000 (796 KB) 2022-09-27 19:22:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 13000 (861 KB) 2022-09-27 19:22:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 14000 (926 KB) 2022-09-27 19:22:38 source > Set initial fetch size: 10 rows 2022-09-27 19:22:38 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 15000 (1 MB) 2022-09-27 19:22:38 destination > Starting a new buffer for stream transactions_1628688127 (current state: 1 MB in 1 buffers) 2022-09-27 19:22:38 destination > Default schema. 2022-09-27 19:22:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 16000 (1 MB) 2022-09-27 19:22:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 17000 (1 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 18000 (1 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 19000 (1 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 20000 (2 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 21000 (2 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 22000 (2 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 23000 (2 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 24000 (3 MB) 2022-09-27 19:22:39 source > Reading stream transactions_1628688127. Records read: 10000 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 25000 (3 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 26000 (3 MB) 2022-09-27 19:22:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 27000 (3 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 28000 (4 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 29000 (4 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 30000 (4 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 31000 (4 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 32000 (4 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 33000 (5 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 34000 (5 MB) 2022-09-27 19:22:40 source > Reading stream transactions_1628688127. Records read: 20000 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 35000 (5 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 36000 (5 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 37000 (5 MB) 2022-09-27 19:22:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 38000 (6 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 39000 (6 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 40000 (6 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 41000 (6 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 42000 (7 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 43000 (7 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 44000 (7 MB) 2022-09-27 19:22:41 source > Reading stream transactions_1628688127. Records read: 30000 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 45000 (7 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 46000 (8 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 47000 (8 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 48000 (8 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 49000 (9 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 50000 (9 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 51000 (9 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 52000 (9 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 53000 (10 MB) 2022-09-27 19:22:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 54000 (10 MB) 2022-09-27 19:22:42 source > Reading stream transactions_1628688127. Records read: 40000 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 55000 (10 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 56000 (11 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 57000 (11 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 58000 (11 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 59000 (11 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 60000 (12 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 61000 (12 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 62000 (12 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 63000 (13 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 64000 (13 MB) 2022-09-27 19:22:42 source > Reading stream transactions_1628688127. Records read: 50000 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 65000 (13 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 66000 (13 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 67000 (14 MB) 2022-09-27 19:22:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 68000 (14 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 69000 (14 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 70000 (15 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 71000 (15 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 72000 (15 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 73000 (16 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 74000 (16 MB) 2022-09-27 19:22:43 source > Reading stream transactions_1628688127. Records read: 60000 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 75000 (16 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 76000 (17 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 77000 (17 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 78000 (17 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 79000 (17 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 80000 (18 MB) 2022-09-27 19:22:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 81000 (18 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 82000 (18 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 83000 (19 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 84000 (19 MB) 2022-09-27 19:22:44 source > Reading stream transactions_1628688127. Records read: 70000 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 85000 (19 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 86000 (20 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 87000 (20 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 88000 (20 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 89000 (21 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 90000 (21 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 91000 (21 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 92000 (21 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 93000 (22 MB) 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 94000 (22 MB) 2022-09-27 19:22:44 source > Reading stream transactions_1628688127. Records read: 80000 2022-09-27 19:22:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 95000 (22 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 96000 (23 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 97000 (23 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 98000 (23 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 99000 (24 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 100000 (24 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 101000 (24 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 102000 (25 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 103000 (25 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 104000 (25 MB) 2022-09-27 19:22:45 source > Reading stream transactions_1628688127. Records read: 90000 2022-09-27 19:22:45 source > Last 10 fetch size updates: [210727, 798915, 782611, 762601, 756156, 723546, 721601, 719666, 717742, 715828] 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 105000 (26 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 106000 (26 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 107000 (26 MB) 2022-09-27 19:22:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 108000 (27 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 109000 (27 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 110000 (27 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 111000 (28 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 112000 (28 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 113000 (28 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 114000 (29 MB) 2022-09-27 19:22:46 source > Reading stream transactions_1628688127. Records read: 100000 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 115000 (29 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 116000 (29 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 117000 (30 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 118000 (30 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 119000 (30 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 120000 (31 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 121000 (31 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 122000 (31 MB) 2022-09-27 19:22:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 123000 (32 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 124000 (32 MB) 2022-09-27 19:22:47 source > Reading stream transactions_1628688127. Records read: 110000 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 125000 (32 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 126000 (33 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 127000 (33 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 128000 (33 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 129000 (34 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 130000 (34 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 131000 (35 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 132000 (35 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 133000 (35 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 134000 (36 MB) 2022-09-27 19:22:47 source > Reading stream transactions_1628688127. Records read: 120000 2022-09-27 19:22:47 source > Set initial fetch size: 10 rows 2022-09-27 19:22:47 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:47 destination > Starting a new buffer for stream v_bad_chargebacks (current state: 42 MB in 2 buffers) 2022-09-27 19:22:47 destination > Default schema. 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 135000 (36 MB) 2022-09-27 19:22:47 source > Set initial fetch size: 10 rows 2022-09-27 19:22:47 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:47 destination > Starting a new buffer for stream v_bad_transaction_audits (current state: 42 MB in 3 buffers) 2022-09-27 19:22:47 destination > Default schema. 2022-09-27 19:22:47 source > Set initial fetch size: 10 rows 2022-09-27 19:22:47 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:47 destination > Starting a new buffer for stream v_charity_transaction_summaries (current state: 42 MB in 4 buffers) 2022-09-27 19:22:47 destination > Default schema. 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 136000 (36 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 137000 (36 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 138000 (36 MB) 2022-09-27 19:22:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 139000 (36 MB) 2022-09-27 19:22:48 source > Set initial fetch size: 10 rows 2022-09-27 19:22:48 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:48 destination > Starting a new buffer for stream v_discount_summaries (current state: 42 MB in 5 buffers) 2022-09-27 19:22:48 destination > Default schema. 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 140000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 141000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 142000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 143000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 144000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 145000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 146000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 147000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 148000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 149000 (36 MB) 2022-09-27 19:22:48 source > Reading stream v_discount_summaries. Records read: 10000 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 150000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 151000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 152000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 153000 (36 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 154000 (37 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 155000 (37 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 156000 (37 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 157000 (37 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 158000 (37 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 159000 (37 MB) 2022-09-27 19:22:48 source > Reading stream v_discount_summaries. Records read: 20000 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 160000 (37 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 161000 (37 MB) 2022-09-27 19:22:48 source > Set initial fetch size: 10 rows 2022-09-27 19:22:48 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:48 destination > Starting a new buffer for stream v_inclusion_summaries (current state: 44 MB in 6 buffers) 2022-09-27 19:22:48 destination > Default schema. 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 162000 (37 MB) 2022-09-27 19:22:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 163000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 164000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 165000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 166000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 167000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 168000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 169000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 170000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 171000 (37 MB) 2022-09-27 19:22:49 source > Reading stream v_inclusion_summaries. Records read: 10000 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 172000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 173000 (37 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 174000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 175000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 176000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 177000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 178000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 179000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 180000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 181000 (38 MB) 2022-09-27 19:22:49 source > Reading stream v_inclusion_summaries. Records read: 20000 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 182000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 183000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 184000 (38 MB) 2022-09-27 19:22:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 185000 (38 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 186000 (38 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 187000 (38 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 188000 (38 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 189000 (38 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 190000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 191000 (39 MB) 2022-09-27 19:22:50 source > Reading stream v_inclusion_summaries. Records read: 30000 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 192000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 193000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 194000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 195000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 196000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 197000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 198000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 199000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 200000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 201000 (39 MB) 2022-09-27 19:22:50 source > Reading stream v_inclusion_summaries. Records read: 40000 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 202000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 203000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 204000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 205000 (39 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 206000 (40 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 207000 (40 MB) 2022-09-27 19:22:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 208000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 209000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 210000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 211000 (40 MB) 2022-09-27 19:22:51 source > Reading stream v_inclusion_summaries. Records read: 50000 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 212000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 213000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 214000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 215000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 216000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 217000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 218000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 219000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 220000 (40 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 221000 (40 MB) 2022-09-27 19:22:51 source > Reading stream v_inclusion_summaries. Records read: 60000 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 222000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 223000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 224000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 225000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 226000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 227000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 228000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 229000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 230000 (41 MB) 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 231000 (41 MB) 2022-09-27 19:22:51 source > Reading stream v_inclusion_summaries. Records read: 70000 2022-09-27 19:22:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 232000 (41 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 233000 (41 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 234000 (41 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 235000 (41 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 236000 (41 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 237000 (41 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 238000 (41 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 239000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 240000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 241000 (42 MB) 2022-09-27 19:22:52 source > Reading stream v_inclusion_summaries. Records read: 80000 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 242000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 243000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 244000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 245000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 246000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 247000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 248000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 249000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 250000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 251000 (42 MB) 2022-09-27 19:22:52 source > Reading stream v_inclusion_summaries. Records read: 90000 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 252000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 253000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 254000 (42 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 255000 (43 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 256000 (43 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 257000 (43 MB) 2022-09-27 19:22:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 258000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 259000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 260000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 261000 (43 MB) 2022-09-27 19:22:53 source > Reading stream v_inclusion_summaries. Records read: 100000 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 262000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 263000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 264000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 265000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 266000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 267000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 268000 (43 MB) 2022-09-27 19:22:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 269000 (43 MB) 2022-09-27 19:22:53 source > Set initial fetch size: 10 rows 2022-09-27 19:22:55 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:22:55 destination > Starting a new buffer for stream v_invoice_summaries (current state: 55 MB in 7 buffers) 2022-09-27 19:22:55 destination > Default schema. 2022-09-27 19:22:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 270000 (43 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 271000 (44 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 272000 (44 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 273000 (44 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 274000 (45 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 275000 (45 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 276000 (45 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 277000 (45 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 278000 (46 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 279000 (46 MB) 2022-09-27 19:22:56 source > Reading stream v_invoice_summaries. Records read: 10000 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 280000 (46 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 281000 (46 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 282000 (47 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 283000 (47 MB) 2022-09-27 19:22:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 284000 (47 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 285000 (47 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 286000 (48 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 287000 (48 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 288000 (48 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 289000 (49 MB) 2022-09-27 19:22:57 source > Reading stream v_invoice_summaries. Records read: 20000 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 290000 (49 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 291000 (49 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 292000 (50 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 293000 (50 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 294000 (50 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 295000 (50 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 296000 (51 MB) 2022-09-27 19:22:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 297000 (51 MB) 2022-09-27 19:22:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 298000 (51 MB) 2022-09-27 19:22:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 299000 (52 MB) 2022-09-27 19:22:58 source > Reading stream v_invoice_summaries. Records read: 30000 2022-09-27 19:22:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 300000 (52 MB) 2022-09-27 19:22:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 301000 (52 MB) 2022-09-27 19:22:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 302000 (53 MB) 2022-09-27 19:22:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 303000 (53 MB) 2022-09-27 19:22:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 304000 (53 MB) 2022-09-27 19:22:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 305000 (54 MB) 2022-09-27 19:22:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 306000 (54 MB) 2022-09-27 19:22:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 307000 (54 MB) 2022-09-27 19:22:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 308000 (55 MB) 2022-09-27 19:22:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 309000 (55 MB) 2022-09-27 19:22:59 source > Reading stream v_invoice_summaries. Records read: 40000 2022-09-27 19:22:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 310000 (55 MB) 2022-09-27 19:22:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 311000 (55 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 312000 (56 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 313000 (56 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 314000 (56 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 315000 (57 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 316000 (57 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 317000 (57 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 318000 (58 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 319000 (58 MB) 2022-09-27 19:23:00 source > Reading stream v_invoice_summaries. Records read: 50000 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 320000 (58 MB) 2022-09-27 19:23:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 321000 (59 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 322000 (59 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 323000 (59 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 324000 (59 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 325000 (60 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 326000 (60 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 327000 (60 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 328000 (61 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 329000 (61 MB) 2022-09-27 19:23:01 source > Reading stream v_invoice_summaries. Records read: 60000 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 330000 (61 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 331000 (62 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 332000 (62 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 333000 (62 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 334000 (62 MB) 2022-09-27 19:23:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 335000 (63 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 336000 (63 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 337000 (63 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 338000 (64 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 339000 (64 MB) 2022-09-27 19:23:02 source > Reading stream v_invoice_summaries. Records read: 70000 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 340000 (64 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 341000 (64 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 342000 (65 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 343000 (65 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 344000 (65 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 345000 (66 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 346000 (66 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 347000 (66 MB) 2022-09-27 19:23:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 348000 (67 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 349000 (67 MB) 2022-09-27 19:23:03 source > Reading stream v_invoice_summaries. Records read: 80000 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 350000 (67 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 351000 (67 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 352000 (68 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 353000 (68 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 354000 (68 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 355000 (69 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 356000 (69 MB) 2022-09-27 19:23:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 357000 (69 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 358000 (69 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 359000 (70 MB) 2022-09-27 19:23:04 source > Reading stream v_invoice_summaries. Records read: 90000 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 360000 (70 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 361000 (70 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 362000 (71 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 363000 (71 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 364000 (71 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 365000 (72 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 366000 (72 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 367000 (72 MB) 2022-09-27 19:23:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 368000 (72 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 369000 (73 MB) 2022-09-27 19:23:05 source > Reading stream v_invoice_summaries. Records read: 100000 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 370000 (73 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 371000 (73 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 372000 (74 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 373000 (74 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 374000 (74 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 375000 (74 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 376000 (75 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 377000 (75 MB) 2022-09-27 19:23:05 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 378000 (75 MB) 2022-09-27 19:23:05 source > Set initial fetch size: 10 rows 2022-09-27 19:23:05 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:05 destination > Starting a new buffer for stream v_payment_plan_summaries (current state: 91 MB in 8 buffers) 2022-09-27 19:23:05 destination > Default schema. 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 379000 (75 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 380000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 381000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 382000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 383000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 384000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 385000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 386000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 387000 (76 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 388000 (77 MB) 2022-09-27 19:23:06 source > Reading stream v_payment_plan_summaries. Records read: 10000 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 389000 (77 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 390000 (77 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 391000 (77 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 392000 (77 MB) 2022-09-27 19:23:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 393000 (77 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 394000 (77 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 395000 (77 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 396000 (78 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 397000 (78 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 398000 (78 MB) 2022-09-27 19:23:07 source > Reading stream v_payment_plan_summaries. Records read: 20000 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 399000 (78 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 400000 (78 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 401000 (78 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 402000 (78 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 403000 (78 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 404000 (79 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 405000 (79 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 406000 (79 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 407000 (79 MB) 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 408000 (79 MB) 2022-09-27 19:23:07 source > Reading stream v_payment_plan_summaries. Records read: 30000 2022-09-27 19:23:07 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 409000 (79 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 410000 (79 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 411000 (79 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 412000 (80 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 413000 (80 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 414000 (80 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 415000 (80 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 416000 (80 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 417000 (80 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 418000 (80 MB) 2022-09-27 19:23:08 source > Reading stream v_payment_plan_summaries. Records read: 40000 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 419000 (80 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 420000 (81 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 421000 (81 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 422000 (81 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 423000 (81 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 424000 (81 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 425000 (81 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 426000 (81 MB) 2022-09-27 19:23:08 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 427000 (81 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 428000 (82 MB) 2022-09-27 19:23:09 source > Reading stream v_payment_plan_summaries. Records read: 50000 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 429000 (82 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 430000 (82 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 431000 (82 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 432000 (82 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 433000 (82 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 434000 (82 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 435000 (82 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 436000 (83 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 437000 (83 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 438000 (83 MB) 2022-09-27 19:23:09 source > Reading stream v_payment_plan_summaries. Records read: 60000 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 439000 (83 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 440000 (83 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 441000 (83 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 442000 (83 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 443000 (84 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 444000 (84 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 445000 (84 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 446000 (84 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 447000 (84 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 448000 (84 MB) 2022-09-27 19:23:09 source > Reading stream v_payment_plan_summaries. Records read: 70000 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 449000 (84 MB) 2022-09-27 19:23:09 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 450000 (84 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 451000 (85 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 452000 (85 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 453000 (85 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 454000 (85 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 455000 (85 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 456000 (85 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 457000 (85 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 458000 (85 MB) 2022-09-27 19:23:10 source > Reading stream v_payment_plan_summaries. Records read: 80000 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 459000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 460000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 461000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 462000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 463000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 464000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 465000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 466000 (86 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 467000 (87 MB) 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 468000 (87 MB) 2022-09-27 19:23:10 source > Reading stream v_payment_plan_summaries. Records read: 90000 2022-09-27 19:23:10 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 469000 (87 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 470000 (87 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 471000 (87 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 472000 (87 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 473000 (87 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 474000 (87 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 475000 (88 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 476000 (88 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 477000 (88 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 478000 (88 MB) 2022-09-27 19:23:11 source > Reading stream v_payment_plan_summaries. Records read: 100000 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 479000 (88 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 480000 (88 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 481000 (88 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 482000 (88 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 483000 (89 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 484000 (89 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 485000 (89 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 486000 (89 MB) 2022-09-27 19:23:11 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 487000 (89 MB) 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 488000 (89 MB) 2022-09-27 19:23:12 source > Reading stream v_payment_plan_summaries. Records read: 110000 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 489000 (89 MB) 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 490000 (90 MB) 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 491000 (90 MB) 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 492000 (90 MB) 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 493000 (90 MB) 2022-09-27 19:23:12 source > Set initial fetch size: 10 rows 2022-09-27 19:23:12 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:12 destination > Starting a new buffer for stream v_total_flight_paid (current state: 111 MB in 9 buffers) 2022-09-27 19:23:12 destination > Default schema. 2022-09-27 19:23:12 destination > Flushing all 10 current buffers (111 MB in total) 2022-09-27 19:23:12 destination > Flushing buffer of stream v_bad_transaction_audits (62 KB) 2022-09-27 19:23:12 destination > Flushing buffer for stream v_bad_transaction_audits (62 KB) to staging 2022-09-27 19:23:12 destination > Finished writing data to 065109d7-ce95-4af7-aa5d-0ebb73d47bee9078391176874647493.avro (70 KB) 2022-09-27 19:23:12 destination > Uploading records to staging for stream v_bad_transaction_audits (dataset t_billing): gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 494000 (90 MB) 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 495000 (90 MB) 2022-09-27 19:23:12 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 496000 (90 MB) 2022-09-27 19:23:12 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm70LGOmilmE9QEricMTsZAE54SWqCfaGhqP8mPxMNNnRUemEm0ApdyTlzOskizD36Q 2022-09-27 19:23:12 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:12 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm70L...OskizD36Q]: Uploading leftover stream [Part number 1 containing 0.07 MB] 2022-09-27 19:23:13 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm70L...OskizD36Q]: Finished uploading [Part number 1 containing 0.07 MB] 2022-09-27 19:23:13 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm70L...OskizD36Q]: Completed 2022-09-27 19:23:13 destination > Uploaded buffer file to storage: 065109d7-ce95-4af7-aa5d-0ebb73d47bee9078391176874647493.avro -> gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:13 destination > Added staged file: 1.avro 2022-09-27 19:23:13 destination > Deleting tempFile data 065109d7-ce95-4af7-aa5d-0ebb73d47bee9078391176874647493.avro 2022-09-27 19:23:13 destination > Flushing buffer of stream v_payment_plan_summaries (19 MB) 2022-09-27 19:23:13 destination > Flushing buffer for stream v_payment_plan_summaries (19 MB) to staging 2022-09-27 19:23:13 destination > Finished writing data to 9e9dc526-5139-42a9-82bb-c1037d5184cd8979984259671230362.avro (19 MB) 2022-09-27 19:23:13 destination > Uploading records to staging for stream v_payment_plan_summaries (dataset t_billing): gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:14 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm5-4kQZj3uaZQINccI_a_XFDxEMGH1x7MYkaVa1io7dPMg-xYMDX-hIWLAr8aKNlR4 2022-09-27 19:23:14 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5-4...Ar8aKNlR4]: Finished uploading [Part number 1 containing 10.01 MB] 2022-09-27 19:23:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5-4...Ar8aKNlR4]: Finished uploading [Part number 2 containing 9.55 MB] 2022-09-27 19:23:15 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5-4...Ar8aKNlR4]: Completed 2022-09-27 19:23:15 destination > Uploaded buffer file to storage: 9e9dc526-5139-42a9-82bb-c1037d5184cd8979984259671230362.avro -> gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:15 destination > Added staged file: 1.avro 2022-09-27 19:23:15 destination > Deleting tempFile data 9e9dc526-5139-42a9-82bb-c1037d5184cd8979984259671230362.avro 2022-09-27 19:23:15 destination > Flushing buffer of stream v_invoice_summaries (36 MB) 2022-09-27 19:23:15 destination > Flushing buffer for stream v_invoice_summaries (36 MB) to staging 2022-09-27 19:23:15 destination > Finished writing data to dc408bd8-9f6b-42d3-bd6e-90ebe5313f811542253017809772054.avro (36 MB) 2022-09-27 19:23:15 destination > Uploading records to staging for stream v_invoice_summaries (dataset t_billing): gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:16 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7xytraAE44GZ8x7egdrTUg1UrqorF29sAyG8lIcc47RsGWvLp0KNBa3uHfRzP8D7Y 2022-09-27 19:23:16 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:16 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7xy...HfRzP8D7Y]: Finished uploading [Part number 4 containing 6.54 MB] 2022-09-27 19:23:16 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7xy...HfRzP8D7Y]: Finished uploading [Part number 2 containing 10.01 MB] 2022-09-27 19:23:16 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7xy...HfRzP8D7Y]: Finished uploading [Part number 1 containing 10.01 MB] 2022-09-27 19:23:16 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7xy...HfRzP8D7Y]: Finished uploading [Part number 3 containing 10.01 MB] 2022-09-27 19:23:17 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7xy...HfRzP8D7Y]: Completed 2022-09-27 19:23:17 destination > Uploaded buffer file to storage: dc408bd8-9f6b-42d3-bd6e-90ebe5313f811542253017809772054.avro -> gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:17 destination > Added staged file: 1.avro 2022-09-27 19:23:17 destination > Deleting tempFile data dc408bd8-9f6b-42d3-bd6e-90ebe5313f811542253017809772054.avro 2022-09-27 19:23:17 destination > Flushing buffer of stream v_discount_summaries (1 MB) 2022-09-27 19:23:17 destination > Flushing buffer for stream v_discount_summaries (1 MB) to staging 2022-09-27 19:23:17 destination > Finished writing data to e0ea2a92-7c6f-464e-ba91-d8e27b695d3615412175803176044849.avro (1 MB) 2022-09-27 19:23:17 destination > Uploading records to staging for stream v_discount_summaries (dataset t_billing): gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:17 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7KHsVNTEmuEoaKUBY4YghKGMewknF5G2x7V-YVYpWrR4i7rsFKbROjuUEe3fwV_6E 2022-09-27 19:23:17 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:17 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7KH...Ee3fwV_6E]: Uploading leftover stream [Part number 1 containing 1.67 MB] 2022-09-27 19:23:18 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7KH...Ee3fwV_6E]: Finished uploading [Part number 1 containing 1.67 MB] 2022-09-27 19:23:18 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7KH...Ee3fwV_6E]: Completed 2022-09-27 19:23:19 destination > Uploaded buffer file to storage: e0ea2a92-7c6f-464e-ba91-d8e27b695d3615412175803176044849.avro -> gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:19 destination > Added staged file: 1.avro 2022-09-27 19:23:19 destination > Deleting tempFile data e0ea2a92-7c6f-464e-ba91-d8e27b695d3615412175803176044849.avro 2022-09-27 19:23:19 destination > Flushing buffer of stream v_charity_transaction_summaries (250 KB) 2022-09-27 19:23:19 destination > Flushing buffer for stream v_charity_transaction_summaries (250 KB) to staging 2022-09-27 19:23:19 destination > Finished writing data to 80528b3f-d4b7-43d4-b616-c82e957701e98572063252294963924.avro (304 KB) 2022-09-27 19:23:19 destination > Uploading records to staging for stream v_charity_transaction_summaries (dataset t_billing): gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:19 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm4UtdPxyEvKVsme5XWwGmF-_WaCmjIW8vbVa4OziVZ0feHo-p5g9keEEIP3Fcu6rpk 2022-09-27 19:23:19 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:19 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4Ut...P3Fcu6rpk]: Uploading leftover stream [Part number 1 containing 0.30 MB] 2022-09-27 19:23:19 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4Ut...P3Fcu6rpk]: Finished uploading [Part number 1 containing 0.30 MB] 2022-09-27 19:23:20 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4Ut...P3Fcu6rpk]: Completed 2022-09-27 19:23:20 destination > Uploaded buffer file to storage: 80528b3f-d4b7-43d4-b616-c82e957701e98572063252294963924.avro -> gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:20 destination > Added staged file: 1.avro 2022-09-27 19:23:20 destination > Deleting tempFile data 80528b3f-d4b7-43d4-b616-c82e957701e98572063252294963924.avro 2022-09-27 19:23:20 destination > Flushing buffer of stream v_total_flight_paid (333 bytes) 2022-09-27 19:23:20 destination > Flushing buffer for stream v_total_flight_paid (333 bytes) to staging 2022-09-27 19:23:20 destination > Finished writing data to ba3c5b2f-9db2-475e-b41b-a8968ba24dd716486337917025374579.avro (434 bytes) 2022-09-27 19:23:20 destination > Uploading records to staging for stream v_total_flight_paid (dataset t_billing): gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:21 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm4kI5Lva1MpobPVbODFBcrPttVRxK9gn1FlVpheQJQgeJJEA4uZJ6cimjFn6ZctGMc 2022-09-27 19:23:21 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:21 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4kI...Fn6ZctGMc]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:23:21 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4kI...Fn6ZctGMc]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:23:21 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4kI...Fn6ZctGMc]: Completed 2022-09-27 19:23:21 destination > Uploaded buffer file to storage: ba3c5b2f-9db2-475e-b41b-a8968ba24dd716486337917025374579.avro -> gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:21 destination > Added staged file: 1.avro 2022-09-27 19:23:21 destination > Deleting tempFile data ba3c5b2f-9db2-475e-b41b-a8968ba24dd716486337917025374579.avro 2022-09-27 19:23:21 destination > Flushing buffer of stream transactions_1628688127 (40 MB) 2022-09-27 19:23:21 destination > Flushing buffer for stream transactions_1628688127 (40 MB) to staging 2022-09-27 19:23:21 destination > Finished writing data to cf3fb0b7-ea49-4f43-b797-b7d387ff71b77453236138956669756.avro (40 MB) 2022-09-27 19:23:21 destination > Uploading records to staging for stream transactions_1628688127 (dataset t_billing): gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:22 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7i3n2gPPzZvMrsbhoLy6lewdn9iO0OAf5Y1ymFeTz0sDLRXEvja83rr45k_qkrcCw 2022-09-27 19:23:22 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:22 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7i3...5k_qkrcCw]: Finished uploading [Part number 2 containing 10.01 MB] 2022-09-27 19:23:22 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7i3...5k_qkrcCw]: Finished uploading [Part number 4 containing 10.53 MB] 2022-09-27 19:23:22 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7i3...5k_qkrcCw]: Finished uploading [Part number 1 containing 10.01 MB] 2022-09-27 19:23:23 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7i3...5k_qkrcCw]: Finished uploading [Part number 3 containing 10.01 MB] 2022-09-27 19:23:23 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7i3...5k_qkrcCw]: Completed 2022-09-27 19:23:23 destination > Uploaded buffer file to storage: cf3fb0b7-ea49-4f43-b797-b7d387ff71b77453236138956669756.avro -> gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:23 destination > Added staged file: 1.avro 2022-09-27 19:23:23 destination > Deleting tempFile data cf3fb0b7-ea49-4f43-b797-b7d387ff71b77453236138956669756.avro 2022-09-27 19:23:23 destination > Flushing buffer of stream v_bad_chargebacks (331 bytes) 2022-09-27 19:23:23 destination > Flushing buffer for stream v_bad_chargebacks (331 bytes) to staging 2022-09-27 19:23:23 destination > Finished writing data to 493bc338-8e3b-48e9-ba84-f22731234d6f1894804818842474538.avro (37 KB) 2022-09-27 19:23:23 destination > Uploading records to staging for stream v_bad_chargebacks (dataset t_billing): gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:23 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm4gOH_SyFrnceFSvziAWOd7B3C8b5__JMGpcG3bBKetfdWfwqHLgrn-VD7nNbKhme0 2022-09-27 19:23:23 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:23 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4gO...7nNbKhme0]: Uploading leftover stream [Part number 1 containing 0.04 MB] 2022-09-27 19:23:24 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4gO...7nNbKhme0]: Finished uploading [Part number 1 containing 0.04 MB] 2022-09-27 19:23:24 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4gO...7nNbKhme0]: Completed 2022-09-27 19:23:24 destination > Uploaded buffer file to storage: 493bc338-8e3b-48e9-ba84-f22731234d6f1894804818842474538.avro -> gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:24 destination > Added staged file: 1.avro 2022-09-27 19:23:24 destination > Deleting tempFile data 493bc338-8e3b-48e9-ba84-f22731234d6f1894804818842474538.avro 2022-09-27 19:23:24 destination > Flushing buffer of stream v_inclusion_summaries (11 MB) 2022-09-27 19:23:24 destination > Flushing buffer for stream v_inclusion_summaries (11 MB) to staging 2022-09-27 19:23:24 destination > Finished writing data to cab57136-49b6-42a6-ae5a-7b8ad282b98e10703236342770054928.avro (11 MB) 2022-09-27 19:23:24 destination > Uploading records to staging for stream v_inclusion_summaries (dataset t_billing): gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:24 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6_o-hM-mFPwCywTjZT9pIofMIgT8zOMBgrHnhtl4RhWSDOgtO3TYHdeQzjAXZwpKI 2022-09-27 19:23:24 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:25 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6_o...zjAXZwpKI]: Finished uploading [Part number 1 containing 11.21 MB] 2022-09-27 19:23:26 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6_o...zjAXZwpKI]: Completed 2022-09-27 19:23:26 destination > Uploaded buffer file to storage: cab57136-49b6-42a6-ae5a-7b8ad282b98e10703236342770054928.avro -> gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:23:26 destination > Added staged file: 1.avro 2022-09-27 19:23:26 destination > Deleting tempFile data cab57136-49b6-42a6-ae5a-7b8ad282b98e10703236342770054928.avro 2022-09-27 19:23:26 destination > Flushing buffer of stream payment_plans_analysis (1 MB) 2022-09-27 19:23:26 destination > Flushing buffer for stream payment_plans_analysis (1 MB) to staging 2022-09-27 19:23:26 destination > Finished writing data to f9a95c73-6892-49e8-becf-4171d218fdfc5427196136113459951.avro (1 MB) 2022-09-27 19:23:26 destination > Uploading records to staging for stream payment_plans_analysis (dataset t_billing): gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:23:26 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with full ID ABPnzm4JLI-wX4QW3GVvii3i7OMMw3Dph-apYfP9SOSjIezZVZCXw42bhizHYzdCca19odw 2022-09-27 19:23:26 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:23:26 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with id ABPnzm4JL...dCca19odw]: Uploading leftover stream [Part number 1 containing 1.55 MB] 2022-09-27 19:23:26 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with id ABPnzm4JL...dCca19odw]: Finished uploading [Part number 1 containing 1.55 MB] 2022-09-27 19:23:27 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with id ABPnzm4JL...dCca19odw]: Completed 2022-09-27 19:23:27 destination > Uploaded buffer file to storage: f9a95c73-6892-49e8-becf-4171d218fdfc5427196136113459951.avro -> gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro (filename: 2.avro) 2022-09-27 19:23:27 destination > Added staged file: 2.avro 2022-09-27 19:23:27 destination > Deleting tempFile data f9a95c73-6892-49e8-becf-4171d218fdfc5427196136113459951.avro 2022-09-27 19:23:27 destination > Closing buffer for stream v_bad_transaction_audits 2022-09-27 19:23:27 destination > Closing buffer for stream v_payment_plan_summaries 2022-09-27 19:23:27 destination > Closing buffer for stream v_invoice_summaries 2022-09-27 19:23:27 destination > Closing buffer for stream v_discount_summaries 2022-09-27 19:23:27 destination > Closing buffer for stream v_charity_transaction_summaries 2022-09-27 19:23:27 destination > Closing buffer for stream v_total_flight_paid 2022-09-27 19:23:27 destination > Closing buffer for stream transactions_1628688127 2022-09-27 19:23:27 destination > Closing buffer for stream v_bad_chargebacks 2022-09-27 19:23:27 destination > Closing buffer for stream v_inclusion_summaries 2022-09-27 19:23:27 destination > Closing buffer for stream payment_plans_analysis 2022-09-27 19:23:27 destination > Starting a new buffer for stream v_total_flight_paid (current state: 0 bytes in 0 buffers) 2022-09-27 19:23:27 destination > Default schema. 2022-09-27 19:23:27 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 497000 (90 MB) 2022-09-27 19:23:27 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 498000 (90 MB) 2022-09-27 19:23:27 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 499000 (90 MB) 2022-09-27 19:23:27 source > Set initial fetch size: 10 rows 2022-09-27 19:23:27 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:27 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 500000 (90 MB) 2022-09-27 19:23:27 destination > Starting a new buffer for stream v_transaction_audit_summary (current state: 500 KB in 1 buffers) 2022-09-27 19:23:27 destination > Default schema. 2022-09-27 19:23:27 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 501000 (90 MB) 2022-09-27 19:23:27 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 502000 (91 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 503000 (91 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 504000 (91 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 505000 (92 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 506000 (92 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 507000 (92 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 508000 (92 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 509000 (93 MB) 2022-09-27 19:23:28 source > Reading stream v_transaction_audit_summary. Records read: 10000 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 510000 (93 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 511000 (93 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 512000 (93 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 513000 (94 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 514000 (94 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 515000 (94 MB) 2022-09-27 19:23:28 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 516000 (94 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 517000 (95 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 518000 (95 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 519000 (95 MB) 2022-09-27 19:23:29 source > Reading stream v_transaction_audit_summary. Records read: 20000 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 520000 (95 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 521000 (96 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 522000 (96 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 523000 (96 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 524000 (96 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 525000 (96 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 526000 (97 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 527000 (97 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 528000 (97 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 529000 (98 MB) 2022-09-27 19:23:29 source > Reading stream v_transaction_audit_summary. Records read: 30000 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 530000 (98 MB) 2022-09-27 19:23:29 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 531000 (98 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 532000 (99 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 533000 (99 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 534000 (99 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 535000 (100 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 536000 (100 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 537000 (100 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 538000 (101 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 539000 (101 MB) 2022-09-27 19:23:30 source > Reading stream v_transaction_audit_summary. Records read: 40000 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 540000 (101 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 541000 (102 MB) 2022-09-27 19:23:30 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 542000 (102 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 543000 (102 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 544000 (103 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 545000 (103 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 546000 (103 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 547000 (104 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 548000 (104 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 549000 (105 MB) 2022-09-27 19:23:31 source > Reading stream v_transaction_audit_summary. Records read: 50000 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 550000 (105 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 551000 (105 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 552000 (106 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 553000 (106 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 554000 (106 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 555000 (107 MB) 2022-09-27 19:23:31 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 556000 (107 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 557000 (107 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 558000 (108 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 559000 (108 MB) 2022-09-27 19:23:32 source > Reading stream v_transaction_audit_summary. Records read: 60000 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 560000 (108 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 561000 (109 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 562000 (109 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 563000 (110 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 564000 (110 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 565000 (110 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 566000 (111 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 567000 (111 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 568000 (111 MB) 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 569000 (112 MB) 2022-09-27 19:23:32 source > Reading stream v_transaction_audit_summary. Records read: 70000 2022-09-27 19:23:32 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 570000 (112 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 571000 (112 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 572000 (113 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 573000 (113 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 574000 (114 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 575000 (114 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 576000 (114 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 577000 (115 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 578000 (115 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 579000 (115 MB) 2022-09-27 19:23:33 source > Reading stream v_transaction_audit_summary. Records read: 80000 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 580000 (116 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 581000 (116 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 582000 (116 MB) 2022-09-27 19:23:33 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 583000 (117 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 584000 (117 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 585000 (118 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 586000 (118 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 587000 (118 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 588000 (119 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 589000 (119 MB) 2022-09-27 19:23:34 source > Reading stream v_transaction_audit_summary. Records read: 90000 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 590000 (119 MB) 2022-09-27 19:23:34 source > Last 10 fetch size updates: [189959, 739492, 708273, 706409, 664444, 653128, 648395, 646832, 645278, 642190] 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 591000 (120 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 592000 (120 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 593000 (120 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 594000 (121 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 595000 (121 MB) 2022-09-27 19:23:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 596000 (122 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 597000 (122 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 598000 (122 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 599000 (123 MB) 2022-09-27 19:23:35 source > Reading stream v_transaction_audit_summary. Records read: 100000 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 600000 (123 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 601000 (124 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 602000 (124 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 603000 (124 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 604000 (125 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 605000 (125 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 606000 (126 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 607000 (126 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 608000 (126 MB) 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 609000 (127 MB) 2022-09-27 19:23:35 source > Reading stream v_transaction_audit_summary. Records read: 110000 2022-09-27 19:23:35 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 610000 (127 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 611000 (127 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 612000 (128 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 613000 (128 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 614000 (129 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 615000 (129 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 616000 (129 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 617000 (130 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 618000 (130 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 619000 (131 MB) 2022-09-27 19:23:36 source > Reading stream v_transaction_audit_summary. Records read: 120000 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 620000 (131 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 621000 (131 MB) 2022-09-27 19:23:36 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 622000 (132 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 623000 (132 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 624000 (133 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 625000 (133 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 626000 (133 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 627000 (134 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 628000 (134 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 629000 (135 MB) 2022-09-27 19:23:37 source > Reading stream v_transaction_audit_summary. Records read: 130000 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 630000 (135 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 631000 (135 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 632000 (136 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 633000 (136 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 634000 (137 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 635000 (137 MB) 2022-09-27 19:23:37 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 636000 (137 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 637000 (138 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 638000 (138 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 639000 (139 MB) 2022-09-27 19:23:38 source > Reading stream v_transaction_audit_summary. Records read: 140000 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 640000 (139 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 641000 (139 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 642000 (140 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 643000 (140 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 644000 (141 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 645000 (141 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 646000 (141 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 647000 (142 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 648000 (142 MB) 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 649000 (143 MB) 2022-09-27 19:23:38 source > Reading stream v_transaction_audit_summary. Records read: 150000 2022-09-27 19:23:38 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 650000 (143 MB) 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 651000 (143 MB) 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 652000 (144 MB) 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 653000 (144 MB) 2022-09-27 19:23:39 source > Set initial fetch size: 10 rows 2022-09-27 19:23:39 source > Set initial fetch size: 10 rows 2022-09-27 19:23:39 destination > Starting a new buffer for stream v_transaction_currencies_used (current state: 61 MB in 2 buffers) 2022-09-27 19:23:39 destination > Default schema. 2022-09-27 19:23:39 destination > Starting a new buffer for stream v_transaction_invoice_joined (current state: 61 MB in 3 buffers) 2022-09-27 19:23:39 destination > Default schema. 2022-09-27 19:23:39 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 654000 (144 MB) 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 655000 (145 MB) 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 656000 (145 MB) 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 657000 (145 MB) 2022-09-27 19:23:39 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 658000 (145 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 659000 (145 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 660000 (145 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 661000 (146 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 662000 (146 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 663000 (146 MB) 2022-09-27 19:23:40 source > Reading stream v_transaction_invoice_joined. Records read: 10000 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 664000 (146 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 665000 (146 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 666000 (146 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 667000 (147 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 668000 (147 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 669000 (147 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 670000 (147 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 671000 (147 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 672000 (147 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 673000 (148 MB) 2022-09-27 19:23:40 source > Reading stream v_transaction_invoice_joined. Records read: 20000 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 674000 (148 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 675000 (148 MB) 2022-09-27 19:23:40 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 676000 (148 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 677000 (148 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 678000 (148 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 679000 (148 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 680000 (149 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 681000 (149 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 682000 (149 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 683000 (149 MB) 2022-09-27 19:23:41 source > Reading stream v_transaction_invoice_joined. Records read: 30000 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 684000 (149 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 685000 (149 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 686000 (150 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 687000 (150 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 688000 (150 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 689000 (150 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 690000 (150 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 691000 (151 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 692000 (151 MB) 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 693000 (151 MB) 2022-09-27 19:23:41 source > Reading stream v_transaction_invoice_joined. Records read: 40000 2022-09-27 19:23:41 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 694000 (151 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 695000 (151 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 696000 (151 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 697000 (152 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 698000 (152 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 699000 (152 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 700000 (152 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 701000 (152 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 702000 (153 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 703000 (153 MB) 2022-09-27 19:23:42 source > Reading stream v_transaction_invoice_joined. Records read: 50000 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 704000 (153 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 705000 (153 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 706000 (153 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 707000 (153 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 708000 (154 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 709000 (154 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 710000 (154 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 711000 (154 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 712000 (154 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 713000 (155 MB) 2022-09-27 19:23:42 source > Reading stream v_transaction_invoice_joined. Records read: 60000 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 714000 (155 MB) 2022-09-27 19:23:42 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 715000 (155 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 716000 (155 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 717000 (155 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 718000 (155 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 719000 (156 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 720000 (156 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 721000 (156 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 722000 (156 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 723000 (156 MB) 2022-09-27 19:23:43 source > Reading stream v_transaction_invoice_joined. Records read: 70000 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 724000 (157 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 725000 (157 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 726000 (157 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 727000 (157 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 728000 (157 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 729000 (158 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 730000 (158 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 731000 (158 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 732000 (158 MB) 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 733000 (158 MB) 2022-09-27 19:23:43 source > Reading stream v_transaction_invoice_joined. Records read: 80000 2022-09-27 19:23:43 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 734000 (159 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 735000 (159 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 736000 (159 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 737000 (159 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 738000 (159 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 739000 (159 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 740000 (160 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 741000 (160 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 742000 (160 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 743000 (160 MB) 2022-09-27 19:23:44 source > Reading stream v_transaction_invoice_joined. Records read: 90000 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 744000 (160 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 745000 (161 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 746000 (161 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 747000 (161 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 748000 (161 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 749000 (161 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 750000 (162 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 751000 (162 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 752000 (162 MB) 2022-09-27 19:23:44 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 753000 (162 MB) 2022-09-27 19:23:45 source > Reading stream v_transaction_invoice_joined. Records read: 100000 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 754000 (162 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 755000 (163 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 756000 (163 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 757000 (163 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 758000 (163 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 759000 (163 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 760000 (163 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 761000 (164 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 762000 (164 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 763000 (164 MB) 2022-09-27 19:23:45 source > Reading stream v_transaction_invoice_joined. Records read: 110000 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 764000 (164 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 765000 (164 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 766000 (165 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 767000 (165 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 768000 (165 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 769000 (165 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 770000 (165 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 771000 (166 MB) 2022-09-27 19:23:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 772000 (166 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 773000 (166 MB) 2022-09-27 19:23:46 source > Reading stream v_transaction_invoice_joined. Records read: 120000 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 774000 (166 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 775000 (166 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 776000 (167 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 777000 (167 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 778000 (167 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 779000 (167 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 780000 (167 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 781000 (168 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 782000 (168 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 783000 (168 MB) 2022-09-27 19:23:46 source > Reading stream v_transaction_invoice_joined. Records read: 130000 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 784000 (168 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 785000 (168 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 786000 (169 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 787000 (169 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 788000 (169 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 789000 (169 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 790000 (169 MB) 2022-09-27 19:23:46 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 791000 (169 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 792000 (170 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 793000 (170 MB) 2022-09-27 19:23:47 source > Reading stream v_transaction_invoice_joined. Records read: 140000 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 794000 (170 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 795000 (170 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 796000 (170 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 797000 (171 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 798000 (171 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 799000 (171 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 800000 (171 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 801000 (171 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 802000 (172 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 803000 (172 MB) 2022-09-27 19:23:47 source > Reading stream v_transaction_invoice_joined. Records read: 150000 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 804000 (172 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 805000 (172 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 806000 (172 MB) 2022-09-27 19:23:47 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 807000 (173 MB) 2022-09-27 19:23:47 source > Set initial fetch size: 10 rows 2022-09-27 19:23:47 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:47 source > Set initial fetch size: 10 rows 2022-09-27 19:23:48 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:48 destination > Starting a new buffer for stream v_transaction_methods_used (current state: 96 MB in 4 buffers) 2022-09-27 19:23:48 destination > Default schema. 2022-09-27 19:23:48 destination > Starting a new buffer for stream v_transaction_summaries (current state: 96 MB in 5 buffers) 2022-09-27 19:23:48 destination > Default schema. 2022-09-27 19:23:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 808000 (173 MB) 2022-09-27 19:23:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 809000 (173 MB) 2022-09-27 19:23:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 810000 (173 MB) 2022-09-27 19:23:48 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 811000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 812000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 813000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 814000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 815000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 816000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 817000 (173 MB) 2022-09-27 19:23:49 source > Reading stream v_transaction_summaries. Records read: 10000 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 818000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 819000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 820000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 821000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 822000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 823000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 824000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 825000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 826000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 827000 (173 MB) 2022-09-27 19:23:49 source > Reading stream v_transaction_summaries. Records read: 20000 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 828000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 829000 (173 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 830000 (174 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 831000 (174 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 832000 (174 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 833000 (174 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 834000 (174 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 835000 (174 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 836000 (174 MB) 2022-09-27 19:23:49 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 837000 (174 MB) 2022-09-27 19:23:49 source > Reading stream v_transaction_summaries. Records read: 30000 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 838000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 839000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 840000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 841000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 842000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 843000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 844000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 845000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 846000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 847000 (174 MB) 2022-09-27 19:23:50 source > Reading stream v_transaction_summaries. Records read: 40000 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 848000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 849000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 850000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 851000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 852000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 853000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 854000 (174 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 855000 (175 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 856000 (175 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 857000 (175 MB) 2022-09-27 19:23:50 source > Reading stream v_transaction_summaries. Records read: 50000 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 858000 (175 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 859000 (175 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 860000 (175 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 861000 (175 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 862000 (175 MB) 2022-09-27 19:23:50 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 863000 (175 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 864000 (175 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 865000 (175 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 866000 (175 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 867000 (175 MB) 2022-09-27 19:23:51 source > Reading stream v_transaction_summaries. Records read: 60000 2022-09-27 19:23:51 source > Set initial fetch size: 10 rows 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 868000 (175 MB) 2022-09-27 19:23:51 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:51 destination > Starting a new buffer for stream v_transactions_invalid_currencies (current state: 101 MB in 6 buffers) 2022-09-27 19:23:51 destination > Default schema. 2022-09-27 19:23:51 source > Set initial fetch size: 10 rows 2022-09-27 19:23:51 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:51 destination > Starting a new buffer for stream v_trip_sales_summary (current state: 101 MB in 7 buffers) 2022-09-27 19:23:51 destination > Default schema. 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 869000 (175 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 870000 (175 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 871000 (175 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 872000 (176 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 873000 (176 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 874000 (176 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 875000 (176 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 876000 (176 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 877000 (176 MB) 2022-09-27 19:23:51 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 878000 (176 MB) 2022-09-27 19:23:52 source > Reading stream v_trip_sales_summary. Records read: 10000 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 879000 (176 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 880000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 881000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 882000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 883000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 884000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 885000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 886000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 887000 (177 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 888000 (178 MB) 2022-09-27 19:23:52 source > Reading stream v_trip_sales_summary. Records read: 20000 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 889000 (178 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 890000 (178 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 891000 (178 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 892000 (178 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 893000 (178 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 894000 (178 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 895000 (178 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 896000 (179 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 897000 (179 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 898000 (179 MB) 2022-09-27 19:23:52 source > Reading stream v_trip_sales_summary. Records read: 30000 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 899000 (179 MB) 2022-09-27 19:23:52 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 900000 (179 MB) 2022-09-27 19:23:53 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 901000 (179 MB) 2022-09-27 19:23:53 source > Set initial fetch size: 10 rows 2022-09-27 19:23:54 destination > Starting a new buffer for stream v_trip_transactions_detail (current state: 106 MB in 8 buffers) 2022-09-27 19:23:54 destination > Default schema. 2022-09-27 19:23:55 source > Max memory limit: 24847056896, JDBC buffer size: 1073741824 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 902000 (179 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 903000 (180 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 904000 (180 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 905000 (181 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 906000 (182 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 907000 (182 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 908000 (183 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 909000 (183 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 910000 (184 MB) 2022-09-27 19:23:55 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 911000 (185 MB) 2022-09-27 19:23:56 source > Reading stream v_trip_transactions_detail. Records read: 10000 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 912000 (185 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 913000 (186 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 914000 (186 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 915000 (187 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 916000 (187 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 917000 (188 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 918000 (189 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 919000 (189 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 920000 (190 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 921000 (190 MB) 2022-09-27 19:23:56 source > Reading stream v_trip_transactions_detail. Records read: 20000 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 922000 (191 MB) 2022-09-27 19:23:56 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 923000 (192 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 924000 (192 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 925000 (193 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 926000 (193 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 927000 (194 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 928000 (195 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 929000 (195 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 930000 (196 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 931000 (197 MB) 2022-09-27 19:23:57 source > Reading stream v_trip_transactions_detail. Records read: 30000 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 932000 (197 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 933000 (198 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 934000 (198 MB) 2022-09-27 19:23:57 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 935000 (199 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 936000 (200 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 937000 (200 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 938000 (201 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 939000 (201 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 940000 (202 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 941000 (203 MB) 2022-09-27 19:23:58 source > Reading stream v_trip_transactions_detail. Records read: 40000 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 942000 (203 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 943000 (204 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 944000 (205 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 945000 (205 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 946000 (206 MB) 2022-09-27 19:23:58 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 947000 (206 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 948000 (207 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 949000 (208 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 950000 (208 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 951000 (209 MB) 2022-09-27 19:23:59 source > Reading stream v_trip_transactions_detail. Records read: 50000 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 952000 (210 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 953000 (210 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 954000 (211 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 955000 (212 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 956000 (212 MB) 2022-09-27 19:23:59 source > Last 10 fetch size updates: [101922, 398864, 392449, 389037, 382932, 382387, 380760, 371794, 370767, 369237] 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 957000 (213 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 958000 (214 MB) 2022-09-27 19:23:59 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 959000 (214 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 960000 (215 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 961000 (216 MB) 2022-09-27 19:24:00 source > Reading stream v_trip_transactions_detail. Records read: 60000 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 962000 (216 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 963000 (217 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 964000 (218 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 965000 (218 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 966000 (219 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 967000 (220 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 968000 (220 MB) 2022-09-27 19:24:00 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 969000 (221 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 970000 (222 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 971000 (222 MB) 2022-09-27 19:24:01 source > Reading stream v_trip_transactions_detail. Records read: 70000 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 972000 (223 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 973000 (224 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 974000 (224 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 975000 (225 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 976000 (226 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 977000 (226 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 978000 (227 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 979000 (228 MB) 2022-09-27 19:24:01 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 980000 (228 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 981000 (229 MB) 2022-09-27 19:24:02 source > Reading stream v_trip_transactions_detail. Records read: 80000 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 982000 (230 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 983000 (230 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 984000 (231 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 985000 (232 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 986000 (232 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 987000 (233 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 988000 (234 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 989000 (234 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 990000 (235 MB) 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 991000 (236 MB) 2022-09-27 19:24:02 source > Reading stream v_trip_transactions_detail. Records read: 90000 2022-09-27 19:24:02 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 992000 (236 MB) 2022-09-27 19:24:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 993000 (237 MB) 2022-09-27 19:24:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 994000 (238 MB) 2022-09-27 19:24:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 995000 (238 MB) 2022-09-27 19:24:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 996000 (239 MB) 2022-09-27 19:24:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 997000 (240 MB) 2022-09-27 19:24:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 998000 (240 MB) 2022-09-27 19:24:03 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):352 - Records read: 999000 (241 MB) 2022-09-27 19:24:03 source > Closing database connection pool. 2022-09-27 19:24:03 source > HikariPool-1 - Shutdown initiated... 2022-09-27 19:24:03 source > HikariPool-1 - Shutdown completed. 2022-09-27 19:24:03 source > Closed database connection pool. 2022-09-27 19:24:03 source > Completed integration: io.airbyte.integrations.base.ssh.SshWrappedSource 2022-09-27 19:24:03 source > completed source: class io.airbyte.integrations.source.mysql.MySqlSource 2022-09-27 19:24:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):355 - Source has no more messages, closing connection. 2022-09-27 19:24:04 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):363 - Total records read: 999617 (242 MB) 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billinginclusions. Error messages: [$.tax is of an incorrect type. Expected it to be number, $.net is of an incorrect type. Expected it to be number, $.markup is of an incorrect type. Expected it to be number, $._lmb is of an incorrect type. Expected it to be number, $._cb is of an incorrect type. Expected it to be number, $._lma is of an incorrect type. Expected it to be number, $._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billinginclusions_accommodations. Error messages: [$._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billinginclusions_experiences. Error messages: [$._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billingcards. Error messages: [$.iv is of an incorrect type. Expected it to be string, $._lmb is of an incorrect type. Expected it to be number, $.pan is of an incorrect type. Expected it to be string, $._lma is of an incorrect type. Expected it to be number, $._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billingdiscounts. Error messages: [$.comments is of an incorrect type. Expected it to be string, $.amount is of an incorrect type. Expected it to be number, $._lmb is of an incorrect type. Expected it to be number, $._cb is of an incorrect type. Expected it to be number, $._lma is of an incorrect type. Expected it to be number, $._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billingtransactions. Error messages: [$.receipt_sent_at is of an incorrect type. Expected it to be number, $.amount is of an incorrect type. Expected it to be number, $.excess_amount is of an incorrect type. Expected it to be number, $._lmb is of an incorrect type. Expected it to be number, $.transaction_claim_id is of an incorrect type. Expected it to be number, $._lma is of an incorrect type. Expected it to be number, $._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billingactivity_log. Error messages: [$.staff_id is of an incorrect type. Expected it to be number, $.value is of an incorrect type. Expected it to be string, $._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billinginvoices. Error messages: [$._lmb is of an incorrect type. Expected it to be number, $._cb is of an incorrect type. Expected it to be number, $.deposit_paid_at is of an incorrect type. Expected it to be number, $._lma is of an incorrect type. Expected it to be number, $.deposit is of an incorrect type. Expected it to be number, $._ab_cdc_deleted_at is of an incorrect type. Expected it to be string, $.expires_at is of an incorrect type. Expected it to be number] 2022-09-27 19:24:04 WARN i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$5):366 - Schema validation errors found for stream t_billingtransaction_audits. Error messages: [$._lmb is of an incorrect type. Expected it to be number, $._lma is of an incorrect type. Expected it to be number, $._ab_cdc_deleted_at is of an incorrect type. Expected it to be string] 2022-09-27 19:24:04 INFO i.a.w.g.DefaultReplicationWorker(run):182 - One of source or destination thread complete. Waiting on the other. 2022-09-27 19:24:04 destination > Airbyte message consumer: succeeded. 2022-09-27 19:24:04 destination > executing on success close procedure. 2022-09-27 19:24:04 destination > Flushing all 9 current buffers (173 MB in total) 2022-09-27 19:24:04 destination > Flushing buffer of stream v_trip_sales_summary (5 MB) 2022-09-27 19:24:04 destination > Flushing buffer for stream v_trip_sales_summary (5 MB) to staging 2022-09-27 19:24:04 destination > Finished writing data to b2ba6e6e-2e67-42e2-a482-a1dcfc9a4dde13670073487060120186.avro (5 MB) 2022-09-27 19:24:04 destination > Uploading records to staging for stream v_trip_sales_summary (dataset t_billing): gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:04 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm4xsnlFj3Yruaw2qKoO_cMnkSRovBJ0Q0sebP0ZprCJkqyXpn2uaSiVo89mkrxnxh8 2022-09-27 19:24:04 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:05 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4xs...9mkrxnxh8]: Finished uploading [Part number 1 containing 5.56 MB] 2022-09-27 19:24:05 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4xs...9mkrxnxh8]: Completed 2022-09-27 19:24:05 destination > Uploaded buffer file to storage: b2ba6e6e-2e67-42e2-a482-a1dcfc9a4dde13670073487060120186.avro -> gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:05 destination > Added staged file: 1.avro 2022-09-27 19:24:05 destination > Deleting tempFile data b2ba6e6e-2e67-42e2-a482-a1dcfc9a4dde13670073487060120186.avro 2022-09-27 19:24:05 destination > Flushing buffer of stream v_transaction_audit_summary (60 MB) 2022-09-27 19:24:05 destination > Flushing buffer for stream v_transaction_audit_summary (60 MB) to staging 2022-09-27 19:24:05 destination > Finished writing data to 7da90837-a326-4bc0-b57d-a6a21d067a9d12515247261414438123.avro (60 MB) 2022-09-27 19:24:05 destination > Uploading records to staging for stream v_transaction_audit_summary (dataset t_billing): gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:05 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm4hUnQcgITka0Z7FGz9qex8CeHm1KTAv6brH0hQl-rPUsdyeqqHkIEaPuW2tUnp2Q4 2022-09-27 19:24:05 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:06 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4hU...W2tUnp2Q4]: Finished uploading [Part number 1 containing 10.01 MB] 2022-09-27 19:24:06 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4hU...W2tUnp2Q4]: Finished uploading [Part number 3 containing 10.01 MB] 2022-09-27 19:24:06 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4hU...W2tUnp2Q4]: Finished uploading [Part number 2 containing 10.01 MB] 2022-09-27 19:24:06 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4hU...W2tUnp2Q4]: Finished uploading [Part number 4 containing 10.01 MB] 2022-09-27 19:24:06 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4hU...W2tUnp2Q4]: Finished uploading [Part number 5 containing 10.01 MB] 2022-09-27 19:24:06 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4hU...W2tUnp2Q4]: Finished uploading [Part number 6 containing 10.72 MB] 2022-09-27 19:24:07 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm4hU...W2tUnp2Q4]: Completed 2022-09-27 19:24:07 destination > Uploaded buffer file to storage: 7da90837-a326-4bc0-b57d-a6a21d067a9d12515247261414438123.avro -> gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:07 destination > Added staged file: 1.avro 2022-09-27 19:24:07 destination > Deleting tempFile data 7da90837-a326-4bc0-b57d-a6a21d067a9d12515247261414438123.avro 2022-09-27 19:24:07 destination > Flushing buffer of stream v_transaction_methods_used (340 bytes) 2022-09-27 19:24:07 destination > Flushing buffer for stream v_transaction_methods_used (340 bytes) to staging 2022-09-27 19:24:07 destination > Finished writing data to 8d769031-4ddd-48ee-9ea0-f06a1161d2cb2901045853791869920.avro (2 KB) 2022-09-27 19:24:07 destination > Uploading records to staging for stream v_transaction_methods_used (dataset t_billing): gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:07 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm5uA9CplRjTbTIJbs3o8ZopKNI8uOlLjOtzOvq2EJP_89JjVDPxRTaGu6gennC23r4 2022-09-27 19:24:07 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:07 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5uA...gennC23r4]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:24:08 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5uA...gennC23r4]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:24:08 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5uA...gennC23r4]: Completed 2022-09-27 19:24:08 destination > Uploaded buffer file to storage: 8d769031-4ddd-48ee-9ea0-f06a1161d2cb2901045853791869920.avro -> gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:08 destination > Added staged file: 1.avro 2022-09-27 19:24:08 destination > Deleting tempFile data 8d769031-4ddd-48ee-9ea0-f06a1161d2cb2901045853791869920.avro 2022-09-27 19:24:08 destination > Flushing buffer of stream v_transaction_summaries (5 MB) 2022-09-27 19:24:08 destination > Flushing buffer for stream v_transaction_summaries (5 MB) to staging 2022-09-27 19:24:08 destination > Finished writing data to 16c1fc6a-2f7e-46ac-97b6-05bb4fbf63551189763598105257060.avro (5 MB) 2022-09-27 19:24:08 destination > Uploading records to staging for stream v_transaction_summaries (dataset t_billing): gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:08 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm7g0iZV72qyrW-so8rWUmhPeZigXs47UExvdVE5Uvm3c7WUA4H6xk1wGy3DQX3U8N8 2022-09-27 19:24:08 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:09 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7g0...3DQX3U8N8]: Finished uploading [Part number 1 containing 5.03 MB] 2022-09-27 19:24:10 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm7g0...3DQX3U8N8]: Completed 2022-09-27 19:24:10 destination > Uploaded buffer file to storage: 16c1fc6a-2f7e-46ac-97b6-05bb4fbf63551189763598105257060.avro -> gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:10 destination > Added staged file: 1.avro 2022-09-27 19:24:10 destination > Deleting tempFile data 16c1fc6a-2f7e-46ac-97b6-05bb4fbf63551189763598105257060.avro 2022-09-27 19:24:10 destination > Flushing buffer of stream v_transaction_invoice_joined (34 MB) 2022-09-27 19:24:10 destination > Flushing buffer for stream v_transaction_invoice_joined (34 MB) to staging 2022-09-27 19:24:10 destination > Finished writing data to 3d35c6b4-5351-498d-9c12-f35ff509a9fb8763042850883000537.avro (34 MB) 2022-09-27 19:24:10 destination > Uploading records to staging for stream v_transaction_invoice_joined (dataset t_billing): gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:10 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6KXqLquF3znVxuHv7QVuem5hFLXpoickZf2_jPgOonWlNPZGVcr1pVyTMpl-MfBDA 2022-09-27 19:24:10 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:11 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6KX...Mpl-MfBDA]: Finished uploading [Part number 1 containing 10.01 MB] 2022-09-27 19:24:11 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6KX...Mpl-MfBDA]: Finished uploading [Part number 2 containing 10.01 MB] 2022-09-27 19:24:11 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6KX...Mpl-MfBDA]: Finished uploading [Part number 3 containing 14.87 MB] 2022-09-27 19:24:11 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6KX...Mpl-MfBDA]: Completed 2022-09-27 19:24:11 destination > Uploaded buffer file to storage: 3d35c6b4-5351-498d-9c12-f35ff509a9fb8763042850883000537.avro -> gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:11 destination > Added staged file: 1.avro 2022-09-27 19:24:11 destination > Deleting tempFile data 3d35c6b4-5351-498d-9c12-f35ff509a9fb8763042850883000537.avro 2022-09-27 19:24:11 destination > Flushing buffer of stream v_total_flight_paid (500 KB) 2022-09-27 19:24:11 destination > Flushing buffer for stream v_total_flight_paid (500 KB) to staging 2022-09-27 19:24:11 destination > Finished writing data to 3c8842e3-664a-4b78-a4a5-c8e0ac56dbfe11165071210785176152.avro (527 KB) 2022-09-27 19:24:11 destination > Uploading records to staging for stream v_total_flight_paid (dataset t_billing): gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:12 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with full ID ABPnzm7htd3HN6InQmc-AGOT9x5gr0I_pZDbtBZdq4d0lmzsdgTNUctN-s1t_-oynQ0c254 2022-09-27 19:24:12 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:12 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with id ABPnzm7ht...oynQ0c254]: Uploading leftover stream [Part number 1 containing 0.52 MB] 2022-09-27 19:24:12 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with id ABPnzm7ht...oynQ0c254]: Finished uploading [Part number 1 containing 0.52 MB] 2022-09-27 19:24:13 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro with id ABPnzm7ht...oynQ0c254]: Completed 2022-09-27 19:24:13 destination > Uploaded buffer file to storage: 3c8842e3-664a-4b78-a4a5-c8e0ac56dbfe11165071210785176152.avro -> gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro (filename: 2.avro) 2022-09-27 19:24:13 destination > Added staged file: 2.avro 2022-09-27 19:24:13 destination > Deleting tempFile data 3c8842e3-664a-4b78-a4a5-c8e0ac56dbfe11165071210785176152.avro 2022-09-27 19:24:13 destination > Flushing buffer of stream v_trip_transactions_detail (66 MB) 2022-09-27 19:24:13 destination > Flushing buffer for stream v_trip_transactions_detail (66 MB) to staging 2022-09-27 19:24:13 destination > Finished writing data to d906f948-869b-4587-8246-7691344b81d98954545749053604503.avro (66 MB) 2022-09-27 19:24:13 destination > Uploading records to staging for stream v_trip_transactions_detail (dataset t_billing): gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:13 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6H_baV_45x56LqZx93WNqYrvDKqoADHMK6rua8iMSp8qoEgTUrKjUaZpLLrR4QzHE 2022-09-27 19:24:13 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Finished uploading [Part number 7 containing 6.35 MB] 2022-09-27 19:24:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Finished uploading [Part number 1 containing 10.01 MB] 2022-09-27 19:24:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Finished uploading [Part number 4 containing 10.01 MB] 2022-09-27 19:24:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Finished uploading [Part number 3 containing 10.01 MB] 2022-09-27 19:24:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Finished uploading [Part number 6 containing 10.01 MB] 2022-09-27 19:24:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Finished uploading [Part number 5 containing 10.01 MB] 2022-09-27 19:24:14 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Finished uploading [Part number 2 containing 10.01 MB] 2022-09-27 19:24:15 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6H_...LLrR4QzHE]: Completed 2022-09-27 19:24:15 destination > Uploaded buffer file to storage: d906f948-869b-4587-8246-7691344b81d98954545749053604503.avro -> gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:15 destination > Added staged file: 1.avro 2022-09-27 19:24:15 destination > Deleting tempFile data d906f948-869b-4587-8246-7691344b81d98954545749053604503.avro 2022-09-27 19:24:15 destination > Flushing buffer of stream v_transactions_invalid_currencies (188 KB) 2022-09-27 19:24:15 destination > Flushing buffer for stream v_transactions_invalid_currencies (188 KB) to staging 2022-09-27 19:24:15 destination > Finished writing data to 5e41b562-c5f9-4f64-a3e9-8db74f5275ff12637679192753580847.avro (188 KB) 2022-09-27 19:24:15 destination > Uploading records to staging for stream v_transactions_invalid_currencies (dataset t_billing): gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:15 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm5SU1hwV5E4lS9jyT9kEvsBKV3lQO62ykwBFGqliwTZT0O_ebHnudXOn5EthSin_VI 2022-09-27 19:24:15 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:15 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5SU...EthSin_VI]: Uploading leftover stream [Part number 1 containing 0.18 MB] 2022-09-27 19:24:15 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5SU...EthSin_VI]: Finished uploading [Part number 1 containing 0.18 MB] 2022-09-27 19:24:16 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm5SU...EthSin_VI]: Completed 2022-09-27 19:24:16 destination > Uploaded buffer file to storage: 5e41b562-c5f9-4f64-a3e9-8db74f5275ff12637679192753580847.avro -> gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:16 destination > Added staged file: 1.avro 2022-09-27 19:24:16 destination > Deleting tempFile data 5e41b562-c5f9-4f64-a3e9-8db74f5275ff12637679192753580847.avro 2022-09-27 19:24:16 destination > Flushing buffer of stream v_transaction_currencies_used (343 bytes) 2022-09-27 19:24:16 destination > Flushing buffer for stream v_transaction_currencies_used (343 bytes) to staging 2022-09-27 19:24:16 destination > Finished writing data to 89c6df50-9c0e-4e57-b1f9-544e42515eba4077603984551430058.avro (788 bytes) 2022-09-27 19:24:16 destination > Uploading records to staging for stream v_transaction_currencies_used (dataset t_billing): gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:24:16 destination > Initiated multipart upload to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with full ID ABPnzm6cgaepY3Pfu3QnyubkgxdystpW9whc58m4FuEsBcGuuyEo4DToWEid2eL5clItzzc 2022-09-27 19:24:16 destination > Called close() on [MultipartOutputStream for parts 1 - 10000] 2022-09-27 19:24:16 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6cg...L5clItzzc]: Uploading leftover stream [Part number 1 containing 0.00 MB] 2022-09-27 19:24:17 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6cg...L5clItzzc]: Finished uploading [Part number 1 containing 0.00 MB] 2022-09-27 19:24:17 destination > [Manager uploading to airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro with id ABPnzm6cg...L5clItzzc]: Completed 2022-09-27 19:24:18 destination > Uploaded buffer file to storage: 89c6df50-9c0e-4e57-b1f9-544e42515eba4077603984551430058.avro -> gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro (filename: 1.avro) 2022-09-27 19:24:18 destination > Added staged file: 1.avro 2022-09-27 19:24:18 destination > Deleting tempFile data 89c6df50-9c0e-4e57-b1f9-544e42515eba4077603984551430058.avro 2022-09-27 19:24:18 destination > Closing buffer for stream v_trip_sales_summary 2022-09-27 19:24:18 destination > Closing buffer for stream v_transaction_audit_summary 2022-09-27 19:24:18 destination > Closing buffer for stream v_transaction_methods_used 2022-09-27 19:24:18 destination > Closing buffer for stream v_transaction_summaries 2022-09-27 19:24:18 destination > Closing buffer for stream v_transaction_invoice_joined 2022-09-27 19:24:18 destination > Closing buffer for stream v_total_flight_paid 2022-09-27 19:24:18 destination > Closing buffer for stream v_trip_transactions_detail 2022-09-27 19:24:18 destination > Closing buffer for stream v_transactions_invalid_currencies 2022-09-27 19:24:18 destination > Closing buffer for stream v_transaction_currencies_used 2022-09-27 19:24:18 destination > Copying into tables in destination started for 48 streams 2022-09-27 19:24:18 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ppv_transaction_claims}} (dataset t_billing): [] 2022-09-27 19:24:18 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ppv_transaction_claims}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_claims}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:24:23 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ppv_transaction_claims}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_claims}} 2022-09-27 19:24:23 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} (dataset t_billing): [1.avro] 2022-09-27 19:24:23 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:24:23 destination > [JobId{project=data-warehouse-356806, job=f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306663256, endTime=null, startTime=1664306663397, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=POoiiIdoqQjgaXvi3U3FRA==, generatedId=data-warehouse-356806:US.f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/f768ebbd-99c5-4d58-9b94-20dc2c0f4a48?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_tpl_transactions}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:24:23 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306663256, endTime=null, startTime=1664306663397, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=POoiiIdoqQjgaXvi3U3FRA==, generatedId=data-warehouse-356806:US.f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/f768ebbd-99c5-4d58-9b94-20dc2c0f4a48?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_tpl_transactions}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:24:27 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306663256, endTime=null, startTime=1664306663397, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=POoiiIdoqQjgaXvi3U3FRA==, generatedId=data-warehouse-356806:US.f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/f768ebbd-99c5-4d58-9b94-20dc2c0f4a48?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_tpl_transactions}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:24:27 destination > [JobId{project=data-warehouse-356806, job=f768ebbd-99c5-4d58-9b94-20dc2c0f4a48, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:24:27 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transactions}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:24:30 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transactions}} 2022-09-27 19:24:30 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} (dataset t_billing): [1.avro] 2022-09-27 19:24:30 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:24:31 destination > [JobId{project=data-warehouse-356806, job=265ee739-9b72-4d85-ab12-4d8a74ec1ff8, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=265ee739-9b72-4d85-ab12-4d8a74ec1ff8, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306670872, endTime=null, startTime=1664306671018, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=WDJrdrajFLgiJ83ozhf8Ag==, generatedId=data-warehouse-356806:US.265ee739-9b72-4d85-ab12-4d8a74ec1ff8, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/265ee739-9b72-4d85-ab12-4d8a74ec1ff8?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:24:31 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=265ee739-9b72-4d85-ab12-4d8a74ec1ff8, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306670872, endTime=null, startTime=1664306671018, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=WDJrdrajFLgiJ83ozhf8Ag==, generatedId=data-warehouse-356806:US.265ee739-9b72-4d85-ab12-4d8a74ec1ff8, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/265ee739-9b72-4d85-ab12-4d8a74ec1ff8?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:24:40 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=265ee739-9b72-4d85-ab12-4d8a74ec1ff8, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306670872, endTime=null, startTime=1664306671018, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=WDJrdrajFLgiJ83ozhf8Ag==, generatedId=data-warehouse-356806:US.265ee739-9b72-4d85-ab12-4d8a74ec1ff8, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/265ee739-9b72-4d85-ab12-4d8a74ec1ff8?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:24:40 destination > [JobId{project=data-warehouse-356806, job=265ee739-9b72-4d85-ab12-4d8a74ec1ff8, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:24:40 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_audit_summary}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:24:43 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_audit_summary}} 2022-09-27 19:24:43 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xli_refunds}} (dataset t_billing): [] 2022-09-27 19:24:43 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xli_refunds}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refunds}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:24:47 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xli_refunds}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refunds}} 2022-09-27 19:24:47 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qsc_payment_plans}} (dataset t_billing): [] 2022-09-27 19:24:47 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qsc_payment_plans}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_payment_plans}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:24:51 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qsc_payment_plans}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_payment_plans}} 2022-09-27 19:24:51 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} (dataset t_billing): [1.avro] 2022-09-27 19:24:51 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:24:51 destination > [JobId{project=data-warehouse-356806, job=15d46d6f-ae32-4bff-ab7e-3bba709a9751, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=15d46d6f-ae32-4bff-ab7e-3bba709a9751, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306691331, endTime=null, startTime=1664306691442, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=Gw/sFxZU157q6q08P3kK3g==, generatedId=data-warehouse-356806:US.15d46d6f-ae32-4bff-ab7e-3bba709a9751, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/15d46d6f-ae32-4bff-ab7e-3bba709a9751?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:24:51 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=15d46d6f-ae32-4bff-ab7e-3bba709a9751, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306691331, endTime=null, startTime=1664306691442, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=Gw/sFxZU157q6q08P3kK3g==, generatedId=data-warehouse-356806:US.15d46d6f-ae32-4bff-ab7e-3bba709a9751, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/15d46d6f-ae32-4bff-ab7e-3bba709a9751?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:24:56 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=15d46d6f-ae32-4bff-ab7e-3bba709a9751, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306691331, endTime=null, startTime=1664306691442, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=Gw/sFxZU157q6q08P3kK3g==, generatedId=data-warehouse-356806:US.15d46d6f-ae32-4bff-ab7e-3bba709a9751, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/15d46d6f-ae32-4bff-ab7e-3bba709a9751?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:24:56 destination > [JobId{project=data-warehouse-356806, job=15d46d6f-ae32-4bff-ab7e-3bba709a9751, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:24:56 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_payment_plan_summaries}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:24:58 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_payment_plan_summaries}} 2022-09-27 19:24:58 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qyz_expenses_suppliers}} (dataset t_billing): [] 2022-09-27 19:24:58 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qyz_expenses_suppliers}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses_suppliers}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:25:02 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qyz_expenses_suppliers}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses_suppliers}} 2022-09-27 19:25:02 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} (dataset t_billing): [1.avro] 2022-09-27 19:25:02 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:25:03 destination > [JobId{project=data-warehouse-356806, job=49c24a56-8095-4c83-9342-ad09ab779ee2, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=49c24a56-8095-4c83-9342-ad09ab779ee2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306702881, endTime=null, startTime=1664306703001, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=p1pMS0iIa42P0TIX2HvUvw==, generatedId=data-warehouse-356806:US.49c24a56-8095-4c83-9342-ad09ab779ee2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/49c24a56-8095-4c83-9342-ad09ab779ee2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:25:03 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=49c24a56-8095-4c83-9342-ad09ab779ee2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306702881, endTime=null, startTime=1664306703001, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=p1pMS0iIa42P0TIX2HvUvw==, generatedId=data-warehouse-356806:US.49c24a56-8095-4c83-9342-ad09ab779ee2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/49c24a56-8095-4c83-9342-ad09ab779ee2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:09 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=49c24a56-8095-4c83-9342-ad09ab779ee2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306702881, endTime=null, startTime=1664306703001, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=p1pMS0iIa42P0TIX2HvUvw==, generatedId=data-warehouse-356806:US.49c24a56-8095-4c83-9342-ad09ab779ee2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/49c24a56-8095-4c83-9342-ad09ab779ee2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:09 destination > [JobId{project=data-warehouse-356806, job=49c24a56-8095-4c83-9342-ad09ab779ee2, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:25:09 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_invoice_joined}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:25:11 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_invoice_joined}} 2022-09-27 19:25:11 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ymm_expenses_partners}} (dataset t_billing): [] 2022-09-27 19:25:11 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ymm_expenses_partners}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses_partners}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:25:15 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ymm_expenses_partners}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses_partners}} 2022-09-27 19:25:15 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wzh_other_charges}} (dataset t_billing): [] 2022-09-27 19:25:15 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wzh_other_charges}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_other_charges}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:25:20 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wzh_other_charges}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_other_charges}} 2022-09-27 19:25:20 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kwo_credit_types}} (dataset t_billing): [] 2022-09-27 19:25:20 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kwo_credit_types}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_credit_types}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:25:23 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kwo_credit_types}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_credit_types}} 2022-09-27 19:25:23 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} (dataset t_billing): [1.avro] 2022-09-27 19:25:23 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:25:23 destination > [JobId{project=data-warehouse-356806, job=163a3be6-46f3-41d5-aa10-f0c36884483c, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=163a3be6-46f3-41d5-aa10-f0c36884483c, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306723278, endTime=null, startTime=1664306723409, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=vi9daYRaqEOFffOgWz53MA==, generatedId=data-warehouse-356806:US.163a3be6-46f3-41d5-aa10-f0c36884483c, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/163a3be6-46f3-41d5-aa10-f0c36884483c?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:25:23 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=163a3be6-46f3-41d5-aa10-f0c36884483c, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306723278, endTime=null, startTime=1664306723409, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=vi9daYRaqEOFffOgWz53MA==, generatedId=data-warehouse-356806:US.163a3be6-46f3-41d5-aa10-f0c36884483c, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/163a3be6-46f3-41d5-aa10-f0c36884483c?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:26 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=163a3be6-46f3-41d5-aa10-f0c36884483c, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306723278, endTime=null, startTime=1664306723409, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=vi9daYRaqEOFffOgWz53MA==, generatedId=data-warehouse-356806:US.163a3be6-46f3-41d5-aa10-f0c36884483c, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/163a3be6-46f3-41d5-aa10-f0c36884483c?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:26 destination > [JobId{project=data-warehouse-356806, job=163a3be6-46f3-41d5-aa10-f0c36884483c, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:25:26 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_methods_used}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:25:30 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_methods_used}} 2022-09-27 19:25:30 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vuq_inclusion_rooms}} (dataset t_billing): [] 2022-09-27 19:25:30 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vuq_inclusion_rooms}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusion_rooms}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:25:32 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vuq_inclusion_rooms}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusion_rooms}} 2022-09-27 19:25:32 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} (dataset t_billing): [1.avro] 2022-09-27 19:25:32 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:25:33 destination > [JobId{project=data-warehouse-356806, job=d809fced-e003-4b29-8f36-06c2d725d366, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=d809fced-e003-4b29-8f36-06c2d725d366, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306733078, endTime=null, startTime=1664306733180, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=QdZPLL5/7WGWXSQe6qolAw==, generatedId=data-warehouse-356806:US.d809fced-e003-4b29-8f36-06c2d725d366, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/d809fced-e003-4b29-8f36-06c2d725d366?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ghf_invoices}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:25:33 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=d809fced-e003-4b29-8f36-06c2d725d366, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306733078, endTime=null, startTime=1664306733180, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=QdZPLL5/7WGWXSQe6qolAw==, generatedId=data-warehouse-356806:US.d809fced-e003-4b29-8f36-06c2d725d366, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/d809fced-e003-4b29-8f36-06c2d725d366?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ghf_invoices}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:36 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=d809fced-e003-4b29-8f36-06c2d725d366, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306733078, endTime=null, startTime=1664306733180, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=QdZPLL5/7WGWXSQe6qolAw==, generatedId=data-warehouse-356806:US.d809fced-e003-4b29-8f36-06c2d725d366, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/d809fced-e003-4b29-8f36-06c2d725d366?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ghf_invoices}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:36 destination > [JobId{project=data-warehouse-356806, job=d809fced-e003-4b29-8f36-06c2d725d366, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:25:36 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_invoices}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:25:38 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_invoices}} 2022-09-27 19:25:38 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_jow_refund_protects}} (dataset t_billing): [] 2022-09-27 19:25:38 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_jow_refund_protects}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refund_protects}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:25:41 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_jow_refund_protects}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refund_protects}} 2022-09-27 19:25:41 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} (dataset t_billing): [1.avro] 2022-09-27 19:25:41 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:25:42 destination > [JobId{project=data-warehouse-356806, job=16ac32f4-adc8-42d8-b100-3fa06889c1e8, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=16ac32f4-adc8-42d8-b100-3fa06889c1e8, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306741956, endTime=null, startTime=1664306742072, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=10M6eF+gOjCoUh1jZTCLeQ==, generatedId=data-warehouse-356806:US.16ac32f4-adc8-42d8-b100-3fa06889c1e8, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/16ac32f4-adc8-42d8-b100-3fa06889c1e8?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:25:42 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=16ac32f4-adc8-42d8-b100-3fa06889c1e8, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306741956, endTime=null, startTime=1664306742072, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=10M6eF+gOjCoUh1jZTCLeQ==, generatedId=data-warehouse-356806:US.16ac32f4-adc8-42d8-b100-3fa06889c1e8, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/16ac32f4-adc8-42d8-b100-3fa06889c1e8?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:44 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=16ac32f4-adc8-42d8-b100-3fa06889c1e8, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306741956, endTime=null, startTime=1664306742072, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=10M6eF+gOjCoUh1jZTCLeQ==, generatedId=data-warehouse-356806:US.16ac32f4-adc8-42d8-b100-3fa06889c1e8, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/16ac32f4-adc8-42d8-b100-3fa06889c1e8?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:25:44 destination > [JobId{project=data-warehouse-356806, job=16ac32f4-adc8-42d8-b100-3fa06889c1e8, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:25:44 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_bad_transaction_audits}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:25:48 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_bad_transaction_audits}} 2022-09-27 19:25:48 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} (dataset t_billing): [1.avro] 2022-09-27 19:25:48 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:25:48 destination > [JobId{project=data-warehouse-356806, job=92a908fd-58f5-4717-a2f4-4820e8e946e7, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=92a908fd-58f5-4717-a2f4-4820e8e946e7, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306748230, endTime=null, startTime=1664306748353, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=oaLA05krXMByG12kq/j8fg==, generatedId=data-warehouse-356806:US.92a908fd-58f5-4717-a2f4-4820e8e946e7, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/92a908fd-58f5-4717-a2f4-4820e8e946e7?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_riw_v_transaction_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:25:48 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=92a908fd-58f5-4717-a2f4-4820e8e946e7, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306748230, endTime=null, startTime=1664306748353, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=oaLA05krXMByG12kq/j8fg==, generatedId=data-warehouse-356806:US.92a908fd-58f5-4717-a2f4-4820e8e946e7, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/92a908fd-58f5-4717-a2f4-4820e8e946e7?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_riw_v_transaction_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:02 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=92a908fd-58f5-4717-a2f4-4820e8e946e7, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306748230, endTime=null, startTime=1664306748353, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=oaLA05krXMByG12kq/j8fg==, generatedId=data-warehouse-356806:US.92a908fd-58f5-4717-a2f4-4820e8e946e7, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/92a908fd-58f5-4717-a2f4-4820e8e946e7?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_riw_v_transaction_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:02 destination > [JobId{project=data-warehouse-356806, job=92a908fd-58f5-4717-a2f4-4820e8e946e7, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:26:02 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_summaries}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:26:04 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_summaries}} 2022-09-27 19:26:04 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} (dataset t_billing): [1.avro] 2022-09-27 19:26:04 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:26:04 destination > [JobId{project=data-warehouse-356806, job=66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306764764, endTime=null, startTime=1664306764891, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=2m+po/yB7LWMkBRp4ADwzg==, generatedId=data-warehouse-356806:US.66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/66560d2f-e54c-4c79-9a5f-ca23ed31ce6d?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_umc_discounts}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:26:04 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306764764, endTime=null, startTime=1664306764891, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=2m+po/yB7LWMkBRp4ADwzg==, generatedId=data-warehouse-356806:US.66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/66560d2f-e54c-4c79-9a5f-ca23ed31ce6d?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_umc_discounts}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:08 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306764764, endTime=null, startTime=1664306764891, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=2m+po/yB7LWMkBRp4ADwzg==, generatedId=data-warehouse-356806:US.66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/66560d2f-e54c-4c79-9a5f-ca23ed31ce6d?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_umc_discounts}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:08 destination > [JobId{project=data-warehouse-356806, job=66560d2f-e54c-4c79-9a5f-ca23ed31ce6d, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:26:08 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_discounts}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:26:12 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_discounts}} 2022-09-27 19:26:12 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} (dataset t_billing): [1.avro] 2022-09-27 19:26:12 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:26:13 destination > [JobId{project=data-warehouse-356806, job=214f676d-599a-44bc-a97c-9109a477d040, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=214f676d-599a-44bc-a97c-9109a477d040, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306772904, endTime=null, startTime=1664306773022, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=AcWLBRVVk7ymJfoU9NDeYQ==, generatedId=data-warehouse-356806:US.214f676d-599a-44bc-a97c-9109a477d040, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/214f676d-599a-44bc-a97c-9109a477d040?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:26:13 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=214f676d-599a-44bc-a97c-9109a477d040, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306772904, endTime=null, startTime=1664306773022, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=AcWLBRVVk7ymJfoU9NDeYQ==, generatedId=data-warehouse-356806:US.214f676d-599a-44bc-a97c-9109a477d040, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/214f676d-599a-44bc-a97c-9109a477d040?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:21 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=214f676d-599a-44bc-a97c-9109a477d040, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306772904, endTime=null, startTime=1664306773022, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=AcWLBRVVk7ymJfoU9NDeYQ==, generatedId=data-warehouse-356806:US.214f676d-599a-44bc-a97c-9109a477d040, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/214f676d-599a-44bc-a97c-9109a477d040?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:21 destination > [JobId{project=data-warehouse-356806, job=214f676d-599a-44bc-a97c-9109a477d040, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:26:21 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_trip_transactions_detail}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:26:24 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_trip_transactions_detail}} 2022-09-27 19:26:24 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rkp_expenses}} (dataset t_billing): [] 2022-09-27 19:26:24 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rkp_expenses}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:26:28 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rkp_expenses}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_expenses}} 2022-09-27 19:26:28 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} (dataset t_billing): [1.avro] 2022-09-27 19:26:28 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:26:29 destination > [JobId{project=data-warehouse-356806, job=76d88041-f585-4c9e-adc4-c206186958f2, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=76d88041-f585-4c9e-adc4-c206186958f2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306788928, endTime=null, startTime=1664306789049, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=041/O6Ocu64Eht4J2nyKEA==, generatedId=data-warehouse-356806:US.76d88041-f585-4c9e-adc4-c206186958f2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/76d88041-f585-4c9e-adc4-c206186958f2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_twd_activity_log}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:26:29 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=76d88041-f585-4c9e-adc4-c206186958f2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306788928, endTime=null, startTime=1664306789049, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=041/O6Ocu64Eht4J2nyKEA==, generatedId=data-warehouse-356806:US.76d88041-f585-4c9e-adc4-c206186958f2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/76d88041-f585-4c9e-adc4-c206186958f2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_twd_activity_log}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:32 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=76d88041-f585-4c9e-adc4-c206186958f2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306788928, endTime=null, startTime=1664306789049, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=041/O6Ocu64Eht4J2nyKEA==, generatedId=data-warehouse-356806:US.76d88041-f585-4c9e-adc4-c206186958f2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/76d88041-f585-4c9e-adc4-c206186958f2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_twd_activity_log}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:32 destination > [JobId{project=data-warehouse-356806, job=76d88041-f585-4c9e-adc4-c206186958f2, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:26:32 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_activity_log}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:26:36 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_activity_log}} 2022-09-27 19:26:36 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xim_inclusions_transfers}} (dataset t_billing): [] 2022-09-27 19:26:36 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xim_inclusions_transfers}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_transfers}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:26:39 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xim_inclusions_transfers}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_transfers}} 2022-09-27 19:26:39 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} (dataset t_billing): [1.avro] 2022-09-27 19:26:39 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:26:40 destination > [JobId{project=data-warehouse-356806, job=ddf57724-c11b-46c4-a6c9-95431f3402af, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=ddf57724-c11b-46c4-a6c9-95431f3402af, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306799964, endTime=null, startTime=1664306800153, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=H4/ZOt5qwpzy+rNu8Asv5w==, generatedId=data-warehouse-356806:US.ddf57724-c11b-46c4-a6c9-95431f3402af, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ddf57724-c11b-46c4-a6c9-95431f3402af?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:26:40 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=ddf57724-c11b-46c4-a6c9-95431f3402af, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306799964, endTime=null, startTime=1664306800153, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=H4/ZOt5qwpzy+rNu8Asv5w==, generatedId=data-warehouse-356806:US.ddf57724-c11b-46c4-a6c9-95431f3402af, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ddf57724-c11b-46c4-a6c9-95431f3402af?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:43 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=ddf57724-c11b-46c4-a6c9-95431f3402af, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306799964, endTime=null, startTime=1664306800153, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=H4/ZOt5qwpzy+rNu8Asv5w==, generatedId=data-warehouse-356806:US.ddf57724-c11b-46c4-a6c9-95431f3402af, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ddf57724-c11b-46c4-a6c9-95431f3402af?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:43 destination > [JobId{project=data-warehouse-356806, job=ddf57724-c11b-46c4-a6c9-95431f3402af, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:26:43 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_trip_sales_summary}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:26:45 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_trip_sales_summary}} 2022-09-27 19:26:45 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} (dataset t_billing): [1.avro] 2022-09-27 19:26:45 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:26:45 destination > [JobId{project=data-warehouse-356806, job=6c1a6763-b21e-4fa6-a832-cd716993870c, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=6c1a6763-b21e-4fa6-a832-cd716993870c, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306805561, endTime=null, startTime=1664306805670, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=uFn5awS2+WdAR+Mjr9Y2gA==, generatedId=data-warehouse-356806:US.6c1a6763-b21e-4fa6-a832-cd716993870c, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/6c1a6763-b21e-4fa6-a832-cd716993870c?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_vgu_inclusions_experiences}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:26:45 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=6c1a6763-b21e-4fa6-a832-cd716993870c, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306805561, endTime=null, startTime=1664306805670, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=uFn5awS2+WdAR+Mjr9Y2gA==, generatedId=data-warehouse-356806:US.6c1a6763-b21e-4fa6-a832-cd716993870c, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/6c1a6763-b21e-4fa6-a832-cd716993870c?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_vgu_inclusions_experiences}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:48 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=6c1a6763-b21e-4fa6-a832-cd716993870c, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306805561, endTime=null, startTime=1664306805670, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=uFn5awS2+WdAR+Mjr9Y2gA==, generatedId=data-warehouse-356806:US.6c1a6763-b21e-4fa6-a832-cd716993870c, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/6c1a6763-b21e-4fa6-a832-cd716993870c?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_vgu_inclusions_experiences}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:26:48 destination > [JobId{project=data-warehouse-356806, job=6c1a6763-b21e-4fa6-a832-cd716993870c, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:26:48 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_experiences}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:26:52 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_experiences}} 2022-09-27 19:26:52 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_alv_inclusions_other_charges}} (dataset t_billing): [] 2022-09-27 19:26:52 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_alv_inclusions_other_charges}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_other_charges}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:26:55 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_alv_inclusions_other_charges}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_other_charges}} 2022-09-27 19:26:55 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kus_refunds_transactions}} (dataset t_billing): [] 2022-09-27 19:26:55 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kus_refunds_transactions}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refunds_transactions}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:26:58 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kus_refunds_transactions}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_refunds_transactions}} 2022-09-27 19:26:58 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_njy_chargebacks}} (dataset t_billing): [] 2022-09-27 19:26:58 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_njy_chargebacks}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_chargebacks}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:27:01 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_njy_chargebacks}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_chargebacks}} 2022-09-27 19:27:01 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zrs_charity_transactions}} (dataset t_billing): [] 2022-09-27 19:27:01 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zrs_charity_transactions}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_charity_transactions}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:27:04 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zrs_charity_transactions}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_charity_transactions}} 2022-09-27 19:27:04 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} (dataset t_billing): [1.avro] 2022-09-27 19:27:04 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:27:04 destination > [JobId{project=data-warehouse-356806, job=abc9b911-d59b-4e04-9787-8e70ac96b548, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=abc9b911-d59b-4e04-9787-8e70ac96b548, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306824750, endTime=null, startTime=1664306824881, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=mB4aPRiCCH/rUq3fn84KHA==, generatedId=data-warehouse-356806:US.abc9b911-d59b-4e04-9787-8e70ac96b548, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/abc9b911-d59b-4e04-9787-8e70ac96b548?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_vel_v_invoice_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:27:04 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=abc9b911-d59b-4e04-9787-8e70ac96b548, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306824750, endTime=null, startTime=1664306824881, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=mB4aPRiCCH/rUq3fn84KHA==, generatedId=data-warehouse-356806:US.abc9b911-d59b-4e04-9787-8e70ac96b548, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/abc9b911-d59b-4e04-9787-8e70ac96b548?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_vel_v_invoice_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:12 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=abc9b911-d59b-4e04-9787-8e70ac96b548, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306824750, endTime=null, startTime=1664306824881, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=mB4aPRiCCH/rUq3fn84KHA==, generatedId=data-warehouse-356806:US.abc9b911-d59b-4e04-9787-8e70ac96b548, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/abc9b911-d59b-4e04-9787-8e70ac96b548?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_vel_v_invoice_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:12 destination > [JobId{project=data-warehouse-356806, job=abc9b911-d59b-4e04-9787-8e70ac96b548, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:27:12 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_invoice_summaries}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:27:15 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_invoice_summaries}} 2022-09-27 19:27:15 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} (dataset t_billing): [1.avro] 2022-09-27 19:27:15 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:27:15 destination > [JobId{project=data-warehouse-356806, job=81e32d72-db57-45ed-96f5-ad38e13c6101, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=81e32d72-db57-45ed-96f5-ad38e13c6101, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306835375, endTime=null, startTime=1664306835476, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=/wpOpk8Bo5tz4F0ubgrH9A==, generatedId=data-warehouse-356806:US.81e32d72-db57-45ed-96f5-ad38e13c6101, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/81e32d72-db57-45ed-96f5-ad38e13c6101?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_wak_v_discount_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:27:15 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=81e32d72-db57-45ed-96f5-ad38e13c6101, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306835375, endTime=null, startTime=1664306835476, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=/wpOpk8Bo5tz4F0ubgrH9A==, generatedId=data-warehouse-356806:US.81e32d72-db57-45ed-96f5-ad38e13c6101, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/81e32d72-db57-45ed-96f5-ad38e13c6101?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_wak_v_discount_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:22 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=81e32d72-db57-45ed-96f5-ad38e13c6101, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306835375, endTime=null, startTime=1664306835476, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=/wpOpk8Bo5tz4F0ubgrH9A==, generatedId=data-warehouse-356806:US.81e32d72-db57-45ed-96f5-ad38e13c6101, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/81e32d72-db57-45ed-96f5-ad38e13c6101?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_wak_v_discount_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:22 destination > [JobId{project=data-warehouse-356806, job=81e32d72-db57-45ed-96f5-ad38e13c6101, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:27:22 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_discount_summaries}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:27:25 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_discount_summaries}} 2022-09-27 19:27:25 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} (dataset t_billing): [1.avro] 2022-09-27 19:27:25 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:27:26 destination > [JobId{project=data-warehouse-356806, job=2e8a7e47-1743-45fd-9b3e-3dc7f647126a, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=2e8a7e47-1743-45fd-9b3e-3dc7f647126a, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306846071, endTime=null, startTime=1664306846189, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=GSpFHjoc38tV8j+A9c+JZw==, generatedId=data-warehouse-356806:US.2e8a7e47-1743-45fd-9b3e-3dc7f647126a, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/2e8a7e47-1743-45fd-9b3e-3dc7f647126a?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:27:26 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=2e8a7e47-1743-45fd-9b3e-3dc7f647126a, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306846071, endTime=null, startTime=1664306846189, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=GSpFHjoc38tV8j+A9c+JZw==, generatedId=data-warehouse-356806:US.2e8a7e47-1743-45fd-9b3e-3dc7f647126a, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/2e8a7e47-1743-45fd-9b3e-3dc7f647126a?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:28 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=2e8a7e47-1743-45fd-9b3e-3dc7f647126a, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306846071, endTime=null, startTime=1664306846189, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=GSpFHjoc38tV8j+A9c+JZw==, generatedId=data-warehouse-356806:US.2e8a7e47-1743-45fd-9b3e-3dc7f647126a, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/2e8a7e47-1743-45fd-9b3e-3dc7f647126a?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:28 destination > [JobId{project=data-warehouse-356806, job=2e8a7e47-1743-45fd-9b3e-3dc7f647126a, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:27:28 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_charity_transaction_summaries}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:27:30 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_charity_transaction_summaries}} 2022-09-27 19:27:30 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} (dataset t_billing): [1.avro, 2.avro] 2022-09-27 19:27:30 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro 2022-09-27 19:27:30 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:27:31 destination > [JobId{project=data-warehouse-356806, job=28746abb-2be3-4c47-a0bd-9cd8cdeb485b, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=28746abb-2be3-4c47-a0bd-9cd8cdeb485b, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306850995, endTime=null, startTime=1664306851123, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=i8lQ6/7wqzvU7z9xxogzjA==, generatedId=data-warehouse-356806:US.28746abb-2be3-4c47-a0bd-9cd8cdeb485b, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/28746abb-2be3-4c47-a0bd-9cd8cdeb485b?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xea_v_total_flight_paid}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:27:31 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=28746abb-2be3-4c47-a0bd-9cd8cdeb485b, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306850995, endTime=null, startTime=1664306851123, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=i8lQ6/7wqzvU7z9xxogzjA==, generatedId=data-warehouse-356806:US.28746abb-2be3-4c47-a0bd-9cd8cdeb485b, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/28746abb-2be3-4c47-a0bd-9cd8cdeb485b?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xea_v_total_flight_paid}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:31 destination > [JobId{project=data-warehouse-356806, job=63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306851091, endTime=null, startTime=1664306851232, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=kumESYDnGR1t8A/MA5Uj8w==, generatedId=data-warehouse-356806:US.63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xea_v_total_flight_paid}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:27:31 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306851091, endTime=null, startTime=1664306851232, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=kumESYDnGR1t8A/MA5Uj8w==, generatedId=data-warehouse-356806:US.63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xea_v_total_flight_paid}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:34 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306851091, endTime=null, startTime=1664306851232, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=kumESYDnGR1t8A/MA5Uj8w==, generatedId=data-warehouse-356806:US.63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xea_v_total_flight_paid}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:34 destination > [JobId{project=data-warehouse-356806, job=63fb4c15-eca3-4d0f-bc9d-c7b9ff2a5db2, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:27:34 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=28746abb-2be3-4c47-a0bd-9cd8cdeb485b, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306850995, endTime=null, startTime=1664306851123, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=i8lQ6/7wqzvU7z9xxogzjA==, generatedId=data-warehouse-356806:US.28746abb-2be3-4c47-a0bd-9cd8cdeb485b, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/28746abb-2be3-4c47-a0bd-9cd8cdeb485b?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xea_v_total_flight_paid}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:34 destination > [JobId{project=data-warehouse-356806, job=28746abb-2be3-4c47-a0bd-9cd8cdeb485b, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:27:34 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_total_flight_paid}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:27:36 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_total_flight_paid}} 2022-09-27 19:27:36 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} (dataset t_billing): [1.avro] 2022-09-27 19:27:36 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:27:37 destination > [JobId{project=data-warehouse-356806, job=8456f30b-a583-42eb-85e0-f3ee41db9426, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=8456f30b-a583-42eb-85e0-f3ee41db9426, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306857020, endTime=null, startTime=1664306857145, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=5YzPb5YgSiinkftQmB9x6g==, generatedId=data-warehouse-356806:US.8456f30b-a583-42eb-85e0-f3ee41db9426, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/8456f30b-a583-42eb-85e0-f3ee41db9426?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ogw_transaction_audits}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:27:37 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=8456f30b-a583-42eb-85e0-f3ee41db9426, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306857020, endTime=null, startTime=1664306857145, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=5YzPb5YgSiinkftQmB9x6g==, generatedId=data-warehouse-356806:US.8456f30b-a583-42eb-85e0-f3ee41db9426, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/8456f30b-a583-42eb-85e0-f3ee41db9426?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ogw_transaction_audits}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:51 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=8456f30b-a583-42eb-85e0-f3ee41db9426, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306857020, endTime=null, startTime=1664306857145, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=5YzPb5YgSiinkftQmB9x6g==, generatedId=data-warehouse-356806:US.8456f30b-a583-42eb-85e0-f3ee41db9426, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/8456f30b-a583-42eb-85e0-f3ee41db9426?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ogw_transaction_audits}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:27:51 destination > [JobId{project=data-warehouse-356806, job=8456f30b-a583-42eb-85e0-f3ee41db9426, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:27:51 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_audits}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:27:54 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_audits}} 2022-09-27 19:27:54 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} (dataset t_billing): [1.avro] 2022-09-27 19:27:54 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:27:54 destination > [JobId{project=data-warehouse-356806, job=ccd14b51-0af4-4972-b461-2ecbf8582a07, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=ccd14b51-0af4-4972-b461-2ecbf8582a07, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306874741, endTime=null, startTime=1664306874877, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=vfBHPPYKnpHFpAVC2M07zA==, generatedId=data-warehouse-356806:US.ccd14b51-0af4-4972-b461-2ecbf8582a07, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ccd14b51-0af4-4972-b461-2ecbf8582a07?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_heu_transactions_1628688127}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:27:54 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=ccd14b51-0af4-4972-b461-2ecbf8582a07, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306874741, endTime=null, startTime=1664306874877, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=vfBHPPYKnpHFpAVC2M07zA==, generatedId=data-warehouse-356806:US.ccd14b51-0af4-4972-b461-2ecbf8582a07, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ccd14b51-0af4-4972-b461-2ecbf8582a07?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_heu_transactions_1628688127}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:01 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=ccd14b51-0af4-4972-b461-2ecbf8582a07, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306874741, endTime=null, startTime=1664306874877, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=vfBHPPYKnpHFpAVC2M07zA==, generatedId=data-warehouse-356806:US.ccd14b51-0af4-4972-b461-2ecbf8582a07, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ccd14b51-0af4-4972-b461-2ecbf8582a07?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_heu_transactions_1628688127}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:01 destination > [JobId{project=data-warehouse-356806, job=ccd14b51-0af4-4972-b461-2ecbf8582a07, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:28:01 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transactions_1628688127}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:28:04 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transactions_1628688127}} 2022-09-27 19:28:04 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} (dataset t_billing): [1.avro] 2022-09-27 19:28:04 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:28:05 destination > [JobId{project=data-warehouse-356806, job=3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306884996, endTime=null, startTime=1664306885136, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=g04jDuBdNF6DUWcvUKrhHg==, generatedId=data-warehouse-356806:US.3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/3c8e3628-f50e-43ad-a1e6-a1b5eb53db94?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zcr_cards}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:28:05 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306884996, endTime=null, startTime=1664306885136, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=g04jDuBdNF6DUWcvUKrhHg==, generatedId=data-warehouse-356806:US.3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/3c8e3628-f50e-43ad-a1e6-a1b5eb53db94?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zcr_cards}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:08 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306884996, endTime=null, startTime=1664306885136, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=g04jDuBdNF6DUWcvUKrhHg==, generatedId=data-warehouse-356806:US.3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/3c8e3628-f50e-43ad-a1e6-a1b5eb53db94?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zcr_cards}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:08 destination > [JobId{project=data-warehouse-356806, job=3c8e3628-f50e-43ad-a1e6-a1b5eb53db94, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:28:08 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_cards}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:28:11 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_cards}} 2022-09-27 19:28:11 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} (dataset t_billing): [1.avro] 2022-09-27 19:28:11 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:28:11 destination > [JobId{project=data-warehouse-356806, job=e28f83e1-e969-481b-ae2b-b0ade7410cb9, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=e28f83e1-e969-481b-ae2b-b0ade7410cb9, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306891202, endTime=null, startTime=1664306891424, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=DkpP/qOpFPNLlBiFyqqlYg==, generatedId=data-warehouse-356806:US.e28f83e1-e969-481b-ae2b-b0ade7410cb9, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/e28f83e1-e969-481b-ae2b-b0ade7410cb9?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:28:11 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=e28f83e1-e969-481b-ae2b-b0ade7410cb9, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306891202, endTime=null, startTime=1664306891424, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=DkpP/qOpFPNLlBiFyqqlYg==, generatedId=data-warehouse-356806:US.e28f83e1-e969-481b-ae2b-b0ade7410cb9, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/e28f83e1-e969-481b-ae2b-b0ade7410cb9?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:17 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=e28f83e1-e969-481b-ae2b-b0ade7410cb9, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306891202, endTime=null, startTime=1664306891424, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=DkpP/qOpFPNLlBiFyqqlYg==, generatedId=data-warehouse-356806:US.e28f83e1-e969-481b-ae2b-b0ade7410cb9, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/e28f83e1-e969-481b-ae2b-b0ade7410cb9?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:17 destination > [JobId{project=data-warehouse-356806, job=e28f83e1-e969-481b-ae2b-b0ade7410cb9, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:28:17 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_inclusion_summaries}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:28:19 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_inclusion_summaries}} 2022-09-27 19:28:19 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} (dataset t_billing): [1.avro] 2022-09-27 19:28:19 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:28:19 destination > [JobId{project=data-warehouse-356806, job=98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306899652, endTime=null, startTime=1664306899778, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=TG7mUuUvQRmLPKrd7O2xFw==, generatedId=data-warehouse-356806:US.98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/98a9174b-b790-4ecd-98a6-cdd6f66d0cd2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_phq_inclusions}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:28:19 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306899652, endTime=null, startTime=1664306899778, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=TG7mUuUvQRmLPKrd7O2xFw==, generatedId=data-warehouse-356806:US.98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/98a9174b-b790-4ecd-98a6-cdd6f66d0cd2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_phq_inclusions}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:23 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306899652, endTime=null, startTime=1664306899778, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=TG7mUuUvQRmLPKrd7O2xFw==, generatedId=data-warehouse-356806:US.98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/98a9174b-b790-4ecd-98a6-cdd6f66d0cd2?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_phq_inclusions}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:23 destination > [JobId{project=data-warehouse-356806, job=98a9174b-b790-4ecd-98a6-cdd6f66d0cd2, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:28:23 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:28:26 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions}} 2022-09-27 19:28:26 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_dzm_inclusions_charities}} (dataset t_billing): [] 2022-09-27 19:28:26 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_dzm_inclusions_charities}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_charities}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:28:31 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_dzm_inclusions_charities}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_charities}} 2022-09-27 19:28:31 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ftf_inclusions_insurances}} (dataset t_billing): [] 2022-09-27 19:28:31 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ftf_inclusions_insurances}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_insurances}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:28:36 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ftf_inclusions_insurances}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_insurances}} 2022-09-27 19:28:36 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rjy_transaction_credits}} (dataset t_billing): [] 2022-09-27 19:28:36 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rjy_transaction_credits}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_credits}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:28:39 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rjy_transaction_credits}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_transaction_credits}} 2022-09-27 19:28:39 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} (dataset t_billing): [1.avro] 2022-09-27 19:28:39 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:28:39 destination > [JobId{project=data-warehouse-356806, job=31cf4e20-0950-4188-976d-2bf514226d96, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=31cf4e20-0950-4188-976d-2bf514226d96, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306919672, endTime=null, startTime=1664306919799, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=6hb7kYy9mfXPmYHWlX8ANA==, generatedId=data-warehouse-356806:US.31cf4e20-0950-4188-976d-2bf514226d96, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/31cf4e20-0950-4188-976d-2bf514226d96?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ult_inclusions_accommodations}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:28:39 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=31cf4e20-0950-4188-976d-2bf514226d96, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306919672, endTime=null, startTime=1664306919799, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=6hb7kYy9mfXPmYHWlX8ANA==, generatedId=data-warehouse-356806:US.31cf4e20-0950-4188-976d-2bf514226d96, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/31cf4e20-0950-4188-976d-2bf514226d96?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ult_inclusions_accommodations}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:44 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=31cf4e20-0950-4188-976d-2bf514226d96, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306919672, endTime=null, startTime=1664306919799, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=6hb7kYy9mfXPmYHWlX8ANA==, generatedId=data-warehouse-356806:US.31cf4e20-0950-4188-976d-2bf514226d96, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/31cf4e20-0950-4188-976d-2bf514226d96?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_ult_inclusions_accommodations}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:44 destination > [JobId{project=data-warehouse-356806, job=31cf4e20-0950-4188-976d-2bf514226d96, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:28:44 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_accommodations}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:28:48 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_accommodations}} 2022-09-27 19:28:48 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_plt_credits}} (dataset t_billing): [] 2022-09-27 19:28:48 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_plt_credits}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_credits}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:28:51 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_plt_credits}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_credits}} 2022-09-27 19:28:51 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} (dataset t_billing): [1.avro] 2022-09-27 19:28:51 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:28:51 destination > [JobId{project=data-warehouse-356806, job=13479806-e5d7-469d-82b5-835df171bb4a, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=13479806-e5d7-469d-82b5-835df171bb4a, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306931603, endTime=null, startTime=1664306931734, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=jFP/ynZGKoBhNIFd4Gpd1Q==, generatedId=data-warehouse-356806:US.13479806-e5d7-469d-82b5-835df171bb4a, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/13479806-e5d7-469d-82b5-835df171bb4a?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:28:51 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=13479806-e5d7-469d-82b5-835df171bb4a, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306931603, endTime=null, startTime=1664306931734, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=jFP/ynZGKoBhNIFd4Gpd1Q==, generatedId=data-warehouse-356806:US.13479806-e5d7-469d-82b5-835df171bb4a, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/13479806-e5d7-469d-82b5-835df171bb4a?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:59 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=13479806-e5d7-469d-82b5-835df171bb4a, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306931603, endTime=null, startTime=1664306931734, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=jFP/ynZGKoBhNIFd4Gpd1Q==, generatedId=data-warehouse-356806:US.13479806-e5d7-469d-82b5-835df171bb4a, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/13479806-e5d7-469d-82b5-835df171bb4a?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:28:59 destination > [JobId{project=data-warehouse-356806, job=13479806-e5d7-469d-82b5-835df171bb4a, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:28:59 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transactions_invalid_currencies}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:29:01 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transactions_invalid_currencies}} 2022-09-27 19:29:01 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} (dataset t_billing): [1.avro] 2022-09-27 19:29:01 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:01 destination > [JobId{project=data-warehouse-356806, job=eff63a21-6de0-4276-b860-4db9add1f0a0, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=eff63a21-6de0-4276-b860-4db9add1f0a0, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306941140, endTime=null, startTime=1664306941270, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=9/WFsH5U6OZEJyl8BzmNRg==, generatedId=data-warehouse-356806:US.eff63a21-6de0-4276-b860-4db9add1f0a0, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/eff63a21-6de0-4276-b860-4db9add1f0a0?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:29:01 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=eff63a21-6de0-4276-b860-4db9add1f0a0, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306941140, endTime=null, startTime=1664306941270, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=9/WFsH5U6OZEJyl8BzmNRg==, generatedId=data-warehouse-356806:US.eff63a21-6de0-4276-b860-4db9add1f0a0, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/eff63a21-6de0-4276-b860-4db9add1f0a0?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:04 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=eff63a21-6de0-4276-b860-4db9add1f0a0, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306941140, endTime=null, startTime=1664306941270, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=9/WFsH5U6OZEJyl8BzmNRg==, generatedId=data-warehouse-356806:US.eff63a21-6de0-4276-b860-4db9add1f0a0, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/eff63a21-6de0-4276-b860-4db9add1f0a0?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:04 destination > [JobId{project=data-warehouse-356806, job=eff63a21-6de0-4276-b860-4db9add1f0a0, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:29:04 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_currencies_used}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:29:06 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_transaction_currencies_used}} 2022-09-27 19:29:06 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yyz_inclusions_tours}} (dataset t_billing): [] 2022-09-27 19:29:06 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yyz_inclusions_tours}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_tours}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:29:10 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yyz_inclusions_tours}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_tours}} 2022-09-27 19:29:10 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} (dataset t_billing): [1.avro] 2022-09-27 19:29:10 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:10 destination > [JobId{project=data-warehouse-356806, job=ed64464e-61bf-4163-a680-e84d41e4c988, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=ed64464e-61bf-4163-a680-e84d41e4c988, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306950775, endTime=null, startTime=1664306950900, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=qPj5PQgFWrPLWoweX8zdaw==, generatedId=data-warehouse-356806:US.ed64464e-61bf-4163-a680-e84d41e4c988, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ed64464e-61bf-4163-a680-e84d41e4c988?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:29:10 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=ed64464e-61bf-4163-a680-e84d41e4c988, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306950775, endTime=null, startTime=1664306950900, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=qPj5PQgFWrPLWoweX8zdaw==, generatedId=data-warehouse-356806:US.ed64464e-61bf-4163-a680-e84d41e4c988, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ed64464e-61bf-4163-a680-e84d41e4c988?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:15 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=ed64464e-61bf-4163-a680-e84d41e4c988, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306950775, endTime=null, startTime=1664306950900, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=qPj5PQgFWrPLWoweX8zdaw==, generatedId=data-warehouse-356806:US.ed64464e-61bf-4163-a680-e84d41e4c988, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/ed64464e-61bf-4163-a680-e84d41e4c988?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:15 destination > [JobId{project=data-warehouse-356806, job=ed64464e-61bf-4163-a680-e84d41e4c988, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:29:15 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_bad_chargebacks}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:29:18 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_v_bad_chargebacks}} 2022-09-27 19:29:18 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_btg_inclusions_flights}} (dataset t_billing): [] 2022-09-27 19:29:18 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_btg_inclusions_flights}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_flights}} (dataset t_billing, sync mode append_dedup) 2022-09-27 19:29:21 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_btg_inclusions_flights}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_inclusions_flights}} 2022-09-27 19:29:21 destination > Uploading records from staging files to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} (dataset t_billing): [1.avro, 2.avro] 2022-09-27 19:29:21 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro 2022-09-27 19:29:21 destination > Uploading staged file: gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:22 destination > [JobId{project=data-warehouse-356806, job=476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306961984, endTime=null, startTime=1664306962113, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=tSONyjRTwWhz7mAD0GJ3uw==, generatedId=data-warehouse-356806:US.476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/476f3ff7-05ef-4b57-9ffb-fd6ab500cf80?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zsk_payment_plans_analysis}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:29:22 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306961984, endTime=null, startTime=1664306962113, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=tSONyjRTwWhz7mAD0GJ3uw==, generatedId=data-warehouse-356806:US.476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/476f3ff7-05ef-4b57-9ffb-fd6ab500cf80?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zsk_payment_plans_analysis}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:22 destination > [JobId{project=data-warehouse-356806, job=c301d1dd-fd23-4754-adae-510c33d97f28, location=US}] Created a new job to upload records to tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} (dataset t_billing): Job{job=JobId{project=data-warehouse-356806, job=c301d1dd-fd23-4754-adae-510c33d97f28, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306962072, endTime=null, startTime=1664306962176, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=JKS/mHZDFAeYXSgvjBIGzQ==, generatedId=data-warehouse-356806:US.c301d1dd-fd23-4754-adae-510c33d97f28, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/c301d1dd-fd23-4754-adae-510c33d97f28?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zsk_payment_plans_analysis}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} 2022-09-27 19:29:22 destination > Waiting for job finish Job{job=JobId{project=data-warehouse-356806, job=c301d1dd-fd23-4754-adae-510c33d97f28, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306962072, endTime=null, startTime=1664306962176, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=JKS/mHZDFAeYXSgvjBIGzQ==, generatedId=data-warehouse-356806:US.c301d1dd-fd23-4754-adae-510c33d97f28, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/c301d1dd-fd23-4754-adae-510c33d97f28?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zsk_payment_plans_analysis}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}}. Status: JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:26 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=c301d1dd-fd23-4754-adae-510c33d97f28, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306962072, endTime=null, startTime=1664306962176, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=JKS/mHZDFAeYXSgvjBIGzQ==, generatedId=data-warehouse-356806:US.c301d1dd-fd23-4754-adae-510c33d97f28, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/c301d1dd-fd23-4754-adae-510c33d97f28?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zsk_payment_plans_analysis}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:26 destination > [JobId{project=data-warehouse-356806, job=c301d1dd-fd23-4754-adae-510c33d97f28, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:29:28 destination > Job finish Job{job=JobId{project=data-warehouse-356806, job=476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, location=US}, status=JobStatus{state=RUNNING, error=null, executionErrors=null}, statistics=LoadStatistics{creationTime=1664306961984, endTime=null, startTime=1664306962113, numChildJobs=null, parentJobId=null, scriptStatistics=null, reservationUsage=null, inputBytes=null, inputFiles=null, outputBytes=null, outputRows=null, badRecords=null}, userEmail=airbye-bigquery-staging@data-warehouse-356806.iam.gserviceaccount.com, etag=tSONyjRTwWhz7mAD0GJ3uw==, generatedId=data-warehouse-356806:US.476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, selfLink=https://www.googleapis.com/bigquery/v2/projects/data-warehouse-356806/jobs/476f3ff7-05ef-4b57-9ffb-fd6ab500cf80?location=US, configuration=LoadJobConfiguration{type=LOAD, destinationTable=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, projectId=data-warehouse-356806, tableId=_airbyte_tmp_zsk_payment_plans_analysis}}, decimalTargetTypes=null, destinationEncryptionConfiguration=null, createDisposition=null, writeDisposition=WRITE_APPEND, formatOptions=FormatOptions{format=AVRO}, nullMarker=null, maxBadRecords=null, schema=Schema{fields=[Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=_airbyte_data, type=STRING, mode=null, description=null, policyTags=null}]}, ignoreUnknownValue=null, sourceUris=[gs://airbyte-bigquery-staging-1/gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro], schemaUpdateOptions=null, autodetect=null, timePartitioning=null, clustering=null, useAvroLogicalTypes=true, labels=null, jobTimeoutMs=null, rangePartitioning=null, hivePartitioningOptions=null}} with status JobStatus{state=RUNNING, error=null, executionErrors=null} 2022-09-27 19:29:28 destination > [JobId{project=data-warehouse-356806, job=476f3ff7-05ef-4b57-9ffb-fd6ab500cf80, location=US}] Tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} (dataset t_billing) is successfully appended with staging files 2022-09-27 19:29:28 destination > Copying data from tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} to target table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_payment_plans_analysis}} (dataset t_billing, sync mode overwrite) 2022-09-27 19:29:31 destination > successfully copied table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} to table: GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_raw_payment_plans_analysis}} 2022-09-27 19:29:31 destination > Finalizing tables in destination completed 2022-09-27 19:29:31 destination > Cleaning up destination started for 48 streams 2022-09-27 19:29:31 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ppv_transaction_claims}} (dataset t_billing) 2022-09-27 19:29:31 destination > Cleaning up staging path for stream transaction_claims (dataset t_billing): gwat_live/t_billing_transaction_claims 2022-09-27 19:29:31 destination > Deleting object gwat_live/t_billing_transaction_claims/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:31 destination > Storage bucket gwat_live/t_billing_transaction_claims has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:31 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_tpl_transactions}} (dataset t_billing) 2022-09-27 19:29:31 destination > Cleaning up staging path for stream transactions (dataset t_billing): gwat_live/t_billing_transactions 2022-09-27 19:29:32 destination > Deleting object gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:32 destination > Deleting object gwat_live/t_billing_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:32 destination > Deleting object gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:32 destination > Deleting object gwat_live/t_billing_transactions_1628688127/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:33 destination > Storage bucket gwat_live/t_billing_transactions has been cleaned-up (4 objects were deleted)... 2022-09-27 19:29:33 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xas_v_transaction_audit_summary}} (dataset t_billing) 2022-09-27 19:29:33 destination > Cleaning up staging path for stream v_transaction_audit_summary (dataset t_billing): gwat_live/t_billing_v_transaction_audit_summary 2022-09-27 19:29:33 destination > Deleting object gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:33 destination > Deleting object gwat_live/t_billing_v_transaction_audit_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:34 destination > Storage bucket gwat_live/t_billing_v_transaction_audit_summary has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:34 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xli_refunds}} (dataset t_billing) 2022-09-27 19:29:34 destination > Cleaning up staging path for stream refunds (dataset t_billing): gwat_live/t_billing_refunds 2022-09-27 19:29:34 destination > Deleting object gwat_live/t_billing_refunds/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:34 destination > Deleting object gwat_live/t_billing_refunds_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:35 destination > Storage bucket gwat_live/t_billing_refunds has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:35 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qsc_payment_plans}} (dataset t_billing) 2022-09-27 19:29:35 destination > Cleaning up staging path for stream payment_plans (dataset t_billing): gwat_live/t_billing_payment_plans 2022-09-27 19:29:35 destination > Deleting object gwat_live/t_billing_payment_plans/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:35 destination > Deleting object gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:35 destination > Deleting object gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:36 destination > Deleting object gwat_live/t_billing_payment_plans_analysis/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro 2022-09-27 19:29:36 destination > Storage bucket gwat_live/t_billing_payment_plans has been cleaned-up (4 objects were deleted)... 2022-09-27 19:29:36 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yhm_v_payment_plan_summaries}} (dataset t_billing) 2022-09-27 19:29:36 destination > Cleaning up staging path for stream v_payment_plan_summaries (dataset t_billing): gwat_live/t_billing_v_payment_plan_summaries 2022-09-27 19:29:36 destination > Deleting object gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:37 destination > Deleting object gwat_live/t_billing_v_payment_plan_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:37 destination > Storage bucket gwat_live/t_billing_v_payment_plan_summaries has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:37 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_qyz_expenses_suppliers}} (dataset t_billing) 2022-09-27 19:29:37 destination > Cleaning up staging path for stream expenses_suppliers (dataset t_billing): gwat_live/t_billing_expenses_suppliers 2022-09-27 19:29:37 destination > Deleting object gwat_live/t_billing_expenses_suppliers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:37 destination > Storage bucket gwat_live/t_billing_expenses_suppliers has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:37 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rml_v_transaction_invoice_joined}} (dataset t_billing) 2022-09-27 19:29:38 destination > Cleaning up staging path for stream v_transaction_invoice_joined (dataset t_billing): gwat_live/t_billing_v_transaction_invoice_joined 2022-09-27 19:29:38 destination > Deleting object gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:38 destination > Deleting object gwat_live/t_billing_v_transaction_invoice_joined/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:38 destination > Storage bucket gwat_live/t_billing_v_transaction_invoice_joined has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:38 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ymm_expenses_partners}} (dataset t_billing) 2022-09-27 19:29:39 destination > Cleaning up staging path for stream expenses_partners (dataset t_billing): gwat_live/t_billing_expenses_partners 2022-09-27 19:29:39 destination > Deleting object gwat_live/t_billing_expenses_partners/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:39 destination > Storage bucket gwat_live/t_billing_expenses_partners has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:39 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wzh_other_charges}} (dataset t_billing) 2022-09-27 19:29:39 destination > Cleaning up staging path for stream other_charges (dataset t_billing): gwat_live/t_billing_other_charges 2022-09-27 19:29:39 destination > Deleting object gwat_live/t_billing_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:39 destination > Storage bucket gwat_live/t_billing_other_charges has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:39 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kwo_credit_types}} (dataset t_billing) 2022-09-27 19:29:40 destination > Cleaning up staging path for stream credit_types (dataset t_billing): gwat_live/t_billing_credit_types 2022-09-27 19:29:40 destination > Deleting object gwat_live/t_billing_credit_types/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:40 destination > Storage bucket gwat_live/t_billing_credit_types has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:40 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kcv_v_transaction_methods_used}} (dataset t_billing) 2022-09-27 19:29:40 destination > Cleaning up staging path for stream v_transaction_methods_used (dataset t_billing): gwat_live/t_billing_v_transaction_methods_used 2022-09-27 19:29:40 destination > Deleting object gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:41 destination > Deleting object gwat_live/t_billing_v_transaction_methods_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:41 destination > Storage bucket gwat_live/t_billing_v_transaction_methods_used has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:41 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vuq_inclusion_rooms}} (dataset t_billing) 2022-09-27 19:29:41 destination > Cleaning up staging path for stream inclusion_rooms (dataset t_billing): gwat_live/t_billing_inclusion_rooms 2022-09-27 19:29:41 destination > Deleting object gwat_live/t_billing_inclusion_rooms/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:41 destination > Storage bucket gwat_live/t_billing_inclusion_rooms has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:41 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ghf_invoices}} (dataset t_billing) 2022-09-27 19:29:42 destination > Cleaning up staging path for stream invoices (dataset t_billing): gwat_live/t_billing_invoices 2022-09-27 19:29:42 destination > Deleting object gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:42 destination > Deleting object gwat_live/t_billing_invoices/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:42 destination > Storage bucket gwat_live/t_billing_invoices has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:42 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_jow_refund_protects}} (dataset t_billing) 2022-09-27 19:29:42 destination > Cleaning up staging path for stream refund_protects (dataset t_billing): gwat_live/t_billing_refund_protects 2022-09-27 19:29:42 destination > Deleting object gwat_live/t_billing_refund_protects/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:43 destination > Storage bucket gwat_live/t_billing_refund_protects has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:43 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_lvp_v_bad_transaction_audits}} (dataset t_billing) 2022-09-27 19:29:43 destination > Cleaning up staging path for stream v_bad_transaction_audits (dataset t_billing): gwat_live/t_billing_v_bad_transaction_audits 2022-09-27 19:29:43 destination > Deleting object gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:43 destination > Deleting object gwat_live/t_billing_v_bad_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:44 destination > Storage bucket gwat_live/t_billing_v_bad_transaction_audits has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:44 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_riw_v_transaction_summaries}} (dataset t_billing) 2022-09-27 19:29:44 destination > Cleaning up staging path for stream v_transaction_summaries (dataset t_billing): gwat_live/t_billing_v_transaction_summaries 2022-09-27 19:29:44 destination > Deleting object gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:44 destination > Deleting object gwat_live/t_billing_v_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:44 destination > Storage bucket gwat_live/t_billing_v_transaction_summaries has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:44 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_umc_discounts}} (dataset t_billing) 2022-09-27 19:29:45 destination > Cleaning up staging path for stream discounts (dataset t_billing): gwat_live/t_billing_discounts 2022-09-27 19:29:45 destination > Deleting object gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:45 destination > Deleting object gwat_live/t_billing_discounts/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:45 destination > Storage bucket gwat_live/t_billing_discounts has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:45 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvh_v_trip_transactions_detail}} (dataset t_billing) 2022-09-27 19:29:46 destination > Cleaning up staging path for stream v_trip_transactions_detail (dataset t_billing): gwat_live/t_billing_v_trip_transactions_detail 2022-09-27 19:29:46 destination > Deleting object gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:46 destination > Deleting object gwat_live/t_billing_v_trip_transactions_detail/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:46 destination > Storage bucket gwat_live/t_billing_v_trip_transactions_detail has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:46 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rkp_expenses}} (dataset t_billing) 2022-09-27 19:29:46 destination > Cleaning up staging path for stream expenses (dataset t_billing): gwat_live/t_billing_expenses 2022-09-27 19:29:47 destination > Deleting object gwat_live/t_billing_expenses/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:47 destination > Storage bucket gwat_live/t_billing_expenses has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:47 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_twd_activity_log}} (dataset t_billing) 2022-09-27 19:29:47 destination > Cleaning up staging path for stream activity_log (dataset t_billing): gwat_live/t_billing_activity_log 2022-09-27 19:29:47 destination > Deleting object gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:47 destination > Deleting object gwat_live/t_billing_activity_log/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:48 destination > Storage bucket gwat_live/t_billing_activity_log has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:48 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xim_inclusions_transfers}} (dataset t_billing) 2022-09-27 19:29:48 destination > Cleaning up staging path for stream inclusions_transfers (dataset t_billing): gwat_live/t_billing_inclusions_transfers 2022-09-27 19:29:48 destination > Deleting object gwat_live/t_billing_inclusions_transfers/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:48 destination > Storage bucket gwat_live/t_billing_inclusions_transfers has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:48 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_gvl_v_trip_sales_summary}} (dataset t_billing) 2022-09-27 19:29:48 destination > Cleaning up staging path for stream v_trip_sales_summary (dataset t_billing): gwat_live/t_billing_v_trip_sales_summary 2022-09-27 19:29:48 destination > Deleting object gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:49 destination > Deleting object gwat_live/t_billing_v_trip_sales_summary/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:49 destination > Storage bucket gwat_live/t_billing_v_trip_sales_summary has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:49 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vgu_inclusions_experiences}} (dataset t_billing) 2022-09-27 19:29:49 destination > Cleaning up staging path for stream inclusions_experiences (dataset t_billing): gwat_live/t_billing_inclusions_experiences 2022-09-27 19:29:49 destination > Deleting object gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:50 destination > Deleting object gwat_live/t_billing_inclusions_experiences/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:50 destination > Storage bucket gwat_live/t_billing_inclusions_experiences has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:50 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_alv_inclusions_other_charges}} (dataset t_billing) 2022-09-27 19:29:50 destination > Cleaning up staging path for stream inclusions_other_charges (dataset t_billing): gwat_live/t_billing_inclusions_other_charges 2022-09-27 19:29:50 destination > Deleting object gwat_live/t_billing_inclusions_other_charges/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:50 destination > Storage bucket gwat_live/t_billing_inclusions_other_charges has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:50 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_kus_refunds_transactions}} (dataset t_billing) 2022-09-27 19:29:51 destination > Cleaning up staging path for stream refunds_transactions (dataset t_billing): gwat_live/t_billing_refunds_transactions 2022-09-27 19:29:51 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_njy_chargebacks}} (dataset t_billing) 2022-09-27 19:29:51 destination > Cleaning up staging path for stream chargebacks (dataset t_billing): gwat_live/t_billing_chargebacks 2022-09-27 19:29:51 destination > Deleting object gwat_live/t_billing_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:51 destination > Storage bucket gwat_live/t_billing_chargebacks has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:51 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zrs_charity_transactions}} (dataset t_billing) 2022-09-27 19:29:51 destination > Cleaning up staging path for stream charity_transactions (dataset t_billing): gwat_live/t_billing_charity_transactions 2022-09-27 19:29:51 destination > Deleting object gwat_live/t_billing_charity_transactions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:52 destination > Storage bucket gwat_live/t_billing_charity_transactions has been cleaned-up (1 objects were deleted)... 2022-09-27 19:29:52 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_vel_v_invoice_summaries}} (dataset t_billing) 2022-09-27 19:29:52 destination > Cleaning up staging path for stream v_invoice_summaries (dataset t_billing): gwat_live/t_billing_v_invoice_summaries 2022-09-27 19:29:52 destination > Deleting object gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:52 destination > Deleting object gwat_live/t_billing_v_invoice_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:53 destination > Storage bucket gwat_live/t_billing_v_invoice_summaries has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:53 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_wak_v_discount_summaries}} (dataset t_billing) 2022-09-27 19:29:53 destination > Cleaning up staging path for stream v_discount_summaries (dataset t_billing): gwat_live/t_billing_v_discount_summaries 2022-09-27 19:29:53 destination > Deleting object gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:53 destination > Deleting object gwat_live/t_billing_v_discount_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:54 destination > Storage bucket gwat_live/t_billing_v_discount_summaries has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:54 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_npb_v_charity_transaction_summaries}} (dataset t_billing) 2022-09-27 19:29:54 destination > Cleaning up staging path for stream v_charity_transaction_summaries (dataset t_billing): gwat_live/t_billing_v_charity_transaction_summaries 2022-09-27 19:29:54 destination > Deleting object gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:54 destination > Deleting object gwat_live/t_billing_v_charity_transaction_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:54 destination > Storage bucket gwat_live/t_billing_v_charity_transaction_summaries has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:54 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xea_v_total_flight_paid}} (dataset t_billing) 2022-09-27 19:29:55 destination > Cleaning up staging path for stream v_total_flight_paid (dataset t_billing): gwat_live/t_billing_v_total_flight_paid 2022-09-27 19:29:55 destination > Deleting object gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:55 destination > Deleting object gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:55 destination > Deleting object gwat_live/t_billing_v_total_flight_paid/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/2.avro 2022-09-27 19:29:56 destination > Storage bucket gwat_live/t_billing_v_total_flight_paid has been cleaned-up (3 objects were deleted)... 2022-09-27 19:29:56 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ogw_transaction_audits}} (dataset t_billing) 2022-09-27 19:29:56 destination > Cleaning up staging path for stream transaction_audits (dataset t_billing): gwat_live/t_billing_transaction_audits 2022-09-27 19:29:56 destination > Deleting object gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:56 destination > Deleting object gwat_live/t_billing_transaction_audits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:56 destination > Storage bucket gwat_live/t_billing_transaction_audits has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:56 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_heu_transactions_1628688127}} (dataset t_billing) 2022-09-27 19:29:57 destination > Cleaning up staging path for stream transactions_1628688127 (dataset t_billing): gwat_live/t_billing_transactions_1628688127 2022-09-27 19:29:57 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zcr_cards}} (dataset t_billing) 2022-09-27 19:29:57 destination > Cleaning up staging path for stream cards (dataset t_billing): gwat_live/t_billing_cards 2022-09-27 19:29:57 destination > Deleting object gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:57 destination > Deleting object gwat_live/t_billing_cards/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:58 destination > Storage bucket gwat_live/t_billing_cards has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:58 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_xnq_v_inclusion_summaries}} (dataset t_billing) 2022-09-27 19:29:58 destination > Cleaning up staging path for stream v_inclusion_summaries (dataset t_billing): gwat_live/t_billing_v_inclusion_summaries 2022-09-27 19:29:58 destination > Deleting object gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:58 destination > Deleting object gwat_live/t_billing_v_inclusion_summaries/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:58 destination > Storage bucket gwat_live/t_billing_v_inclusion_summaries has been cleaned-up (2 objects were deleted)... 2022-09-27 19:29:58 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_phq_inclusions}} (dataset t_billing) 2022-09-27 19:29:58 destination > Cleaning up staging path for stream inclusions (dataset t_billing): gwat_live/t_billing_inclusions 2022-09-27 19:29:59 destination > Deleting object gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:59 destination > Deleting object gwat_live/t_billing_inclusions/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:29:59 destination > Deleting object gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:29:59 destination > Deleting object gwat_live/t_billing_inclusions_accommodations/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:30:00 destination > Deleting object gwat_live/t_billing_inclusions_charities/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:00 destination > Deleting object gwat_live/t_billing_inclusions_flights/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:00 destination > Deleting object gwat_live/t_billing_inclusions_insurances/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:01 destination > Deleting object gwat_live/t_billing_inclusions_tours/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:01 destination > Storage bucket gwat_live/t_billing_inclusions has been cleaned-up (8 objects were deleted)... 2022-09-27 19:30:01 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_dzm_inclusions_charities}} (dataset t_billing) 2022-09-27 19:30:01 destination > Cleaning up staging path for stream inclusions_charities (dataset t_billing): gwat_live/t_billing_inclusions_charities 2022-09-27 19:30:01 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ftf_inclusions_insurances}} (dataset t_billing) 2022-09-27 19:30:01 destination > Cleaning up staging path for stream inclusions_insurances (dataset t_billing): gwat_live/t_billing_inclusions_insurances 2022-09-27 19:30:01 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_rjy_transaction_credits}} (dataset t_billing) 2022-09-27 19:30:02 destination > Cleaning up staging path for stream transaction_credits (dataset t_billing): gwat_live/t_billing_transaction_credits 2022-09-27 19:30:02 destination > Deleting object gwat_live/t_billing_transaction_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:02 destination > Storage bucket gwat_live/t_billing_transaction_credits has been cleaned-up (1 objects were deleted)... 2022-09-27 19:30:02 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_ult_inclusions_accommodations}} (dataset t_billing) 2022-09-27 19:30:02 destination > Cleaning up staging path for stream inclusions_accommodations (dataset t_billing): gwat_live/t_billing_inclusions_accommodations 2022-09-27 19:30:02 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_plt_credits}} (dataset t_billing) 2022-09-27 19:30:02 destination > Cleaning up staging path for stream credits (dataset t_billing): gwat_live/t_billing_credits 2022-09-27 19:30:02 destination > Deleting object gwat_live/t_billing_credits/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:03 destination > Storage bucket gwat_live/t_billing_credits has been cleaned-up (1 objects were deleted)... 2022-09-27 19:30:03 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_azv_v_transactions_invalid_currencies}} (dataset t_billing) 2022-09-27 19:30:03 destination > Cleaning up staging path for stream v_transactions_invalid_currencies (dataset t_billing): gwat_live/t_billing_v_transactions_invalid_currencies 2022-09-27 19:30:03 destination > Deleting object gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:03 destination > Deleting object gwat_live/t_billing_v_transactions_invalid_currencies/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:30:04 destination > Storage bucket gwat_live/t_billing_v_transactions_invalid_currencies has been cleaned-up (2 objects were deleted)... 2022-09-27 19:30:04 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_bwi_v_transaction_currencies_used}} (dataset t_billing) 2022-09-27 19:30:04 destination > Cleaning up staging path for stream v_transaction_currencies_used (dataset t_billing): gwat_live/t_billing_v_transaction_currencies_used 2022-09-27 19:30:04 destination > Deleting object gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:04 destination > Deleting object gwat_live/t_billing_v_transaction_currencies_used/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:30:05 destination > Storage bucket gwat_live/t_billing_v_transaction_currencies_used has been cleaned-up (2 objects were deleted)... 2022-09-27 19:30:05 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_yyz_inclusions_tours}} (dataset t_billing) 2022-09-27 19:30:05 destination > Cleaning up staging path for stream inclusions_tours (dataset t_billing): gwat_live/t_billing_inclusions_tours 2022-09-27 19:30:05 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_fxs_v_bad_chargebacks}} (dataset t_billing) 2022-09-27 19:30:05 destination > Cleaning up staging path for stream v_bad_chargebacks (dataset t_billing): gwat_live/t_billing_v_bad_chargebacks 2022-09-27 19:30:05 destination > Deleting object gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/ 2022-09-27 19:30:05 destination > Deleting object gwat_live/t_billing_v_bad_chargebacks/2022/09/27/19/d20c578e-1005-4a99-9478-20ad454310a7/1.avro 2022-09-27 19:30:06 destination > Storage bucket gwat_live/t_billing_v_bad_chargebacks has been cleaned-up (2 objects were deleted)... 2022-09-27 19:30:06 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_btg_inclusions_flights}} (dataset t_billing) 2022-09-27 19:30:06 destination > Cleaning up staging path for stream inclusions_flights (dataset t_billing): gwat_live/t_billing_inclusions_flights 2022-09-27 19:30:06 destination > Deleting tmp table GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=t_billing, tableId=_airbyte_tmp_zsk_payment_plans_analysis}} (dataset t_billing) 2022-09-27 19:30:06 destination > Cleaning up staging path for stream payment_plans_analysis (dataset t_billing): gwat_live/t_billing_payment_plans_analysis 2022-09-27 19:30:06 destination > Cleaning up destination completed. 2022-09-27 19:30:06 INFO i.a.w.g.DefaultReplicationWorker(lambda$getDestinationOutputRunnable$7):445 - State in DefaultReplicationWorker from destination: io.airbyte.protocol.models.AirbyteMessage@1a5ddba0[type=STATE,log=,spec=,connectionStatus=,catalog=,record=,state=io.airbyte.protocol.models.AirbyteStateMessage@149a369b[type=GLOBAL,stream=,global=io.airbyte.protocol.models.AirbyteGlobalState@10a5b0d0[sharedState={"state":{"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"token\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"customerId\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"holder_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_month\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_year\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"pan_suffix\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":4,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"legal_declaration_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"visible\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"archived\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"payment_plan_nominated\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"pan\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"iv\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":22,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":23,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `chargebacks` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `date_occurred` int NOT NULL,\\n `status` varchar(32) NOT NULL,\\n `file_number` char(128) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_chargebacks_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_chargebacks_cb` (`_cb`),\\n KEY `fk_t_billing_chargebacks_lmb` (`_lmb`),\\n CONSTRAINT `fk_chargebacks_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_chargebacks_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_chargebacks_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=589 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"chargebacks\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date_occurred\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"file_number\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `charity_transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_token` varchar(64) DEFAULT NULL,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `method` varchar(32) NOT NULL,\\n `currency` varchar(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` varchar(64) DEFAULT NULL,\\n `comment` varchar(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n `checked_at` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_charity_transactions_cards` (`card_id`),\\n KEY `fk_charity_transactions_legacy_users_collector` (`collector_staff_id`),\\n KEY `fk_charity_transactions_transaction_claims` (`transaction_claim_id`),\\n KEY `fk_t_billing_charity_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_charity_transactions_lmb` (`_lmb`),\\n KEY `fk_charity_transactions_invoices` (`invoice_id`),\\n KEY `fk_t_billing_charity_transactions_transaction_id` (`transaction_id`),\\n CONSTRAINT `fk_charity_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_charity_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_transaction_id` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"charity_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_token\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credit_types` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `credit_id` int unsigned DEFAULT NULL,\\n `type` varchar(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n UNIQUE KEY `credit_types_UN` (`credit_id`,`type`),\\n KEY `fk_t_billing_credit_types_cb` (`_cb`),\\n KEY `fk_t_billing_credit_types_lmb` (`_lmb`),\\n CONSTRAINT `fk_credit_types_credits_id` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=1156 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credit_types\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `cid` bigint unsigned DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `currency` varchar(100) DEFAULT NULL,\\n `description` varchar(100) DEFAULT NULL,\\n `credit_date` int unsigned DEFAULT NULL,\\n `expiry_date` int unsigned DEFAULT NULL,\\n `type` varchar(100) DEFAULT NULL,\\n `is_claimed` tinyint(1) NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `customer_FK` (`cid`),\\n KEY `fk_t_billing_credits_cb` (`_cb`),\\n KEY `fk_t_billing_credits_lmb` (`_lmb`),\\n KEY `invoice_FK` (`invoice_id`),\\n CONSTRAINT `customer_FK` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `invoice_FK` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=769 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"expiry_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_claimed\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `discounts` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `amount` decimal(11,2) unsigned NOT NULL DEFAULT '0.00',\\n `type` char(32) DEFAULT NULL,\\n `item` char(64) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_discounts_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_discounts_cb` (`_cb`),\\n KEY `fk_t_billing_discounts_lmb` (`_lmb`),\\n CONSTRAINT `fk_discounts_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_discounts_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_discounts_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=28284 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"discounts\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"item\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `inclusion_id` int unsigned DEFAULT NULL,\\n `amount` decimal(10,2) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `date` int DEFAULT '0',\\n `invoice_number` int unsigned DEFAULT NULL,\\n `description` text CHARACTER SET utf8 COLLATE utf8_bin,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `id_idx` (`id`),\\n KEY `fk_expenses_billings_inclusions_idx` (`inclusion_id`),\\n KEY `fk_t_billing_expenses_cb` (`_cb`),\\n KEY `fk_t_billing_expenses_lmb` (`_lmb`),\\n CONSTRAINT `fk_expenses_billings_inclusions` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_expenses_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_expenses_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=5259 DEFAULT CHARSET=latin1 COMMENT='Expense table with relation to inclusions'\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"invoice_number\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"utf8\",\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_partners` (\\n `expense_id` int unsigned NOT NULL,\\n `partner_id` int unsigned NOT NULL,\\n PRIMARY KEY (`expense_id`,`partner_id`),\\n KEY `fk_expenses_partners_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_partners_partner_id_idx` (`partner_id`),\\n CONSTRAINT `fk_expenses_partners_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_partners_partners` FOREIGN KEY (`partner_id`) REFERENCES `p_partners`.`partners` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_partners\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"partner_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"partner_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_suppliers` (\\n `expense_id` int unsigned NOT NULL,\\n `supplier_id` int NOT NULL,\\n PRIMARY KEY (`expense_id`,`supplier_id`),\\n KEY `fk_expenses_suppliers_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_suppliers_supplier_id_idx` (`supplier_id`),\\n CONSTRAINT `fk_expenses_suppliers_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_suppliers_suppliers` FOREIGN KEY (`supplier_id`) REFERENCES `s_suppliers`.`suppliers` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_suppliers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"supplier_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"supplier_id\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusion_rooms` (\\n `inclusion_id` int unsigned NOT NULL,\\n `room_id` int unsigned NOT NULL,\\n KEY `fk_inclusions_rooms_roomId` (`room_id`),\\n KEY `fk_inclusions_rooms_incId` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_rooms_incId` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_rooms_roomId` FOREIGN KEY (`room_id`) REFERENCES `t_trips`.`rooms` (`id`)\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `net` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `markup` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `tax` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_inclusions_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_inclusions_cb` (`_cb`),\\n KEY `fk_t_billing_inclusions_lmb` (`_lmb`),\\n CONSTRAINT `fk_inclusions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_inclusions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_inclusions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=134381 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"net\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"markup\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"tax\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_accommodations` (\\n `inclusion_id` int unsigned NOT NULL,\\n `accommodation_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`accommodation_id`),\\n KEY `fk_accommodations_inclusion_accommodations_idx` (`accommodation_id`),\\n CONSTRAINT `fk_inclusions_accommodations_1` FOREIGN KEY (`accommodation_id`) REFERENCES `t_trips`.`accommodations` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_accommodations_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_accommodations\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"accommodation_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"accommodation_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_charities` (\\n `inclusion_id` int unsigned NOT NULL,\\n `charity_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`charity_id`),\\n KEY `fk_charities_inclusions_charities_idx` (`charity_id`),\\n CONSTRAINT `fk_inclusions_charities_1` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_charities_2` FOREIGN KEY (`charity_id`) REFERENCES `t_trips`.`charities` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_charities\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"charity_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"charity_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_experiences` (\\n `inclusion_id` int unsigned NOT NULL,\\n `experience_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`experience_id`),\\n KEY `fk_inclusions_experiences_1_idx` (`experience_id`),\\n KEY `fk_inclusions_experiences_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_experiences_1` FOREIGN KEY (`experience_id`) REFERENCES `t_trips`.`experiences` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_experiences_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_experiences\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"experience_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"experience_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_flights` (\\n `inclusion_id` int unsigned NOT NULL,\\n `flight_id` int unsigned NOT NULL,\\n PRIMARY KEY (`flight_id`,`inclusion_id`),\\n KEY `fk_inclusions_flights_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_flights_1` FOREIGN KEY (`flight_id`) REFERENCES `t_trips`.`flights` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_flights_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_flights\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"flight_id\",\"inclusion_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"flight_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_insurances` (\\n `inclusion_id` int unsigned NOT NULL,\\n `insurance_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`insurance_id`),\\n KEY `fk_insurances_inclusion_insurances_idx` (`insurance_id`),\\n CONSTRAINT `fk_inclusions_insurances_1` FOREIGN KEY (`insurance_id`) REFERENCES `t_trips`.`insurances` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_insurances_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_insurances\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"insurance_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_other_charges` (\\n `inclusion_id` int unsigned NOT NULL,\\n `other_charge_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`other_charge_id`),\\n KEY `fk_other_charges_inclusions_other_charges_idx` (`other_charge_id`),\\n CONSTRAINT `fk_inclusions_inclusions_other_charges` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_other_charges_inclusions_other_charges` FOREIGN KEY (`other_charge_id`) REFERENCES `other_charges` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"other_charge_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"other_charge_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_tours` (\\n `inclusion_id` int unsigned NOT NULL,\\n `tour_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`tour_id`),\\n KEY `fk_tours_inclusions_tours_idx` (`tour_id`),\\n CONSTRAINT `fk_inclusions_tours_1` FOREIGN KEY (`tour_id`) REFERENCES `t_trips`.`tours` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_tours_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_tours\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"tour_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tour_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_transfers` (\\n `inclusion_id` int unsigned NOT NULL,\\n `transfer_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`transfer_id`),\\n KEY `fk_transfers_inclusions_transfers_idx` (`transfer_id`),\\n CONSTRAINT `fk_inclusions_transfers_1` FOREIGN KEY (`transfer_id`) REFERENCES `t_trips`.`transfers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_transfers_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_transfers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"transfer_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transfer_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `invoices` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `tid` int unsigned NOT NULL,\\n `expires_at` int DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` char(16) NOT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` decimal(11,2) DEFAULT NULL,\\n `use_excess` tinyint(1) NOT NULL DEFAULT '0',\\n `type` char(32) DEFAULT NULL,\\n `is_public` tinyint(1) NOT NULL DEFAULT '1',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `deposit_paid_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_invoices_trips_idx` (`tid`),\\n KEY `fk_invoices_departments_idx` (`department_id`),\\n KEY `fk_t_billing_invoices_cb` (`_cb`),\\n KEY `fk_t_billing_invoices_lmb` (`_lmb`),\\n CONSTRAINT `fk_invoices_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`) ON DELETE RESTRICT,\\n CONSTRAINT `fk_invoices_trips` FOREIGN KEY (`tid`) REFERENCES `t_trips`.`trips` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_invoices_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_invoices_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=113256 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"invoices\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tid\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expires_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"use_excess\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_public\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"deposit_paid_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `other_charges` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `type` char(32) DEFAULT NULL,\\n `name` char(128) DEFAULT NULL,\\n `description` char(255) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_other_charges_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_other_charges_cb` (`_cb`),\\n KEY `fk_t_billing_other_charges_lmb` (`_lmb`),\\n CONSTRAINT `fk_other_charges_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_other_charges_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_other_charges_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2938 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `payment_plans` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `status` char(16) NOT NULL,\\n `date` int NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_payment_plans_invoices_idx` (`invoice_id`),\\n KEY `fk_payment_plans_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_payment_plans_cb` (`_cb`),\\n KEY `fk_t_billing_payment_plans_lmb` (`_lmb`),\\n CONSTRAINT `fk_payment_plans_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_payment_plans_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_payment_plans_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_payment_plans_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=167130 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"payment_plans\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refund_protects` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` varchar(100) NOT NULL,\\n `reference` varchar(100) NOT NULL,\\n `status` int NOT NULL,\\n `insurance_end_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_refund_protects_cb` (`_cb`),\\n KEY `fk_t_billing_refund_protects_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_refund_protects_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refund_protects_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refund_protects\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reference\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_end_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `reason` char(255) NOT NULL,\\n `status` varchar(64) DEFAULT NULL,\\n `method` varchar(64) DEFAULT NULL,\\n `amount` decimal(10,2) NOT NULL,\\n `comment` text,\\n `priority` varchar(32) DEFAULT 'Normal',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_refunds_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_refunds_cb` (`_cb`),\\n KEY `fk_t_billing_refunds_lmb` (`_lmb`),\\n KEY `fk_t_billing_refunds_invoices_id_idx` (`invoice_id`),\\n CONSTRAINT `fk_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_refunds_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_invoices_id` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=6631 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reason\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"priority\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"Normal\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds_transactions` (\\n `refund_id` int unsigned NOT NULL,\\n `transaction_id` int unsigned NOT NULL,\\n PRIMARY KEY (`refund_id`,`transaction_id`),\\n KEY `fk_transactions_refunds_transactions_idx` (`transaction_id`),\\n CONSTRAINT `fk_refunds_refunds_transactions` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"refund_id\",\"transaction_id\"],\"columns\":[{\"name\":\"refund_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_audits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `checked_at` int NOT NULL,\\n `status` tinyint unsigned NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `internal_comments` char(255) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transaction_audits_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_transaction_audits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_audits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_audits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_audits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transaction_audits_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=125057 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_audits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"internal_comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_claims` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `amount` decimal(11,2) unsigned NOT NULL,\\n `platform` char(32) NOT NULL,\\n `claimed_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_transaction_claims_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_claims_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_claims_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_claims_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=3944 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_claims\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"platform\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"claimed_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `credit_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `transaction_credit_FK` (`credit_id`),\\n KEY `transaction_credit_FK_1` (`transaction_id`),\\n KEY `fk_t_billing_transaction_credits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_credits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK_1` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) NOT NULL,\\n `currency` char(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` tinyint(1) NOT NULL,\\n `final` tinyint(1) NOT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transactions_invoices_idx` (`invoice_id`),\\n KEY `fk_transactions_departments_idx` (`department_id`),\\n KEY `fk_transactions_transaction_claims_idx` (`transaction_claim_id`),\\n KEY `fk_transactions_cards_idx` (`card_id`),\\n KEY `fk_t_billing_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_transactions_lmb` (`_lmb`),\\n KEY `fk_transactions_legacy_users_collector` (`collector_staff_id`),\\n CONSTRAINT `fk_t_billing_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`),\\n CONSTRAINT `fk_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE SET NULL\\n) ENGINE=InnoDB AUTO_INCREMENT=154565 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":13,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"final\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":14,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions_1628688127` (\\n `id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n `currency` char(3) DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `excess_amount` decimal(11,2) DEFAULT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned DEFAULT NULL,\\n `deposit` tinyint DEFAULT NULL,\\n `final` tinyint DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663663720,\"file\":\"mysql-bin-changelog.000033\",\"pos\":10282100,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_bad_chargebacks` AS select `t_billing`.`chargebacks`.`id` AS `id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS `transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS `status`\\nfrom `t_billing`.`chargebacks`\\nwhere `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668113,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11292584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11297590,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11323917,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675314,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11885145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `t_billing`.`v_bad_chargebacks` AS SELECT `t_billing`.`chargebacks`.`id` AS`id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS`transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS`status`\\nFROM `t_billing`.`chargebacks`\\nWHERE `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162054,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162283,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162512,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162970,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13163348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169044,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13170016,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13174018,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13180758,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182979,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183197,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189040,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13193750,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194060,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194960,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13195330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13196594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197047,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198833,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199057,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199281,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199729,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13200097,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13201635,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202582,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13203749,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13206813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207709,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13208077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13209966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210913,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212310,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212821,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213034,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213247,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213806,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13216706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217135,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217598,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219658,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220627,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220848,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13221210,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223523,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13224010,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225386,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225690,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225909,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226128,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226347,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226566,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226924,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229298,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229739,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13230220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13231946,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232907,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233126,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13235560,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236001,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238007,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238308,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238956,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241257,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13242164,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13243455,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13394941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395155,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395369,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395583,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395797,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13396145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13399407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401106,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401621,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401836,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402051,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402616,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13404640,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405073,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405542,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407025,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407328,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13409745,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410662,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411585,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411896,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412122,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412574,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13413172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13418550,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419507,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423568,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424219,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424790,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13426618,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427055,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13428872,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429385,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430027,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13433888,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434319,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437763,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437974,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438738,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444564,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444989,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13445446,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450162,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450588,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454134,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454563,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13455026,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13457285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782726,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782955,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783791,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789487,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789948,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15790459,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795636,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801918,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15802396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806724,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807174,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807399,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809985,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15810963,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811496,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811944,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812536,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814074,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15815021,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816721,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817169,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817393,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15819650,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820101,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15821994,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822292,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822718,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822931,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823490,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826390,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15827282,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829342,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829648,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829869,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830532,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15832762,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833207,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835070,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835593,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836031,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15838982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839423,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842153,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842372,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842591,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842810,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15843168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845685,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15846166,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15847691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849677,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15850245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15851978,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852885,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15854176,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856927,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857141,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857355,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857703,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860068,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862664,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864075,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864290,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15866435,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15867260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15869284,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872175,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872696,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873132,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15874895,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875334,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15876735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877493,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877719,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878397,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884147,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884602,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15885104,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15888863,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892652,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15893127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894768,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895196,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895410,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895624,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899916,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15900382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15902853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903149,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903360,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903571,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903782,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903993,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15904335,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910161,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910586,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15911043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915759,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916531,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15919731,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920160,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920623,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15922882,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28884341,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28885832,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28904694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31670327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676023,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676995,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31680997,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683030,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689091,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31690008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31693801,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694111,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694336,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694786,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695381,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31696645,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697098,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698575,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698884,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699332,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31700148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31701686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702137,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31703800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704109,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704557,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704781,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705373,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31708209,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709606,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710756,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31711102,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714431,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31716954,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717702,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717923,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31721306,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722682,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722986,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723424,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723643,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723862,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31724220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31726594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729242,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729765,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729984,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730203,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730422,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31732856,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735303,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736036,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736252,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736468,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738988,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31739460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31740751,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741906,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31742254,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31744619,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31747215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748087,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748732,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31749297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751321,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751754,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31752223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31753706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754009,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754445,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754663,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754881,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31755237,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756426,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756865,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31757343,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758577,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759255,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765231,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31766188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31769947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770249,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770683,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770900,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771471,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31774211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775852,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776066,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776494,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31777056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31780569,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781000,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31783937,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784233,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784444,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784655,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784866,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791670,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31792127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796119,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796843,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797269,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797615,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31800815,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31803966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3056814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057501,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057730,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3058108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3063804,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064265,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064776,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3068778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069081,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069953,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3070309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3075796,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076235,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081041,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3082086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3084302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085589,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088391,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088842,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3089338,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091038,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091710,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3092078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3093967,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096609,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097807,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3100707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101136,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103659,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104186,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104628,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104849,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3105211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107079,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3108011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109910,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110129,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110567,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110925,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3114221,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3115947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116251,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116470,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116689,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116908,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3119561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120483,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123173,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125258,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125693,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3126165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3127456,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138975,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139403,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139617,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3143227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3144926,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145226,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145441,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145656,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145871,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3149362,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3150845,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151366,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151802,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152020,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3153565,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154004,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155405,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155942,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156394,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156620,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162370,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162825,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3163327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167388,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168039,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168610,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170875,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3171350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172991,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173847,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3174195,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3177708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178139,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3181076,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184289,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184500,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184711,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184922,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3185264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191515,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3195964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196475,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196901,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197114,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3200660,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201089,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3203811,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n","mysql_cdc_offset":{"{\"schema\":null,\"payload\":[\"t_billing\",{\"server\":\"t_billing\"}]}":"{\"transaction_id\":null,\"ts_sec\":1664306516,\"file\":\"mysql-bin-changelog.000036\",\"pos\":21459616,\"row\":1,\"server_id\":239712215,\"event\":2}"}}},streamStates=[io.airbyte.protocol.models.AirbyteStreamState@55a73ca0[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@21536d6f[name=activity_log,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"activity_log","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@64b8a930[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@59a6a647[name=cards,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"cards","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@3588c3ef[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@f0af824[name=chargebacks,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"chargebacks","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@2eda21dc[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@42a22ede[name=charity_transactions,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"charity_transactions","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@31c61ade[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@69550f1a[name=credit_types,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"credit_types","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@167e172d[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@45790fe2[name=credits,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"credits","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@4468fd79[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@5840731[name=discounts,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"discounts","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@6325afd3[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@6eaeaa4a[name=expenses,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"expenses","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@6d2e11d3[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@48362ec8[name=expenses_partners,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"expenses_partners","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@6a35b2a[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@1d445d4e[name=expenses_suppliers,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"expenses_suppliers","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@f977bc[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@79c05905[name=inclusion_rooms,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusion_rooms","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@65a6271c[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@5a37a8cb[name=inclusions,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@11b870a6[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@6acb1be5[name=inclusions_accommodations,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_accommodations","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@3e015f67[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@5997c99c[name=inclusions_charities,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_charities","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@bf8bf48[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@395e99e1[name=inclusions_experiences,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_experiences","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@d1013ca[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@6a2ce0dd[name=inclusions_flights,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_flights","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@24e0002f[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@693c04c3[name=inclusions_insurances,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_insurances","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@643fc46d[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@6998fa3f[name=inclusions_other_charges,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_other_charges","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@4d5d6e5b[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@44ce612f[name=inclusions_tours,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_tours","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@5ec8c977[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@702f9993[name=inclusions_transfers,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"inclusions_transfers","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@56a60e7b[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@61d6ca99[name=invoices,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"invoices","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@79cd34a5[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@7522c90e[name=other_charges,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"other_charges","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@1311d407[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@444456fe[name=payment_plans,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"payment_plans","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@54bc3acf[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@3735e3ef[name=payment_plans_analysis,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"payment_plans_analysis","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@2a19a8e2[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@4c0cf8f9[name=refund_protects,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"refund_protects","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@79d3c9f5[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@61e177bb[name=refunds,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"refunds","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@6589ddd[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@2d3876df[name=refunds_transactions,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"refunds_transactions","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@4a438eec[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@207564b0[name=transaction_audits,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"transaction_audits","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@6281b316[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@ce1af17[name=transaction_claims,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"transaction_claims","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@5a037489[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@5158db9d[name=transaction_credits,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"transaction_credits","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@3eaedba3[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@3f365276[name=transactions,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"transactions","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@7e50ce25[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@69c36641[name=transactions_1628688127,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"transactions_1628688127","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@21f8cb19[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@2cd098b2[name=v_bad_chargebacks,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_bad_chargebacks","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@54895aeb[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@268acf55[name=v_bad_transaction_audits,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_bad_transaction_audits","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@414d789e[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@69f07d0d[name=v_charity_transaction_summaries,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_charity_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@77b02cda[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@7b0b51e[name=v_discount_summaries,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_discount_summaries","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@2d93a4fe[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@4761ac54[name=v_inclusion_summaries,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_inclusion_summaries","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@31419e9e[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@335bc5ed[name=v_invoice_summaries,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_invoice_summaries","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@35f232c[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@49963c1f[name=v_payment_plan_summaries,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_payment_plan_summaries","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@741eeedd[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@1987391e[name=v_total_flight_paid,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_total_flight_paid","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@63bb2f41[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@1b3581ed[name=v_transaction_audit_summary,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_transaction_audit_summary","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@18deec50[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@3831799c[name=v_transaction_currencies_used,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_transaction_currencies_used","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@2ca98fc[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@35474ba1[name=v_transaction_invoice_joined,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_transaction_invoice_joined","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@5a948d35[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@69daf262[name=v_transaction_methods_used,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_transaction_methods_used","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@3f818add[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@3014d4cf[name=v_transaction_summaries,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@4e971add[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@7060a88f[name=v_transactions_invalid_currencies,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_transactions_invalid_currencies","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@4384133c[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@5520052f[name=v_trip_sales_summary,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_trip_sales_summary","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}], io.airbyte.protocol.models.AirbyteStreamState@2317bca4[streamDescriptor=io.airbyte.protocol.models.StreamDescriptor@56464c99[name=v_trip_transactions_detail,namespace=t_billing,additionalProperties={}],streamState={"stream_name":"v_trip_transactions_detail","stream_namespace":"t_billing","cursor_field":[]},additionalProperties={}]],additionalProperties={}],data={"cdc":true,"cdc_state":{"state":{"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"token\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"customerId\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"holder_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_month\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_year\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"pan_suffix\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":4,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"legal_declaration_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"visible\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"archived\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"payment_plan_nominated\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"pan\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"iv\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":22,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":23,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `chargebacks` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `date_occurred` int NOT NULL,\\n `status` varchar(32) NOT NULL,\\n `file_number` char(128) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_chargebacks_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_chargebacks_cb` (`_cb`),\\n KEY `fk_t_billing_chargebacks_lmb` (`_lmb`),\\n CONSTRAINT `fk_chargebacks_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_chargebacks_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_chargebacks_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=589 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"chargebacks\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date_occurred\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"file_number\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `charity_transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_token` varchar(64) DEFAULT NULL,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `method` varchar(32) NOT NULL,\\n `currency` varchar(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` varchar(64) DEFAULT NULL,\\n `comment` varchar(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n `checked_at` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_charity_transactions_cards` (`card_id`),\\n KEY `fk_charity_transactions_legacy_users_collector` (`collector_staff_id`),\\n KEY `fk_charity_transactions_transaction_claims` (`transaction_claim_id`),\\n KEY `fk_t_billing_charity_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_charity_transactions_lmb` (`_lmb`),\\n KEY `fk_charity_transactions_invoices` (`invoice_id`),\\n KEY `fk_t_billing_charity_transactions_transaction_id` (`transaction_id`),\\n CONSTRAINT `fk_charity_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_charity_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_transaction_id` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"charity_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_token\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credit_types` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `credit_id` int unsigned DEFAULT NULL,\\n `type` varchar(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n UNIQUE KEY `credit_types_UN` (`credit_id`,`type`),\\n KEY `fk_t_billing_credit_types_cb` (`_cb`),\\n KEY `fk_t_billing_credit_types_lmb` (`_lmb`),\\n CONSTRAINT `fk_credit_types_credits_id` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=1156 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credit_types\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `cid` bigint unsigned DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `currency` varchar(100) DEFAULT NULL,\\n `description` varchar(100) DEFAULT NULL,\\n `credit_date` int unsigned DEFAULT NULL,\\n `expiry_date` int unsigned DEFAULT NULL,\\n `type` varchar(100) DEFAULT NULL,\\n `is_claimed` tinyint(1) NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `customer_FK` (`cid`),\\n KEY `fk_t_billing_credits_cb` (`_cb`),\\n KEY `fk_t_billing_credits_lmb` (`_lmb`),\\n KEY `invoice_FK` (`invoice_id`),\\n CONSTRAINT `customer_FK` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `invoice_FK` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=769 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"expiry_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_claimed\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `discounts` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `amount` decimal(11,2) unsigned NOT NULL DEFAULT '0.00',\\n `type` char(32) DEFAULT NULL,\\n `item` char(64) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_discounts_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_discounts_cb` (`_cb`),\\n KEY `fk_t_billing_discounts_lmb` (`_lmb`),\\n CONSTRAINT `fk_discounts_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_discounts_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_discounts_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=28284 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"discounts\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"item\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `inclusion_id` int unsigned DEFAULT NULL,\\n `amount` decimal(10,2) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `date` int DEFAULT '0',\\n `invoice_number` int unsigned DEFAULT NULL,\\n `description` text CHARACTER SET utf8 COLLATE utf8_bin,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `id_idx` (`id`),\\n KEY `fk_expenses_billings_inclusions_idx` (`inclusion_id`),\\n KEY `fk_t_billing_expenses_cb` (`_cb`),\\n KEY `fk_t_billing_expenses_lmb` (`_lmb`),\\n CONSTRAINT `fk_expenses_billings_inclusions` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_expenses_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_expenses_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=5259 DEFAULT CHARSET=latin1 COMMENT='Expense table with relation to inclusions'\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"invoice_number\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"utf8\",\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_partners` (\\n `expense_id` int unsigned NOT NULL,\\n `partner_id` int unsigned NOT NULL,\\n PRIMARY KEY (`expense_id`,`partner_id`),\\n KEY `fk_expenses_partners_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_partners_partner_id_idx` (`partner_id`),\\n CONSTRAINT `fk_expenses_partners_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_partners_partners` FOREIGN KEY (`partner_id`) REFERENCES `p_partners`.`partners` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_partners\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"partner_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"partner_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_suppliers` (\\n `expense_id` int unsigned NOT NULL,\\n `supplier_id` int NOT NULL,\\n PRIMARY KEY (`expense_id`,`supplier_id`),\\n KEY `fk_expenses_suppliers_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_suppliers_supplier_id_idx` (`supplier_id`),\\n CONSTRAINT `fk_expenses_suppliers_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_suppliers_suppliers` FOREIGN KEY (`supplier_id`) REFERENCES `s_suppliers`.`suppliers` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_suppliers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"supplier_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"supplier_id\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusion_rooms` (\\n `inclusion_id` int unsigned NOT NULL,\\n `room_id` int unsigned NOT NULL,\\n KEY `fk_inclusions_rooms_roomId` (`room_id`),\\n KEY `fk_inclusions_rooms_incId` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_rooms_incId` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_rooms_roomId` FOREIGN KEY (`room_id`) REFERENCES `t_trips`.`rooms` (`id`)\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `net` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `markup` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `tax` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_inclusions_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_inclusions_cb` (`_cb`),\\n KEY `fk_t_billing_inclusions_lmb` (`_lmb`),\\n CONSTRAINT `fk_inclusions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_inclusions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_inclusions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=134381 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"net\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"markup\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"tax\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_accommodations` (\\n `inclusion_id` int unsigned NOT NULL,\\n `accommodation_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`accommodation_id`),\\n KEY `fk_accommodations_inclusion_accommodations_idx` (`accommodation_id`),\\n CONSTRAINT `fk_inclusions_accommodations_1` FOREIGN KEY (`accommodation_id`) REFERENCES `t_trips`.`accommodations` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_accommodations_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_accommodations\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"accommodation_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"accommodation_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_charities` (\\n `inclusion_id` int unsigned NOT NULL,\\n `charity_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`charity_id`),\\n KEY `fk_charities_inclusions_charities_idx` (`charity_id`),\\n CONSTRAINT `fk_inclusions_charities_1` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_charities_2` FOREIGN KEY (`charity_id`) REFERENCES `t_trips`.`charities` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_charities\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"charity_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"charity_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_experiences` (\\n `inclusion_id` int unsigned NOT NULL,\\n `experience_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`experience_id`),\\n KEY `fk_inclusions_experiences_1_idx` (`experience_id`),\\n KEY `fk_inclusions_experiences_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_experiences_1` FOREIGN KEY (`experience_id`) REFERENCES `t_trips`.`experiences` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_experiences_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_experiences\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"experience_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"experience_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_flights` (\\n `inclusion_id` int unsigned NOT NULL,\\n `flight_id` int unsigned NOT NULL,\\n PRIMARY KEY (`flight_id`,`inclusion_id`),\\n KEY `fk_inclusions_flights_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_flights_1` FOREIGN KEY (`flight_id`) REFERENCES `t_trips`.`flights` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_flights_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_flights\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"flight_id\",\"inclusion_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"flight_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_insurances` (\\n `inclusion_id` int unsigned NOT NULL,\\n `insurance_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`insurance_id`),\\n KEY `fk_insurances_inclusion_insurances_idx` (`insurance_id`),\\n CONSTRAINT `fk_inclusions_insurances_1` FOREIGN KEY (`insurance_id`) REFERENCES `t_trips`.`insurances` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_insurances_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_insurances\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"insurance_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_other_charges` (\\n `inclusion_id` int unsigned NOT NULL,\\n `other_charge_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`other_charge_id`),\\n KEY `fk_other_charges_inclusions_other_charges_idx` (`other_charge_id`),\\n CONSTRAINT `fk_inclusions_inclusions_other_charges` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_other_charges_inclusions_other_charges` FOREIGN KEY (`other_charge_id`) REFERENCES `other_charges` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"other_charge_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"other_charge_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_tours` (\\n `inclusion_id` int unsigned NOT NULL,\\n `tour_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`tour_id`),\\n KEY `fk_tours_inclusions_tours_idx` (`tour_id`),\\n CONSTRAINT `fk_inclusions_tours_1` FOREIGN KEY (`tour_id`) REFERENCES `t_trips`.`tours` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_tours_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_tours\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"tour_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tour_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_transfers` (\\n `inclusion_id` int unsigned NOT NULL,\\n `transfer_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`transfer_id`),\\n KEY `fk_transfers_inclusions_transfers_idx` (`transfer_id`),\\n CONSTRAINT `fk_inclusions_transfers_1` FOREIGN KEY (`transfer_id`) REFERENCES `t_trips`.`transfers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_transfers_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_transfers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"transfer_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transfer_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `invoices` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `tid` int unsigned NOT NULL,\\n `expires_at` int DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` char(16) NOT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` decimal(11,2) DEFAULT NULL,\\n `use_excess` tinyint(1) NOT NULL DEFAULT '0',\\n `type` char(32) DEFAULT NULL,\\n `is_public` tinyint(1) NOT NULL DEFAULT '1',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `deposit_paid_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_invoices_trips_idx` (`tid`),\\n KEY `fk_invoices_departments_idx` (`department_id`),\\n KEY `fk_t_billing_invoices_cb` (`_cb`),\\n KEY `fk_t_billing_invoices_lmb` (`_lmb`),\\n CONSTRAINT `fk_invoices_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`) ON DELETE RESTRICT,\\n CONSTRAINT `fk_invoices_trips` FOREIGN KEY (`tid`) REFERENCES `t_trips`.`trips` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_invoices_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_invoices_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=113256 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"invoices\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tid\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expires_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"use_excess\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_public\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"deposit_paid_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `other_charges` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `type` char(32) DEFAULT NULL,\\n `name` char(128) DEFAULT NULL,\\n `description` char(255) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_other_charges_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_other_charges_cb` (`_cb`),\\n KEY `fk_t_billing_other_charges_lmb` (`_lmb`),\\n CONSTRAINT `fk_other_charges_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_other_charges_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_other_charges_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2938 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `payment_plans` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `status` char(16) NOT NULL,\\n `date` int NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_payment_plans_invoices_idx` (`invoice_id`),\\n KEY `fk_payment_plans_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_payment_plans_cb` (`_cb`),\\n KEY `fk_t_billing_payment_plans_lmb` (`_lmb`),\\n CONSTRAINT `fk_payment_plans_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_payment_plans_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_payment_plans_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_payment_plans_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=167130 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"payment_plans\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refund_protects` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` varchar(100) NOT NULL,\\n `reference` varchar(100) NOT NULL,\\n `status` int NOT NULL,\\n `insurance_end_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_refund_protects_cb` (`_cb`),\\n KEY `fk_t_billing_refund_protects_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_refund_protects_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refund_protects_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refund_protects\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reference\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_end_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `reason` char(255) NOT NULL,\\n `status` varchar(64) DEFAULT NULL,\\n `method` varchar(64) DEFAULT NULL,\\n `amount` decimal(10,2) NOT NULL,\\n `comment` text,\\n `priority` varchar(32) DEFAULT 'Normal',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_refunds_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_refunds_cb` (`_cb`),\\n KEY `fk_t_billing_refunds_lmb` (`_lmb`),\\n KEY `fk_t_billing_refunds_invoices_id_idx` (`invoice_id`),\\n CONSTRAINT `fk_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_refunds_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_invoices_id` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=6631 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reason\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"priority\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"Normal\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds_transactions` (\\n `refund_id` int unsigned NOT NULL,\\n `transaction_id` int unsigned NOT NULL,\\n PRIMARY KEY (`refund_id`,`transaction_id`),\\n KEY `fk_transactions_refunds_transactions_idx` (`transaction_id`),\\n CONSTRAINT `fk_refunds_refunds_transactions` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"refund_id\",\"transaction_id\"],\"columns\":[{\"name\":\"refund_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_audits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `checked_at` int NOT NULL,\\n `status` tinyint unsigned NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `internal_comments` char(255) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transaction_audits_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_transaction_audits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_audits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_audits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_audits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transaction_audits_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=125057 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_audits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"internal_comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_claims` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `amount` decimal(11,2) unsigned NOT NULL,\\n `platform` char(32) NOT NULL,\\n `claimed_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_transaction_claims_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_claims_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_claims_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_claims_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=3944 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_claims\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"platform\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"claimed_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `credit_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `transaction_credit_FK` (`credit_id`),\\n KEY `transaction_credit_FK_1` (`transaction_id`),\\n KEY `fk_t_billing_transaction_credits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_credits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK_1` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) NOT NULL,\\n `currency` char(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` tinyint(1) NOT NULL,\\n `final` tinyint(1) NOT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transactions_invoices_idx` (`invoice_id`),\\n KEY `fk_transactions_departments_idx` (`department_id`),\\n KEY `fk_transactions_transaction_claims_idx` (`transaction_claim_id`),\\n KEY `fk_transactions_cards_idx` (`card_id`),\\n KEY `fk_t_billing_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_transactions_lmb` (`_lmb`),\\n KEY `fk_transactions_legacy_users_collector` (`collector_staff_id`),\\n CONSTRAINT `fk_t_billing_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`),\\n CONSTRAINT `fk_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE SET NULL\\n) ENGINE=InnoDB AUTO_INCREMENT=154565 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":13,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"final\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":14,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions_1628688127` (\\n `id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n `currency` char(3) DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `excess_amount` decimal(11,2) DEFAULT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned DEFAULT NULL,\\n `deposit` tinyint DEFAULT NULL,\\n `final` tinyint DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663663720,\"file\":\"mysql-bin-changelog.000033\",\"pos\":10282100,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_bad_chargebacks` AS select `t_billing`.`chargebacks`.`id` AS `id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS `transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS `status`\\nfrom `t_billing`.`chargebacks`\\nwhere `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668113,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11292584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11297590,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11323917,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675314,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11885145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `t_billing`.`v_bad_chargebacks` AS SELECT `t_billing`.`chargebacks`.`id` AS`id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS`transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS`status`\\nFROM `t_billing`.`chargebacks`\\nWHERE `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162054,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162283,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162512,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162970,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13163348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169044,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13170016,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13174018,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13180758,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182979,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183197,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189040,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13193750,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194060,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194960,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13195330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13196594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197047,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198833,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199057,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199281,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199729,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13200097,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13201635,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202582,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13203749,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13206813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207709,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13208077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13209966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210913,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212310,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212821,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213034,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213247,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213806,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13216706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217135,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217598,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219658,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220627,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220848,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13221210,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223523,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13224010,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225386,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225690,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225909,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226128,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226347,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226566,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226924,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229298,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229739,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13230220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13231946,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232907,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233126,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13235560,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236001,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238007,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238308,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238956,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241257,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13242164,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13243455,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13394941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395155,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395369,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395583,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395797,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13396145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13399407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401106,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401621,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401836,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402051,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402616,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13404640,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405073,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405542,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407025,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407328,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13409745,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410662,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411585,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411896,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412122,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412574,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13413172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13418550,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419507,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423568,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424219,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424790,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13426618,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427055,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13428872,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429385,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430027,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13433888,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434319,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437763,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437974,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438738,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444564,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444989,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13445446,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450162,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450588,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454134,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454563,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13455026,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13457285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782726,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782955,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783791,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789487,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789948,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15790459,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795636,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801918,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15802396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806724,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807174,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807399,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809985,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15810963,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811496,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811944,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812536,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814074,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15815021,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816721,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817169,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817393,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15819650,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820101,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15821994,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822292,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822718,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822931,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823490,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826390,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15827282,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829342,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829648,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829869,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830532,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15832762,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833207,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835070,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835593,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836031,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15838982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839423,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842153,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842372,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842591,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842810,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15843168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845685,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15846166,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15847691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849677,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15850245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15851978,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852885,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15854176,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856927,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857141,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857355,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857703,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860068,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862664,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864075,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864290,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15866435,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15867260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15869284,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872175,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872696,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873132,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15874895,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875334,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15876735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877493,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877719,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878397,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884147,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884602,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15885104,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15888863,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892652,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15893127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894768,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895196,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895410,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895624,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899916,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15900382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15902853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903149,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903360,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903571,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903782,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903993,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15904335,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910161,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910586,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15911043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915759,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916531,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15919731,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920160,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920623,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15922882,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28884341,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28885832,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28904694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31670327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676023,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676995,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31680997,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683030,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689091,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31690008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31693801,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694111,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694336,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694786,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695381,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31696645,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697098,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698575,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698884,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699332,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31700148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31701686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702137,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31703800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704109,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704557,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704781,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705373,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31708209,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709606,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710756,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31711102,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714431,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31716954,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717702,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717923,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31721306,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722682,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722986,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723424,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723643,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723862,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31724220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31726594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729242,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729765,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729984,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730203,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730422,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31732856,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735303,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736036,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736252,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736468,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738988,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31739460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31740751,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741906,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31742254,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31744619,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31747215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748087,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748732,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31749297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751321,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751754,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31752223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31753706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754009,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754445,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754663,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754881,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31755237,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756426,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756865,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31757343,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758577,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759255,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765231,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31766188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31769947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770249,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770683,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770900,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771471,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31774211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775852,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776066,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776494,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31777056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31780569,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781000,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31783937,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784233,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784444,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784655,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784866,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791670,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31792127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796119,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796843,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797269,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797615,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31800815,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31803966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3056814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057501,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057730,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3058108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3063804,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064265,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064776,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3068778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069081,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069953,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3070309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3075796,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076235,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081041,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3082086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3084302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085589,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088391,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088842,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3089338,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091038,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091710,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3092078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3093967,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096609,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097807,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3100707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101136,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103659,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104186,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104628,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104849,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3105211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107079,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3108011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109910,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110129,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110567,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110925,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3114221,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3115947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116251,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116470,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116689,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116908,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3119561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120483,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123173,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125258,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125693,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3126165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3127456,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138975,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139403,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139617,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3143227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3144926,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145226,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145441,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145656,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145871,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3149362,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3150845,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151366,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151802,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152020,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3153565,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154004,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155405,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155942,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156394,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156620,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162370,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162825,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3163327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167388,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168039,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168610,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170875,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3171350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172991,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173847,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3174195,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3177708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178139,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3181076,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184289,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184500,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184711,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184922,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3185264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191515,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3195964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196475,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196901,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197114,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3200660,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201089,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3203811,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n","mysql_cdc_offset":{"{\"schema\":null,\"payload\":[\"t_billing\",{\"server\":\"t_billing\"}]}":"{\"transaction_id\":null,\"ts_sec\":1664306516,\"file\":\"mysql-bin-changelog.000036\",\"pos\":21459616,\"row\":1,\"server_id\":239712215,\"event\":2}"}}},"streams":[{"stream_name":"activity_log","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"cards","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"chargebacks","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"charity_transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"credit_types","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"credits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"discounts","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses_partners","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses_suppliers","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusion_rooms","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_accommodations","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_charities","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_experiences","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_flights","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_insurances","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_other_charges","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_tours","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_transfers","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"invoices","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"other_charges","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"payment_plans","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"payment_plans_analysis","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refund_protects","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refunds","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refunds_transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_audits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_claims","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_credits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transactions_1628688127","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_bad_chargebacks","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_bad_transaction_audits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_charity_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_discount_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_inclusion_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_invoice_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_payment_plan_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_total_flight_paid","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_audit_summary","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_currencies_used","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_invoice_joined","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_methods_used","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transactions_invalid_currencies","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_trip_sales_summary","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_trip_transactions_detail","stream_namespace":"t_billing","cursor_field":[]}]},additionalProperties={}],trace=,additionalProperties={}] 2022-09-27 19:30:06 destination > Completed integration: io.airbyte.integrations.destination.bigquery.BigQueryDestination 2022-09-27 19:30:06 INFO i.a.w.g.DefaultReplicationWorker(run):184 - Source and destination threads complete. 2022-09-27 19:30:06 INFO i.a.w.g.DefaultReplicationWorker(run):279 - Source output at least one state message 2022-09-27 19:30:06 INFO i.a.w.g.DefaultReplicationWorker(run):285 - State capture: Updated state to: Optional[io.airbyte.config.State@71bfa761[state=[{"type":"GLOBAL","global":{"shared_state":{"state":{"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"token\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"customerId\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"holder_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_month\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_year\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"pan_suffix\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":4,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"legal_declaration_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"visible\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"archived\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"payment_plan_nominated\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"pan\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"iv\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":22,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":23,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `chargebacks` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `date_occurred` int NOT NULL,\\n `status` varchar(32) NOT NULL,\\n `file_number` char(128) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_chargebacks_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_chargebacks_cb` (`_cb`),\\n KEY `fk_t_billing_chargebacks_lmb` (`_lmb`),\\n CONSTRAINT `fk_chargebacks_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_chargebacks_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_chargebacks_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=589 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"chargebacks\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date_occurred\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"file_number\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `charity_transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_token` varchar(64) DEFAULT NULL,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `method` varchar(32) NOT NULL,\\n `currency` varchar(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` varchar(64) DEFAULT NULL,\\n `comment` varchar(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n `checked_at` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_charity_transactions_cards` (`card_id`),\\n KEY `fk_charity_transactions_legacy_users_collector` (`collector_staff_id`),\\n KEY `fk_charity_transactions_transaction_claims` (`transaction_claim_id`),\\n KEY `fk_t_billing_charity_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_charity_transactions_lmb` (`_lmb`),\\n KEY `fk_charity_transactions_invoices` (`invoice_id`),\\n KEY `fk_t_billing_charity_transactions_transaction_id` (`transaction_id`),\\n CONSTRAINT `fk_charity_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_charity_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_transaction_id` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"charity_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_token\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credit_types` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `credit_id` int unsigned DEFAULT NULL,\\n `type` varchar(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n UNIQUE KEY `credit_types_UN` (`credit_id`,`type`),\\n KEY `fk_t_billing_credit_types_cb` (`_cb`),\\n KEY `fk_t_billing_credit_types_lmb` (`_lmb`),\\n CONSTRAINT `fk_credit_types_credits_id` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=1156 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credit_types\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `cid` bigint unsigned DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `currency` varchar(100) DEFAULT NULL,\\n `description` varchar(100) DEFAULT NULL,\\n `credit_date` int unsigned DEFAULT NULL,\\n `expiry_date` int unsigned DEFAULT NULL,\\n `type` varchar(100) DEFAULT NULL,\\n `is_claimed` tinyint(1) NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `customer_FK` (`cid`),\\n KEY `fk_t_billing_credits_cb` (`_cb`),\\n KEY `fk_t_billing_credits_lmb` (`_lmb`),\\n KEY `invoice_FK` (`invoice_id`),\\n CONSTRAINT `customer_FK` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `invoice_FK` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=769 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"expiry_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_claimed\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `discounts` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `amount` decimal(11,2) unsigned NOT NULL DEFAULT '0.00',\\n `type` char(32) DEFAULT NULL,\\n `item` char(64) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_discounts_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_discounts_cb` (`_cb`),\\n KEY `fk_t_billing_discounts_lmb` (`_lmb`),\\n CONSTRAINT `fk_discounts_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_discounts_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_discounts_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=28284 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"discounts\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"item\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `inclusion_id` int unsigned DEFAULT NULL,\\n `amount` decimal(10,2) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `date` int DEFAULT '0',\\n `invoice_number` int unsigned DEFAULT NULL,\\n `description` text CHARACTER SET utf8 COLLATE utf8_bin,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `id_idx` (`id`),\\n KEY `fk_expenses_billings_inclusions_idx` (`inclusion_id`),\\n KEY `fk_t_billing_expenses_cb` (`_cb`),\\n KEY `fk_t_billing_expenses_lmb` (`_lmb`),\\n CONSTRAINT `fk_expenses_billings_inclusions` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_expenses_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_expenses_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=5259 DEFAULT CHARSET=latin1 COMMENT='Expense table with relation to inclusions'\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"invoice_number\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"utf8\",\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_partners` (\\n `expense_id` int unsigned NOT NULL,\\n `partner_id` int unsigned NOT NULL,\\n PRIMARY KEY (`expense_id`,`partner_id`),\\n KEY `fk_expenses_partners_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_partners_partner_id_idx` (`partner_id`),\\n CONSTRAINT `fk_expenses_partners_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_partners_partners` FOREIGN KEY (`partner_id`) REFERENCES `p_partners`.`partners` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_partners\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"partner_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"partner_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_suppliers` (\\n `expense_id` int unsigned NOT NULL,\\n `supplier_id` int NOT NULL,\\n PRIMARY KEY (`expense_id`,`supplier_id`),\\n KEY `fk_expenses_suppliers_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_suppliers_supplier_id_idx` (`supplier_id`),\\n CONSTRAINT `fk_expenses_suppliers_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_suppliers_suppliers` FOREIGN KEY (`supplier_id`) REFERENCES `s_suppliers`.`suppliers` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_suppliers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"supplier_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"supplier_id\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusion_rooms` (\\n `inclusion_id` int unsigned NOT NULL,\\n `room_id` int unsigned NOT NULL,\\n KEY `fk_inclusions_rooms_roomId` (`room_id`),\\n KEY `fk_inclusions_rooms_incId` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_rooms_incId` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_rooms_roomId` FOREIGN KEY (`room_id`) REFERENCES `t_trips`.`rooms` (`id`)\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `net` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `markup` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `tax` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_inclusions_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_inclusions_cb` (`_cb`),\\n KEY `fk_t_billing_inclusions_lmb` (`_lmb`),\\n CONSTRAINT `fk_inclusions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_inclusions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_inclusions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=134381 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"net\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"markup\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"tax\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_accommodations` (\\n `inclusion_id` int unsigned NOT NULL,\\n `accommodation_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`accommodation_id`),\\n KEY `fk_accommodations_inclusion_accommodations_idx` (`accommodation_id`),\\n CONSTRAINT `fk_inclusions_accommodations_1` FOREIGN KEY (`accommodation_id`) REFERENCES `t_trips`.`accommodations` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_accommodations_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_accommodations\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"accommodation_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"accommodation_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_charities` (\\n `inclusion_id` int unsigned NOT NULL,\\n `charity_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`charity_id`),\\n KEY `fk_charities_inclusions_charities_idx` (`charity_id`),\\n CONSTRAINT `fk_inclusions_charities_1` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_charities_2` FOREIGN KEY (`charity_id`) REFERENCES `t_trips`.`charities` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_charities\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"charity_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"charity_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_experiences` (\\n `inclusion_id` int unsigned NOT NULL,\\n `experience_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`experience_id`),\\n KEY `fk_inclusions_experiences_1_idx` (`experience_id`),\\n KEY `fk_inclusions_experiences_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_experiences_1` FOREIGN KEY (`experience_id`) REFERENCES `t_trips`.`experiences` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_experiences_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_experiences\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"experience_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"experience_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_flights` (\\n `inclusion_id` int unsigned NOT NULL,\\n `flight_id` int unsigned NOT NULL,\\n PRIMARY KEY (`flight_id`,`inclusion_id`),\\n KEY `fk_inclusions_flights_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_flights_1` FOREIGN KEY (`flight_id`) REFERENCES `t_trips`.`flights` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_flights_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_flights\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"flight_id\",\"inclusion_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"flight_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_insurances` (\\n `inclusion_id` int unsigned NOT NULL,\\n `insurance_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`insurance_id`),\\n KEY `fk_insurances_inclusion_insurances_idx` (`insurance_id`),\\n CONSTRAINT `fk_inclusions_insurances_1` FOREIGN KEY (`insurance_id`) REFERENCES `t_trips`.`insurances` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_insurances_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_insurances\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"insurance_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_other_charges` (\\n `inclusion_id` int unsigned NOT NULL,\\n `other_charge_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`other_charge_id`),\\n KEY `fk_other_charges_inclusions_other_charges_idx` (`other_charge_id`),\\n CONSTRAINT `fk_inclusions_inclusions_other_charges` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_other_charges_inclusions_other_charges` FOREIGN KEY (`other_charge_id`) REFERENCES `other_charges` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"other_charge_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"other_charge_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_tours` (\\n `inclusion_id` int unsigned NOT NULL,\\n `tour_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`tour_id`),\\n KEY `fk_tours_inclusions_tours_idx` (`tour_id`),\\n CONSTRAINT `fk_inclusions_tours_1` FOREIGN KEY (`tour_id`) REFERENCES `t_trips`.`tours` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_tours_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_tours\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"tour_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tour_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_transfers` (\\n `inclusion_id` int unsigned NOT NULL,\\n `transfer_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`transfer_id`),\\n KEY `fk_transfers_inclusions_transfers_idx` (`transfer_id`),\\n CONSTRAINT `fk_inclusions_transfers_1` FOREIGN KEY (`transfer_id`) REFERENCES `t_trips`.`transfers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_transfers_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_transfers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"transfer_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transfer_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `invoices` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `tid` int unsigned NOT NULL,\\n `expires_at` int DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` char(16) NOT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` decimal(11,2) DEFAULT NULL,\\n `use_excess` tinyint(1) NOT NULL DEFAULT '0',\\n `type` char(32) DEFAULT NULL,\\n `is_public` tinyint(1) NOT NULL DEFAULT '1',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `deposit_paid_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_invoices_trips_idx` (`tid`),\\n KEY `fk_invoices_departments_idx` (`department_id`),\\n KEY `fk_t_billing_invoices_cb` (`_cb`),\\n KEY `fk_t_billing_invoices_lmb` (`_lmb`),\\n CONSTRAINT `fk_invoices_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`) ON DELETE RESTRICT,\\n CONSTRAINT `fk_invoices_trips` FOREIGN KEY (`tid`) REFERENCES `t_trips`.`trips` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_invoices_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_invoices_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=113256 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"invoices\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tid\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expires_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"use_excess\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_public\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"deposit_paid_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `other_charges` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `type` char(32) DEFAULT NULL,\\n `name` char(128) DEFAULT NULL,\\n `description` char(255) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_other_charges_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_other_charges_cb` (`_cb`),\\n KEY `fk_t_billing_other_charges_lmb` (`_lmb`),\\n CONSTRAINT `fk_other_charges_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_other_charges_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_other_charges_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2938 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `payment_plans` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `status` char(16) NOT NULL,\\n `date` int NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_payment_plans_invoices_idx` (`invoice_id`),\\n KEY `fk_payment_plans_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_payment_plans_cb` (`_cb`),\\n KEY `fk_t_billing_payment_plans_lmb` (`_lmb`),\\n CONSTRAINT `fk_payment_plans_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_payment_plans_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_payment_plans_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_payment_plans_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=167130 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"payment_plans\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refund_protects` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` varchar(100) NOT NULL,\\n `reference` varchar(100) NOT NULL,\\n `status` int NOT NULL,\\n `insurance_end_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_refund_protects_cb` (`_cb`),\\n KEY `fk_t_billing_refund_protects_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_refund_protects_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refund_protects_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refund_protects\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reference\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_end_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `reason` char(255) NOT NULL,\\n `status` varchar(64) DEFAULT NULL,\\n `method` varchar(64) DEFAULT NULL,\\n `amount` decimal(10,2) NOT NULL,\\n `comment` text,\\n `priority` varchar(32) DEFAULT 'Normal',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_refunds_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_refunds_cb` (`_cb`),\\n KEY `fk_t_billing_refunds_lmb` (`_lmb`),\\n KEY `fk_t_billing_refunds_invoices_id_idx` (`invoice_id`),\\n CONSTRAINT `fk_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_refunds_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_invoices_id` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=6631 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reason\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"priority\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"Normal\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds_transactions` (\\n `refund_id` int unsigned NOT NULL,\\n `transaction_id` int unsigned NOT NULL,\\n PRIMARY KEY (`refund_id`,`transaction_id`),\\n KEY `fk_transactions_refunds_transactions_idx` (`transaction_id`),\\n CONSTRAINT `fk_refunds_refunds_transactions` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"refund_id\",\"transaction_id\"],\"columns\":[{\"name\":\"refund_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_audits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `checked_at` int NOT NULL,\\n `status` tinyint unsigned NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `internal_comments` char(255) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transaction_audits_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_transaction_audits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_audits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_audits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_audits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transaction_audits_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=125057 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_audits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"internal_comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_claims` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `amount` decimal(11,2) unsigned NOT NULL,\\n `platform` char(32) NOT NULL,\\n `claimed_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_transaction_claims_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_claims_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_claims_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_claims_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=3944 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_claims\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"platform\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"claimed_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `credit_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `transaction_credit_FK` (`credit_id`),\\n KEY `transaction_credit_FK_1` (`transaction_id`),\\n KEY `fk_t_billing_transaction_credits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_credits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK_1` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) NOT NULL,\\n `currency` char(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` tinyint(1) NOT NULL,\\n `final` tinyint(1) NOT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transactions_invoices_idx` (`invoice_id`),\\n KEY `fk_transactions_departments_idx` (`department_id`),\\n KEY `fk_transactions_transaction_claims_idx` (`transaction_claim_id`),\\n KEY `fk_transactions_cards_idx` (`card_id`),\\n KEY `fk_t_billing_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_transactions_lmb` (`_lmb`),\\n KEY `fk_transactions_legacy_users_collector` (`collector_staff_id`),\\n CONSTRAINT `fk_t_billing_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`),\\n CONSTRAINT `fk_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE SET NULL\\n) ENGINE=InnoDB AUTO_INCREMENT=154565 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":13,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"final\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":14,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions_1628688127` (\\n `id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n `currency` char(3) DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `excess_amount` decimal(11,2) DEFAULT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned DEFAULT NULL,\\n `deposit` tinyint DEFAULT NULL,\\n `final` tinyint DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663663720,\"file\":\"mysql-bin-changelog.000033\",\"pos\":10282100,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_bad_chargebacks` AS select `t_billing`.`chargebacks`.`id` AS `id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS `transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS `status`\\nfrom `t_billing`.`chargebacks`\\nwhere `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668113,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11292584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11297590,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11323917,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675314,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11885145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `t_billing`.`v_bad_chargebacks` AS SELECT `t_billing`.`chargebacks`.`id` AS`id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS`transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS`status`\\nFROM `t_billing`.`chargebacks`\\nWHERE `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162054,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162283,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162512,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162970,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13163348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169044,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13170016,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13174018,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13180758,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182979,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183197,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189040,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13193750,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194060,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194960,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13195330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13196594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197047,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198833,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199057,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199281,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199729,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13200097,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13201635,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202582,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13203749,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13206813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207709,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13208077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13209966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210913,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212310,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212821,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213034,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213247,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213806,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13216706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217135,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217598,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219658,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220627,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220848,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13221210,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223523,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13224010,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225386,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225690,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225909,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226128,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226347,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226566,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226924,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229298,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229739,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13230220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13231946,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232907,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233126,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13235560,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236001,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238007,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238308,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238956,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241257,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13242164,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13243455,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13394941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395155,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395369,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395583,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395797,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13396145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13399407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401106,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401621,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401836,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402051,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402616,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13404640,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405073,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405542,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407025,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407328,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13409745,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410662,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411585,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411896,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412122,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412574,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13413172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13418550,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419507,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423568,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424219,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424790,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13426618,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427055,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13428872,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429385,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430027,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13433888,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434319,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437763,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437974,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438738,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444564,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444989,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13445446,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450162,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450588,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454134,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454563,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13455026,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13457285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782726,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782955,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783791,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789487,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789948,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15790459,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795636,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801918,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15802396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806724,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807174,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807399,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809985,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15810963,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811496,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811944,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812536,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814074,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15815021,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816721,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817169,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817393,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15819650,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820101,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15821994,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822292,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822718,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822931,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823490,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826390,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15827282,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829342,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829648,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829869,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830532,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15832762,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833207,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835070,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835593,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836031,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15838982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839423,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842153,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842372,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842591,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842810,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15843168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845685,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15846166,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15847691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849677,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15850245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15851978,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852885,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15854176,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856927,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857141,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857355,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857703,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860068,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862664,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864075,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864290,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15866435,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15867260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15869284,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872175,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872696,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873132,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15874895,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875334,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15876735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877493,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877719,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878397,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884147,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884602,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15885104,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15888863,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892652,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15893127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894768,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895196,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895410,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895624,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899916,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15900382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15902853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903149,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903360,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903571,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903782,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903993,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15904335,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910161,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910586,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15911043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915759,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916531,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15919731,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920160,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920623,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15922882,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28884341,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28885832,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28904694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31670327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676023,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676995,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31680997,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683030,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689091,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31690008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31693801,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694111,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694336,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694786,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695381,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31696645,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697098,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698575,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698884,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699332,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31700148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31701686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702137,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31703800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704109,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704557,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704781,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705373,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31708209,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709606,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710756,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31711102,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714431,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31716954,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717702,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717923,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31721306,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722682,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722986,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723424,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723643,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723862,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31724220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31726594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729242,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729765,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729984,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730203,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730422,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31732856,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735303,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736036,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736252,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736468,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738988,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31739460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31740751,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741906,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31742254,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31744619,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31747215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748087,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748732,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31749297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751321,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751754,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31752223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31753706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754009,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754445,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754663,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754881,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31755237,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756426,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756865,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31757343,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758577,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759255,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765231,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31766188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31769947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770249,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770683,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770900,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771471,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31774211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775852,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776066,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776494,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31777056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31780569,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781000,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31783937,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784233,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784444,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784655,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784866,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791670,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31792127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796119,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796843,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797269,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797615,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31800815,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31803966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3056814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057501,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057730,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3058108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3063804,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064265,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064776,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3068778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069081,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069953,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3070309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3075796,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076235,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081041,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3082086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3084302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085589,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088391,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088842,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3089338,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091038,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091710,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3092078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3093967,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096609,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097807,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3100707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101136,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103659,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104186,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104628,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104849,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3105211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107079,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3108011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109910,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110129,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110567,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110925,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3114221,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3115947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116251,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116470,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116689,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116908,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3119561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120483,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123173,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125258,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125693,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3126165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3127456,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138975,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139403,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139617,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3143227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3144926,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145226,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145441,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145656,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145871,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3149362,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3150845,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151366,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151802,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152020,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3153565,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154004,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155405,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155942,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156394,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156620,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162370,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162825,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3163327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167388,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168039,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168610,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170875,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3171350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172991,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173847,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3174195,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3177708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178139,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3181076,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184289,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184500,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184711,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184922,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3185264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191515,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3195964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196475,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196901,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197114,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3200660,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201089,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3203811,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n","mysql_cdc_offset":{"{\"schema\":null,\"payload\":[\"t_billing\",{\"server\":\"t_billing\"}]}":"{\"transaction_id\":null,\"ts_sec\":1664306516,\"file\":\"mysql-bin-changelog.000036\",\"pos\":21459616,\"row\":1,\"server_id\":239712215,\"event\":2}"}}},"stream_states":[{"stream_descriptor":{"name":"activity_log","namespace":"t_billing"},"stream_state":{"stream_name":"activity_log","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"cards","namespace":"t_billing"},"stream_state":{"stream_name":"cards","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"chargebacks","namespace":"t_billing"},"stream_state":{"stream_name":"chargebacks","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"charity_transactions","namespace":"t_billing"},"stream_state":{"stream_name":"charity_transactions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"credit_types","namespace":"t_billing"},"stream_state":{"stream_name":"credit_types","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"credits","namespace":"t_billing"},"stream_state":{"stream_name":"credits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"discounts","namespace":"t_billing"},"stream_state":{"stream_name":"discounts","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"expenses","namespace":"t_billing"},"stream_state":{"stream_name":"expenses","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"expenses_partners","namespace":"t_billing"},"stream_state":{"stream_name":"expenses_partners","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"expenses_suppliers","namespace":"t_billing"},"stream_state":{"stream_name":"expenses_suppliers","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusion_rooms","namespace":"t_billing"},"stream_state":{"stream_name":"inclusion_rooms","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_accommodations","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_accommodations","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_charities","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_charities","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_experiences","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_experiences","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_flights","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_flights","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_insurances","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_insurances","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_other_charges","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_other_charges","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_tours","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_tours","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_transfers","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_transfers","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"invoices","namespace":"t_billing"},"stream_state":{"stream_name":"invoices","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"other_charges","namespace":"t_billing"},"stream_state":{"stream_name":"other_charges","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"payment_plans","namespace":"t_billing"},"stream_state":{"stream_name":"payment_plans","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"payment_plans_analysis","namespace":"t_billing"},"stream_state":{"stream_name":"payment_plans_analysis","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"refund_protects","namespace":"t_billing"},"stream_state":{"stream_name":"refund_protects","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"refunds","namespace":"t_billing"},"stream_state":{"stream_name":"refunds","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"refunds_transactions","namespace":"t_billing"},"stream_state":{"stream_name":"refunds_transactions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transaction_audits","namespace":"t_billing"},"stream_state":{"stream_name":"transaction_audits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transaction_claims","namespace":"t_billing"},"stream_state":{"stream_name":"transaction_claims","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transaction_credits","namespace":"t_billing"},"stream_state":{"stream_name":"transaction_credits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transactions","namespace":"t_billing"},"stream_state":{"stream_name":"transactions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transactions_1628688127","namespace":"t_billing"},"stream_state":{"stream_name":"transactions_1628688127","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_bad_chargebacks","namespace":"t_billing"},"stream_state":{"stream_name":"v_bad_chargebacks","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_bad_transaction_audits","namespace":"t_billing"},"stream_state":{"stream_name":"v_bad_transaction_audits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_charity_transaction_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_charity_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_discount_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_discount_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_inclusion_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_inclusion_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_invoice_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_invoice_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_payment_plan_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_payment_plan_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_total_flight_paid","namespace":"t_billing"},"stream_state":{"stream_name":"v_total_flight_paid","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_audit_summary","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_audit_summary","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_currencies_used","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_currencies_used","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_invoice_joined","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_invoice_joined","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_methods_used","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_methods_used","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transactions_invalid_currencies","namespace":"t_billing"},"stream_state":{"stream_name":"v_transactions_invalid_currencies","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_trip_sales_summary","namespace":"t_billing"},"stream_state":{"stream_name":"v_trip_sales_summary","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_trip_transactions_detail","namespace":"t_billing"},"stream_state":{"stream_name":"v_trip_transactions_detail","stream_namespace":"t_billing","cursor_field":[]}}]},"data":{"cdc":true,"cdc_state":{"state":{"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"token\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"customerId\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"holder_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_month\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_year\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"pan_suffix\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":4,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"legal_declaration_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"visible\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"archived\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"payment_plan_nominated\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"pan\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"iv\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":22,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":23,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `chargebacks` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `date_occurred` int NOT NULL,\\n `status` varchar(32) NOT NULL,\\n `file_number` char(128) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_chargebacks_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_chargebacks_cb` (`_cb`),\\n KEY `fk_t_billing_chargebacks_lmb` (`_lmb`),\\n CONSTRAINT `fk_chargebacks_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_chargebacks_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_chargebacks_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=589 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"chargebacks\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date_occurred\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"file_number\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `charity_transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_token` varchar(64) DEFAULT NULL,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `method` varchar(32) NOT NULL,\\n `currency` varchar(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` varchar(64) DEFAULT NULL,\\n `comment` varchar(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n `checked_at` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_charity_transactions_cards` (`card_id`),\\n KEY `fk_charity_transactions_legacy_users_collector` (`collector_staff_id`),\\n KEY `fk_charity_transactions_transaction_claims` (`transaction_claim_id`),\\n KEY `fk_t_billing_charity_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_charity_transactions_lmb` (`_lmb`),\\n KEY `fk_charity_transactions_invoices` (`invoice_id`),\\n KEY `fk_t_billing_charity_transactions_transaction_id` (`transaction_id`),\\n CONSTRAINT `fk_charity_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_charity_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_transaction_id` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"charity_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_token\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credit_types` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `credit_id` int unsigned DEFAULT NULL,\\n `type` varchar(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n UNIQUE KEY `credit_types_UN` (`credit_id`,`type`),\\n KEY `fk_t_billing_credit_types_cb` (`_cb`),\\n KEY `fk_t_billing_credit_types_lmb` (`_lmb`),\\n CONSTRAINT `fk_credit_types_credits_id` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=1156 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credit_types\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `cid` bigint unsigned DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `currency` varchar(100) DEFAULT NULL,\\n `description` varchar(100) DEFAULT NULL,\\n `credit_date` int unsigned DEFAULT NULL,\\n `expiry_date` int unsigned DEFAULT NULL,\\n `type` varchar(100) DEFAULT NULL,\\n `is_claimed` tinyint(1) NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `customer_FK` (`cid`),\\n KEY `fk_t_billing_credits_cb` (`_cb`),\\n KEY `fk_t_billing_credits_lmb` (`_lmb`),\\n KEY `invoice_FK` (`invoice_id`),\\n CONSTRAINT `customer_FK` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `invoice_FK` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=769 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"expiry_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_claimed\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `discounts` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `amount` decimal(11,2) unsigned NOT NULL DEFAULT '0.00',\\n `type` char(32) DEFAULT NULL,\\n `item` char(64) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_discounts_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_discounts_cb` (`_cb`),\\n KEY `fk_t_billing_discounts_lmb` (`_lmb`),\\n CONSTRAINT `fk_discounts_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_discounts_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_discounts_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=28284 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"discounts\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"item\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `inclusion_id` int unsigned DEFAULT NULL,\\n `amount` decimal(10,2) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `date` int DEFAULT '0',\\n `invoice_number` int unsigned DEFAULT NULL,\\n `description` text CHARACTER SET utf8 COLLATE utf8_bin,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `id_idx` (`id`),\\n KEY `fk_expenses_billings_inclusions_idx` (`inclusion_id`),\\n KEY `fk_t_billing_expenses_cb` (`_cb`),\\n KEY `fk_t_billing_expenses_lmb` (`_lmb`),\\n CONSTRAINT `fk_expenses_billings_inclusions` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_expenses_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_expenses_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=5259 DEFAULT CHARSET=latin1 COMMENT='Expense table with relation to inclusions'\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"invoice_number\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"utf8\",\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_partners` (\\n `expense_id` int unsigned NOT NULL,\\n `partner_id` int unsigned NOT NULL,\\n PRIMARY KEY (`expense_id`,`partner_id`),\\n KEY `fk_expenses_partners_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_partners_partner_id_idx` (`partner_id`),\\n CONSTRAINT `fk_expenses_partners_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_partners_partners` FOREIGN KEY (`partner_id`) REFERENCES `p_partners`.`partners` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_partners\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"partner_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"partner_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_suppliers` (\\n `expense_id` int unsigned NOT NULL,\\n `supplier_id` int NOT NULL,\\n PRIMARY KEY (`expense_id`,`supplier_id`),\\n KEY `fk_expenses_suppliers_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_suppliers_supplier_id_idx` (`supplier_id`),\\n CONSTRAINT `fk_expenses_suppliers_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_suppliers_suppliers` FOREIGN KEY (`supplier_id`) REFERENCES `s_suppliers`.`suppliers` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_suppliers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"supplier_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"supplier_id\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusion_rooms` (\\n `inclusion_id` int unsigned NOT NULL,\\n `room_id` int unsigned NOT NULL,\\n KEY `fk_inclusions_rooms_roomId` (`room_id`),\\n KEY `fk_inclusions_rooms_incId` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_rooms_incId` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_rooms_roomId` FOREIGN KEY (`room_id`) REFERENCES `t_trips`.`rooms` (`id`)\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `net` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `markup` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `tax` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_inclusions_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_inclusions_cb` (`_cb`),\\n KEY `fk_t_billing_inclusions_lmb` (`_lmb`),\\n CONSTRAINT `fk_inclusions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_inclusions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_inclusions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=134381 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"net\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"markup\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"tax\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_accommodations` (\\n `inclusion_id` int unsigned NOT NULL,\\n `accommodation_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`accommodation_id`),\\n KEY `fk_accommodations_inclusion_accommodations_idx` (`accommodation_id`),\\n CONSTRAINT `fk_inclusions_accommodations_1` FOREIGN KEY (`accommodation_id`) REFERENCES `t_trips`.`accommodations` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_accommodations_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_accommodations\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"accommodation_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"accommodation_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_charities` (\\n `inclusion_id` int unsigned NOT NULL,\\n `charity_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`charity_id`),\\n KEY `fk_charities_inclusions_charities_idx` (`charity_id`),\\n CONSTRAINT `fk_inclusions_charities_1` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_charities_2` FOREIGN KEY (`charity_id`) REFERENCES `t_trips`.`charities` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_charities\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"charity_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"charity_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_experiences` (\\n `inclusion_id` int unsigned NOT NULL,\\n `experience_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`experience_id`),\\n KEY `fk_inclusions_experiences_1_idx` (`experience_id`),\\n KEY `fk_inclusions_experiences_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_experiences_1` FOREIGN KEY (`experience_id`) REFERENCES `t_trips`.`experiences` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_experiences_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_experiences\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"experience_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"experience_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_flights` (\\n `inclusion_id` int unsigned NOT NULL,\\n `flight_id` int unsigned NOT NULL,\\n PRIMARY KEY (`flight_id`,`inclusion_id`),\\n KEY `fk_inclusions_flights_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_flights_1` FOREIGN KEY (`flight_id`) REFERENCES `t_trips`.`flights` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_flights_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_flights\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"flight_id\",\"inclusion_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"flight_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_insurances` (\\n `inclusion_id` int unsigned NOT NULL,\\n `insurance_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`insurance_id`),\\n KEY `fk_insurances_inclusion_insurances_idx` (`insurance_id`),\\n CONSTRAINT `fk_inclusions_insurances_1` FOREIGN KEY (`insurance_id`) REFERENCES `t_trips`.`insurances` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_insurances_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_insurances\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"insurance_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_other_charges` (\\n `inclusion_id` int unsigned NOT NULL,\\n `other_charge_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`other_charge_id`),\\n KEY `fk_other_charges_inclusions_other_charges_idx` (`other_charge_id`),\\n CONSTRAINT `fk_inclusions_inclusions_other_charges` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_other_charges_inclusions_other_charges` FOREIGN KEY (`other_charge_id`) REFERENCES `other_charges` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"other_charge_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"other_charge_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_tours` (\\n `inclusion_id` int unsigned NOT NULL,\\n `tour_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`tour_id`),\\n KEY `fk_tours_inclusions_tours_idx` (`tour_id`),\\n CONSTRAINT `fk_inclusions_tours_1` FOREIGN KEY (`tour_id`) REFERENCES `t_trips`.`tours` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_tours_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_tours\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"tour_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tour_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_transfers` (\\n `inclusion_id` int unsigned NOT NULL,\\n `transfer_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`transfer_id`),\\n KEY `fk_transfers_inclusions_transfers_idx` (`transfer_id`),\\n CONSTRAINT `fk_inclusions_transfers_1` FOREIGN KEY (`transfer_id`) REFERENCES `t_trips`.`transfers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_transfers_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_transfers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"transfer_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transfer_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `invoices` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `tid` int unsigned NOT NULL,\\n `expires_at` int DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` char(16) NOT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` decimal(11,2) DEFAULT NULL,\\n `use_excess` tinyint(1) NOT NULL DEFAULT '0',\\n `type` char(32) DEFAULT NULL,\\n `is_public` tinyint(1) NOT NULL DEFAULT '1',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `deposit_paid_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_invoices_trips_idx` (`tid`),\\n KEY `fk_invoices_departments_idx` (`department_id`),\\n KEY `fk_t_billing_invoices_cb` (`_cb`),\\n KEY `fk_t_billing_invoices_lmb` (`_lmb`),\\n CONSTRAINT `fk_invoices_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`) ON DELETE RESTRICT,\\n CONSTRAINT `fk_invoices_trips` FOREIGN KEY (`tid`) REFERENCES `t_trips`.`trips` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_invoices_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_invoices_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=113256 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"invoices\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tid\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expires_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"use_excess\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_public\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"deposit_paid_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `other_charges` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `type` char(32) DEFAULT NULL,\\n `name` char(128) DEFAULT NULL,\\n `description` char(255) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_other_charges_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_other_charges_cb` (`_cb`),\\n KEY `fk_t_billing_other_charges_lmb` (`_lmb`),\\n CONSTRAINT `fk_other_charges_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_other_charges_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_other_charges_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2938 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `payment_plans` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `status` char(16) NOT NULL,\\n `date` int NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_payment_plans_invoices_idx` (`invoice_id`),\\n KEY `fk_payment_plans_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_payment_plans_cb` (`_cb`),\\n KEY `fk_t_billing_payment_plans_lmb` (`_lmb`),\\n CONSTRAINT `fk_payment_plans_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_payment_plans_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_payment_plans_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_payment_plans_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=167130 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"payment_plans\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refund_protects` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` varchar(100) NOT NULL,\\n `reference` varchar(100) NOT NULL,\\n `status` int NOT NULL,\\n `insurance_end_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_refund_protects_cb` (`_cb`),\\n KEY `fk_t_billing_refund_protects_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_refund_protects_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refund_protects_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refund_protects\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reference\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_end_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `reason` char(255) NOT NULL,\\n `status` varchar(64) DEFAULT NULL,\\n `method` varchar(64) DEFAULT NULL,\\n `amount` decimal(10,2) NOT NULL,\\n `comment` text,\\n `priority` varchar(32) DEFAULT 'Normal',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_refunds_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_refunds_cb` (`_cb`),\\n KEY `fk_t_billing_refunds_lmb` (`_lmb`),\\n KEY `fk_t_billing_refunds_invoices_id_idx` (`invoice_id`),\\n CONSTRAINT `fk_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_refunds_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_invoices_id` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=6631 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reason\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"priority\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"Normal\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds_transactions` (\\n `refund_id` int unsigned NOT NULL,\\n `transaction_id` int unsigned NOT NULL,\\n PRIMARY KEY (`refund_id`,`transaction_id`),\\n KEY `fk_transactions_refunds_transactions_idx` (`transaction_id`),\\n CONSTRAINT `fk_refunds_refunds_transactions` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"refund_id\",\"transaction_id\"],\"columns\":[{\"name\":\"refund_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_audits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `checked_at` int NOT NULL,\\n `status` tinyint unsigned NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `internal_comments` char(255) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transaction_audits_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_transaction_audits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_audits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_audits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_audits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transaction_audits_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=125057 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_audits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"internal_comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_claims` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `amount` decimal(11,2) unsigned NOT NULL,\\n `platform` char(32) NOT NULL,\\n `claimed_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_transaction_claims_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_claims_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_claims_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_claims_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=3944 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_claims\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"platform\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"claimed_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `credit_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `transaction_credit_FK` (`credit_id`),\\n KEY `transaction_credit_FK_1` (`transaction_id`),\\n KEY `fk_t_billing_transaction_credits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_credits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK_1` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) NOT NULL,\\n `currency` char(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` tinyint(1) NOT NULL,\\n `final` tinyint(1) NOT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transactions_invoices_idx` (`invoice_id`),\\n KEY `fk_transactions_departments_idx` (`department_id`),\\n KEY `fk_transactions_transaction_claims_idx` (`transaction_claim_id`),\\n KEY `fk_transactions_cards_idx` (`card_id`),\\n KEY `fk_t_billing_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_transactions_lmb` (`_lmb`),\\n KEY `fk_transactions_legacy_users_collector` (`collector_staff_id`),\\n CONSTRAINT `fk_t_billing_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`),\\n CONSTRAINT `fk_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE SET NULL\\n) ENGINE=InnoDB AUTO_INCREMENT=154565 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":13,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"final\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":14,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions_1628688127` (\\n `id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n `currency` char(3) DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `excess_amount` decimal(11,2) DEFAULT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned DEFAULT NULL,\\n `deposit` tinyint DEFAULT NULL,\\n `final` tinyint DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663663720,\"file\":\"mysql-bin-changelog.000033\",\"pos\":10282100,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_bad_chargebacks` AS select `t_billing`.`chargebacks`.`id` AS `id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS `transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS `status`\\nfrom `t_billing`.`chargebacks`\\nwhere `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668113,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11292584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11297590,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11323917,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675314,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11885145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `t_billing`.`v_bad_chargebacks` AS SELECT `t_billing`.`chargebacks`.`id` AS`id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS`transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS`status`\\nFROM `t_billing`.`chargebacks`\\nWHERE `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162054,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162283,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162512,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162970,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13163348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169044,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13170016,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13174018,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13180758,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182979,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183197,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189040,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13193750,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194060,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194960,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13195330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13196594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197047,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198833,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199057,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199281,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199729,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13200097,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13201635,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202582,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13203749,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13206813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207709,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13208077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13209966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210913,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212310,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212821,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213034,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213247,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213806,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13216706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217135,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217598,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219658,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220627,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220848,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13221210,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223523,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13224010,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225386,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225690,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225909,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226128,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226347,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226566,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226924,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229298,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229739,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13230220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13231946,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232907,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233126,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13235560,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236001,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238007,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238308,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238956,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241257,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13242164,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13243455,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13394941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395155,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395369,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395583,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395797,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13396145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13399407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401106,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401621,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401836,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402051,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402616,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13404640,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405073,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405542,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407025,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407328,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13409745,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410662,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411585,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411896,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412122,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412574,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13413172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13418550,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419507,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423568,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424219,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424790,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13426618,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427055,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13428872,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429385,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430027,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13433888,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434319,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437763,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437974,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438738,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444564,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444989,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13445446,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450162,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450588,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454134,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454563,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13455026,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13457285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782726,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782955,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783791,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789487,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789948,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15790459,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795636,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801918,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15802396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806724,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807174,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807399,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809985,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15810963,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811496,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811944,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812536,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814074,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15815021,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816721,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817169,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817393,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15819650,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820101,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15821994,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822292,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822718,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822931,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823490,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826390,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15827282,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829342,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829648,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829869,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830532,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15832762,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833207,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835070,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835593,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836031,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15838982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839423,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842153,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842372,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842591,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842810,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15843168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845685,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15846166,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15847691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849677,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15850245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15851978,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852885,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15854176,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856927,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857141,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857355,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857703,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860068,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862664,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864075,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864290,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15866435,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15867260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15869284,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872175,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872696,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873132,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15874895,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875334,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15876735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877493,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877719,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878397,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884147,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884602,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15885104,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15888863,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892652,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15893127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894768,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895196,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895410,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895624,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899916,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15900382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15902853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903149,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903360,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903571,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903782,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903993,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15904335,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910161,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910586,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15911043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915759,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916531,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15919731,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920160,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920623,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15922882,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28884341,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28885832,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28904694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31670327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676023,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676995,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31680997,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683030,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689091,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31690008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31693801,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694111,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694336,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694786,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695381,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31696645,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697098,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698575,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698884,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699332,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31700148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31701686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702137,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31703800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704109,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704557,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704781,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705373,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31708209,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709606,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710756,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31711102,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714431,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31716954,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717702,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717923,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31721306,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722682,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722986,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723424,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723643,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723862,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31724220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31726594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729242,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729765,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729984,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730203,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730422,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31732856,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735303,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736036,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736252,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736468,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738988,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31739460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31740751,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741906,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31742254,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31744619,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31747215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748087,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748732,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31749297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751321,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751754,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31752223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31753706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754009,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754445,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754663,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754881,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31755237,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756426,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756865,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31757343,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758577,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759255,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765231,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31766188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31769947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770249,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770683,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770900,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771471,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31774211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775852,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776066,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776494,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31777056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31780569,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781000,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31783937,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784233,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784444,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784655,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784866,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791670,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31792127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796119,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796843,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797269,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797615,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31800815,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31803966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3056814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057501,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057730,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3058108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3063804,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064265,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064776,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3068778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069081,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069953,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3070309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3075796,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076235,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081041,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3082086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3084302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085589,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088391,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088842,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3089338,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091038,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091710,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3092078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3093967,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096609,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097807,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3100707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101136,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103659,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104186,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104628,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104849,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3105211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107079,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3108011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109910,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110129,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110567,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110925,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3114221,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3115947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116251,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116470,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116689,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116908,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3119561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120483,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123173,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125258,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125693,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3126165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3127456,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138975,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139403,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139617,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3143227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3144926,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145226,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145441,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145656,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145871,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3149362,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3150845,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151366,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151802,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152020,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3153565,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154004,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155405,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155942,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156394,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156620,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162370,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162825,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3163327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167388,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168039,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168610,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170875,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3171350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172991,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173847,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3174195,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3177708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178139,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3181076,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184289,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184500,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184711,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184922,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3185264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191515,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3195964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196475,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196901,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197114,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3200660,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201089,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3203811,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n","mysql_cdc_offset":{"{\"schema\":null,\"payload\":[\"t_billing\",{\"server\":\"t_billing\"}]}":"{\"transaction_id\":null,\"ts_sec\":1664306516,\"file\":\"mysql-bin-changelog.000036\",\"pos\":21459616,\"row\":1,\"server_id\":239712215,\"event\":2}"}}},"streams":[{"stream_name":"activity_log","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"cards","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"chargebacks","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"charity_transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"credit_types","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"credits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"discounts","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses_partners","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses_suppliers","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusion_rooms","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_accommodations","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_charities","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_experiences","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_flights","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_insurances","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_other_charges","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_tours","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_transfers","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"invoices","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"other_charges","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"payment_plans","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"payment_plans_analysis","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refund_protects","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refunds","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refunds_transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_audits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_claims","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_credits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transactions_1628688127","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_bad_chargebacks","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_bad_transaction_audits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_charity_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_discount_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_inclusion_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_invoice_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_payment_plan_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_total_flight_paid","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_audit_summary","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_currencies_used","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_invoice_joined","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_methods_used","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transactions_invalid_currencies","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_trip_sales_summary","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_trip_transactions_detail","stream_namespace":"t_billing","cursor_field":[]}]}}]]] 2022-09-27 19:30:06 INFO i.a.w.g.DefaultReplicationWorker(run):300 - sync summary: { "status" : "completed", "recordsSynced" : 999616, "bytesSynced" : 253791912, "startTime" : 1664306510707, "endTime" : 1664307006689, "totalStats" : { "recordsEmitted" : 999616, "bytesEmitted" : 253791912, "sourceStateMessagesEmitted" : 1, "destinationStateMessagesEmitted" : 1, "recordsCommitted" : 999616, "meanSecondsBeforeSourceStateMessageEmitted" : 0, "maxSecondsBeforeSourceStateMessageEmitted" : 0, "maxSecondsBetweenStateMessageEmittedandCommitted" : 485, "meanSecondsBetweenStateMessageEmittedandCommitted" : 485 }, "streamStats" : [ { "streamName" : "cards", "stats" : { "recordsEmitted" : 1, "bytesEmitted" : 582, "recordsCommitted" : 1 } }, { "streamName" : "v_total_flight_paid", "stats" : { "recordsEmitted" : 6502, "bytesEmitted" : 253971, "recordsCommitted" : 6502 } }, { "streamName" : "activity_log", "stats" : { "recordsEmitted" : 25, "bytesEmitted" : 7073, "recordsCommitted" : 25 } }, { "streamName" : "v_transaction_methods_used", "stats" : { "recordsEmitted" : 20, "bytesEmitted" : 858, "recordsCommitted" : 20 } }, { "streamName" : "v_inclusion_summaries", "stats" : { "recordsEmitted" : 108255, "bytesEmitted" : 6958838, "recordsCommitted" : 108255 } }, { "streamName" : "v_invoice_summaries", "stats" : { "recordsEmitted" : 108408, "bytesEmitted" : 33445674, "recordsCommitted" : 108408 } }, { "streamName" : "v_transaction_invoice_joined", "stats" : { "recordsEmitted" : 153703, "bytesEmitted" : 29653080, "recordsCommitted" : 153703 } }, { "streamName" : "invoices", "stats" : { "recordsEmitted" : 7, "bytesEmitted" : 2717, "recordsCommitted" : 7 } }, { "streamName" : "discounts", "stats" : { "recordsEmitted" : 1, "bytesEmitted" : 300, "recordsCommitted" : 1 } }, { "streamName" : "v_transaction_summaries", "stats" : { "recordsEmitted" : 60875, "bytesEmitted" : 2593716, "recordsCommitted" : 60875 } }, { "streamName" : "inclusions_experiences", "stats" : { "recordsEmitted" : 3, "bytesEmitted" : 570, "recordsCommitted" : 3 } }, { "streamName" : "v_transactions_invalid_currencies", "stats" : { "recordsEmitted" : 878, "bytesEmitted" : 153421, "recordsCommitted" : 878 } }, { "streamName" : "v_transaction_audit_summary", "stats" : { "recordsEmitted" : 153615, "bytesEmitted" : 56775812, "recordsCommitted" : 153615 } }, { "streamName" : "v_bad_transaction_audits", "stats" : { "recordsEmitted" : 790, "bytesEmitted" : 37042, "recordsCommitted" : 790 } }, { "streamName" : "v_payment_plan_summaries", "stats" : { "recordsEmitted" : 115151, "bytesEmitted" : 15320171, "recordsCommitted" : 115151 } }, { "streamName" : "inclusions_accommodations", "stats" : { "recordsEmitted" : 1, "bytesEmitted" : 192, "recordsCommitted" : 1 } }, { "streamName" : "v_charity_transaction_summaries", "stats" : { "recordsEmitted" : 3965, "bytesEmitted" : 136413, "recordsCommitted" : 3965 } }, { "streamName" : "v_trip_sales_summary", "stats" : { "recordsEmitted" : 33105, "bytesEmitted" : 4342405, "recordsCommitted" : 33105 } }, { "streamName" : "transactions", "stats" : { "recordsEmitted" : 21, "bytesEmitted" : 11812, "recordsCommitted" : 21 } }, { "streamName" : "v_bad_chargebacks", "stats" : { "recordsEmitted" : 371, "bytesEmitted" : 21988, "recordsCommitted" : 371 } }, { "streamName" : "payment_plans_analysis", "stats" : { "recordsEmitted" : 14600, "bytesEmitted" : 966869, "recordsCommitted" : 14600 } }, { "streamName" : "transaction_audits", "stats" : { "recordsEmitted" : 4, "bytesEmitted" : 1300, "recordsCommitted" : 4 } }, { "streamName" : "v_discount_summaries", "stats" : { "recordsEmitted" : 21623, "bytesEmitted" : 796551, "recordsCommitted" : 21623 } }, { "streamName" : "v_trip_transactions_detail", "stats" : { "recordsEmitted" : 97636, "bytesEmitted" : 65201206, "recordsCommitted" : 97636 } }, { "streamName" : "inclusions", "stats" : { "recordsEmitted" : 4, "bytesEmitted" : 1097, "recordsCommitted" : 4 } }, { "streamName" : "transactions_1628688127", "stats" : { "recordsEmitted" : 120046, "bytesEmitted" : 37108092, "recordsCommitted" : 120046 } }, { "streamName" : "v_transaction_currencies_used", "stats" : { "recordsEmitted" : 6, "bytesEmitted" : 162, "recordsCommitted" : 6 } } ] } 2022-09-27 19:30:06 INFO i.a.w.g.DefaultReplicationWorker(run):301 - failures: [ ] 2022-09-27 19:30:06 INFO i.a.w.t.TemporalAttemptExecution(get):132 - Stopping cancellation check scheduling... 2022-09-27 19:30:06 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:30:06 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- END REPLICATION ----- 2022-09-27 19:30:06 INFO i.a.c.i.LineGobbler(voidCall):114 - 2022-09-27 19:30:06 INFO i.a.w.t.s.ReplicationActivityImpl(lambda$replicate$3):149 - sync summary: io.airbyte.config.StandardSyncOutput@36cdab82[standardSyncSummary=io.airbyte.config.StandardSyncSummary@1595e7c5[status=completed,recordsSynced=999616,bytesSynced=253791912,startTime=1664306510707,endTime=1664307006689,totalStats=io.airbyte.config.SyncStats@7c8169e9[recordsEmitted=999616,bytesEmitted=253791912,sourceStateMessagesEmitted=1,destinationStateMessagesEmitted=1,recordsCommitted=999616,meanSecondsBeforeSourceStateMessageEmitted=0,maxSecondsBeforeSourceStateMessageEmitted=0,maxSecondsBetweenStateMessageEmittedandCommitted=485,meanSecondsBetweenStateMessageEmittedandCommitted=485,additionalProperties={}],streamStats=[io.airbyte.config.StreamSyncStats@5216cfd4[streamName=cards,stats=io.airbyte.config.SyncStats@9dcffaf[recordsEmitted=1,bytesEmitted=582,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=1,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@33cd8a9e[streamName=v_total_flight_paid,stats=io.airbyte.config.SyncStats@44f4632f[recordsEmitted=6502,bytesEmitted=253971,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=6502,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@20f87c0a[streamName=activity_log,stats=io.airbyte.config.SyncStats@4eb7ce3d[recordsEmitted=25,bytesEmitted=7073,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=25,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@1171340f[streamName=v_transaction_methods_used,stats=io.airbyte.config.SyncStats@76fbd015[recordsEmitted=20,bytesEmitted=858,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=20,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@1580faec[streamName=v_inclusion_summaries,stats=io.airbyte.config.SyncStats@65360847[recordsEmitted=108255,bytesEmitted=6958838,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=108255,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@7dff89a2[streamName=v_invoice_summaries,stats=io.airbyte.config.SyncStats@55ac9570[recordsEmitted=108408,bytesEmitted=33445674,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=108408,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@476942b3[streamName=v_transaction_invoice_joined,stats=io.airbyte.config.SyncStats@12480e29[recordsEmitted=153703,bytesEmitted=29653080,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=153703,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@13fb275b[streamName=invoices,stats=io.airbyte.config.SyncStats@224d3741[recordsEmitted=7,bytesEmitted=2717,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=7,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@2f3c8561[streamName=discounts,stats=io.airbyte.config.SyncStats@7d57efe9[recordsEmitted=1,bytesEmitted=300,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=1,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@375ccee7[streamName=v_transaction_summaries,stats=io.airbyte.config.SyncStats@7c600072[recordsEmitted=60875,bytesEmitted=2593716,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=60875,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@373c8512[streamName=inclusions_experiences,stats=io.airbyte.config.SyncStats@75561cbb[recordsEmitted=3,bytesEmitted=570,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=3,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@24acdf00[streamName=v_transactions_invalid_currencies,stats=io.airbyte.config.SyncStats@58332877[recordsEmitted=878,bytesEmitted=153421,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=878,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@b743276[streamName=v_transaction_audit_summary,stats=io.airbyte.config.SyncStats@4e825467[recordsEmitted=153615,bytesEmitted=56775812,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=153615,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@c94c668[streamName=v_bad_transaction_audits,stats=io.airbyte.config.SyncStats@4da5371d[recordsEmitted=790,bytesEmitted=37042,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=790,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@67684b5d[streamName=v_payment_plan_summaries,stats=io.airbyte.config.SyncStats@3b951abb[recordsEmitted=115151,bytesEmitted=15320171,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=115151,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@11183c27[streamName=inclusions_accommodations,stats=io.airbyte.config.SyncStats@75e1fcc6[recordsEmitted=1,bytesEmitted=192,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=1,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@50767384[streamName=v_charity_transaction_summaries,stats=io.airbyte.config.SyncStats@43a5fbf3[recordsEmitted=3965,bytesEmitted=136413,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=3965,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@138c1ea4[streamName=v_trip_sales_summary,stats=io.airbyte.config.SyncStats@6971d7df[recordsEmitted=33105,bytesEmitted=4342405,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=33105,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@a787326[streamName=transactions,stats=io.airbyte.config.SyncStats@66ee6bf9[recordsEmitted=21,bytesEmitted=11812,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=21,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@15e430be[streamName=v_bad_chargebacks,stats=io.airbyte.config.SyncStats@724cc2f2[recordsEmitted=371,bytesEmitted=21988,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=371,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@3b647ede[streamName=payment_plans_analysis,stats=io.airbyte.config.SyncStats@2e406be8[recordsEmitted=14600,bytesEmitted=966869,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=14600,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@1a95df5e[streamName=transaction_audits,stats=io.airbyte.config.SyncStats@e5ad5ac[recordsEmitted=4,bytesEmitted=1300,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=4,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@16d0d837[streamName=v_discount_summaries,stats=io.airbyte.config.SyncStats@3b62fe2e[recordsEmitted=21623,bytesEmitted=796551,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=21623,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@fb9b933[streamName=v_trip_transactions_detail,stats=io.airbyte.config.SyncStats@5716eadd[recordsEmitted=97636,bytesEmitted=65201206,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=97636,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@47178168[streamName=inclusions,stats=io.airbyte.config.SyncStats@6ba8842a[recordsEmitted=4,bytesEmitted=1097,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=4,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@299ac84d[streamName=transactions_1628688127,stats=io.airbyte.config.SyncStats@49ba9fa1[recordsEmitted=120046,bytesEmitted=37108092,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=120046,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]], io.airbyte.config.StreamSyncStats@32dd5b3f[streamName=v_transaction_currencies_used,stats=io.airbyte.config.SyncStats@1dfb109a[recordsEmitted=6,bytesEmitted=162,sourceStateMessagesEmitted=,destinationStateMessagesEmitted=,recordsCommitted=6,meanSecondsBeforeSourceStateMessageEmitted=,maxSecondsBeforeSourceStateMessageEmitted=,maxSecondsBetweenStateMessageEmittedandCommitted=,meanSecondsBetweenStateMessageEmittedandCommitted=,additionalProperties={}]]]],normalizationSummary=,state=io.airbyte.config.State@71bfa761[state=[{"type":"GLOBAL","global":{"shared_state":{"state":{"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"token\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"customerId\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"holder_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_month\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_year\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"pan_suffix\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":4,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"legal_declaration_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"visible\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"archived\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"payment_plan_nominated\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"pan\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"iv\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":22,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":23,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `chargebacks` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `date_occurred` int NOT NULL,\\n `status` varchar(32) NOT NULL,\\n `file_number` char(128) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_chargebacks_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_chargebacks_cb` (`_cb`),\\n KEY `fk_t_billing_chargebacks_lmb` (`_lmb`),\\n CONSTRAINT `fk_chargebacks_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_chargebacks_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_chargebacks_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=589 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"chargebacks\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date_occurred\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"file_number\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `charity_transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_token` varchar(64) DEFAULT NULL,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `method` varchar(32) NOT NULL,\\n `currency` varchar(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` varchar(64) DEFAULT NULL,\\n `comment` varchar(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n `checked_at` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_charity_transactions_cards` (`card_id`),\\n KEY `fk_charity_transactions_legacy_users_collector` (`collector_staff_id`),\\n KEY `fk_charity_transactions_transaction_claims` (`transaction_claim_id`),\\n KEY `fk_t_billing_charity_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_charity_transactions_lmb` (`_lmb`),\\n KEY `fk_charity_transactions_invoices` (`invoice_id`),\\n KEY `fk_t_billing_charity_transactions_transaction_id` (`transaction_id`),\\n CONSTRAINT `fk_charity_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_charity_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_transaction_id` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"charity_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_token\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credit_types` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `credit_id` int unsigned DEFAULT NULL,\\n `type` varchar(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n UNIQUE KEY `credit_types_UN` (`credit_id`,`type`),\\n KEY `fk_t_billing_credit_types_cb` (`_cb`),\\n KEY `fk_t_billing_credit_types_lmb` (`_lmb`),\\n CONSTRAINT `fk_credit_types_credits_id` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=1156 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credit_types\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `cid` bigint unsigned DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `currency` varchar(100) DEFAULT NULL,\\n `description` varchar(100) DEFAULT NULL,\\n `credit_date` int unsigned DEFAULT NULL,\\n `expiry_date` int unsigned DEFAULT NULL,\\n `type` varchar(100) DEFAULT NULL,\\n `is_claimed` tinyint(1) NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `customer_FK` (`cid`),\\n KEY `fk_t_billing_credits_cb` (`_cb`),\\n KEY `fk_t_billing_credits_lmb` (`_lmb`),\\n KEY `invoice_FK` (`invoice_id`),\\n CONSTRAINT `customer_FK` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `invoice_FK` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=769 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"expiry_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_claimed\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `discounts` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `amount` decimal(11,2) unsigned NOT NULL DEFAULT '0.00',\\n `type` char(32) DEFAULT NULL,\\n `item` char(64) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_discounts_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_discounts_cb` (`_cb`),\\n KEY `fk_t_billing_discounts_lmb` (`_lmb`),\\n CONSTRAINT `fk_discounts_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_discounts_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_discounts_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=28284 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"discounts\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"item\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `inclusion_id` int unsigned DEFAULT NULL,\\n `amount` decimal(10,2) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `date` int DEFAULT '0',\\n `invoice_number` int unsigned DEFAULT NULL,\\n `description` text CHARACTER SET utf8 COLLATE utf8_bin,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `id_idx` (`id`),\\n KEY `fk_expenses_billings_inclusions_idx` (`inclusion_id`),\\n KEY `fk_t_billing_expenses_cb` (`_cb`),\\n KEY `fk_t_billing_expenses_lmb` (`_lmb`),\\n CONSTRAINT `fk_expenses_billings_inclusions` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_expenses_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_expenses_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=5259 DEFAULT CHARSET=latin1 COMMENT='Expense table with relation to inclusions'\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"invoice_number\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"utf8\",\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_partners` (\\n `expense_id` int unsigned NOT NULL,\\n `partner_id` int unsigned NOT NULL,\\n PRIMARY KEY (`expense_id`,`partner_id`),\\n KEY `fk_expenses_partners_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_partners_partner_id_idx` (`partner_id`),\\n CONSTRAINT `fk_expenses_partners_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_partners_partners` FOREIGN KEY (`partner_id`) REFERENCES `p_partners`.`partners` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_partners\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"partner_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"partner_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_suppliers` (\\n `expense_id` int unsigned NOT NULL,\\n `supplier_id` int NOT NULL,\\n PRIMARY KEY (`expense_id`,`supplier_id`),\\n KEY `fk_expenses_suppliers_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_suppliers_supplier_id_idx` (`supplier_id`),\\n CONSTRAINT `fk_expenses_suppliers_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_suppliers_suppliers` FOREIGN KEY (`supplier_id`) REFERENCES `s_suppliers`.`suppliers` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_suppliers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"supplier_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"supplier_id\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusion_rooms` (\\n `inclusion_id` int unsigned NOT NULL,\\n `room_id` int unsigned NOT NULL,\\n KEY `fk_inclusions_rooms_roomId` (`room_id`),\\n KEY `fk_inclusions_rooms_incId` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_rooms_incId` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_rooms_roomId` FOREIGN KEY (`room_id`) REFERENCES `t_trips`.`rooms` (`id`)\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `net` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `markup` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `tax` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_inclusions_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_inclusions_cb` (`_cb`),\\n KEY `fk_t_billing_inclusions_lmb` (`_lmb`),\\n CONSTRAINT `fk_inclusions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_inclusions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_inclusions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=134381 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"net\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"markup\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"tax\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_accommodations` (\\n `inclusion_id` int unsigned NOT NULL,\\n `accommodation_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`accommodation_id`),\\n KEY `fk_accommodations_inclusion_accommodations_idx` (`accommodation_id`),\\n CONSTRAINT `fk_inclusions_accommodations_1` FOREIGN KEY (`accommodation_id`) REFERENCES `t_trips`.`accommodations` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_accommodations_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_accommodations\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"accommodation_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"accommodation_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_charities` (\\n `inclusion_id` int unsigned NOT NULL,\\n `charity_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`charity_id`),\\n KEY `fk_charities_inclusions_charities_idx` (`charity_id`),\\n CONSTRAINT `fk_inclusions_charities_1` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_charities_2` FOREIGN KEY (`charity_id`) REFERENCES `t_trips`.`charities` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_charities\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"charity_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"charity_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_experiences` (\\n `inclusion_id` int unsigned NOT NULL,\\n `experience_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`experience_id`),\\n KEY `fk_inclusions_experiences_1_idx` (`experience_id`),\\n KEY `fk_inclusions_experiences_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_experiences_1` FOREIGN KEY (`experience_id`) REFERENCES `t_trips`.`experiences` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_experiences_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_experiences\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"experience_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"experience_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_flights` (\\n `inclusion_id` int unsigned NOT NULL,\\n `flight_id` int unsigned NOT NULL,\\n PRIMARY KEY (`flight_id`,`inclusion_id`),\\n KEY `fk_inclusions_flights_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_flights_1` FOREIGN KEY (`flight_id`) REFERENCES `t_trips`.`flights` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_flights_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_flights\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"flight_id\",\"inclusion_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"flight_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_insurances` (\\n `inclusion_id` int unsigned NOT NULL,\\n `insurance_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`insurance_id`),\\n KEY `fk_insurances_inclusion_insurances_idx` (`insurance_id`),\\n CONSTRAINT `fk_inclusions_insurances_1` FOREIGN KEY (`insurance_id`) REFERENCES `t_trips`.`insurances` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_insurances_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_insurances\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"insurance_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_other_charges` (\\n `inclusion_id` int unsigned NOT NULL,\\n `other_charge_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`other_charge_id`),\\n KEY `fk_other_charges_inclusions_other_charges_idx` (`other_charge_id`),\\n CONSTRAINT `fk_inclusions_inclusions_other_charges` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_other_charges_inclusions_other_charges` FOREIGN KEY (`other_charge_id`) REFERENCES `other_charges` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"other_charge_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"other_charge_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_tours` (\\n `inclusion_id` int unsigned NOT NULL,\\n `tour_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`tour_id`),\\n KEY `fk_tours_inclusions_tours_idx` (`tour_id`),\\n CONSTRAINT `fk_inclusions_tours_1` FOREIGN KEY (`tour_id`) REFERENCES `t_trips`.`tours` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_tours_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_tours\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"tour_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tour_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_transfers` (\\n `inclusion_id` int unsigned NOT NULL,\\n `transfer_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`transfer_id`),\\n KEY `fk_transfers_inclusions_transfers_idx` (`transfer_id`),\\n CONSTRAINT `fk_inclusions_transfers_1` FOREIGN KEY (`transfer_id`) REFERENCES `t_trips`.`transfers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_transfers_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_transfers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"transfer_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transfer_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `invoices` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `tid` int unsigned NOT NULL,\\n `expires_at` int DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` char(16) NOT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` decimal(11,2) DEFAULT NULL,\\n `use_excess` tinyint(1) NOT NULL DEFAULT '0',\\n `type` char(32) DEFAULT NULL,\\n `is_public` tinyint(1) NOT NULL DEFAULT '1',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `deposit_paid_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_invoices_trips_idx` (`tid`),\\n KEY `fk_invoices_departments_idx` (`department_id`),\\n KEY `fk_t_billing_invoices_cb` (`_cb`),\\n KEY `fk_t_billing_invoices_lmb` (`_lmb`),\\n CONSTRAINT `fk_invoices_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`) ON DELETE RESTRICT,\\n CONSTRAINT `fk_invoices_trips` FOREIGN KEY (`tid`) REFERENCES `t_trips`.`trips` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_invoices_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_invoices_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=113256 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"invoices\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tid\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expires_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"use_excess\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_public\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"deposit_paid_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `other_charges` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `type` char(32) DEFAULT NULL,\\n `name` char(128) DEFAULT NULL,\\n `description` char(255) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_other_charges_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_other_charges_cb` (`_cb`),\\n KEY `fk_t_billing_other_charges_lmb` (`_lmb`),\\n CONSTRAINT `fk_other_charges_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_other_charges_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_other_charges_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2938 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `payment_plans` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `status` char(16) NOT NULL,\\n `date` int NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_payment_plans_invoices_idx` (`invoice_id`),\\n KEY `fk_payment_plans_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_payment_plans_cb` (`_cb`),\\n KEY `fk_t_billing_payment_plans_lmb` (`_lmb`),\\n CONSTRAINT `fk_payment_plans_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_payment_plans_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_payment_plans_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_payment_plans_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=167130 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"payment_plans\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refund_protects` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` varchar(100) NOT NULL,\\n `reference` varchar(100) NOT NULL,\\n `status` int NOT NULL,\\n `insurance_end_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_refund_protects_cb` (`_cb`),\\n KEY `fk_t_billing_refund_protects_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_refund_protects_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refund_protects_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refund_protects\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reference\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_end_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `reason` char(255) NOT NULL,\\n `status` varchar(64) DEFAULT NULL,\\n `method` varchar(64) DEFAULT NULL,\\n `amount` decimal(10,2) NOT NULL,\\n `comment` text,\\n `priority` varchar(32) DEFAULT 'Normal',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_refunds_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_refunds_cb` (`_cb`),\\n KEY `fk_t_billing_refunds_lmb` (`_lmb`),\\n KEY `fk_t_billing_refunds_invoices_id_idx` (`invoice_id`),\\n CONSTRAINT `fk_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_refunds_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_invoices_id` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=6631 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reason\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"priority\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"Normal\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds_transactions` (\\n `refund_id` int unsigned NOT NULL,\\n `transaction_id` int unsigned NOT NULL,\\n PRIMARY KEY (`refund_id`,`transaction_id`),\\n KEY `fk_transactions_refunds_transactions_idx` (`transaction_id`),\\n CONSTRAINT `fk_refunds_refunds_transactions` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"refund_id\",\"transaction_id\"],\"columns\":[{\"name\":\"refund_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_audits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `checked_at` int NOT NULL,\\n `status` tinyint unsigned NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `internal_comments` char(255) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transaction_audits_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_transaction_audits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_audits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_audits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_audits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transaction_audits_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=125057 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_audits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"internal_comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_claims` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `amount` decimal(11,2) unsigned NOT NULL,\\n `platform` char(32) NOT NULL,\\n `claimed_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_transaction_claims_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_claims_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_claims_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_claims_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=3944 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_claims\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"platform\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"claimed_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `credit_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `transaction_credit_FK` (`credit_id`),\\n KEY `transaction_credit_FK_1` (`transaction_id`),\\n KEY `fk_t_billing_transaction_credits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_credits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK_1` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) NOT NULL,\\n `currency` char(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` tinyint(1) NOT NULL,\\n `final` tinyint(1) NOT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transactions_invoices_idx` (`invoice_id`),\\n KEY `fk_transactions_departments_idx` (`department_id`),\\n KEY `fk_transactions_transaction_claims_idx` (`transaction_claim_id`),\\n KEY `fk_transactions_cards_idx` (`card_id`),\\n KEY `fk_t_billing_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_transactions_lmb` (`_lmb`),\\n KEY `fk_transactions_legacy_users_collector` (`collector_staff_id`),\\n CONSTRAINT `fk_t_billing_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`),\\n CONSTRAINT `fk_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE SET NULL\\n) ENGINE=InnoDB AUTO_INCREMENT=154565 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":13,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"final\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":14,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions_1628688127` (\\n `id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n `currency` char(3) DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `excess_amount` decimal(11,2) DEFAULT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned DEFAULT NULL,\\n `deposit` tinyint DEFAULT NULL,\\n `final` tinyint DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663663720,\"file\":\"mysql-bin-changelog.000033\",\"pos\":10282100,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_bad_chargebacks` AS select `t_billing`.`chargebacks`.`id` AS `id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS `transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS `status`\\nfrom `t_billing`.`chargebacks`\\nwhere `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668113,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11292584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11297590,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11323917,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675314,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11885145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `t_billing`.`v_bad_chargebacks` AS SELECT `t_billing`.`chargebacks`.`id` AS`id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS`transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS`status`\\nFROM `t_billing`.`chargebacks`\\nWHERE `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162054,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162283,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162512,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162970,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13163348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169044,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13170016,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13174018,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13180758,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182979,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183197,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189040,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13193750,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194060,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194960,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13195330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13196594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197047,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198833,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199057,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199281,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199729,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13200097,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13201635,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202582,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13203749,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13206813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207709,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13208077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13209966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210913,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212310,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212821,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213034,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213247,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213806,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13216706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217135,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217598,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219658,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220627,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220848,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13221210,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223523,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13224010,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225386,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225690,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225909,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226128,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226347,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226566,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226924,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229298,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229739,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13230220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13231946,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232907,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233126,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13235560,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236001,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238007,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238308,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238956,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241257,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13242164,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13243455,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13394941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395155,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395369,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395583,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395797,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13396145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13399407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401106,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401621,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401836,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402051,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402616,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13404640,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405073,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405542,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407025,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407328,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13409745,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410662,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411585,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411896,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412122,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412574,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13413172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13418550,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419507,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423568,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424219,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424790,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13426618,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427055,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13428872,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429385,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430027,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13433888,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434319,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437763,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437974,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438738,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444564,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444989,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13445446,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450162,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450588,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454134,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454563,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13455026,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13457285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782726,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782955,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783791,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789487,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789948,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15790459,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795636,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801918,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15802396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806724,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807174,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807399,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809985,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15810963,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811496,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811944,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812536,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814074,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15815021,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816721,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817169,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817393,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15819650,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820101,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15821994,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822292,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822718,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822931,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823490,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826390,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15827282,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829342,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829648,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829869,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830532,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15832762,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833207,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835070,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835593,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836031,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15838982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839423,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842153,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842372,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842591,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842810,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15843168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845685,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15846166,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15847691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849677,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15850245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15851978,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852885,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15854176,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856927,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857141,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857355,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857703,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860068,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862664,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864075,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864290,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15866435,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15867260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15869284,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872175,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872696,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873132,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15874895,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875334,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15876735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877493,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877719,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878397,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884147,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884602,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15885104,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15888863,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892652,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15893127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894768,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895196,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895410,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895624,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899916,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15900382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15902853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903149,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903360,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903571,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903782,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903993,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15904335,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910161,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910586,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15911043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915759,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916531,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15919731,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920160,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920623,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15922882,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28884341,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28885832,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28904694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31670327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676023,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676995,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31680997,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683030,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689091,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31690008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31693801,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694111,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694336,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694786,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695381,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31696645,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697098,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698575,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698884,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699332,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31700148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31701686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702137,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31703800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704109,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704557,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704781,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705373,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31708209,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709606,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710756,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31711102,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714431,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31716954,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717702,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717923,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31721306,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722682,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722986,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723424,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723643,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723862,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31724220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31726594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729242,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729765,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729984,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730203,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730422,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31732856,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735303,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736036,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736252,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736468,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738988,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31739460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31740751,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741906,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31742254,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31744619,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31747215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748087,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748732,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31749297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751321,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751754,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31752223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31753706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754009,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754445,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754663,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754881,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31755237,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756426,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756865,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31757343,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758577,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759255,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765231,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31766188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31769947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770249,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770683,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770900,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771471,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31774211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775852,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776066,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776494,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31777056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31780569,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781000,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31783937,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784233,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784444,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784655,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784866,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791670,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31792127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796119,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796843,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797269,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797615,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31800815,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31803966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3056814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057501,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057730,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3058108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3063804,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064265,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064776,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3068778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069081,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069953,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3070309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3075796,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076235,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081041,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3082086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3084302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085589,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088391,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088842,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3089338,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091038,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091710,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3092078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3093967,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096609,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097807,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3100707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101136,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103659,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104186,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104628,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104849,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3105211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107079,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3108011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109910,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110129,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110567,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110925,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3114221,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3115947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116251,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116470,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116689,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116908,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3119561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120483,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123173,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125258,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125693,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3126165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3127456,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138975,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139403,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139617,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3143227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3144926,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145226,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145441,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145656,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145871,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3149362,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3150845,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151366,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151802,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152020,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3153565,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154004,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155405,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155942,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156394,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156620,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162370,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162825,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3163327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167388,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168039,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168610,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170875,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3171350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172991,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173847,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3174195,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3177708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178139,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3181076,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184289,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184500,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184711,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184922,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3185264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191515,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3195964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196475,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196901,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197114,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3200660,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201089,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3203811,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n","mysql_cdc_offset":{"{\"schema\":null,\"payload\":[\"t_billing\",{\"server\":\"t_billing\"}]}":"{\"transaction_id\":null,\"ts_sec\":1664306516,\"file\":\"mysql-bin-changelog.000036\",\"pos\":21459616,\"row\":1,\"server_id\":239712215,\"event\":2}"}}},"stream_states":[{"stream_descriptor":{"name":"activity_log","namespace":"t_billing"},"stream_state":{"stream_name":"activity_log","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"cards","namespace":"t_billing"},"stream_state":{"stream_name":"cards","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"chargebacks","namespace":"t_billing"},"stream_state":{"stream_name":"chargebacks","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"charity_transactions","namespace":"t_billing"},"stream_state":{"stream_name":"charity_transactions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"credit_types","namespace":"t_billing"},"stream_state":{"stream_name":"credit_types","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"credits","namespace":"t_billing"},"stream_state":{"stream_name":"credits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"discounts","namespace":"t_billing"},"stream_state":{"stream_name":"discounts","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"expenses","namespace":"t_billing"},"stream_state":{"stream_name":"expenses","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"expenses_partners","namespace":"t_billing"},"stream_state":{"stream_name":"expenses_partners","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"expenses_suppliers","namespace":"t_billing"},"stream_state":{"stream_name":"expenses_suppliers","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusion_rooms","namespace":"t_billing"},"stream_state":{"stream_name":"inclusion_rooms","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_accommodations","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_accommodations","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_charities","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_charities","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_experiences","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_experiences","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_flights","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_flights","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_insurances","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_insurances","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_other_charges","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_other_charges","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_tours","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_tours","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"inclusions_transfers","namespace":"t_billing"},"stream_state":{"stream_name":"inclusions_transfers","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"invoices","namespace":"t_billing"},"stream_state":{"stream_name":"invoices","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"other_charges","namespace":"t_billing"},"stream_state":{"stream_name":"other_charges","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"payment_plans","namespace":"t_billing"},"stream_state":{"stream_name":"payment_plans","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"payment_plans_analysis","namespace":"t_billing"},"stream_state":{"stream_name":"payment_plans_analysis","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"refund_protects","namespace":"t_billing"},"stream_state":{"stream_name":"refund_protects","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"refunds","namespace":"t_billing"},"stream_state":{"stream_name":"refunds","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"refunds_transactions","namespace":"t_billing"},"stream_state":{"stream_name":"refunds_transactions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transaction_audits","namespace":"t_billing"},"stream_state":{"stream_name":"transaction_audits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transaction_claims","namespace":"t_billing"},"stream_state":{"stream_name":"transaction_claims","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transaction_credits","namespace":"t_billing"},"stream_state":{"stream_name":"transaction_credits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transactions","namespace":"t_billing"},"stream_state":{"stream_name":"transactions","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"transactions_1628688127","namespace":"t_billing"},"stream_state":{"stream_name":"transactions_1628688127","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_bad_chargebacks","namespace":"t_billing"},"stream_state":{"stream_name":"v_bad_chargebacks","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_bad_transaction_audits","namespace":"t_billing"},"stream_state":{"stream_name":"v_bad_transaction_audits","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_charity_transaction_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_charity_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_discount_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_discount_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_inclusion_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_inclusion_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_invoice_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_invoice_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_payment_plan_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_payment_plan_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_total_flight_paid","namespace":"t_billing"},"stream_state":{"stream_name":"v_total_flight_paid","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_audit_summary","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_audit_summary","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_currencies_used","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_currencies_used","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_invoice_joined","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_invoice_joined","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_methods_used","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_methods_used","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transaction_summaries","namespace":"t_billing"},"stream_state":{"stream_name":"v_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_transactions_invalid_currencies","namespace":"t_billing"},"stream_state":{"stream_name":"v_transactions_invalid_currencies","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_trip_sales_summary","namespace":"t_billing"},"stream_state":{"stream_name":"v_trip_sales_summary","stream_namespace":"t_billing","cursor_field":[]}},{"stream_descriptor":{"name":"v_trip_transactions_detail","namespace":"t_billing"},"stream_state":{"stream_name":"v_trip_transactions_detail","stream_namespace":"t_billing","cursor_field":[]}}]},"data":{"cdc":true,"cdc_state":{"state":{"mysql_db_history":"{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"\",\"ddl\":\"SET character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`activity_log`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`cards`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`chargebacks`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`charity_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credit_types`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`discounts`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_partners`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`expenses_suppliers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusion_rooms`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_accommodations`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_charities`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_experiences`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_flights`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_insurances`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_tours`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`inclusions_transfers`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`invoices`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`other_charges`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`payment_plans`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refund_protects`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`refunds_transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_audits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_claims`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transaction_credits`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490463,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TABLE IF EXISTS `t_billing`.`transactions_1628688127`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"DROP DATABASE IF EXISTS `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DATABASE `t_billing` CHARSET latin1 COLLATE latin1_swedish_ci\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"USE `t_billing`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `activity_log` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `table_name` char(255) DEFAULT NULL,\\n `field_name` char(255) DEFAULT NULL,\\n `record_id` bigint unsigned DEFAULT NULL,\\n `value` text,\\n `time` int DEFAULT NULL,\\n `staff_id` int unsigned DEFAULT NULL,\\n `action` tinyint unsigned NOT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_activity_log_staff_id` (`staff_id`),\\n CONSTRAINT `fk_t_billing_activity_log_staff_id` FOREIGN KEY (`staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2061236 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"activity_log\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"table_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"field_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"record_id\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"value\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"time\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"action\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `cards` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `cid` bigint unsigned NOT NULL,\\n `type` varchar(16) DEFAULT NULL,\\n `payment_gateway` char(50) DEFAULT NULL,\\n `provider` char(50) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` int DEFAULT NULL,\\n `token` mediumtext,\\n `customerId` mediumtext,\\n `holder_name` char(128) NOT NULL,\\n `expiry_month` int unsigned NOT NULL,\\n `expiry_year` int NOT NULL,\\n `pan_suffix` char(4) DEFAULT NULL,\\n `legal_declaration_id` int unsigned DEFAULT NULL,\\n `visible` tinyint unsigned NOT NULL DEFAULT '1',\\n `archived` tinyint(1) NOT NULL DEFAULT '0',\\n `payment_plan_nominated` tinyint unsigned NOT NULL DEFAULT '0',\\n `pan` char(255) DEFAULT NULL,\\n `iv` char(64) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_cards_travellers` (`cid`),\\n KEY `fk_cards_legal_declarations_idx` (`legal_declaration_id`),\\n KEY `fk_t_billing_cards_cb` (`_cb`),\\n KEY `fk_t_billing_cards_lmb` (`_lmb`),\\n CONSTRAINT `fk_cards_legal_declarations` FOREIGN KEY (`legal_declaration_id`) REFERENCES `crm_config`.`legal_declarations` (`id`),\\n CONSTRAINT `fk_cards_travellers` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_cards_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_cards_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=61941 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"cards\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"payment_gateway\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"provider\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":50,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"token\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"customerId\",\"jdbcType\":12,\"typeName\":\"MEDIUMTEXT\",\"typeExpression\":\"MEDIUMTEXT\",\"charsetName\":\"latin1\",\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"holder_name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_month\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expiry_year\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"pan_suffix\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":4,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"legal_declaration_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"visible\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"archived\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"payment_plan_nominated\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"pan\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"iv\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":22,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":23,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `chargebacks` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `date_occurred` int NOT NULL,\\n `status` varchar(32) NOT NULL,\\n `file_number` char(128) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_chargebacks_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_chargebacks_cb` (`_cb`),\\n KEY `fk_t_billing_chargebacks_lmb` (`_lmb`),\\n CONSTRAINT `fk_chargebacks_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_chargebacks_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_chargebacks_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=589 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"chargebacks\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date_occurred\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"file_number\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `charity_transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_token` varchar(64) DEFAULT NULL,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `method` varchar(32) NOT NULL,\\n `currency` varchar(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` varchar(64) DEFAULT NULL,\\n `comment` varchar(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n `checked_at` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_charity_transactions_cards` (`card_id`),\\n KEY `fk_charity_transactions_legacy_users_collector` (`collector_staff_id`),\\n KEY `fk_charity_transactions_transaction_claims` (`transaction_claim_id`),\\n KEY `fk_t_billing_charity_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_charity_transactions_lmb` (`_lmb`),\\n KEY `fk_charity_transactions_invoices` (`invoice_id`),\\n KEY `fk_t_billing_charity_transactions_transaction_id` (`transaction_id`),\\n CONSTRAINT `fk_charity_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_charity_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_charity_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_charity_transactions_transaction_id` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=4080 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"charity_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_token\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credit_types` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `credit_id` int unsigned DEFAULT NULL,\\n `type` varchar(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n UNIQUE KEY `credit_types_UN` (`credit_id`,`type`),\\n KEY `fk_t_billing_credit_types_cb` (`_cb`),\\n KEY `fk_t_billing_credit_types_lmb` (`_lmb`),\\n CONSTRAINT `fk_credit_types_credits_id` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credit_types_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=1156 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credit_types\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `cid` bigint unsigned DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `currency` varchar(100) DEFAULT NULL,\\n `description` varchar(100) DEFAULT NULL,\\n `credit_date` int unsigned DEFAULT NULL,\\n `expiry_date` int unsigned DEFAULT NULL,\\n `type` varchar(100) DEFAULT NULL,\\n `is_claimed` tinyint(1) NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `customer_FK` (`cid`),\\n KEY `fk_t_billing_credits_cb` (`_cb`),\\n KEY `fk_t_billing_credits_lmb` (`_lmb`),\\n KEY `invoice_FK` (`invoice_id`),\\n CONSTRAINT `customer_FK` FOREIGN KEY (`cid`) REFERENCES `t_travellers`.`travellers` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `invoice_FK` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=769 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"cid\",\"jdbcType\":-5,\"typeName\":\"BIGINT UNSIGNED\",\"typeExpression\":\"BIGINT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"expiry_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_claimed\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `discounts` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `amount` decimal(11,2) unsigned NOT NULL DEFAULT '0.00',\\n `type` char(32) DEFAULT NULL,\\n `item` char(64) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_discounts_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_discounts_cb` (`_cb`),\\n KEY `fk_t_billing_discounts_lmb` (`_lmb`),\\n CONSTRAINT `fk_discounts_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_discounts_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_discounts_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=28284 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"discounts\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"item\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `inclusion_id` int unsigned DEFAULT NULL,\\n `amount` decimal(10,2) DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `date` int DEFAULT '0',\\n `invoice_number` int unsigned DEFAULT NULL,\\n `description` text CHARACTER SET utf8 COLLATE utf8_bin,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `id_idx` (`id`),\\n KEY `fk_expenses_billings_inclusions_idx` (`inclusion_id`),\\n KEY `fk_t_billing_expenses_cb` (`_cb`),\\n KEY `fk_t_billing_expenses_lmb` (`_lmb`),\\n CONSTRAINT `fk_expenses_billings_inclusions` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_expenses_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_expenses_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=5259 DEFAULT CHARSET=latin1 COMMENT='Expense table with relation to inclusions'\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"invoice_number\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"utf8\",\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_partners` (\\n `expense_id` int unsigned NOT NULL,\\n `partner_id` int unsigned NOT NULL,\\n PRIMARY KEY (`expense_id`,`partner_id`),\\n KEY `fk_expenses_partners_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_partners_partner_id_idx` (`partner_id`),\\n CONSTRAINT `fk_expenses_partners_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_partners_partners` FOREIGN KEY (`partner_id`) REFERENCES `p_partners`.`partners` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_partners\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"partner_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"partner_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `expenses_suppliers` (\\n `expense_id` int unsigned NOT NULL,\\n `supplier_id` int NOT NULL,\\n PRIMARY KEY (`expense_id`,`supplier_id`),\\n KEY `fk_expenses_suppliers_expense_id_idx` (`expense_id`),\\n KEY `fk_expenses_suppliers_supplier_id_idx` (`supplier_id`),\\n CONSTRAINT `fk_expenses_suppliers_expenses` FOREIGN KEY (`expense_id`) REFERENCES `expenses` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_expenses_suppliers_suppliers` FOREIGN KEY (`supplier_id`) REFERENCES `s_suppliers`.`suppliers` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"expenses_suppliers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"expense_id\",\"supplier_id\"],\"columns\":[{\"name\":\"expense_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"supplier_id\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490464,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusion_rooms` (\\n `inclusion_id` int unsigned NOT NULL,\\n `room_id` int unsigned NOT NULL,\\n KEY `fk_inclusions_rooms_roomId` (`room_id`),\\n KEY `fk_inclusions_rooms_incId` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_rooms_incId` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_rooms_roomId` FOREIGN KEY (`room_id`) REFERENCES `t_trips`.`rooms` (`id`)\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `net` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `markup` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `tax` decimal(11,2) NOT NULL DEFAULT '0.00',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_inclusions_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_inclusions_cb` (`_cb`),\\n KEY `fk_t_billing_inclusions_lmb` (`_lmb`),\\n CONSTRAINT `fk_inclusions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_inclusions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_inclusions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=134381 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"net\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"markup\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"tax\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0.00\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_accommodations` (\\n `inclusion_id` int unsigned NOT NULL,\\n `accommodation_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`accommodation_id`),\\n KEY `fk_accommodations_inclusion_accommodations_idx` (`accommodation_id`),\\n CONSTRAINT `fk_inclusions_accommodations_1` FOREIGN KEY (`accommodation_id`) REFERENCES `t_trips`.`accommodations` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_accommodations_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_accommodations\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"accommodation_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"accommodation_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_charities` (\\n `inclusion_id` int unsigned NOT NULL,\\n `charity_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`charity_id`),\\n KEY `fk_charities_inclusions_charities_idx` (`charity_id`),\\n CONSTRAINT `fk_inclusions_charities_1` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_charities_2` FOREIGN KEY (`charity_id`) REFERENCES `t_trips`.`charities` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_charities\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"charity_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"charity_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_experiences` (\\n `inclusion_id` int unsigned NOT NULL,\\n `experience_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`experience_id`),\\n KEY `fk_inclusions_experiences_1_idx` (`experience_id`),\\n KEY `fk_inclusions_experiences_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_experiences_1` FOREIGN KEY (`experience_id`) REFERENCES `t_trips`.`experiences` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_experiences_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_experiences\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"experience_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"experience_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_flights` (\\n `inclusion_id` int unsigned NOT NULL,\\n `flight_id` int unsigned NOT NULL,\\n PRIMARY KEY (`flight_id`,`inclusion_id`),\\n KEY `fk_inclusions_flights_2_idx` (`inclusion_id`),\\n CONSTRAINT `fk_inclusions_flights_1` FOREIGN KEY (`flight_id`) REFERENCES `t_trips`.`flights` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_flights_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_flights\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"flight_id\",\"inclusion_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"flight_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_insurances` (\\n `inclusion_id` int unsigned NOT NULL,\\n `insurance_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`insurance_id`),\\n KEY `fk_insurances_inclusion_insurances_idx` (`insurance_id`),\\n CONSTRAINT `fk_inclusions_insurances_1` FOREIGN KEY (`insurance_id`) REFERENCES `t_trips`.`insurances` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_insurances_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_insurances\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"insurance_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_other_charges` (\\n `inclusion_id` int unsigned NOT NULL,\\n `other_charge_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`other_charge_id`),\\n KEY `fk_other_charges_inclusions_other_charges_idx` (`other_charge_id`),\\n CONSTRAINT `fk_inclusions_inclusions_other_charges` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_other_charges_inclusions_other_charges` FOREIGN KEY (`other_charge_id`) REFERENCES `other_charges` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"other_charge_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"other_charge_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_tours` (\\n `inclusion_id` int unsigned NOT NULL,\\n `tour_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`tour_id`),\\n KEY `fk_tours_inclusions_tours_idx` (`tour_id`),\\n CONSTRAINT `fk_inclusions_tours_1` FOREIGN KEY (`tour_id`) REFERENCES `t_trips`.`tours` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_tours_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_tours\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"tour_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tour_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `inclusions_transfers` (\\n `inclusion_id` int unsigned NOT NULL,\\n `transfer_id` int unsigned NOT NULL,\\n PRIMARY KEY (`inclusion_id`,`transfer_id`),\\n KEY `fk_transfers_inclusions_transfers_idx` (`transfer_id`),\\n CONSTRAINT `fk_inclusions_transfers_1` FOREIGN KEY (`transfer_id`) REFERENCES `t_trips`.`transfers` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_inclusions_transfers_2` FOREIGN KEY (`inclusion_id`) REFERENCES `inclusions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"inclusions_transfers\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"inclusion_id\",\"transfer_id\"],\"columns\":[{\"name\":\"inclusion_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transfer_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `invoices` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `tid` int unsigned NOT NULL,\\n `expires_at` int DEFAULT NULL,\\n `currency` char(3) NOT NULL,\\n `status` char(16) NOT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` decimal(11,2) DEFAULT NULL,\\n `use_excess` tinyint(1) NOT NULL DEFAULT '0',\\n `type` char(32) DEFAULT NULL,\\n `is_public` tinyint(1) NOT NULL DEFAULT '1',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `deposit_paid_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_invoices_trips_idx` (`tid`),\\n KEY `fk_invoices_departments_idx` (`department_id`),\\n KEY `fk_t_billing_invoices_cb` (`_cb`),\\n KEY `fk_t_billing_invoices_lmb` (`_lmb`),\\n CONSTRAINT `fk_invoices_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`) ON DELETE RESTRICT,\\n CONSTRAINT `fk_invoices_trips` FOREIGN KEY (`tid`) REFERENCES `t_trips`.`trips` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_invoices_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_invoices_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=113256 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"invoices\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"tid\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"expires_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"use_excess\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":8,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"is_public\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":10,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"1\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":14,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"deposit_paid_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `other_charges` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `type` char(32) DEFAULT NULL,\\n `name` char(128) DEFAULT NULL,\\n `description` char(255) DEFAULT NULL,\\n `comments` char(255) DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_other_charges_invoices_idx` (`invoice_id`),\\n KEY `fk_t_billing_other_charges_cb` (`_cb`),\\n KEY `fk_t_billing_other_charges_lmb` (`_lmb`),\\n CONSTRAINT `fk_other_charges_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_other_charges_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_other_charges_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=2938 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"other_charges\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"type\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"name\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":128,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"description\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `payment_plans` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `status` char(16) NOT NULL,\\n `date` int NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_payment_plans_invoices_idx` (`invoice_id`),\\n KEY `fk_payment_plans_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_payment_plans_cb` (`_cb`),\\n KEY `fk_t_billing_payment_plans_lmb` (`_lmb`),\\n CONSTRAINT `fk_payment_plans_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_payment_plans_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_payment_plans_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_payment_plans_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=167130 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"payment_plans\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":16,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refund_protects` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` varchar(100) NOT NULL,\\n `reference` varchar(100) NOT NULL,\\n `status` int NOT NULL,\\n `insurance_end_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_refund_protects_cb` (`_cb`),\\n KEY `fk_t_billing_refund_protects_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_refund_protects_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refund_protects_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refund_protects\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reference\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":100,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"insurance_end_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned NOT NULL,\\n `reason` char(255) NOT NULL,\\n `status` varchar(64) DEFAULT NULL,\\n `method` varchar(64) DEFAULT NULL,\\n `amount` decimal(10,2) NOT NULL,\\n `comment` text,\\n `priority` varchar(32) DEFAULT 'Normal',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_refunds_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_refunds_cb` (`_cb`),\\n KEY `fk_t_billing_refunds_lmb` (`_lmb`),\\n KEY `fk_t_billing_refunds_invoices_id_idx` (`invoice_id`),\\n CONSTRAINT `fk_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_t_billing_refunds_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_invoices_id` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_refunds_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=6631 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"reason\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":10,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":12,\"typeName\":\"TEXT\",\"typeExpression\":\"TEXT\",\"charsetName\":\"latin1\",\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"priority\",\"jdbcType\":12,\"typeName\":\"VARCHAR\",\"typeExpression\":\"VARCHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"Normal\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":12,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":13,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `refunds_transactions` (\\n `refund_id` int unsigned NOT NULL,\\n `transaction_id` int unsigned NOT NULL,\\n PRIMARY KEY (`refund_id`,`transaction_id`),\\n KEY `fk_transactions_refunds_transactions_idx` (`transaction_id`),\\n CONSTRAINT `fk_refunds_refunds_transactions` FOREIGN KEY (`refund_id`) REFERENCES `refunds` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_refunds_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"refunds_transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"refund_id\",\"transaction_id\"],\"columns\":[{\"name\":\"refund_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_audits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned NOT NULL,\\n `checked_at` int NOT NULL,\\n `status` tinyint unsigned NOT NULL DEFAULT '0',\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `internal_comments` char(255) DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transaction_audits_transactions_idx` (`transaction_id`),\\n KEY `fk_t_billing_transaction_audits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_audits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_audits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_audits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transaction_audits_transactions` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE\\n) ENGINE=InnoDB AUTO_INCREMENT=125057 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_audits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"checked_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"status\",\"jdbcType\":5,\"typeName\":\"TINYINT UNSIGNED\",\"typeExpression\":\"TINYINT UNSIGNED\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"defaultValueExpression\":\"0\",\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"internal_comments\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":255,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_claims` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `amount` decimal(11,2) unsigned NOT NULL,\\n `platform` char(32) NOT NULL,\\n `claimed_date` int NOT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_t_billing_transaction_claims_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_claims_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_claims_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_claims_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB AUTO_INCREMENT=3944 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_claims\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL UNSIGNED\",\"typeExpression\":\"DECIMAL UNSIGNED\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"platform\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":3,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"claimed_date\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transaction_credits` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `transaction_id` int unsigned DEFAULT NULL,\\n `credit_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `transaction_credit_FK` (`credit_id`),\\n KEY `transaction_credit_FK_1` (`transaction_id`),\\n KEY `fk_t_billing_transaction_credits_cb` (`_cb`),\\n KEY `fk_t_billing_transaction_credits_lmb` (`_lmb`),\\n CONSTRAINT `fk_t_billing_transaction_credits_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transaction_credits_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `transaction_credit_FK_1` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transaction_credits\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"credit_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":4,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":5,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":6,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":7,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions` (\\n `id` int unsigned NOT NULL AUTO_INCREMENT,\\n `invoice_id` int unsigned NOT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) NOT NULL,\\n `currency` char(3) NOT NULL,\\n `amount` decimal(11,2) NOT NULL,\\n `excess_amount` decimal(11,2) NOT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned NOT NULL,\\n `deposit` tinyint(1) NOT NULL,\\n `final` tinyint(1) NOT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL,\\n PRIMARY KEY (`id`),\\n KEY `fk_transactions_invoices_idx` (`invoice_id`),\\n KEY `fk_transactions_departments_idx` (`department_id`),\\n KEY `fk_transactions_transaction_claims_idx` (`transaction_claim_id`),\\n KEY `fk_transactions_cards_idx` (`card_id`),\\n KEY `fk_t_billing_transactions_cb` (`_cb`),\\n KEY `fk_t_billing_transactions_lmb` (`_lmb`),\\n KEY `fk_transactions_legacy_users_collector` (`collector_staff_id`),\\n CONSTRAINT `fk_t_billing_transactions_cb` FOREIGN KEY (`_cb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_t_billing_transactions_lmb` FOREIGN KEY (`_lmb`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_cards` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_departments` FOREIGN KEY (`department_id`) REFERENCES `crm_config`.`departments` (`id`),\\n CONSTRAINT `fk_transactions_invoices` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE,\\n CONSTRAINT `fk_transactions_legacy_users_collector` FOREIGN KEY (`collector_staff_id`) REFERENCES `crm_config`.`legacy_users` (`id`) ON DELETE SET NULL ON UPDATE RESTRICT,\\n CONSTRAINT `fk_transactions_transaction_claims` FOREIGN KEY (`transaction_claim_id`) REFERENCES `transaction_claims` (`id`) ON DELETE SET NULL\\n) ENGINE=InnoDB AUTO_INCREMENT=154565 DEFAULT CHARSET=latin1\",\"tableChanges\":[{\"type\":\"CREATE\",\"id\":\"\\\"t_billing\\\".\\\"transactions\\\"\",\"table\":{\"defaultCharsetName\":\"latin1\",\"primaryKeyColumnNames\":[\"id\"],\"columns\":[{\"name\":\"id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":1,\"optional\":false,\"autoIncremented\":true,\"generated\":true,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"invoice_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":2,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_id\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":3,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"method\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":32,\"position\":4,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"currency\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":3,\"position\":5,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":6,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"excess_amount\",\"jdbcType\":3,\"typeName\":\"DECIMAL\",\"typeExpression\":\"DECIMAL\",\"charsetName\":null,\"length\":11,\"scale\":2,\"position\":7,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"processor\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":64,\"position\":8,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"comment\",\"jdbcType\":1,\"typeName\":\"CHAR\",\"typeExpression\":\"CHAR\",\"charsetName\":\"latin1\",\"length\":127,\"position\":9,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"transaction_date\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":10,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"card_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":11,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"department_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":12,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"deposit\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":13,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"final\",\"jdbcType\":5,\"typeName\":\"TINYINT\",\"typeExpression\":\"TINYINT\",\"charsetName\":null,\"length\":1,\"position\":14,\"optional\":false,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":false,\"enumValues\":[]},{\"name\":\"transaction_claim_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":15,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_ca\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":16,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_cb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":17,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lma\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":18,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"_lmb\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":19,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"collector_staff_id\",\"jdbcType\":4,\"typeName\":\"INT UNSIGNED\",\"typeExpression\":\"INT UNSIGNED\",\"charsetName\":null,\"position\":20,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]},{\"name\":\"receipt_sent_at\",\"jdbcType\":4,\"typeName\":\"INT\",\"typeExpression\":\"INT\",\"charsetName\":null,\"position\":21,\"optional\":true,\"autoIncremented\":false,\"generated\":false,\"comment\":null,\"hasDefaultValue\":true,\"enumValues\":[]}]},\"comment\":null}]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"ts_sec\":1663490465,\"file\":\"mysql-bin-changelog.000031\",\"pos\":30025795,\"snapshot\":true},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE TABLE `transactions_1628688127` (\\n `id` int unsigned DEFAULT NULL,\\n `invoice_id` int unsigned DEFAULT NULL,\\n `transaction_id` char(64) DEFAULT NULL,\\n `method` char(32) DEFAULT NULL,\\n `currency` char(3) DEFAULT NULL,\\n `amount` decimal(11,2) DEFAULT NULL,\\n `excess_amount` decimal(11,2) DEFAULT NULL,\\n `processor` char(64) DEFAULT NULL,\\n `comment` char(127) DEFAULT NULL,\\n `transaction_date` int unsigned DEFAULT NULL,\\n `card_id` int unsigned DEFAULT NULL,\\n `department_id` int unsigned DEFAULT NULL,\\n `deposit` tinyint DEFAULT NULL,\\n `final` tinyint DEFAULT NULL,\\n `transaction_claim_id` int unsigned DEFAULT NULL,\\n `_ca` int DEFAULT NULL,\\n `_cb` int unsigned DEFAULT NULL,\\n `_lma` int DEFAULT NULL,\\n `_lmb` int unsigned DEFAULT NULL,\\n `collector_staff_id` int unsigned DEFAULT NULL,\\n `receipt_sent_at` int DEFAULT NULL\\n) ENGINE=InnoDB DEFAULT CHARSET=latin1\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663663720,\"file\":\"mysql-bin-changelog.000033\",\"pos\":10282100,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_bad_chargebacks` AS select `t_billing`.`chargebacks`.`id` AS `id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS `transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS `status`\\nfrom `t_billing`.`chargebacks`\\nwhere `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668113,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11292584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11297590,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663668114,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11323917,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675314,\"file\":\"mysql-bin-changelog.000033\",\"pos\":11885145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `t_billing`.`v_bad_chargebacks` AS SELECT `t_billing`.`chargebacks`.`id` AS`id`,\\n `t_billing`.`chargebacks`.`transaction_id` AS`transaction_id`,\\n `t_billing`.`chargebacks`.`status` AS`status`\\nFROM `t_billing`.`chargebacks`\\nWHERE `t_billing`.`chargebacks`.`status` != 'Disputed - Won'\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162054,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162283,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162512,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13162970,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13163348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169044,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13169505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13170016,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13174018,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13180758,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13182979,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183197,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13183553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189040,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13189957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13193750,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194060,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13194960,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13195330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13196594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197047,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13197546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13198833,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199057,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199281,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13199729,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13200097,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13201635,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13202582,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13203749,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13206813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13207709,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13208077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13209966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13210913,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212310,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13212821,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213034,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213247,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13213806,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13216706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217135,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13217598,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219658,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13219964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220627,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13220848,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13221210,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13223523,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13224010,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225386,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225690,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13225909,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226128,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226347,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226566,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13226924,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229298,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13229739,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13230220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675319,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13231946,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13232907,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233126,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13233484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13235560,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236001,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13236482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238007,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238308,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13238956,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13239524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241257,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13241692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13242164,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13243455,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13394941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395155,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395369,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395583,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13395797,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13396145,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398510,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13398941,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13399407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401106,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401406,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401621,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13401836,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402051,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13402616,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13404640,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405073,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13405542,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407025,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407328,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13407982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13408556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13409745,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13410662,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411585,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13411896,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412122,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412574,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13412800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13413172,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13418550,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13419507,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423568,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13423785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424219,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13424790,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13426618,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427055,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13427530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13428872,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429385,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13429813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430027,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13430375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13433888,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434319,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13434785,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437763,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13437974,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13438738,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444564,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13444989,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13445446,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13449949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450162,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450375,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450588,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13450934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454134,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13454563,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13455026,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663675320,\"file\":\"mysql-bin-changelog.000033\",\"pos\":13457285,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782726,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15782955,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783184,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15783791,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789487,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15789948,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15790459,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794764,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15794982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795200,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795636,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15795992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801479,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15801918,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15802396,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806724,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15806949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807174,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807399,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15807769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15809985,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15810963,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811496,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15811944,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15812536,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814074,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15814525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15815021,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816497,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816721,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15816945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817169,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817393,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15817761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15819650,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820101,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15820597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15821994,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822292,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822718,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15822931,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15823490,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826390,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15826819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15827282,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829342,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829648,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15829869,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830532,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15830894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15832762,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833207,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15833694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835070,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835593,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15835812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836031,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836250,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15836608,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15838982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839423,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15839904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15841934,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842153,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842372,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842591,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15842810,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15843168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15845685,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15846166,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15847691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849677,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15849893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15850245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15851978,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852413,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15852885,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15854176,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15856927,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857141,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857355,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15857703,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860068,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860499,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15860965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862664,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15862964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864075,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864290,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15864505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15866435,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15867260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15869284,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15870692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872175,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872696,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15872914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873132,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15873706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15874895,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875334,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15875812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15876735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877493,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877719,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15877945,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878171,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878397,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15878769,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884147,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15884602,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15885104,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15888863,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15889816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15890387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15892652,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15893127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894469,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894768,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15894982,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895196,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895410,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895624,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15895972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15899916,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15900382,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15902853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903149,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903360,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903571,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903782,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15903993,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15904335,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910161,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15910586,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15911043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915759,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15915972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916185,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15916531,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678922,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15919731,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920160,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15920623,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663678923,\"file\":\"mysql-bin-changelog.000033\",\"pos\":15922882,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28884341,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28885832,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_transaction_summaries` AS select `t`.`invoice_id` AS `invoice_id`, sum(`t`.`amount`) AS `paid`, sum(`t`.`excess_amount`) AS `excess`\\nfrom ((`t_billing`.`transactions` `t` left join `t_billing`.`v_bad_transaction_audits` `bta`\\n on ((`t_billing`.`bta`.`transaction_id` = `t`.`id`))) left join `t_billing`.`v_bad_chargebacks` `bc`\\n on ((`t_billing`.`bc`.`transaction_id` = `t`.`id`)))\\nwhere ((`t_billing`.`bta`.`id` is null) and (`t_billing`.`bc`.`id` is null))\\ngroup by `t`.`invoice_id`\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663734624,\"file\":\"mysql-bin-changelog.000033\",\"pos\":28904694,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE OR REPLACE ALGORITHM=UNDEFINED DEFINER=`okasdwqe_107`@`%` SQL SECURITY DEFINER VIEW `v_invoice_summaries` AS select `i`.`id` AS `id`,\\n `i`.`tid` AS `tid`,\\n `i`.`expires_at` AS `expires_at`,\\n `i`.`currency` AS `currency`,\\n `i`.`status` AS `status`,\\n `i`.`department_id` AS `department_id`,\\n `i`.`deposit` AS `deposit`,\\n `i`.`use_excess` AS `use_excess`,\\n `i`.`type` AS `type`,\\n `i`.`is_public` AS `is_public`,\\n `i`.`_ca` AS `_ca`,\\n `i`.`_cb` AS `_cb`,\\n `i`.`_lma` AS `_lma`,\\n `i`.`_lmb` AS `_lmb`,\\n `i`.`deposit_paid_at` AS `deposit_paid_at`,\\n coalesce(`t_billing`.`ii`.`net`, 0) AS `net`,\\n coalesce(`t_billing`.`ii`.`markup`, 0) AS `markup`,\\n coalesce(`t_billing`.`ii`.`tax`, 0) AS `tax`,\\n coalesce(`t_billing`.`ii`.`total`, 0) AS `total`,\\n coalesce(`t_billing`.`d`.`discount`, 0) AS `discount`,\\n coalesce(`t_billing`.`t`.`paid`, 0) AS `paid`,\\n coalesce(`t_billing`.`ct`.`donations`, 0) AS `donations`,\\n ((coalesce(`t_billing`.`ii`.`total`, 0) - coalesce(`t_billing`.`d`.`discount`, 0)) -\\n coalesce(`t_billing`.`t`.`paid`, 0)) AS `outstanding`,\\n coalesce(((unix_timestamp() - 50400) >= `i`.`expires_at`), 0) AS `is_expired`,\\n ((`i`.`expires_at` + 50400) - unix_timestamp()) AS `time_remaining`\\nfrom ((((`t_billing`.`invoices` `i` left join `t_billing`.`v_inclusion_summaries` `ii`\\n on ((`i`.`id` = `t_billing`.`ii`.`invoice_id`))) left join `t_billing`.`v_discount_summaries` `d`\\n on ((`i`.`id` = `t_billing`.`d`.`invoice_id`))) left join `t_billing`.`v_transaction_summaries` `t`\\n on ((`i`.`id` = `t_billing`.`t`.`invoice_id`))) left join `t_billing`.`v_charity_transaction_summaries` `ct`\\n on ((`i`.`id` = `t_billing`.`ct`.`invoice_id`)))\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669033,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669720,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31669949,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31670327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676023,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676484,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31676995,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31680997,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31682812,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683030,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31683604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689091,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31689530,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31690008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31693801,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694111,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694336,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31694786,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31695381,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31696645,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697098,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31697597,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698575,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31698884,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699332,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699556,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31699780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31700148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31701686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702137,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31702633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31703800,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704109,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704333,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704557,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31704781,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705005,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31705373,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31707713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31708209,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709606,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31709904,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710543,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31710756,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31711102,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714431,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31714894,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31716954,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717260,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717702,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31717923,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718144,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31718506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720374,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31720819,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31721306,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722682,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31722986,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723424,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723643,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31723862,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31724220,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31726594,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31727516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729242,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729546,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729765,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31729984,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730203,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730422,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31730780,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31732856,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31733778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735303,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735604,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31735820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736036,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736252,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736468,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31736820,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31738988,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31739460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31740751,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741478,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31741906,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31742254,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31744619,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745050,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31745516,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31747215,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748087,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748732,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31748947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31749297,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751321,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31751754,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31752223,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31753706,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754009,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754445,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754663,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31754881,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31755237,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756426,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31756865,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31757343,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758577,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31758803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759029,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759255,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759481,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31759853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765231,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31765686,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31766188,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31769947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770249,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770683,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31770900,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771117,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31771471,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31773736,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31774211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775553,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31775852,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776066,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776494,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31776708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31777056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31780569,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781000,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31781466,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31783937,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784233,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784444,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784655,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31784866,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785077,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31785419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791245,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31791670,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31792127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796119,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796417,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796630,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31796843,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797056,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797269,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31797615,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31800815,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801244,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31801707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1663742244,\"file\":\"mysql-bin-changelog.000033\",\"pos\":31803966,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3056814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057043,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057272,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057501,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3057730,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions_1628688127\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3058108,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions_1628688127 BEFORE UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3063804,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions_1628688127 AFTER UPDATE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064265,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions_1628688127 BEFORE INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3064776,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions_1628688127 AFTER INSERT ON `transactions_1628688127`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3068778,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions_1628688127 BEFORE DELETE ON `transactions_1628688127`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions_1628688127', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069081,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069517,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069735,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3069953,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3070309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transactions BEFORE UPDATE ON `transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3075796,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transactions AFTER UPDATE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`final`, 0) <> COALESCE(OLD.`final`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076235,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transactions BEFORE INSERT ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3076713,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transactions AFTER INSERT ON `transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080506,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transactions BEFORE DELETE ON `transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'final', record_id = OLD.id, value = OLD.`final`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3080816,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081041,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081266,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081491,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3081716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3082086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_credits BEFORE UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_credits AFTER UPDATE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3083803,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_credits BEFORE INSERT ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3084302,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_credits AFTER INSERT ON `transaction_credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085280,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_credits BEFORE DELETE ON `transaction_credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_credits', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085589,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3085813,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086037,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086261,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_claims\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3086853,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_claims BEFORE UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088391,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_claims AFTER UPDATE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`platform`, 0) <> COALESCE(OLD.`platform`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`claimed_date`, 0) <> COALESCE(OLD.`claimed_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3088842,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_claims BEFORE INSERT ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3089338,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_claims AFTER INSERT ON `transaction_claims`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090505,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_claims BEFORE DELETE ON `transaction_claims`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'platform', record_id = OLD.id, value = OLD.`platform`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_claims', field_name = 'claimed_date', record_id = OLD.id, value = OLD.`claimed_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3090814,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091038,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091486,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3091710,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_transaction_audits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3092078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_transaction_audits BEFORE UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3093967,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_transaction_audits AFTER UPDATE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`internal_comments`, 0) <> COALESCE(OLD.`internal_comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094418,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_transaction_audits BEFORE INSERT ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3094914,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_transaction_audits AFTER INSERT ON `transaction_audits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096311,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_transaction_audits BEFORE DELETE ON `transaction_audits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'transaction_audits', field_name = 'internal_comments', record_id = OLD.id, value = OLD.`internal_comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096609,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3096822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097035,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097248,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097461,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refunds\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3097807,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refunds BEFORE UPDATE ON `refunds`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3100707,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refunds AFTER UPDATE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reason`, 0) <> COALESCE(OLD.`reason`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`priority`, 0) <> COALESCE(OLD.`priority`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101136,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refunds BEFORE INSERT ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3101599,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refunds AFTER INSERT ON `refunds`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103659,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refunds BEFORE DELETE ON `refunds`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'reason', record_id = OLD.id, value = OLD.`reason`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refunds', field_name = 'priority', record_id = OLD.id, value = OLD.`priority`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3103965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104186,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104407,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104628,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3104849,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_refund_protects\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3105211,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_refund_protects BEFORE UPDATE ON `refund_protects`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107079,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_refund_protects AFTER UPDATE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`reference`, 0) <> COALESCE(OLD.`reference`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`insurance_end_date`, 0) <> COALESCE(OLD.`insurance_end_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3107524,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_refund_protects BEFORE INSERT ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3108011,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_refund_protects AFTER INSERT ON `refund_protects`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109387,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_refund_protects BEFORE DELETE ON `refund_protects`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'reference', record_id = OLD.id, value = OLD.`reference`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'refund_protects', field_name = 'insurance_end_date', record_id = OLD.id, value = OLD.`insurance_end_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109691,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3109910,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110129,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110348,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110567,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_payment_plans\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3110925,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_payment_plans BEFORE UPDATE ON `payment_plans`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113299,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_payment_plans AFTER UPDATE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3113740,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_payment_plans BEFORE INSERT ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3114221,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_payment_plans AFTER INSERT ON `payment_plans`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3115947,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_payment_plans BEFORE DELETE ON `payment_plans`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'payment_plans', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116251,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116470,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116689,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3116908,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117127,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_other_charges\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3117485,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_other_charges BEFORE UPDATE ON `other_charges`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3119561,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_other_charges AFTER UPDATE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`name`, 0) <> COALESCE(OLD.`name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120002,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_other_charges BEFORE INSERT ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3120483,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_other_charges AFTER INSERT ON `other_charges`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122008,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_other_charges BEFORE DELETE ON `other_charges`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'name', record_id = OLD.id, value = OLD.`name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'other_charges', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122309,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122741,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3122957,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123173,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_inclusions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3123525,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_inclusions BEFORE UPDATE ON `inclusions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125258,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_inclusions AFTER UPDATE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`net`, 0) <> COALESCE(OLD.`net`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`markup`, 0) <> COALESCE(OLD.`markup`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tax`, 0) <> COALESCE(OLD.`tax`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3125693,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_inclusions BEFORE INSERT ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3126165,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_inclusions AFTER INSERT ON `inclusions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3127456,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_inclusions BEFORE DELETE ON `inclusions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'net', record_id = OLD.id, value = OLD.`net`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'markup', record_id = OLD.id, value = OLD.`markup`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'inclusions', field_name = 'tax', record_id = OLD.id, value = OLD.`tax`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3138975,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139189,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139403,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139617,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_expenses\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3139965,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_expenses BEFORE UPDATE ON `expenses`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142330,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_expenses AFTER UPDATE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`inclusion_id`, 0) <> COALESCE(OLD.`inclusion_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date`, 0) <> COALESCE(OLD.`date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_number`, 0) <> COALESCE(OLD.`invoice_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3142761,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_expenses BEFORE INSERT ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3143227,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_expenses AFTER INSERT ON `expenses`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3144926,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_expenses BEFORE DELETE ON `expenses`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'inclusion_id', record_id = OLD.id, value = OLD.`inclusion_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'date', record_id = OLD.id, value = OLD.`date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'invoice_number', record_id = OLD.id, value = OLD.`invoice_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'expenses', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145226,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145441,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145656,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3145871,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_discounts\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3146436,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_discounts BEFORE UPDATE ON `discounts`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_discounts AFTER UPDATE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`item`, 0) <> COALESCE(OLD.`item`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comments`, 0) <> COALESCE(OLD.`comments`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3148893,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_discounts BEFORE INSERT ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214177,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3149362,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_discounts AFTER INSERT ON `discounts`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3150845,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_discounts BEFORE DELETE ON `discounts`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'item', record_id = OLD.id, value = OLD.`item`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'discounts', field_name = 'comments', record_id = OLD.id, value = OLD.`comments`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151148,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151366,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151584,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3151802,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152020,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credit_types\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3152376,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credit_types BEFORE UPDATE ON `credit_types`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3153565,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credit_types AFTER UPDATE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_id`, 0) <> COALESCE(OLD.`credit_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154004,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credit_types BEFORE INSERT ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3154482,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credit_types AFTER INSERT ON `credit_types`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155405,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credit_types BEFORE DELETE ON `credit_types`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'credit_id', record_id = OLD.id, value = OLD.`credit_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credit_types', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155716,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3155942,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156168,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156394,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156620,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_charity_transactions\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3156992,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_charity_transactions BEFORE UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162370,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_charity_transactions AFTER UPDATE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_token`, 0) <> COALESCE(OLD.`transaction_token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`method`, 0) <> COALESCE(OLD.`method`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`excess_amount`, 0) <> COALESCE(OLD.`excess_amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`processor`, 0) <> COALESCE(OLD.`processor`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`comment`, 0) <> COALESCE(OLD.`comment`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_date`, 0) <> COALESCE(OLD.`transaction_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`card_id`, 0) <> COALESCE(OLD.`card_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_claim_id`, 0) <> COALESCE(OLD.`transaction_claim_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`collector_staff_id`, 0) <> COALESCE(OLD.`collector_staff_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`receipt_sent_at`, 0) <> COALESCE(OLD.`receipt_sent_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`checked_at`, 0) <> COALESCE(OLD.`checked_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3162825,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_charity_transactions BEFORE INSERT ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3163327,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_charity_transactions AFTER INSERT ON `charity_transactions`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167086,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_charity_transactions BEFORE DELETE ON `charity_transactions`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_token', record_id = OLD.id, value = OLD.`transaction_token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'method', record_id = OLD.id, value = OLD.`method`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'excess_amount', record_id = OLD.id, value = OLD.`excess_amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'processor', record_id = OLD.id, value = OLD.`processor`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'comment', record_id = OLD.id, value = OLD.`comment`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_date', record_id = OLD.id, value = OLD.`transaction_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'card_id', record_id = OLD.id, value = OLD.`card_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'transaction_claim_id', record_id = OLD.id, value = OLD.`transaction_claim_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'collector_staff_id', record_id = OLD.id, value = OLD.`collector_staff_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'receipt_sent_at', record_id = OLD.id, value = OLD.`receipt_sent_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'charity_transactions', field_name = 'checked_at', record_id = OLD.id, value = OLD.`checked_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167388,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3167822,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168039,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168256,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_chargebacks\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3168610,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_chargebacks BEFORE UPDATE ON `chargebacks`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170438,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_chargebacks AFTER UPDATE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`transaction_id`, 0) <> COALESCE(OLD.`transaction_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`date_occurred`, 0) <> COALESCE(OLD.`date_occurred`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`file_number`, 0) <> COALESCE(OLD.`file_number`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3170875,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_chargebacks BEFORE INSERT ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3171350,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_chargebacks AFTER INSERT ON `chargebacks`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172692,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_chargebacks BEFORE DELETE ON `chargebacks`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'transaction_id', record_id = OLD.id, value = OLD.`transaction_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'date_occurred', record_id = OLD.id, value = OLD.`date_occurred`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'chargebacks', field_name = 'file_number', record_id = OLD.id, value = OLD.`file_number`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3172991,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173205,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173419,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173633,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3173847,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_invoices\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3174195,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_invoices BEFORE UPDATE ON `invoices`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3177708,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_invoices AFTER UPDATE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`tid`, 0) <> COALESCE(OLD.`tid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expires_at`, 0) <> COALESCE(OLD.`expires_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`department_id`, 0) <> COALESCE(OLD.`department_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit`, 0) <> COALESCE(OLD.`deposit`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`use_excess`, 0) <> COALESCE(OLD.`use_excess`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_public`, 0) <> COALESCE(OLD.`is_public`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`deposit_paid_at`, 0) <> COALESCE(OLD.`deposit_paid_at`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178139,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_invoices BEFORE INSERT ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3178605,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_invoices AFTER INSERT ON `invoices`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3181076,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_invoices BEFORE DELETE ON `invoices`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'tid', record_id = OLD.id, value = OLD.`tid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'expires_at', record_id = OLD.id, value = OLD.`expires_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'department_id', record_id = OLD.id, value = OLD.`department_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit', record_id = OLD.id, value = OLD.`deposit`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'use_excess', record_id = OLD.id, value = OLD.`use_excess`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'is_public', record_id = OLD.id, value = OLD.`is_public`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'invoices', field_name = 'deposit_paid_at', record_id = OLD.id, value = OLD.`deposit_paid_at`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184078,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184289,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184500,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184711,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3184922,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_cards\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3185264,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_cards BEFORE UPDATE ON `cards`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191090,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_cards AFTER UPDATE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_gateway`, 0) <> COALESCE(OLD.`payment_gateway`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`provider`, 0) <> COALESCE(OLD.`provider`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`status`, 0) <> COALESCE(OLD.`status`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`token`, 0) <> COALESCE(OLD.`token`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`customerId`, 0) <> COALESCE(OLD.`customerId`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`holder_name`, 0) <> COALESCE(OLD.`holder_name`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_month`, 0) <> COALESCE(OLD.`expiry_month`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_year`, 0) <> COALESCE(OLD.`expiry_year`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan_suffix`, 0) <> COALESCE(OLD.`pan_suffix`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`legal_declaration_id`, 0) <> COALESCE(OLD.`legal_declaration_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`visible`, 0) <> COALESCE(OLD.`visible`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`archived`, 0) <> COALESCE(OLD.`archived`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`payment_plan_nominated`, 0) <> COALESCE(OLD.`payment_plan_nominated`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`pan`, 0) <> COALESCE(OLD.`pan`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`iv`, 0) <> COALESCE(OLD.`iv`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191515,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_cards BEFORE INSERT ON `cards`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3191972,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_cards AFTER INSERT ON `cards`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3195964,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_cards BEFORE DELETE ON `cards`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_gateway', record_id = OLD.id, value = OLD.`payment_gateway`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'provider', record_id = OLD.id, value = OLD.`provider`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'status', record_id = OLD.id, value = OLD.`status`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'token', record_id = OLD.id, value = OLD.`token`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'customerId', record_id = OLD.id, value = OLD.`customerId`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'holder_name', record_id = OLD.id, value = OLD.`holder_name`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_month', record_id = OLD.id, value = OLD.`expiry_month`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'expiry_year', record_id = OLD.id, value = OLD.`expiry_year`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan_suffix', record_id = OLD.id, value = OLD.`pan_suffix`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'legal_declaration_id', record_id = OLD.id, value = OLD.`legal_declaration_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'visible', record_id = OLD.id, value = OLD.`visible`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'archived', record_id = OLD.id, value = OLD.`archived`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'payment_plan_nominated', record_id = OLD.id, value = OLD.`payment_plan_nominated`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'pan', record_id = OLD.id, value = OLD.`pan`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'cards', field_name = 'iv', record_id = OLD.id, value = OLD.`iv`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196262,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"-- get rid of the existing triggers and replace them with new, up-to-date ones\\n DROP TRIGGER IF EXISTS but_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196475,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS aut_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196688,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bit_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3196901,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS ait_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197114,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"DROP TRIGGER IF EXISTS bdt_log_t_billing_credits\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3197460,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER but_log_t_billing_credits BEFORE UPDATE ON `credits`\\n FOR EACH ROW\\n SET NEW._lma = UNIX_TIMESTAMP(NOW());\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3200660,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER aut_log_t_billing_credits AFTER UPDATE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n IF (COALESCE(NEW.`id`, 0) <> COALESCE(OLD.`id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`invoice_id`, 0) <> COALESCE(OLD.`invoice_id`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`cid`, 0) <> COALESCE(OLD.`cid`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`amount`, 0) <> COALESCE(OLD.`amount`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`currency`, 0) <> COALESCE(OLD.`currency`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`description`, 0) <> COALESCE(OLD.`description`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`credit_date`, 0) <> COALESCE(OLD.`credit_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`expiry_date`, 0) <> COALESCE(OLD.`expiry_date`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`type`, 0) <> COALESCE(OLD.`type`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n IF (COALESCE(NEW.`is_claimed`, 0) <> COALESCE(OLD.`is_claimed`, 0)) THEN\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = NEW._lma, staff_id = NEW._lmb, action = 2;\\n END IF;\\n \\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201089,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bit_log_t_billing_credits BEFORE INSERT ON `credits`\\n FOR EACH ROW\\n BEGIN\\n IF (NEW._ca IS NULL) THEN\\n SET NEW._ca = UNIX_TIMESTAMP(NOW());\\n END IF;\\n END\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3201552,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER ait_log_t_billing_credits AFTER INSERT ON `credits`\\n FOR EACH ROW\\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = NEW.id, value = NULL, time = NEW._ca, staff_id = NEW._cb, action = 1;\",\"tableChanges\":[]}\n{\"source\":{\"server\":\"t_billing\"},\"position\":{\"transaction_id\":null,\"ts_sec\":1664214178,\"file\":\"mysql-bin-changelog.000036\",\"pos\":3203811,\"server_id\":239712215},\"databaseName\":\"t_billing\",\"ddl\":\"CREATE DEFINER=`okasdwqe_107`@`%` TRIGGER bdt_log_t_billing_credits BEFORE DELETE ON `credits`\\n FOR EACH ROW\\n BEGIN\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'id', record_id = OLD.id, value = OLD.`id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'invoice_id', record_id = OLD.id, value = OLD.`invoice_id`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'cid', record_id = OLD.id, value = OLD.`cid`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'amount', record_id = OLD.id, value = OLD.`amount`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'currency', record_id = OLD.id, value = OLD.`currency`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'description', record_id = OLD.id, value = OLD.`description`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'credit_date', record_id = OLD.id, value = OLD.`credit_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'expiry_date', record_id = OLD.id, value = OLD.`expiry_date`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'type', record_id = OLD.id, value = OLD.`type`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n INSERT INTO `activity_log` SET table_name = 'credits', field_name = 'is_claimed', record_id = OLD.id, value = OLD.`is_claimed`, time = UNIX_TIMESTAMP(), staff_id = OLD._lmb, action = 4;\\n \\n END\",\"tableChanges\":[]}\n","mysql_cdc_offset":{"{\"schema\":null,\"payload\":[\"t_billing\",{\"server\":\"t_billing\"}]}":"{\"transaction_id\":null,\"ts_sec\":1664306516,\"file\":\"mysql-bin-changelog.000036\",\"pos\":21459616,\"row\":1,\"server_id\":239712215,\"event\":2}"}}},"streams":[{"stream_name":"activity_log","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"cards","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"chargebacks","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"charity_transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"credit_types","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"credits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"discounts","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses_partners","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"expenses_suppliers","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusion_rooms","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_accommodations","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_charities","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_experiences","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_flights","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_insurances","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_other_charges","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_tours","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"inclusions_transfers","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"invoices","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"other_charges","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"payment_plans","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"payment_plans_analysis","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refund_protects","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refunds","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"refunds_transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_audits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_claims","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transaction_credits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transactions","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"transactions_1628688127","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_bad_chargebacks","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_bad_transaction_audits","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_charity_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_discount_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_inclusion_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_invoice_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_payment_plan_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_total_flight_paid","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_audit_summary","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_currencies_used","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_invoice_joined","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_methods_used","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transaction_summaries","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_transactions_invalid_currencies","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_trip_sales_summary","stream_namespace":"t_billing","cursor_field":[]},{"stream_name":"v_trip_transactions_detail","stream_namespace":"t_billing","cursor_field":[]}]}}]],outputCatalog=io.airbyte.protocol.models.ConfiguredAirbyteCatalog@625c6bc8[streams=[io.airbyte.protocol.models.ConfiguredAirbyteStream@7f06b7b5[stream=io.airbyte.protocol.models.AirbyteStream@275a1fc9[name=activity_log,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"time":{"type":"number","airbyte_type":"integer"},"value":{"type":"string"},"action":{"type":"number","airbyte_type":"integer"},"staff_id":{"type":"number","airbyte_type":"integer"},"record_id":{"type":"number","airbyte_type":"integer"},"field_name":{"type":"string"},"table_name":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@62e0a478[stream=io.airbyte.protocol.models.AirbyteStream@636391c7[name=cards,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"iv":{"type":"string"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"cid":{"type":"number","airbyte_type":"integer"},"pan":{"type":"string"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"type":{"type":"string"},"token":{"type":"string"},"status":{"type":"number","airbyte_type":"integer"},"visible":{"type":"number","airbyte_type":"integer"},"archived":{"type":"boolean"},"currency":{"type":"string"},"provider":{"type":"string"},"customerId":{"type":"string"},"pan_suffix":{"type":"string"},"expiry_year":{"type":"number","airbyte_type":"integer"},"holder_name":{"type":"string"},"expiry_month":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"payment_gateway":{"type":"string"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"},"legal_declaration_id":{"type":"number","airbyte_type":"integer"},"payment_plan_nominated":{"type":"number","airbyte_type":"integer"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@29923901[stream=io.airbyte.protocol.models.AirbyteStream@5ec1cfad[name=chargebacks,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"status":{"type":"string"},"file_number":{"type":"string"},"date_occurred":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@39e57369[stream=io.airbyte.protocol.models.AirbyteStream@4677303b[name=charity_transactions,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"method":{"type":"string"},"card_id":{"type":"number","airbyte_type":"integer"},"comment":{"type":"string"},"currency":{"type":"string"},"processor":{"type":"string"},"checked_at":{"type":"number","airbyte_type":"integer"},"invoice_id":{"type":"number","airbyte_type":"integer"},"excess_amount":{"type":"number"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"receipt_sent_at":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"transaction_date":{"type":"number","airbyte_type":"integer"},"transaction_token":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"},"collector_staff_id":{"type":"number","airbyte_type":"integer"},"transaction_claim_id":{"type":"number","airbyte_type":"integer"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@7e9553c5[stream=io.airbyte.protocol.models.AirbyteStream@2ef9571d[name=credit_types,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"type":{"type":"string"},"credit_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@3c951790[stream=io.airbyte.protocol.models.AirbyteStream@439c0ed1[name=credits,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"cid":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"type":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"is_claimed":{"type":"boolean"},"credit_date":{"type":"number","airbyte_type":"integer"},"description":{"type":"string"},"expiry_date":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@17c3661c[stream=io.airbyte.protocol.models.AirbyteStream@73668a46[name=discounts,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"item":{"type":"string"},"type":{"type":"string"},"amount":{"type":"number"},"comments":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@67db3a2d[stream=io.airbyte.protocol.models.AirbyteStream@44124a81[name=expenses,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"date":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"currency":{"type":"string"},"description":{"type":"string"},"inclusion_id":{"type":"number","airbyte_type":"integer"},"invoice_number":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@486d2799[stream=io.airbyte.protocol.models.AirbyteStream@f1ea068[name=expenses_partners,jsonSchema={"type":"object","properties":{"expense_id":{"type":"number","airbyte_type":"integer"},"partner_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[expense_id], [partner_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[expense_id], [partner_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@312af9f4[stream=io.airbyte.protocol.models.AirbyteStream@673afb12[name=expenses_suppliers,jsonSchema={"type":"object","properties":{"expense_id":{"type":"number","airbyte_type":"integer"},"supplier_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[expense_id], [supplier_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[expense_id], [supplier_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@464a4983[stream=io.airbyte.protocol.models.AirbyteStream@3cadbcc2[name=inclusion_rooms,jsonSchema={"type":"object","properties":{"room_id":{"type":"number","airbyte_type":"integer"},"inclusion_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@5a2e17fa[stream=io.airbyte.protocol.models.AirbyteStream@6a7c85c6[name=inclusions,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"net":{"type":"number"},"tax":{"type":"number"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"markup":{"type":"number"},"invoice_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@7e6edf5b[stream=io.airbyte.protocol.models.AirbyteStream@2ff437f8[name=inclusions_accommodations,jsonSchema={"type":"object","properties":{"inclusion_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"accommodation_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[inclusion_id], [accommodation_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[inclusion_id], [accommodation_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@5cf743b[stream=io.airbyte.protocol.models.AirbyteStream@b1393f1[name=inclusions_charities,jsonSchema={"type":"object","properties":{"charity_id":{"type":"number","airbyte_type":"integer"},"inclusion_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[inclusion_id], [charity_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[inclusion_id], [charity_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@38f11cf[stream=io.airbyte.protocol.models.AirbyteStream@dcabdb1[name=inclusions_experiences,jsonSchema={"type":"object","properties":{"inclusion_id":{"type":"number","airbyte_type":"integer"},"experience_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[inclusion_id], [experience_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[inclusion_id], [experience_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@73da6e9f[stream=io.airbyte.protocol.models.AirbyteStream@6441e70e[name=inclusions_flights,jsonSchema={"type":"object","properties":{"flight_id":{"type":"number","airbyte_type":"integer"},"inclusion_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[flight_id], [inclusion_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[flight_id], [inclusion_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@1fbb9320[stream=io.airbyte.protocol.models.AirbyteStream@47448253[name=inclusions_insurances,jsonSchema={"type":"object","properties":{"inclusion_id":{"type":"number","airbyte_type":"integer"},"insurance_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[inclusion_id], [insurance_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[inclusion_id], [insurance_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@67caa2b2[stream=io.airbyte.protocol.models.AirbyteStream@c5850d2[name=inclusions_other_charges,jsonSchema={"type":"object","properties":{"inclusion_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"other_charge_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[inclusion_id], [other_charge_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[inclusion_id], [other_charge_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@4fb9e0ea[stream=io.airbyte.protocol.models.AirbyteStream@2c0cb554[name=inclusions_tours,jsonSchema={"type":"object","properties":{"tour_id":{"type":"number","airbyte_type":"integer"},"inclusion_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[inclusion_id], [tour_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[inclusion_id], [tour_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@1e615d55[stream=io.airbyte.protocol.models.AirbyteStream@5071508b[name=inclusions_transfers,jsonSchema={"type":"object","properties":{"transfer_id":{"type":"number","airbyte_type":"integer"},"inclusion_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[inclusion_id], [transfer_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[inclusion_id], [transfer_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@50cf54df[stream=io.airbyte.protocol.models.AirbyteStream@1920ed87[name=invoices,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"tid":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"type":{"type":"string"},"status":{"type":"string"},"deposit":{"type":"number"},"currency":{"type":"string"},"is_public":{"type":"boolean"},"expires_at":{"type":"number","airbyte_type":"integer"},"use_excess":{"type":"boolean"},"department_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"deposit_paid_at":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@d3f9003[stream=io.airbyte.protocol.models.AirbyteStream@57107c27[name=other_charges,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"name":{"type":"string"},"type":{"type":"string"},"comments":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"description":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@7d53b3b6[stream=io.airbyte.protocol.models.AirbyteStream@6301254e[name=payment_plans,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"date":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"method":{"type":"string"},"status":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@12cf1ea5[stream=io.airbyte.protocol.models.AirbyteStream@46eaa99f[name=payment_plans_analysis,jsonSchema={"type":"object","properties":{"tid":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"pp_numbers":{"type":"number","airbyte_type":"integer"},"invoice_type":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@26c47cf7[stream=io.airbyte.protocol.models.AirbyteStream@4c850634[name=refund_protects,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"status":{"type":"number","airbyte_type":"integer"},"reference":{"type":"string"},"transaction_id":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"},"insurance_end_date":{"type":"number","airbyte_type":"integer"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@26d50337[stream=io.airbyte.protocol.models.AirbyteStream@35e0f023[name=refunds,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"method":{"type":"string"},"reason":{"type":"string"},"status":{"type":"string"},"comment":{"type":"string"},"priority":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@30c601ac[stream=io.airbyte.protocol.models.AirbyteStream@54160526[name=refunds_transactions,jsonSchema={"type":"object","properties":{"refund_id":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[refund_id], [transaction_id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[refund_id], [transaction_id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@5a546828[stream=io.airbyte.protocol.models.AirbyteStream@6887eaa9[name=transaction_audits,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"status":{"type":"number","airbyte_type":"integer"},"checked_at":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"internal_comments":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@68cc5d74[stream=io.airbyte.protocol.models.AirbyteStream@c975a7e[name=transaction_claims,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"platform":{"type":"string"},"claimed_date":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@757b66ec[stream=io.airbyte.protocol.models.AirbyteStream@227e0848[name=transaction_credits,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"credit_id":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@2853d68e[stream=io.airbyte.protocol.models.AirbyteStream@1ea13d50[name=transactions,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"final":{"type":"boolean"},"amount":{"type":"number"},"method":{"type":"string"},"card_id":{"type":"number","airbyte_type":"integer"},"comment":{"type":"string"},"deposit":{"type":"boolean"},"currency":{"type":"string"},"processor":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"department_id":{"type":"number","airbyte_type":"integer"},"excess_amount":{"type":"number"},"transaction_id":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"receipt_sent_at":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"transaction_date":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"},"collector_staff_id":{"type":"number","airbyte_type":"integer"},"transaction_claim_id":{"type":"number","airbyte_type":"integer"}}},supportedSyncModes=[full_refresh, incremental],sourceDefinedCursor=true,defaultCursorField=[],sourceDefinedPrimaryKey=[[id]],namespace=t_billing,additionalProperties={}],syncMode=incremental,cursorField=[],destinationSyncMode=append_dedup,primaryKey=[[id]],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@30c3646e[stream=io.airbyte.protocol.models.AirbyteStream@622d0676[name=transactions_1628688127,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"final":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"method":{"type":"string"},"card_id":{"type":"number","airbyte_type":"integer"},"comment":{"type":"string"},"deposit":{"type":"number","airbyte_type":"integer"},"currency":{"type":"string"},"processor":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"department_id":{"type":"number","airbyte_type":"integer"},"excess_amount":{"type":"number"},"transaction_id":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"receipt_sent_at":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"transaction_date":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"},"collector_staff_id":{"type":"number","airbyte_type":"integer"},"transaction_claim_id":{"type":"number","airbyte_type":"integer"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@547c4b1b[stream=io.airbyte.protocol.models.AirbyteStream@43a0a779[name=v_bad_chargebacks,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"status":{"type":"string"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@68eb5b77[stream=io.airbyte.protocol.models.AirbyteStream@62ffeeaa[name=v_bad_transaction_audits,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"status":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@54ed457d[stream=io.airbyte.protocol.models.AirbyteStream@1230abf6[name=v_charity_transaction_summaries,jsonSchema={"type":"object","properties":{"donations":{"type":"number"},"invoice_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@20b26a24[stream=io.airbyte.protocol.models.AirbyteStream@3d255a26[name=v_discount_summaries,jsonSchema={"type":"object","properties":{"discount":{"type":"number"},"invoice_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@35d3652[stream=io.airbyte.protocol.models.AirbyteStream@142552d4[name=v_inclusion_summaries,jsonSchema={"type":"object","properties":{"net":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"markup":{"type":"number"},"invoice_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@2775e93e[stream=io.airbyte.protocol.models.AirbyteStream@3096739c[name=v_invoice_summaries,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"net":{"type":"number"},"tax":{"type":"number"},"tid":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"paid":{"type":"number"},"type":{"type":"string"},"total":{"type":"number"},"markup":{"type":"number"},"status":{"type":"string"},"deposit":{"type":"number"},"currency":{"type":"string"},"discount":{"type":"number"},"donations":{"type":"number"},"is_public":{"type":"boolean"},"expires_at":{"type":"number","airbyte_type":"integer"},"is_expired":{"type":"number","airbyte_type":"integer"},"use_excess":{"type":"boolean"},"outstanding":{"type":"number"},"department_id":{"type":"number","airbyte_type":"integer"},"time_remaining":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"deposit_paid_at":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@5a133c7a[stream=io.airbyte.protocol.models.AirbyteStream@641e761e[name=v_payment_plan_summaries,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"tid":{"type":"number","airbyte_type":"integer"},"date":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"status":{"type":"string"},"currency":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"invoice_type":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@6caa4fba[stream=io.airbyte.protocol.models.AirbyteStream@6f23db20[name=v_total_flight_paid,jsonSchema={"type":"object","properties":{"tid":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"total_flight_paid":{"type":"number"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@2c10da52[stream=io.airbyte.protocol.models.AirbyteStream@3ba9f748[name=v_transaction_audit_summary,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"cid":{"type":"number","airbyte_type":"integer"},"tid":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"final":{"type":"boolean"},"amount":{"type":"number"},"method":{"type":"string"},"card_id":{"type":"number","airbyte_type":"integer"},"comment":{"type":"string"},"deposit":{"type":"boolean"},"audit_id":{"type":"number","airbyte_type":"integer"},"currency":{"type":"string"},"processor":{"type":"string"},"checked_at":{"type":"number","airbyte_type":"integer"},"invoice_id":{"type":"number","airbyte_type":"integer"},"audit_status":{"type":"number","airbyte_type":"integer"},"department_id":{"type":"number","airbyte_type":"integer"},"excess_amount":{"type":"number"},"transaction_id":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"transaction_date":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"},"transaction_claim_id":{"type":"number","airbyte_type":"integer"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@540b818[stream=io.airbyte.protocol.models.AirbyteStream@744b994b[name=v_transaction_currencies_used,jsonSchema={"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@5e230fda[stream=io.airbyte.protocol.models.AirbyteStream@2a44a0e1[name=v_transaction_invoice_joined,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"tid":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"method":{"type":"string"},"currency":{"type":"string"},"department_id":{"type":"number","airbyte_type":"integer"},"transaction_id":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"transaction_date":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@2ac45dc9[stream=io.airbyte.protocol.models.AirbyteStream@2ed181b[name=v_transaction_methods_used,jsonSchema={"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@44f68a43[stream=io.airbyte.protocol.models.AirbyteStream@4bba7994[name=v_transaction_summaries,jsonSchema={"type":"object","properties":{"paid":{"type":"number"},"excess":{"type":"number"},"invoice_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@43985f3f[stream=io.airbyte.protocol.models.AirbyteStream@295faa97[name=v_transactions_invalid_currencies,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"tid":{"type":"number","airbyte_type":"integer"},"amount":{"type":"number"},"method":{"type":"string"},"currency":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"excess_amount":{"type":"number"},"transaction_id":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"_ab_cdc_log_file":{"type":"string"},"invoice_currency":{"type":"string"},"transaction_date":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@598b996d[stream=io.airbyte.protocol.models.AirbyteStream@41e53d11[name=v_trip_sales_summary,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"type":{"type":"string"},"status":{"type":"string"},"first_call":{"type":"boolean"},"sold_by_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_pos":{"type":"number"},"deposit_paid_at":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"sale_register_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}], io.airbyte.protocol.models.ConfiguredAirbyteStream@4085f3b5[stream=io.airbyte.protocol.models.AirbyteStream@145ae220[name=v_trip_transactions_detail,jsonSchema={"type":"object","properties":{"id":{"type":"number","airbyte_type":"integer"},"_ca":{"type":"number","airbyte_type":"integer"},"_cb":{"type":"number","airbyte_type":"integer"},"tid":{"type":"number","airbyte_type":"integer"},"_lma":{"type":"number","airbyte_type":"integer"},"_lmb":{"type":"number","airbyte_type":"integer"},"final":{"type":"boolean"},"amount":{"type":"number"},"method":{"type":"string"},"card_id":{"type":"number","airbyte_type":"integer"},"comment":{"type":"string"},"deposit":{"type":"boolean"},"sold_by":{"type":"string"},"currency":{"type":"string"},"division":{"type":"string"},"last_name":{"type":"string"},"processor":{"type":"string"},"trip_code":{"type":"string"},"first_name":{"type":"string"},"invoice_id":{"type":"number","airbyte_type":"integer"},"sold_by_id":{"type":"number","airbyte_type":"integer"},"destination":{"type":"string"},"trip_status":{"type":"string"},"department_id":{"type":"number","airbyte_type":"integer"},"excess_amount":{"type":"number"},"transaction_id":{"type":"string"},"_ab_cdc_log_pos":{"type":"number"},"deposit_paid_at":{"type":"number","airbyte_type":"integer"},"receipt_sent_at":{"type":"number","airbyte_type":"integer"},"_ab_cdc_log_file":{"type":"string"},"transaction_date":{"type":"number","airbyte_type":"integer"},"sales_register_id":{"type":"number","airbyte_type":"integer"},"_ab_cdc_deleted_at":{"type":"string"},"_ab_cdc_updated_at":{"type":"string"},"collector_staff_id":{"type":"number","airbyte_type":"integer"},"transaction_claim_id":{"type":"number","airbyte_type":"integer"},"deposit_paid_at_formatted":{"type":"string"},"transaction_date_formatted":{"type":"string"}}},supportedSyncModes=[full_refresh],sourceDefinedCursor=,defaultCursorField=[],sourceDefinedPrimaryKey=[],namespace=t_billing,additionalProperties={}],syncMode=full_refresh,cursorField=[],destinationSyncMode=overwrite,primaryKey=[],additionalProperties={}]],additionalProperties={}],failures=[]] 2022-09-27 19:30:06 INFO i.a.w.t.TemporalUtils(withBackgroundHeartbeat):279 - Stopping temporal heartbeating...