{
  "query": "CREATE TABLE `event_participation` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`eventId` int NOT NULL,\n\t`userId` int NOT NULL,\n\t`score` decimal(15,2) DEFAULT '0.00',\n\t`rewardClaimed` boolean NOT NULL DEFAULT false,\n\t`claimedAt` timestamp,\n\t`joinedAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `event_participation_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `multiplier_boosts` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`userId` int NOT NULL,\n\t`multiplier` decimal(3,2) NOT NULL,\n\t`reason` enum('event','achievement','vip_tier','promotional','referral') NOT NULL,\n\t`startAt` timestamp NOT NULL,\n\t`endAt` timestamp NOT NULL,\n\t`isActive` boolean NOT NULL DEFAULT true,\n\t`appliedGames` json,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `multiplier_boosts_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `seasonal_events` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`name` varchar(255) NOT NULL,\n\t`description` text,\n\t`type` enum('tournament','promotion','special_game','bonus_multiplier') NOT NULL,\n\t`status` enum('upcoming','active','completed') NOT NULL DEFAULT 'upcoming',\n\t`startAt` timestamp NOT NULL,\n\t`endAt` timestamp NOT NULL,\n\t`bannerUrl` text,\n\t`rewardType` enum('gc','sc','multiplier','exclusive_access') NOT NULL,\n\t`rewardAmount` int DEFAULT 0,\n\t`participantCount` int DEFAULT 0,\n\t`maxParticipants` int,\n\t`metadata` json,\n\t`createdBy` 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 `seasonal_events_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `social_stream` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`userId` int NOT NULL,\n\t`activityType` enum('win','achievement_unlocked','tournament_joined','vip_tier_upgrade','milestone_reached','friend_added') NOT NULL,\n\t`title` varchar(255) NOT NULL,\n\t`description` text,\n\t`metadata` json,\n\t`visibility` enum('public','friends_only','private') NOT NULL DEFAULT 'public',\n\t`likeCount` int NOT NULL DEFAULT 0,\n\t`commentCount` int NOT NULL DEFAULT 0,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `social_stream_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `stream_interactions` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`streamEntryId` int NOT NULL,\n\t`userId` int NOT NULL,\n\t`interactionType` enum('like','comment') NOT NULL,\n\t`content` text,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `stream_interactions_id` PRIMARY KEY(`id`)\n);\nCREATE INDEX `idx_event_participation_eventId` ON `event_participation` (`eventId`);\nCREATE INDEX `idx_event_participation_userId` ON `event_participation` (`userId`);\nCREATE INDEX `idx_multiplier_userId` ON `multiplier_boosts` (`userId`);\nCREATE INDEX `idx_multiplier_isActive` ON `multiplier_boosts` (`isActive`);\nCREATE INDEX `idx_multiplier_endAt` ON `multiplier_boosts` (`endAt`);\nCREATE INDEX `idx_event_status` ON `seasonal_events` (`status`);\nCREATE INDEX `idx_event_startAt` ON `seasonal_events` (`startAt`);\nCREATE INDEX `idx_social_stream_userId` ON `social_stream` (`userId`);\nCREATE INDEX `idx_social_stream_activityType` ON `social_stream` (`activityType`);\nCREATE INDEX `idx_social_stream_createdAt` ON `social_stream` (`createdAt`);\nCREATE INDEX `idx_stream_interactions_streamEntryId` ON `stream_interactions` (`streamEntryId`);\nCREATE INDEX `idx_stream_interactions_userId` ON `stream_interactions` (`userId`);",
  "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 `event_participation` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`eventId` int NOT NULL,\n\t`userId` int NOT NULL,\n\t`score` decimal(15,2) DEFAULT '0.00',\n\t`rewardClaimed` boolean NOT NULL DEFAULT false,\n\t`claimedAt` timestamp,\n\t`joinedAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `event_participation_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `multiplier_boosts` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`userId` int NOT NULL,\n\t`multiplier` decimal(3,2) NOT NULL,\n\t`reason` enum('event','achievement','vip_tier','promotional','referral') NOT NULL,\n\t`startAt` timestamp NOT NULL,\n\t`endAt` timestamp NOT NULL,\n\t`isActive` boolean NOT NULL DEFAULT true,\n\t`appliedGames` json,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `multiplier_boosts_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `seasonal_events` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`name` varchar(255) NOT NULL,\n\t`description` text,\n\t`type` enum('tournament','promotion','special_game','bonus_multiplier') NOT NULL,\n\t`status` enum('upcoming','active','completed') NOT NULL DEFAULT 'upcoming',\n\t`startAt` timestamp NOT NULL,\n\t`endAt` timestamp NOT NULL,\n\t`bannerUrl` text,\n\t`rewardType` enum('gc','sc','multiplier','exclusive_access') NOT NULL,\n\t`rewardAmount` int DEFAULT 0,\n\t`participantCount` int DEFAULT 0,\n\t`maxParticipants` int,\n\t`metadata` json,\n\t`createdBy` 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 `seasonal_events_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `social_stream` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`userId` int NOT NULL,\n\t`activityType` enum('win','achievement_unlocked','tournament_joined','vip_tier_upgrade','milestone_reached','friend_added') NOT NULL,\n\t`title` varchar(255) NOT NULL,\n\t`description` text,\n\t`metadata` json,\n\t`visibility` enum('public','friends_only','private') NOT NULL DEFAULT 'public',\n\t`likeCount` int NOT NULL DEFAULT 0,\n\t`commentCount` int NOT NULL DEFAULT 0,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `social_stream_id` PRIMARY KEY(`id`)\n);\nCREATE TABLE `stream_interactions` (\n\t`id` int AUTO_INCREMENT NOT NULL,\n\t`streamEntryId` int NOT NULL,\n\t`userId` int NOT NULL,\n\t`interactionType` enum('like','comment') NOT NULL,\n\t`content` text,\n\t`createdAt` timestamp NOT NULL DEFAULT (now()),\n\tCONSTRAINT `stream_interactions_id` PRIMARY KEY(`id`)\n);\nCREATE INDEX `idx_event_participation_eventId` ON `event_participation` (`eventId`);\nCREATE INDEX `idx_event_participation_userId` ON `event_participation` (`userId`);\nCREATE INDEX `idx_multiplier_userId` ON `multiplier_boosts` (`userId`);\nCREATE INDEX `idx_multiplier_isActive` ON `multiplier_boosts` (`isActive`);\nCREATE INDEX `idx_multiplier_endAt` ON `multiplier_boosts` (`endAt`);\nCREATE INDEX `idx_event_status` ON `seasonal_events` (`status`);\nCREATE INDEX `idx_event_startAt` ON `seasonal_events` (`startAt`);\nCREATE INDEX `idx_social_stream_userId` ON `social_stream` (`userId`);\nCREATE INDEX `idx_social_stream_activityType` ON `social_stream` (`activityType`);\nCREATE INDEX `idx_social_stream_createdAt` ON `social_stream` (`createdAt`);\nCREATE INDEX `idx_stream_interactions_streamEntryId` ON `stream_interactions` (`streamEntryId`);\nCREATE INDEX `idx_stream_interactions_userId` ON `stream_interactions` (`userId`);",
  "rows": [],
  "messages": [],
  "stdout": "",
  "stderr": "",
  "execution_time_ms": 11643
}