{
  "query": "CREATE TABLE `promo_banners` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`title` varchar(255) NOT NULL,\n\t`subtitle` text,\n\t`description` text,\n\t`imageUrl` text,\n\t`linkUrl` text,\n\t`linkText` varchar(128),\n\t`bgGradientFrom` varchar(32) DEFAULT '#f59e0b',\n\t`bgGradientTo` varchar(32) DEFAULT '#d97706',\n\t`textColor` varchar(32) DEFAULT '#ffffff',\n\t`sortOrder` int NOT NULL DEFAULT 0,\n\t`isActive` boolean NOT NULL DEFAULT true,\n\t`startAt` timestamp,\n\t`endAt` timestamp,\n\t`createdByAdminId` int NOT NULL,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\t`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,\n\tCONSTRAINT `promo_banners_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `user_favorites` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`userId` int NOT NULL,\n\t`gameId` int NOT NULL,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `user_favorites_id` PRIMARY KEY(`id`),\n\tCONSTRAINT `idx_user_favorites_unique` UNIQUE(`userId`,`gameId`)\n);\nCREATE INDEX `idx_promo_banners_isActive` ON `promo_banners` (`isActive`);\nCREATE INDEX `idx_promo_banners_sortOrder` ON `promo_banners` (`sortOrder`);\nCREATE INDEX `idx_user_favorites_userId` ON `user_favorites` (`userId`);\nCREATE INDEX `idx_user_favorites_gameId` ON `user_favorites` (`gameId`);",
  "command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway04.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 3sE2opaakiHhpCk.root --database 38mmEpDjJeLLr6ocaGW5p5 --execute CREATE TABLE `promo_banners` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`title` varchar(255) NOT NULL,\n\t`subtitle` text,\n\t`description` text,\n\t`imageUrl` text,\n\t`linkUrl` text,\n\t`linkText` varchar(128),\n\t`bgGradientFrom` varchar(32) DEFAULT '#f59e0b',\n\t`bgGradientTo` varchar(32) DEFAULT '#d97706',\n\t`textColor` varchar(32) DEFAULT '#ffffff',\n\t`sortOrder` int NOT NULL DEFAULT 0,\n\t`isActive` boolean NOT NULL DEFAULT true,\n\t`startAt` timestamp,\n\t`endAt` timestamp,\n\t`createdByAdminId` int NOT NULL,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\t`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,\n\tCONSTRAINT `promo_banners_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `user_favorites` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`userId` int NOT NULL,\n\t`gameId` int NOT NULL,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `user_favorites_id` PRIMARY KEY(`id`),\n\tCONSTRAINT `idx_user_favorites_unique` UNIQUE(`userId`,`gameId`)\n);\nCREATE INDEX `idx_promo_banners_isActive` ON `promo_banners` (`isActive`);\nCREATE INDEX `idx_promo_banners_sortOrder` ON `promo_banners` (`sortOrder`);\nCREATE INDEX `idx_user_favorites_userId` ON `user_favorites` (`userId`);\nCREATE INDEX `idx_user_favorites_gameId` ON `user_favorites` (`gameId`);",
  "rows": [],
  "messages": [],
  "stdout": "",
  "stderr": "",
  "execution_time_ms": 4768
}