CREATE TABLE `bridge_orders` (
	`id` int AUTO_INCREMENT NOT NULL,
	`txHash` varchar(128) NOT NULL,
	`walletAddress` varchar(64) NOT NULL,
	`fromChainId` int NOT NULL,
	`fromToken` varchar(32) NOT NULL,
	`fromAmount` decimal(30,6) NOT NULL,
	`toChainId` int NOT NULL,
	`toToken` varchar(32) NOT NULL,
	`toAmount` decimal(30,6) NOT NULL,
	`status` enum('pending','completed','failed') NOT NULL DEFAULT 'completed',
	`createdAt` timestamp NOT NULL DEFAULT (now()),
	CONSTRAINT `bridge_orders_id` PRIMARY KEY(`id`),
	CONSTRAINT `bridge_orders_txHash_unique` UNIQUE(`txHash`)
);
