DROP TABLE `ai_employee_chats`;--> statement-breakpoint
DROP TABLE `ai_employee_tasks`;--> statement-breakpoint
DROP TABLE `ai_employees`;--> statement-breakpoint
DROP TABLE `jackpot_history`;--> statement-breakpoint
DROP TABLE `payment_methods`;--> statement-breakpoint
DROP TABLE `progressive_jackpots`;--> statement-breakpoint
DROP INDEX `ai_generated_games_gameSlug_unique` ON `ai_generated_games`;--> statement-breakpoint
DROP INDEX `casino_games_slug_unique` ON `casino_games`;--> statement-breakpoint
DROP INDEX `idx_friends_unique` ON `friends`;--> statement-breakpoint
DROP INDEX `notification_preferences_userId_unique` ON `notification_preferences`;--> statement-breakpoint
DROP INDEX `setting_key` ON `platform_settings`;--> statement-breakpoint
DROP INDEX `player_profiles_userId_unique` ON `player_profiles`;--> statement-breakpoint
DROP INDEX `referrals_referralCode_unique` ON `referrals`;--> statement-breakpoint
DROP INDEX `restricted_states_stateCode_unique` ON `restricted_states`;--> statement-breakpoint
DROP INDEX `staff_userId_unique` ON `staff`;--> statement-breakpoint
DROP INDEX `staff_staffId_unique` ON `staff`;--> statement-breakpoint
DROP INDEX `idx_user_achievements_unique` ON `user_achievements`;--> statement-breakpoint
DROP INDEX `idx_user_favorites_unique` ON `user_favorites`;--> statement-breakpoint
DROP INDEX `user_vip_status_userId_unique` ON `user_vip_status`;--> statement-breakpoint
DROP INDEX `users_openId_unique` ON `users`;--> statement-breakpoint
DROP INDEX `users_username_unique` ON `users`;--> statement-breakpoint
DROP INDEX `users_stripeCustomerId_unique` ON `users`;--> statement-breakpoint
ALTER TABLE `achievements` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `achievements` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `ai_generated_games` MODIFY COLUMN `rtp` decimal(5,2) NOT NULL DEFAULT '96.00';--> statement-breakpoint
ALTER TABLE `ai_generated_games` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `ai_generated_games` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `ai_social_content` MODIFY COLUMN `isPublished` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `ai_social_content` MODIFY COLUMN `isPublished` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `ai_social_content` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `audit_logs` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `bingo_cards` MODIFY COLUMN `hasBingo` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `bingo_cards` MODIFY COLUMN `hasBingo` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `bingo_cards` MODIFY COLUMN `purchasedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `bingo_rooms` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `bingo_sessions` MODIFY COLUMN `jackpotWon` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `bingo_sessions` MODIFY COLUMN `jackpotWon` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `bingo_sessions` MODIFY COLUMN `startedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `casino_games` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `casino_games` MODIFY COLUMN `isFeatured` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `casino_games` MODIFY COLUMN `isFeatured` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `casino_games` MODIFY COLUMN `isNew` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `casino_games` MODIFY COLUMN `isNew` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `casino_games` MODIFY COLUMN `playCount` bigint NOT NULL DEFAULT 0;--> statement-breakpoint
ALTER TABLE `casino_games` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `chat_messages` MODIFY COLUMN `isDeleted` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `chat_messages` MODIFY COLUMN `isDeleted` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `chat_messages` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `coin_packages` MODIFY COLUMN `isPopular` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `coin_packages` MODIFY COLUMN `isPopular` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `coin_packages` MODIFY COLUMN `isBestValue` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `coin_packages` MODIFY COLUMN `isBestValue` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `coin_packages` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `coin_packages` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `daily_bonuses` MODIFY COLUMN `claimedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `event_participation` MODIFY COLUMN `rewardClaimed` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `event_participation` MODIFY COLUMN `rewardClaimed` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `event_participation` MODIFY COLUMN `joinedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `fraud_alerts` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `friends` MODIFY COLUMN `requestedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `game_analytics` MODIFY COLUMN `totalWagered` decimal(15,2) NOT NULL DEFAULT '0.00';--> statement-breakpoint
ALTER TABLE `game_analytics` MODIFY COLUMN `totalWon` decimal(15,2) NOT NULL DEFAULT '0.00';--> statement-breakpoint
ALTER TABLE `game_analytics` MODIFY COLUMN `totalRevenue` decimal(15,2) NOT NULL DEFAULT '0.00';--> statement-breakpoint
ALTER TABLE `game_analytics` MODIFY COLUMN `avgBetSize` decimal(10,2) NOT NULL DEFAULT '0.00';--> statement-breakpoint
ALTER TABLE `game_analytics` MODIFY COLUMN `rtp` decimal(5,2) NOT NULL DEFAULT '96.00';--> statement-breakpoint
ALTER TABLE `game_analytics` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `game_chat` MODIFY COLUMN `isPublic` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `game_chat` MODIFY COLUMN `isPinned` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `game_chat` MODIFY COLUMN `isPinned` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `game_chat` MODIFY COLUMN `isModerated` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `game_chat` MODIFY COLUMN `isModerated` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `game_chat` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `game_sessions` MODIFY COLUMN `multiplier` float NOT NULL DEFAULT 0;--> statement-breakpoint
ALTER TABLE `game_sessions` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `kyc_documents` MODIFY COLUMN `submittedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `leaderboards` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `mini_game_rounds` MODIFY COLUMN `multiplier` float NOT NULL DEFAULT 0;--> statement-breakpoint
ALTER TABLE `mini_game_rounds` MODIFY COLUMN `isVerified` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `mini_game_rounds` MODIFY COLUMN `isVerified` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `mini_game_rounds` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `multiplier_boosts` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `multiplier_boosts` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `emailNotifications` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `pushNotifications` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `inAppNotifications` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `paymentNotifications` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `gameNotifications` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `promotionalNotifications` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `promotionalNotifications` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `systemAlerts` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `notification_preferences` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `notifications` MODIFY COLUMN `isRead` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `notifications` MODIFY COLUMN `isRead` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `notifications` MODIFY COLUMN `emailSent` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `notifications` MODIFY COLUMN `emailSent` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `notifications` MODIFY COLUMN `pushSent` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `notifications` MODIFY COLUMN `pushSent` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `notifications` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `player_profiles` MODIFY COLUMN `totalWins` decimal(15,2) NOT NULL DEFAULT '0.00';--> statement-breakpoint
ALTER TABLE `player_profiles` MODIFY COLUMN `isPublic` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `player_profiles` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `poker_hands` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `poker_tables` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `poker_tournaments` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `promo_banners` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `promo_banners` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `recently_played` MODIFY COLUMN `playedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `referrals` MODIFY COLUMN `referrerRewardGiven` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `referrals` MODIFY COLUMN `referrerRewardGiven` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `referrals` MODIFY COLUMN `refereeRewardGiven` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `referrals` MODIFY COLUMN `refereeRewardGiven` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `referrals` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `restricted_states` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `restricted_states` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `rtp_overrides` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `sc_redemptions` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `seasonal_events` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `social_stream` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `sport_bets` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `sport_events` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `staff` MODIFY COLUMN `isActive` boolean NOT NULL DEFAULT true;--> statement-breakpoint
ALTER TABLE `staff` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `stream_interactions` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `support_tickets` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `ticket_messages` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `time_clock` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `tournament_participants` MODIFY COLUMN `joinedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `tournament_snapshots` MODIFY COLUMN `snapshotTime` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `tournaments` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `transactions` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `user_achievements` MODIFY COLUMN `unlockedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `user_achievements` MODIFY COLUMN `rewardClaimed` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `user_achievements` MODIFY COLUMN `rewardClaimed` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `user_favorites` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `user_vip_status` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `lastSignedIn` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `isBanned` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `isBanned` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `isAgeVerified` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `isAgeVerified` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `twoFactorEnabled` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `users` MODIFY COLUMN `twoFactorEnabled` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `vip_tiers` MODIFY COLUMN `prioritySupport` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `vip_tiers` MODIFY COLUMN `prioritySupport` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `vip_tiers` MODIFY COLUMN `customAvatarFrame` boolean NOT NULL;--> statement-breakpoint
ALTER TABLE `vip_tiers` MODIFY COLUMN `customAvatarFrame` boolean NOT NULL DEFAULT false;--> statement-breakpoint
ALTER TABLE `vip_tiers` MODIFY COLUMN `createdAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `win_share_events` MODIFY COLUMN `sharedAt` timestamp NOT NULL DEFAULT (now());--> statement-breakpoint
ALTER TABLE `achievements` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `ai_generated_games` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `ai_social_content` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `audit_logs` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `bingo_cards` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `bingo_rooms` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `bingo_sessions` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `casino_games` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `chat_messages` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `coin_packages` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `daily_bonuses` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `event_participation` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `fraud_alerts` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `friends` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `game_analytics` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `game_chat` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `game_sessions` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `kyc_documents` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `leaderboards` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `mini_game_rounds` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `multiplier_boosts` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `notification_preferences` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `notifications` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `platform_settings` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `player_profiles` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `poker_hands` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `poker_tables` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `poker_tournaments` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `promo_banners` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `recently_played` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `referrals` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `restricted_states` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `rtp_overrides` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `sc_redemptions` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `seasonal_events` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `social_stream` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `sport_bets` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `sport_events` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `staff` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `stream_interactions` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `support_tickets` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `ticket_messages` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `time_clock` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `tournament_participants` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `tournament_snapshots` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `tournaments` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `transactions` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `user_achievements` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `user_favorites` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `user_vip_status` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `users` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `vip_tiers` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `wallets` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `win_share_events` ADD PRIMARY KEY(`id`);--> statement-breakpoint
ALTER TABLE `ai_generated_games` ADD CONSTRAINT `ai_generated_games_gameSlug_unique` UNIQUE(`gameSlug`);--> statement-breakpoint
ALTER TABLE `casino_games` ADD CONSTRAINT `casino_games_slug_unique` UNIQUE(`slug`);--> statement-breakpoint
ALTER TABLE `friends` ADD CONSTRAINT `idx_friends_unique` UNIQUE(`userId`,`friendId`);--> statement-breakpoint
ALTER TABLE `notification_preferences` ADD CONSTRAINT `notification_preferences_userId_unique` UNIQUE(`userId`);--> statement-breakpoint
ALTER TABLE `platform_settings` ADD CONSTRAINT `platform_settings_setting_key_unique` UNIQUE(`setting_key`);--> statement-breakpoint
ALTER TABLE `player_profiles` ADD CONSTRAINT `player_profiles_userId_unique` UNIQUE(`userId`);--> statement-breakpoint
ALTER TABLE `referrals` ADD CONSTRAINT `referrals_referralCode_unique` UNIQUE(`referralCode`);--> statement-breakpoint
ALTER TABLE `restricted_states` ADD CONSTRAINT `restricted_states_stateCode_unique` UNIQUE(`stateCode`);--> statement-breakpoint
ALTER TABLE `staff` ADD CONSTRAINT `staff_userId_unique` UNIQUE(`userId`);--> statement-breakpoint
ALTER TABLE `staff` ADD CONSTRAINT `staff_staffId_unique` UNIQUE(`staffId`);--> statement-breakpoint
ALTER TABLE `user_achievements` ADD CONSTRAINT `idx_user_achievements_unique` UNIQUE(`userId`,`achievementId`);--> statement-breakpoint
ALTER TABLE `user_favorites` ADD CONSTRAINT `idx_user_favorites_unique` UNIQUE(`userId`,`gameId`);--> statement-breakpoint
ALTER TABLE `user_vip_status` ADD CONSTRAINT `user_vip_status_userId_unique` UNIQUE(`userId`);--> statement-breakpoint
ALTER TABLE `users` ADD CONSTRAINT `users_openId_unique` UNIQUE(`openId`);--> statement-breakpoint
ALTER TABLE `users` ADD CONSTRAINT `users_username_unique` UNIQUE(`username`);--> statement-breakpoint
ALTER TABLE `users` ADD CONSTRAINT `users_stripeCustomerId_unique` UNIQUE(`stripeCustomerId`);