<?php

namespace Database\Factories;

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

class ReleaseFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Release::class;

    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'name' => $this->faker->name,
            'searchname' => $this->faker->unique()->name(),
            'fromname' => $this->faker->unique()->safeEmail(),
            'postdate' => $this->faker->date(),
            'adddate' => $this->faker->date(),
            'guid' => $this->faker->sha1(),
            'categories_id' => '2080',
            'nzbstatus' => 1,
            'passwordstatus' => 0,
            'isrenamed' => 1,
        ];
    }
}
