<?php

/**
 * 文件功能：VIP 等级测试工厂
 * 用于在测试中快速生成可购买的 VIP 等级数据
 */

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\VipLevel>
 */
class VipLevelFactory extends Factory
{
    /**
     * 定义默认测试数据
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'name' => '测试会员'.fake()->unique()->numberBetween(1, 9999),
            'icon' => '👑',
            'color' => '#f59e0b',
            'exp_multiplier' => 1.5,
            'jjb_multiplier' => 1.2,
            'join_templates' => null,
            'leave_templates' => null,
            'join_effect' => 'none',
            'leave_effect' => 'none',
            'join_banner_style' => 'aurora',
            'leave_banner_style' => 'farewell',
            'allow_custom_messages' => true,
            'sort_order' => fake()->numberBetween(1, 20),
            'price' => fake()->numberBetween(10, 99),
            'duration_days' => 30,
        ];
    }
}
