<?php

/**
 * 文件功能：百家乐买单活动用户记录测试工厂
 *
 * 用于在测试中快速生成某个活动下的用户补偿状态。
 */

namespace Database\Factories;

use App\Models\BaccaratLossCoverEvent;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\BaccaratLossCoverRecord>
 */
class BaccaratLossCoverRecordFactory extends Factory
{
    /**
     * 定义默认测试数据。
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'event_id' => BaccaratLossCoverEvent::factory(),
            'user_id' => User::factory(),
            'total_bet_amount' => 1000,
            'total_win_payout' => 0,
            'total_loss_amount' => 500,
            'compensation_amount' => 500,
            'claim_status' => 'pending',
            'claimed_amount' => 0,
            'claimed_at' => null,
        ];
    }
}
