<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
namespace app\dice\model\reward_config;

use app\dice\model\DiceModel;

/**
 * 权重配比测试记录模型
 *
 * dice_reward_config_record 保存测试时的权重快照与落点统计
 *
 * @property int    $id
 * @property int    $test_count 测试次数 100/500/1000/5000/10000
 * @property array  $weight_config_snapshot 测试时权重配比快照
 * @property array  $tier_weights_snapshot 测试时 T1-T5 档位权重快照（来自奖池配置）
 * @property int|null $lottery_config_id 测试时使用的奖池配置 ID
 * @property array  $result_counts 落点统计 grid_number=>出现次数
 * @property int|null $admin_id 执行测试的管理员ID
 * @property string|null $create_time 创建时间
 */
class DiceRewardConfigRecord extends DiceModel
{
    protected $pk = 'id';

    protected $table = 'dice_reward_config_record';

    protected $json = ['weight_config_snapshot', 'tier_weights_snapshot', 'result_counts'];

    protected $jsonAssoc = true;
}
