<?php

namespace Database\Seeders;

use App\Models\Cotizacion;
use App\Models\Cliente;
use App\Models\Company;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;

class CotizacionSeeder extends Seeder
{
    public function run()
    {
        $company = Company::first();
        $cliente = Cliente::first();

        Cotizacion::create([
            'company_id' => $company->id,
            'cliente_id' => $cliente->id,
            'token' => Str::random(12),
            'estado' => 'pendiente',
            'subtotal' => 12500.00,
            'iva' => 2000.00,
            'total' => 14500.00,
        ]);
    }
}
