CREATE TABLE `listener_state` ( `id` varchar(32) NOT NULL, `lastBlock` bigint NOT NULL DEFAULT 0, `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP, CONSTRAINT `listener_state_id` PRIMARY KEY(`id`) ); --> statement-breakpoint CREATE TABLE `transaction_logs` ( `id` int AUTO_INCREMENT NOT NULL, `txHash` varchar(128) NOT NULL, `chainType` varchar(16) NOT NULL, `fromAddress` varchar(64) NOT NULL, `toAddress` varchar(64) NOT NULL, `amount` decimal(30,6) NOT NULL, `blockNumber` bigint, `status` int NOT NULL DEFAULT 0, `orderNo` varchar(128), `createdAt` timestamp NOT NULL DEFAULT (now()), CONSTRAINT `transaction_logs_id` PRIMARY KEY(`id`), CONSTRAINT `transaction_logs_txHash_unique` UNIQUE(`txHash`) );