<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskSr54954 extends AbstractMigration
{
    public function up(): void
    {
        $table = $this->table('manutencao.trabalho_escravo');
        $rows = [
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '48.937.720/0001-04', 'tipo' => 'J', 'ds_nome' => 'ROBERTO DOS SANTOS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '50.964.355/0001-79', 'tipo' => 'J', 'ds_nome' => 'FLAVIO DONIZETI DOS SANTOS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '53.162.923/0001-06', 'tipo' => 'F', 'ds_nome' => 'EVAMBIVALDO FERREIRA GONCALVES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '076.802.477-30'    , 'tipo' => 'F', 'ds_nome' => 'ABEL PIONA BERNABÉ'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '149.704.226-72'    , 'tipo' => 'F', 'ds_nome' => 'ADELICIO BARBOSA DE ARAUJO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '10.525.337/0001-76', 'tipo' => 'J', 'ds_nome' => 'AGROFLORESTAL SERRA DAS ABELHAS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '13.165.805/0001-37', 'tipo' => 'J', 'ds_nome' => 'ALTENHOFEN COMÉRCIO DE HORTIFRUTIGRANJEIROS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '360.145.591-91'    , 'tipo' => 'F', 'ds_nome' => 'AMADEU LUIZ DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '342.179.599-15'    , 'tipo' => 'F', 'ds_nome' => 'ANA CRISTINA GAYOTTO DE BORBA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '21.147.724/0001-32', 'tipo' => 'J', 'ds_nome' => 'ANDRADE CONSTRUCOES LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '142.700.174-06'    , 'tipo' => 'F', 'ds_nome' => 'ANDRE ALMEIDA DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '381.581.081-72'    , 'tipo' => 'F', 'ds_nome' => 'ANDREA VALERIA CARVALHO DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '02.783.009/0001-41', 'tipo' => 'J', 'ds_nome' => 'ANICUNS S A ALCOOL E DERIVADOS EM RECUPERACAO JUDICIAL'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '384.640.806-97'    , 'tipo' => 'F', 'ds_nome' => 'ANTONIO ALONSO DE PAIVA BORGES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '414.025.961-20'    , 'tipo' => 'F', 'ds_nome' => 'ANTONIO BORGES BELFORT'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '931.822.108-82'    , 'tipo' => 'F', 'ds_nome' => 'ANTONIO JOSE QUESSADA NETO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '37.194.000/0001-80', 'tipo' => 'J', 'ds_nome' => 'ARMANDO CALICHO MONTANO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '017.937.215-72'    , 'tipo' => 'F', 'ds_nome' => 'ARMANDO PIO DE AZEVEDO FILHO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '233.173.700-25'    , 'tipo' => 'F', 'ds_nome' => 'ARNO DILSON POSPICHIL'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '27.095.036/0001-52', 'tipo' => 'J', 'ds_nome' => 'BANGLA JEANS COMERCIO DE ROUPAS EIRELI'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '11.325.535/0001-59', 'tipo' => 'J', 'ds_nome' => 'BELA MARES INCORPORACOES LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '652.601.636-72'    , 'tipo' => 'F', 'ds_nome' => 'BRENO MAGLIONI DO VALE'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '02.896.264/0001-09', 'tipo' => 'J', 'ds_nome' => 'CENTROALCOOL S/A (EM RECUPERACAO JUDICIAL)'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '178.507.204-82'    , 'tipo' => 'F', 'ds_nome' => 'CICERO ANTONIO LOBO CRUZ'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '087.652.838-80'    , 'tipo' => 'F', 'ds_nome' => 'CLAUDINEI LEITE DE QUEIROZ'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '673.359.420-04'    , 'tipo' => 'F', 'ds_nome' => 'CLAUDIO LUIZ LOPES DE MORAES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '123.736.804-91'    , 'tipo' => 'F', 'ds_nome' => 'CLISTHENES JOSE PEREIRA DE ANDRADE LIMA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '96.727.656/0001-80', 'tipo' => 'J', 'ds_nome' => 'COMERCIAL DE ESTIVAS SEIS IRMAOS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '44.475.087/0001-29', 'tipo' => 'J', 'ds_nome' => 'CONSORCIO CONSTRUTOR LINHA VERDE'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '17.620.703/0001-15', 'tipo' => 'J', 'ds_nome' => 'CONSTRUTORA APODI LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '016.801.370-34'    , 'tipo' => 'F', 'ds_nome' => 'DALTRO DOS REIS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '077.478.061-40'    , 'tipo' => 'F', 'ds_nome' => 'DANIEL MATEUS MARQUES SANTOS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '796.013.911-34'    , 'tipo' => 'F', 'ds_nome' => 'DENIS RODRIGO PALHARES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '731.396.536-20'    , 'tipo' => 'F', 'ds_nome' => 'DILMA GOMIDE CORREA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '20.433.078/0001-07', 'tipo' => 'J', 'ds_nome' => 'DIVINA GRILL MEIRELES LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '420.655.773-04'    , 'tipo' => 'F', 'ds_nome' => 'DOMINGOS LAURENTINO NETO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '236.456.106-00'    , 'tipo' => 'F', 'ds_nome' => 'DOMINGOS SAVIO DE ANDRADE'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '10.842.734/0001-71', 'tipo' => 'J', 'ds_nome' => 'DUVALE PROJETOS E CONSTRUCOES LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '558.497.763-20'    , 'tipo' => 'F', 'ds_nome' => 'EDIMAR DO MONTE ARRAIS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '491.585.466-34'    , 'tipo' => 'F', 'ds_nome' => 'EDUARDO AMANCIO ALVES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '078.967.898-50'    , 'tipo' => 'F', 'ds_nome' => 'EDUARDO ANTONIO BARROS DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '000.147.811-74'    , 'tipo' => 'F', 'ds_nome' => 'EDUARDO LOPES PEREIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '288.321.338-06'    , 'tipo' => 'F', 'ds_nome' => 'EDUARDO NATANAEL DE JESUS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '592.676.315-00'    , 'tipo' => 'F', 'ds_nome' => 'ELSON SANTOS DE OLIVEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '26.061.900/0001-32', 'tipo' => 'J', 'ds_nome' => 'E M B DA SILVA TRANSPORTES E SERVICOS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '597.969.875-20'    , 'tipo' => 'F', 'ds_nome' => 'EVANDRO DO VALE SANTOS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '799.269.246-20'    , 'tipo' => 'F', 'ds_nome' => 'EVANIO CAETANO DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '21.610.272/0002-64', 'tipo' => 'J', 'ds_nome' => 'FAZENDAS KLEM IMPORTACAO E EXPORTACAO DE CAFE LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '48.759.988/0001-01', 'tipo' => 'J', 'ds_nome' => 'FBC BACKSTAGE EVENTOS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '08.010.060/0001-05', 'tipo' => 'J', 'ds_nome' => 'FELICIO VERONEZ NETO E OUTRO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '074.954.996-30'    , 'tipo' => 'F', 'ds_nome' => 'FELIPE FARIA REIS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '23.001.742/0001-37', 'tipo' => 'J', 'ds_nome' => 'FLAVIO ANTONIO GIASSON'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '341.218.463-20'    , 'tipo' => 'F', 'ds_nome' => 'FRANCISCO DAS CHAGAS DIAS ROSAL JUNIOR'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '048.361.411-41'    , 'tipo' => 'F', 'ds_nome' => 'FRANCISCO JACKSON DOS SANTOS NETO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '060.120.613-40'    , 'tipo' => 'F', 'ds_nome' => 'FRANCISCO RAIMUNDO CARNEIRO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '112.212.318-39'    , 'tipo' => 'F', 'ds_nome' => 'FRANCISCO RIBEIRO LIMA FILHO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '07.693.988/0001-60', 'tipo' => 'J', 'ds_nome' => 'FRF CONSTRUCOES LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '38.529.914/0001-17', 'tipo' => 'J', 'ds_nome' => 'GILBERTO SILVA CERQUEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '04.972.092/0027-61', 'tipo' => 'J', 'ds_nome' => 'GRUPO FARTURA DE HORTIFRUT S.A.'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '763.926.784-68'    , 'tipo' => 'F', 'ds_nome' => 'HAROLDO DOS SANTOS ALVES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '460.226.430-15'    , 'tipo' => 'F', 'ds_nome' => 'HILARIO HENRIQUE DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '04.539.645/0001-58', 'tipo' => 'J', 'ds_nome' => 'INDÚSTRIA DE ERVA MATE MACEDO LTDA.'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '04.345.274/0006-88', 'tipo' => 'J', 'ds_nome' => 'J C CONSTRUCOES E IMOBILIARIA EIRELI'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '014.037.335-70'    , 'tipo' => 'F', 'ds_nome' => 'JOAO MIGUEL GOMES ANDRADE'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '059.378.228-38'    , 'tipo' => 'F', 'ds_nome' => 'JOAO SILVA DE SOUZA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '10.137.644/0001-80', 'tipo' => 'J', 'ds_nome' => 'JOCKEY CLUB RORAIMENSE'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '008.594.806-31'    , 'tipo' => 'F', 'ds_nome' => 'JOEL CARLOS DE MORAES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '707.772.312-71'    , 'tipo' => 'F', 'ds_nome' => 'JOEL DOS REIS CRUZ'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '010.673.286-29'    , 'tipo' => 'F', 'ds_nome' => 'JORGE FELIX GAVIOLI DO COUTO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '218.612.138-75'    , 'tipo' => 'F', 'ds_nome' => 'JOSE ADEILSON RODRIGUES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '706.861.655-00'    , 'tipo' => 'F', 'ds_nome' => 'JOSE ALECIO ROCHA MONTENEGRO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '000.853.815-86'    , 'tipo' => 'F', 'ds_nome' => 'JOSE CARDOSO DE OLIVEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '454.984.314-49'    , 'tipo' => 'F', 'ds_nome' => 'JOSE CARLOS PEIXOTO DE OLIVEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '488.825.007-30'    , 'tipo' => 'F', 'ds_nome' => 'JOSE MARIA PIMENTEL BARCELLOS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '118.869.946-68'    , 'tipo' => 'F', 'ds_nome' => 'JOSE PAULO TEIXEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '064.386.605-15'    , 'tipo' => 'F', 'ds_nome' => 'JOSE SIMOES AMARAL'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '114.321.207-00'    , 'tipo' => 'F', 'ds_nome' => 'JOSE VAGNER GUIMARAES BARBOSA JUNIOR'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '560.633.427-53'    , 'tipo' => 'F', 'ds_nome' => 'JOSE VALENTIN FRACAROLI'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '566.288.201-06'    , 'tipo' => 'F', 'ds_nome' => 'JOSE VIRGINIO DOS SANTOS FILHO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '213.225.035-91'    , 'tipo' => 'F', 'ds_nome' => 'JOSE WILSON NUNES MOURA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '55.535.614/0001-60', 'tipo' => 'J', 'ds_nome' => 'J O SILVA EMPREITEIRA DE MAO DE OBRA LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '003.441.640-47'    , 'tipo' => 'F', 'ds_nome' => 'JULINEI CAMARGO TAVARES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '11.306.141/0001-53', 'tipo' => 'J', 'ds_nome' => 'KANOVA ENGENHARIA E CONSTRUCOES LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '016.710.572-87'    , 'tipo' => 'F', 'ds_nome' => 'KUNIO KOBAYASHI'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '077.580.446-03'    , 'tipo' => 'F', 'ds_nome' => 'LEANDRO APARECIDO MACHADO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '097.226.216-45'    , 'tipo' => 'F', 'ds_nome' => 'LENE FRANCISCO VILELA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '005.806.826-09'    , 'tipo' => 'F', 'ds_nome' => 'LEONARDO DE CASTRO SODRE'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '34.219.868/0001-07', 'tipo' => 'J', 'ds_nome' => 'LGF CONSTRUTORA LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '44.988.138/0001-16', 'tipo' => 'J', 'ds_nome' => 'LLB PRESTADORA DE SERVICOS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '952.844.353-20'    , 'tipo' => 'F', 'ds_nome' => 'LUDJALMA DE SOUSA ARAUJO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '471.603.496-87'    , 'tipo' => 'F', 'ds_nome' => 'LUIZ CARLOS MOREIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '19.456.998/0001-61', 'tipo' => 'J', 'ds_nome' => 'MANUANE DE LIMA VOGAS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '331.759.000-97'    , 'tipo' => 'F', 'ds_nome' => 'MARCO AURELIO PARZIANELLO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '012.042.611-05'    , 'tipo' => 'F', 'ds_nome' => 'MARCO AURELIO PARZIANELLO II'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '33.444.215/0001-50', 'tipo' => 'J', 'ds_nome' => 'MARCONDES ENGENHARIA E CONSTRUCAO LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '049.727.276-83'    , 'tipo' => 'F', 'ds_nome' => 'MARCOS FLORIO DE SOUZA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '124.122.436-62'    , 'tipo' => 'F', 'ds_nome' => 'MARCOS PARREIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '039.778.528-33'    , 'tipo' => 'F', 'ds_nome' => 'MARCOS ROGERIO BOSCHINI'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '086.278.515-49'    , 'tipo' => 'F', 'ds_nome' => 'MARIA CONCEICAO OLIVEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '002.811.708-51'    , 'tipo' => 'F', 'ds_nome' => 'MASAHIKO SOMA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '150.761.437-37'    , 'tipo' => 'F', 'ds_nome' => 'MATHEUS MENDONCA CAMPORES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '534.265.258-87'    , 'tipo' => 'F', 'ds_nome' => 'MILITAO ALBUQUERQUE E SOUSA FILHO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '225.310.179-68'    , 'tipo' => 'F', 'ds_nome' => 'MILTON HARTMANN'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '15.052.296/0001-61', 'tipo' => 'J', 'ds_nome' => 'M. J. DOS SANTOS CUNHA CALCARIO LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '22.845.611/0001-73', 'tipo' => 'J', 'ds_nome' => 'MLTR AGROPECUARIA LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '335.973.241-34'    , 'tipo' => 'F', 'ds_nome' => 'NILSON PEREIRA BENTO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '007.694.325-90'    , 'tipo' => 'F', 'ds_nome' => 'ORLANDO EMMANUEL DE CASTRO CAVALCANTE BARBOSA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '218.180.965-87'    , 'tipo' => 'F', 'ds_nome' => 'ORLANDO PESSOA PRIMO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '05.360.521/0001-73', 'tipo' => 'J', 'ds_nome' => 'O VELHO CASARAO B RESTAURANTE LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '46.418.384/0001-68', 'tipo' => 'J', 'ds_nome' => 'PANTANAL SUL FLORESTAS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '031.387.750-55'    , 'tipo' => 'F', 'ds_nome' => 'PATRICK BERNARDO VEIGA GARCIA REISS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '709.233.024-68'    , 'tipo' => 'F', 'ds_nome' => 'PAULIRAN DE ALMEIDA MONTALVAO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '651.087.365-68'    , 'tipo' => 'F', 'ds_nome' => 'PAULO ROBERTO VICENTE LIMA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '129.011.107-38'    , 'tipo' => 'F', 'ds_nome' => 'PEDRO MARCEU MATOS LOPES MEDEIROS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '581.600.355-00'    , 'tipo' => 'F', 'ds_nome' => 'RAIMUNDO SOUZA DE JESUS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '013.953.616-73'    , 'tipo' => 'F', 'ds_nome' => 'RAPHAEL MACIEL MAGINA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '611.046.636-00'    , 'tipo' => 'F', 'ds_nome' => 'ROBERTO GONCALVES FERNANDES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '528.987.846-72'    , 'tipo' => 'F', 'ds_nome' => 'ROBERTO MURILO LEITE CARDOSO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '687.888.510-87'    , 'tipo' => 'F', 'ds_nome' => 'ROGERIO ROGALSKI'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '251.801.265-68'    , 'tipo' => 'F', 'ds_nome' => 'ROGERIO SILVA DANTAS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '783.956.077-68'    , 'tipo' => 'F', 'ds_nome' => 'RONALDO GUIMARAES DO NASCIMENTO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '431.622.584-72'    , 'tipo' => 'F', 'ds_nome' => 'RUBEM GOMES SOARES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '128.195.897-23'    , 'tipo' => 'F', 'ds_nome' => 'SANDRO SERRA ARAUJO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '066.759.323-30'    , 'tipo' => 'F', 'ds_nome' => 'SAVIO BRITO DE PINHO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '44.667.363/0001-50', 'tipo' => 'J', 'ds_nome' => 'SD CONSTRUCOES E REFORMAS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '133.310.864-87'    , 'tipo' => 'F', 'ds_nome' => 'SEBASTIAO FARIAS GURJAO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '019.886.648-88'    , 'tipo' => 'F', 'ds_nome' => 'SERGIO DONIZETI PERON'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '06.271.784/0001-79', 'tipo' => 'J', 'ds_nome' => 'SHOX DO BRASIL CONSTRUCOES LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '04.363.966/0001-44', 'tipo' => 'J', 'ds_nome' => 'SIPASA SERINGA INDUSTRIAL DO PARA SA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '42.198.516/0001-32', 'tipo' => 'J', 'ds_nome' => 'SPE BELMAIS ESTANCIA DO CONDE CONDOMINIO CLUB EMPREENDIMENTOS IMOBILIARIOS LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '29.083.926/0001-70', 'tipo' => 'J', 'ds_nome' => 'SUÍNOS DO VALE LTDA.'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '17.869.920/0001-43', 'tipo' => 'J', 'ds_nome' => 'THOR MECANIZACAO AGRICOLA LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '048.386.346-76'    , 'tipo' => 'F', 'ds_nome' => 'VAGNER FREIRE DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '277.418.948-97'    , 'tipo' => 'F', 'ds_nome' => 'VALDINEI APARECIDO ROQUE'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '544.740.940-34'    , 'tipo' => 'F', 'ds_nome' => 'VALDIR SCHROPFER'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '219.736.012-49'    , 'tipo' => 'F', 'ds_nome' => 'VALFREDO LUIZ PINTO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '596.690.040-04'    , 'tipo' => 'F', 'ds_nome' => 'VANDERLEI LUIZ DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '650.452.202-25'    , 'tipo' => 'F', 'ds_nome' => 'VANDERSON AYRES DA SILVA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '066.975.778-00'    , 'tipo' => 'F', 'ds_nome' => 'VANIO JOSE REIS E OUTRO'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '601.005.165-72'    , 'tipo' => 'F', 'ds_nome' => 'VERA EUNICE DA SILVA FRANCA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '733.844.373-49'    , 'tipo' => 'F', 'ds_nome' => 'VERINALDO OLIVEIRA MILHOMEM'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '420.572.139-00'    , 'tipo' => 'F', 'ds_nome' => 'VILSON BALOTIN'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '07.954.125/0001-08', 'tipo' => 'J', 'ds_nome' => 'VULCANO EXPORT MINERACAO EXPORTACAO E IMPORTACAO LTDA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '20.382.865/0001-77', 'tipo' => 'J', 'ds_nome' => 'WANDERLEI LOPES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '375.721.481-15'    , 'tipo' => 'F', 'ds_nome' => 'WANDERLEY DIAS VIEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '965.429.936-49'    , 'tipo' => 'F', 'ds_nome' => 'WELITON JOSE ANTUNES'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '415.413.246-68'    , 'tipo' => 'F', 'ds_nome' => 'XISTO ANDRADE DE OLIVEIRA JUNIOR'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '88.764.576/0001-76', 'tipo' => 'J', 'ds_nome' => 'ZORAIDE CLEBE LUMERTZ SANTOS'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '077.867.941-15'    , 'tipo' => 'F', 'ds_nome' => 'FLAVIO ANTONIO GIASSON'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '000.355.634-43'    , 'tipo' => 'F', 'ds_nome' => 'GILBERTO SILVA CERQUEIRA'],
                   ['dt_publicacao' => '2025-04-09', 'operacao' => 'incluir', 'cpf_cnpj' => '234.765.628-75'    , 'tipo' => 'F', 'ds_nome' => 'ARMANDO CALICHO MONTANO'],

                ];
        $table->insert($rows)
              ->save();

        $this->execute("SELECT manutencao.trabalho_escravo('2025-04-09')");
    }

    public function down(): void
    {
        $this->execute("
                        CREATE OR REPLACE FUNCTION manutencao.rollback_trabalho_escravo( dtPublicacao  DATE
                                                                                       ) RETURNS       VOID AS $$
                        DECLARE
                            inIdProponente      INTEGER;
                            stSQL               VARCHAR;
                            crCursor            REFCURSOR;
                            reRecord            RECORD;
                        BEGIN
                            stSQL := 'SELECT *
                                        FROM manutencao.trabalho_escravo
                                       WHERE dt_publicacao = '''|| dtPublicacao ||'''
                                         AND operacao = ''incluir''
                                 '      ;
                            OPEN crCursor FOR EXECUTE stSQL;
                            LOOP
                                FETCH crCursor INTO reRecord;
                                EXIT WHEN NOT FOUND;

                                DELETE
                                  FROM seguro.restricoes_tecnicas_proponentes_restricoes_tecnicas
                                 WHERE id_usuario_criacao      = 2068
                                   AND id_proponente_restricao = reRecord.id_restricao
                                   AND id_restricao            = 5
                                     ;

                                DELETE
                                  FROM seguro.proponentes_restricoes_tecnicas
                                 WHERE id_usuario_criacao = 2068
                                   AND id_proponente      = reRecord.id_proponente
                                   AND id                 = reRecord.id_restricao
                                   AND ds_descricao   ilike '%NEGAR DIRETO. Condenação por trabalho escravo na listagem publicada em%'
                                     ;

                                IF reRecord.inserido = TRUE THEN
                                    DELETE
                                      FROM seguro.proponentes
                                     WHERE id_usuario_criacao = 2068
                                       AND id                 = reRecord.id_proponente
                                       AND cpf_cnpj           = reRecord.cpf_cnpj
                                         ;
                                END IF;

                            END LOOP;
                            CLOSE crCursor;



                            stSQL := 'SELECT *
                                        FROM manutencao.trabalho_escravo
                                       WHERE dt_publicacao = '''|| dtPublicacao ||'''
                                         AND operacao = ''excluir''
                                 '      ;
                            OPEN crCursor FOR EXECUTE stSQL;
                            LOOP
                                FETCH crCursor INTO reRecord;
                                EXIT WHEN NOT FOUND;

                                INSERT
                                 INTO seguro.proponentes_restricoes_tecnicas
                                    ( id_usuario_criacao
                                    , dt_criacao
                                    , id
                                    , id_proponente
                                    , id_corretor
                                    , ds_descricao
                                    , id_orientacao_restricao_tecnica
                                    )
                                VALUES
                                    ( reRecord.id_usuario_criacao
                                    , reRecord.data_criacao
                                    , reRecord.id_restricao
                                    , reRecord.id_proponente
                                    , reRecord.id_corretor
                                    , reRecord.ds_descricao
                                    , reRecord.id_orientacao_restricao_tecnica
                                    );

                                IF reRecord.id_proposta IS NOT NULL THEN
                                    INSERT
                                      INTO seguro.proponentes_restricoes_tecnicas_propostas
                                         ( id_usuario_criacao
                                         , dt_criacao
                                         , id_proponente_restricao_tecnica
                                         , id_proposta
                                         )
                                    VALUES
                                         ( reRecord.id_usuario_criacao
                                         , reRecord.data_criacao
                                         , reRecord.id_restricao
                                         , reRecord.id_proposta_prtp
                                         );
                                END IF;

                                INSERT
                                  INTO seguro.historico_proponente_restricao_tecnica
                                     ( id_usuario_criacao
                                     , dt_criacao
                                     , id
                                     , id_proponente_restricao_tecnica
                                     )
                                VALUES
                                     ( reRecord.id_usuario_criacao
                                     , reRecord.data_criacao
                                     , reRecord.id_historico
                                     , reRecord.id_restricao
                                     );

                                INSERT
                                  INTO seguro.restricoes_tecnicas_proponentes_restricoes_tecnicas
                                     ( id_usuario_criacao
                                     , dt_criacao
                                     , id_proponente_restricao
                                     , id_restricao
                                     )
                                VALUES
                                     ( reRecord.id_usuario_criacao
                                     , reRecord.data_criacao
                                     , reRecord.id_restricao
                                     , 5
                                     );

                            END LOOP;
                            CLOSE crCursor;

                        END;
                        $$ LANGUAGE 'plpgsql';
                      ");
        $this->execute("SELECT manutencao.rollback_trabalho_escravo('2025-04-09')");

        $delete = $this->getQueryBuilder();
        $delete->delete('manutencao.trabalho_escravo')
               ->where(['dt_publicacao' => '2025-04-09'])
               ->execute();
    }
}
