<?php

namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class ClientesSeeder extends Seeder
{
    public function run()
    {
        $data = [
            'telefono1' => '+58 414-3326009',
            'contacto'    => 'Alejandro Centeno',
            'password'    => '123',
            'rif' => 'J402892888',
            'razonsocial' => 'Eps Color & Imagen, C.A.',
            'telefono2' => '212-4827620',
            'email' => 'epscolor.servicio@gmail.com',
            'direccion' => 'C.C. Plaza Paez ultimo nivel PO local 5 Calle Paez, Urb. El Paraiso. ZP1020',
            'avatar' => 'avatar.png',
            'role' => 'Administrador',
            'activo' => '1',
        ];

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

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