CREATE TABLE IF NOT EXISTS crypto_market_monitor (
    id BIGINT AUTO_INCREMENT PRIMARY KEY,
    symbol VARCHAR(50) NOT NULL COMMENT '交易对',
    bar VARCHAR(20) NOT NULL COMMENT 'K线周期',
    window_size INT NOT NULL COMMENT '窗口大小, 50, 80, 100, 120',
    timestamp BIGINT NOT NULL COMMENT '时间戳',
    date_time VARCHAR(50) NOT NULL COMMENT '日期时间',
    report TEXT NOT NULL COMMENT '报告',
    report_file_path VARCHAR(255) NOT NULL COMMENT '报告文件路径',
    report_file_name VARCHAR(255) NOT NULL COMMENT '报告文件名',
    report_file_byte_size INT NOT NULL COMMENT '报告文件大小',
    UNIQUE KEY idx_symbol_bar_window_size_timestamp (symbol, bar, window_size, timestamp)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='市场行情监控';