<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Ticket;

class TicketSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $ticket_data = [
            ['from_email' => 'test@yopmail.com', 'to_email' => 'test1@yopmail.com', 'status' => 'pending', 'priority' => 'high', 'subject' => 'test subject', 'content' => 'test subject content here', 'parent_id' => '1'],
            ['from_email' => 'test@yopmail.com', 'to_email' => 'test1@yopmail.com', 'status' => 'pending', 'priority' => 'high', 'subject' => 'test subject', 'content' => 'test subject content here', 'parent_id' => '1'],
        ];

        foreach($ticket_data as $data)
        {
            Ticket::create($data);
        }
    }
}
