<?php

namespace Database\Factories;

use App\Models\Plan;
use Illuminate\Database\Eloquent\Factories\Factory;

class PlanFactory extends Factory
{
    public function definition(): array
    {
        return [
            'name' => 'Paket ' . strtoupper(fake()->word()),
            'role_type' => 'leasing',
            'price' => fake()->numberBetween(100000, 1000000),
            'duration_days' => 365,
            'features_json' => json_encode(['Feature 1', 'Feature 2']),
            'is_active' => true,
        ];
    }
}
