-- 初始化 managed_settings 默认值
-- 运行方式：在 MySQL 客户端中执行此文件，或挂载到 Docker 容器初始化目录
INSERT IGNORE INTO managed_settings (key_name, value, value_type, effect_level, description) VALUES
('pipeline.skip_phases',                  '[]',    'json',   'new_task', '默认跳过的阶段'),
('pipeline.checkpoint_interval',          '30',    'int',    'runtime',  '进度上报间隔(秒)'),
('tg_scraper.message_limit_per_channel',  '500',   'int',    'runtime',  '每频道最大消息数'),
('tg_scraper.delay_per_message',          '1.0',   'float',  'runtime',  '消息间延迟(秒)'),
('tg_scraper.delay_per_channel',          '5.0',   'float',  'runtime',  '频道间延迟(秒)'),
('tg_scraper.delay_per_verify',           '3.0',   'float',  'runtime',  '验证间延迟(秒)'),
('clean.timeout_seconds',                 '3600',  'int',    'runtime',  '清洗阶段超时(秒)'),
('search.timeout_seconds',                '3600',  'int',    'runtime',  '搜索阶段超时(秒)'),
('snowball.max_channels_per_layer',       '200',   'int',    'runtime',  '每层最大频道数'),
('snowball.max_channels_total',           '500',   'int',    'runtime',  '总最大频道数'),
('tme_validator.enabled',                 'true',  'bool',   'runtime',  '启用t.me死号预检'),
('tme_validator.rate_per_min',            '60',    'int',    'runtime',  '预检限速(次/分)'),
('tme_validator.concurrency',             '10',    'int',    'runtime',  '预检并发数');
