Documentation
use clickhouse::Row;
use serde::{Deserialize, Serialize};

#[derive(Row, Serialize, Deserialize, Debug, Clone, Default)]
pub struct PlayBackRecord {
    /// 时间戳
    pub time: i64,
    /// 记录ID
    pub id: String,
    /// 账号ID
    pub account_id: i32,
    /// 游戏ID
    pub game_id: i32,
    /// 牌库ID
    pub card_id: i64,
    /// 牌库期号
    pub drawing: i32,
    /// 牌库索引
    pub drawing_index: i64,
    /// 押注金额
    pub bet_money: f64,
    /// 赢取金额
    pub win_money: f64,
    /// 回放数据(JSON格式)
    pub record_data: String,
    /// 线数据(JSON格式)
    pub line_data: String,
}