-- 添加预测市场频道到社区
-- 在 MySQL 中执行

-- 首先检查是否已存在预测市场分类
INSERT IGNORE INTO community_categories (id, name, icon, position, is_collapsible, is_system, created_at, updated_at)
VALUES ('cat_prediction', '预测市场', '⚡', 2, 1, 1, NOW(), NOW());

-- 添加预测市场频道
INSERT IGNORE INTO community_channels
(id, category_id, name, type, topic, position, slow_mode, is_readonly, is_visible, is_system, subscriber_count, message_count, created_at, updated_at)
VALUES
('ch_prediction', 'cat_prediction', '预测大厅', 'prediction', 'Polymarket 风格预测市场，用积分参与预测，赢取奖池', 1, 0, 0, 1, 1, 0, 0, NOW(), NOW());

-- 查看结果
SELECT * FROM community_categories WHERE id = 'cat_prediction';
SELECT * FROM community_channels WHERE type = 'prediction';
