<?php

namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class ProductosSeeder extends Seeder
{
    public function run()
    {
        $data = [
            'codigo' => '1',
            'descripcion'    => 'Item 1 General',
            'costo_d' => '1.00',
            'precio_d' => '2.00',
            'precio_bs' => '100.00',
            'tasa' => '50.00',
            'stock' => '20',
            'foto' => 'foto.png',
            'condicion' => 'Nuevo',
            'categoria' => 'Repuestos',
            'compatible_con' => 'L210 L355',
            'tienda' => '1',
        ];

        // Simple Queries
        // $this->db->query('INSERT INTO users (username, email) VALUES(:username:, :email:)', $data);

        // Using Query Builder
        $this->db->table('productos')->insert($data);
    }
}
