<?php

/**
 * 文件功能：每日签到记录测试工厂。
 *
 * 用于测试中快速构造用户签到流水和连续签到奖励快照。
 */

namespace Database\Factories;

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

/**
 * @extends Factory<DailySignIn>
 */
class DailySignInFactory extends Factory
{
    /**
     * 定义默认每日签到测试数据。
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'room_id' => null,
            'sign_in_date' => today(),
            'streak_days' => 1,
            'reward_rule_id' => null,
            'gold_reward' => 0,
            'exp_reward' => 0,
            'charm_reward' => 0,
            'identity_badge_code' => null,
            'identity_badge_name' => null,
            'identity_badge_icon' => null,
            'identity_badge_color' => null,
        ];
    }
}
