<?php

namespace Database\Seeders;

use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('users')->insert([
            [
                'name' => 'Zenildo Gonzaga',
                'email' => 'zenildo.gonzaga@olinda.pe.gov.br',
                'telefone' => '(81) 5555-5555',
                'password' => Hash::make('zenildo'),
                'idTelegram' => '',
                'nivel' => 1,
                'created_at' => Carbon::now(),
                'notificarEmail' => true
            ],
            [
                'name' => 'Demócrito d\'Anunciação',
                'email' => 'democrito@olinda.pe.gov.br',
                'telefone' => '(81) 5555-5555',
                'password' => Hash::make('democrito'),
                'idTelegram' => '1349617668',
                'nivel' => 2,
                'created_at' => Carbon::now(),
                'notificarEmail' => true
            ],
            [
                'name' => 'Luiz Ferreira',
                'email' => 'luiz.ferreira@olinda.pe.gov.br',
                'telefone' => '(81) 5555-5555',
                'password' => Hash::make('luizferreira'),
                'idTelegram' => '',
                'nivel' => 2,
                'created_at' => Carbon::now(),
                'notificarEmail' => true
            ],
            [
                'name' => 'Zé 1',
                'email' => 'd_who@hotmail.com',
                'telefone' => '(81) 5555-5555',
                'password' => Hash::make('democrito'),
                'idTelegram' => '1349617668',
                'nivel' => 3,
                'created_at' => Carbon::now(),
                'notificarEmail' => true
            ],
            [
                'name' => 'Zé 2',
                'email' => 'nando1176@hotmail.com',
                'telefone' => '(81) 5555-5555',
                'password' => Hash::make('nando1176'),
                'idTelegram' => '',
                'nivel' => 3,
                'created_at' => Carbon::now(),
                'notificarEmail' => false
            ]
        ]);

        DB::table('users_cadastradores')->insert([
            [
                'idUser' => 1,
                'cpf' => '55593179000',
                'matricula' => '000000000',
                'idSetor' => 2,
                'cargo' => 'Coordenador',

            ]
        ]);

        DB::table('users_funcionarios')->insert([
            [
                'idUser' => 2,
                'cpf' => '35271963071',
                'matricula' => '000000000',
                'idSetor' => 2,
                'cargo' => 'Analista'
            ],
            [
                'idUser' => 3,
                'cpf' => '07066799038',
                'matricula' => '000000000',
                'idSetor' => 2,
                'cargo' => 'Analista'
            ]
        ]);

        DB::table('users_solicitantes')->insert([
            [
                'idUser' => 4,
                'cpf' => '07617581009',
                'cep' => '53010-230',
                'logradouro' => 'Av. Santos Dumont, 177',
                'bairro' => 'Umuarama',
                'cidade' => 'Olinda',
                'uf' => 'PE',
                'pais' => 'Brasil',
                'pessoaFisica' => true
            ],
            [
                'idUser' => 5,
                'cpf' => '64393197011',
                'cep' => '53010-230',
                'logradouro' => 'Av. Santos Dumont, 177',
                'bairro' => 'Umuarama',
                'cidade' => 'Olinda',
                'uf' => 'PE',
                'pais' => 'Brasil',
                'pessoaFisica' => true
            ]
        ]);
    }
}
