Files
oficial/app/resources/database/seeds/20141101080102_proyectista_seeder.php
2024-12-18 20:33:15 -03:00

39 lines
884 B
PHP

<?php
use Phinx\Seed\AbstractSeed;
class ProyectistaSeeder extends AbstractSeed
{
public function run(): void
{
$data = [
[
'id' => 1,
'rut' => 76386280,
'nombre' => 'Squella Arquitectos Limitada',
'tipo' => 1,
'representante' => 'Juan Sebastian Squella Correa',
'telefono' => 985285700,
'correo' => 'sebastiansquella@squellaarquitectos.cl',
'direccion' => 65,
],
[
'id' => 2,
'rut' => 76231860,
'nombre' => 'Constructora Casablanca Limitada',
'tipo' => 2,
'representante' => 'Jose Vidal Garcia-Huidobro',
'telefono' => 998208256,
'correo' => 'jvidal@casablanca.cl',
'direccion' => 66,
],
];
$this->execute('SET unique_checks=0; SET foreign_key_checks=0;');
$this->table('proyectista')
->insert($data)
->saveData();
$this->execute('SET unique_checks=1; SET foreign_key_checks=1;');
}
}